Changeset 932816
- Timestamp:
- 06/16/2014 05:51:24 AM (12 years ago)
- Location:
- woocommerce-compare-list/trunk
- Files:
-
- 6 edited
-
includes/catalog.php (modified) (1 diff)
-
includes/common.php (modified) (1 diff)
-
includes/compare-page.php (modified) (1 diff)
-
index.php (modified) (2 diffs)
-
languages/wccm-en_US.mo (modified) (previous)
-
languages/wccm-en_US.po (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-compare-list/trunk/includes/catalog.php
r909527 r932816 41 41 if ( wccm_show_in_catalog() ) { 42 42 $base_path = plugins_url( '/', dirname( __FILE__ ) ); 43 wp_enqueue_style( 'wccm-catalog', $base_path . 'css/catalog.css', array( 'dashicons' ), '1.0.0');43 wp_enqueue_style( 'wccm-catalog', $base_path . 'css/catalog.css', array( 'dashicons' ), WCCM_VERISON ); 44 44 } 45 45 } -
woocommerce-compare-list/trunk/includes/common.php
r909527 r932816 28 28 29 29 // register action hooks 30 add_action( 'plugins_loaded', 'wccm_load_textdomain' );31 30 add_action( 'init', 'wccm_register_endpoint' ); 32 33 31 // register filter hooks 34 32 add_filter( 'query_vars', 'wccm_register_endpoint_var' ); 35 36 /**37 * Loads plugin text domain and translations.38 *39 * @since 1.0.040 * @action plugins_loaded41 */42 function wccm_load_textdomain() {43 load_plugin_textdomain( 'wccm', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );44 }45 33 46 34 /** -
woocommerce-compare-list/trunk/includes/compare-page.php
r909527 r932816 48 48 if ( is_page() && get_option( 'wccm_compare_page' ) == get_queried_object_id() ) { 49 49 $base_path = plugins_url( '/', dirname( __FILE__ ) ); 50 wp_enqueue_style( 'wccm-compare', $base_path . 'css/compare.css', array( 'dashicons' ), '1.0.0');50 wp_enqueue_style( 'wccm-compare', $base_path . 'css/compare.css', array( 'dashicons' ), WCCM_VERISON ); 51 51 52 wp_enqueue_script( 'wccm-compare', $base_path . 'js/compare.js', array( 'jquery' ), '1.0.0');52 wp_enqueue_script( 'wccm-compare', $base_path . 'js/compare.js', array( 'jquery' ), WCCM_VERISON ); 53 53 wp_localize_script( 'wccm-compare', 'wccm', array( 54 54 'ie' => $is_IE, -
woocommerce-compare-list/trunk/index.php
r909530 r932816 4 4 Plugin URI: http://wordpress.org/plugins/woocommerce-compare-list/ 5 5 Description: The plugin adds ability to compare some products of your WooCommerce driven shop. 6 Version: 1. 0.06 Version: 1.1 7 7 Author: Madpixels 8 8 Author URI: http://madpixels.net … … 37 37 } 38 38 39 // load appropriate files 40 require_once 'includes/common.php'; 41 42 if ( is_admin() ) { 43 require_once 'includes/settings.php'; 44 } elseif ( intval( get_option( 'wccm_compare_page' ) ) > 0 ) { 45 require_once 'includes/buttons.php'; 46 require_once 'includes/compare-page.php'; 47 require_once 'includes/catalog.php'; 48 } 49 39 // add action hooks 40 add_action( 'plugins_loaded', 'wccm_launch' ); 50 41 // activation and deactivation stuff 51 42 register_activation_hook( __FILE__, 'flush_rewrite_rules' ); 52 43 register_deactivation_hook( __FILE__, 'flush_rewrite_rules' ); 44 45 /** 46 * Launches plugin if WooCommerce is active. 47 * 48 * @since 1.1 49 * @action plugins_loaded 50 * 51 * @return boolean TRUE if launched successfully, otherwise FALSE. 52 */ 53 function wccm_launch() { 54 if ( !class_exists( 'WooCommerce' ) || defined( 'WCCM_VERISON' ) ) { 55 return false; 56 } 57 58 define( 'WCCM_VERISON', '1.1' ); 59 60 load_plugin_textdomain( 'wccm', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 61 62 require_once 'includes/common.php'; 63 if ( is_admin() ) { 64 require_once 'includes/settings.php'; 65 } elseif ( intval( get_option( 'wccm_compare_page' ) ) > 0 ) { 66 require_once 'includes/buttons.php'; 67 require_once 'includes/compare-page.php'; 68 require_once 'includes/catalog.php'; 69 } 70 71 return true; 72 } -
woocommerce-compare-list/trunk/languages/wccm-en_US.po
r909527 r932816 3 3 "Project-Id-Version: WooCommerce Compare List\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2014-0 4-25 14:05+0300\n"6 "PO-Revision-Date: 2014-0 4-25 14:05+0300\n"5 "POT-Creation-Date: 2014-06-16 08:47+0300\n" 6 "PO-Revision-Date: 2014-06-16 08:47+0300\n" 7 7 "Last-Translator: Eugene Manuilov <eugene@manuilov.org>\n" 8 8 "Language-Team: MadPixels <contact@madpixels.net>\n" … … 21 21 "X-Poedit-SearchPath-0: .\n" 22 22 23 #: includes/buttons.php:71 includes/settings.php:90 23 #: includes/catalog.php:77 includes/buttons.php:78 includes/settings.php:90 24 msgid "Compare" 25 msgstr "Compare" 26 27 #: includes/catalog.php:81 28 msgid "Cancel" 29 msgstr "Cancel" 30 31 #: includes/buttons.php:71 includes/settings.php:98 24 32 msgid "Remove compare" 25 33 msgstr "Remove compare" 26 34 27 #: includes/buttons.php:74 includes/settings.php:8228 msgid " Compare"29 msgstr " Compare"35 #: includes/buttons.php:74 36 msgid "View compare" 37 msgstr "View compare" 30 38 31 #: includes/compare-page.php: 6439 #: includes/compare-page.php:84 32 40 msgid "No products found to compare." 33 41 msgstr "No products found to compare." … … 62 70 63 71 #: includes/settings.php:80 72 msgid "Endpoint Slug" 73 msgstr "Endpoint Slug" 74 75 #: includes/settings.php:81 76 msgid "Enter text which will be used as endpoint for compare page." 77 msgstr "Enter text which will be used as endpoint for compare page." 78 79 #: includes/settings.php:82 includes/common.php:42 80 msgid "products" 81 msgstr "products" 82 83 #: includes/settings.php:88 64 84 msgid "Compare button text" 65 85 msgstr "Compare button text" 66 86 67 #: includes/settings.php:8 187 #: includes/settings.php:89 68 88 msgid "Enter text which will be displayed on the add to compare button." 69 89 msgstr "Enter text which will be displayed on the add to compare button." 70 90 71 #: includes/settings.php: 8891 #: includes/settings.php:96 72 92 msgid "Remove button text" 73 93 msgstr "Remove button text" 74 94 75 #: includes/settings.php: 8995 #: includes/settings.php:97 76 96 msgid "Enter text which will be displayed on the remove from compare button." 77 97 msgstr "Enter text which will be displayed on the remove from compare button." 78 98 79 #: includes/settings.php:12 099 #: includes/settings.php:128 80 100 msgid "Compare List" 81 101 msgstr "Compare List"
Note: See TracChangeset
for help on using the changeset viewer.