plugins_url( 'resources/js/admin.js' ), array( 'jquery' ) ); } public function admin_menu() { add_options_page( _x( 'Unit Converter', 'admin menu', 'another-unit-converter' ), _x( 'Another Unit Converter', 'admin menu', 'another-unit-converter' ), 'manage_options', 'aucp_settings', array( $this, 'settings_page' ) ); } public function settings_page() { echo '
';
_e( 'Another Unit Converter requires a currencylayer API key to work properly. Obtaining an API key from currencylayer is completely FREE.', 'another-unit-converter' );
echo '
';
echo '' . __( 'What is currencylayer?', 'another-unit-converter' ) . '';
echo '
';
echo str_replace(
array( '', '
';
echo '' . __( 'Why do I need an API key?', 'another-unit-converter' ) . '';
echo '
';
_e( 'Another Unit Converter uses the currencylayer API to download updated daily rates for the supported currencies, and then perform the conversions that you see on your posts and pages using this information.', 'another-unit-converter' );
echo '
';
echo '' . __( 'How do I sign-up for and use the currencylayer API key?', 'another-unit-converter' ) . '';
echo '
';
echo '
';
echo str_replace(
array( '
';
echo '';
_e( 'Click here for more details.', 'another-unit-converter' );
echo '';
echo '