Changeset 1039699
- Timestamp:
- 12/07/2014 05:00:31 AM (11 years ago)
- Location:
- recipe-hero-labels
- Files:
-
- 4 edited
-
assets/banner-1544x500.png (modified) (previous)
-
assets/banner-772x250.png (modified) (previous)
-
tags/1.0.0/recipe-hero-labels.php (modified) (4 diffs)
-
trunk/recipe-hero-labels.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
recipe-hero-labels/tags/1.0.0/recipe-hero-labels.php
r1035264 r1039699 4 4 * Plugin URI: http://recipehero.in/ 5 5 * Description: Adds a settings tab to Recipe Hero that allows you to customize the labels used by the plugin. 6 * Author: Bryce Adams7 * Author URI: http:// bryce.se/6 * Author: Recipe Hero / Bryce Adams 7 * Author URI: http://recipehero.in/ 8 8 * Version: 1.0.0 9 9 * … … 23 23 */ 24 24 25 26 25 // If this file is called directly, abort. 27 26 if ( ! defined( 'WPINC' ) ) { … … 29 28 } 30 29 31 32 30 /** 33 31 * Check if WooCommerce is active 34 32 **/ 35 33 if ( in_array( 'recipe-hero/recipe-hero.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { 34 35 // Load plugin text domain 36 add_action( 'init', 'rhl_load_textdomain' ); 36 37 37 38 // Load up... … … 59 60 60 61 /** 62 * Load the plugin text domain for translation. 63 * 64 * @return void 65 */ 66 if ( ! function_exists( 'rhl_load_textdomain' ) ) { 67 function rhl_load_textdomain() { 68 $locale = apply_filters( 'plugin_locale', get_locale(), 'recipe-hero-labels' ); 69 70 load_textdomain( 'recipe-hero-labels', trailingslashit( WP_LANG_DIR ) . 'recipe-hero-video/recipe-hero-labels-' . $locale . '.mo' ); 71 load_plugin_textdomain( 'recipe-hero-labels', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 72 } 73 } 74 75 /** 61 76 * Recipe Hero Deactivated Notice 62 77 **/ 63 78 if ( ! function_exists( 'rhl_rh_deactivated' ) ) { 64 79 function rhl_rh_deactivated() { 65 echo '<div class="error"><p>' . sprintf( __( 'Recipe Hero Labels requires %s to be installed and active.', ' woocommerce-360-image' ), '<a href="http://www.recipehero.in/" target="_blank">Recipe Hero</a>' ) . '</p></div>';80 echo '<div class="error"><p>' . sprintf( __( 'Recipe Hero Labels requires %s to be installed and active.', 'recipe-hero-labels' ), '<a href="http://www.recipehero.in/" target="_blank">Recipe Hero</a>' ) . '</p></div>'; 66 81 } 67 82 } -
recipe-hero-labels/trunk/recipe-hero-labels.php
r1035264 r1039699 4 4 * Plugin URI: http://recipehero.in/ 5 5 * Description: Adds a settings tab to Recipe Hero that allows you to customize the labels used by the plugin. 6 * Author: Bryce Adams7 * Author URI: http:// bryce.se/6 * Author: Recipe Hero / Bryce Adams 7 * Author URI: http://recipehero.in/ 8 8 * Version: 1.0.0 9 9 * … … 23 23 */ 24 24 25 26 25 // If this file is called directly, abort. 27 26 if ( ! defined( 'WPINC' ) ) { … … 29 28 } 30 29 31 32 30 /** 33 31 * Check if WooCommerce is active 34 32 **/ 35 33 if ( in_array( 'recipe-hero/recipe-hero.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { 34 35 // Load plugin text domain 36 add_action( 'init', 'rhl_load_textdomain' ); 36 37 37 38 // Load up... … … 59 60 60 61 /** 62 * Load the plugin text domain for translation. 63 * 64 * @return void 65 */ 66 if ( ! function_exists( 'rhl_load_textdomain' ) ) { 67 function rhl_load_textdomain() { 68 $locale = apply_filters( 'plugin_locale', get_locale(), 'recipe-hero-labels' ); 69 70 load_textdomain( 'recipe-hero-labels', trailingslashit( WP_LANG_DIR ) . 'recipe-hero-video/recipe-hero-labels-' . $locale . '.mo' ); 71 load_plugin_textdomain( 'recipe-hero-labels', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 72 } 73 } 74 75 /** 61 76 * Recipe Hero Deactivated Notice 62 77 **/ 63 78 if ( ! function_exists( 'rhl_rh_deactivated' ) ) { 64 79 function rhl_rh_deactivated() { 65 echo '<div class="error"><p>' . sprintf( __( 'Recipe Hero Labels requires %s to be installed and active.', ' woocommerce-360-image' ), '<a href="http://www.recipehero.in/" target="_blank">Recipe Hero</a>' ) . '</p></div>';80 echo '<div class="error"><p>' . sprintf( __( 'Recipe Hero Labels requires %s to be installed and active.', 'recipe-hero-labels' ), '<a href="http://www.recipehero.in/" target="_blank">Recipe Hero</a>' ) . '</p></div>'; 66 81 } 67 82 }
Note: See TracChangeset
for help on using the changeset viewer.