Changeset 603524
- Timestamp:
- 09/25/2012 09:38:40 AM (13 years ago)
- Location:
- google-content-experiments/trunk
- Files:
-
- 6 edited
-
admin/class-wpe-GCEAdmin.php (modified) (2 diffs)
-
class-wpe-GCE.php (modified) (3 diffs)
-
google-content-experiments.php (modified) (2 diffs)
-
languages/gce-nl_NL.mo (modified) (previous)
-
languages/gce-nl_NL.po (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
google-content-experiments/trunk/admin/class-wpe-GCEAdmin.php
r575650 r603524 10 10 add_action ( 'add_meta_boxes', array( $this, 'gwe_meta_box' ) ); 11 11 add_action( 'save_post', array( $this, 'gwe_save_meta' ) ); 12 add_action( 'admin_enqueue_scripts', array( $this, 'gwe_admin_scripts') );12 add_action( 'admin_enqueue_scripts', array( $this, 'gwe_admin_scripts' ) ); 13 13 } 14 14 … … 95 95 foreach( $this->data as $meta_key => $meta_value ) 96 96 { 97 update_post_meta( $post_id, $meta_key, $meta_value);97 update_post_meta( $post_id, $meta_key, $meta_value ); 98 98 } 99 99 } -
google-content-experiments/trunk/class-wpe-GCE.php
r575650 r603524 13 13 */ 14 14 public function setup() { 15 // Don't output Content Experiment code on the homepage when showingposts16 if ( is_home() )15 // Don't output Content Experiment code when showing multiple posts 16 if ( !is_singular() ) 17 17 return; 18 18 19 19 // Else, continue 20 20 global $post; 21 $wpe_gce_active = get_post_meta( $post->ID, '_wpe_gce_active', TRUE);21 $wpe_gce_active = get_post_meta( $post->ID, '_wpe_gce_active', TRUE ); 22 22 23 23 // Add code if Content Experiment is enabled for this post/page 24 if( isset( $wpe_gce_active) && $wpe_gce_active == '1' ) {24 if( isset( $wpe_gce_active ) && $wpe_gce_active == '1' ) { 25 25 add_action( 'wp', array( $this, 'prepare_output' ), 0 ); 26 26 } … … 35 35 36 36 // Check if active theme is in the list 37 switch ( $this->check_theme()) {37 switch ( $this->check_theme() ) { 38 38 case 'genesis': 39 39 remove_action( 'genesis_doctype', 'genesis_do_doctype' ); … … 59 59 public function output_code() { 60 60 global $post; 61 $wpe_gce_code = get_post_meta( $post->ID, '_wpe_gce_code', TRUE);62 echo $wpe_gce_code .PHP_EOL;;61 $wpe_gce_code = get_post_meta( $post->ID, '_wpe_gce_code', TRUE ); 62 echo $wpe_gce_code . PHP_EOL;; 63 63 } 64 64 -
google-content-experiments/trunk/google-content-experiments.php
r575650 r603524 16 16 17 17 if ( is_admin() && ( !defined('DOING_AJAX') || !DOING_AJAX ) && !class_exists( 'GCEAdmin' ) ) { 18 include_once( WPE_GCE_PATH . "admin/class-wpe-GCEAdmin.php");18 include_once( WPE_GCE_PATH . 'admin/class-wpe-GCEAdmin.php' ); 19 19 20 20 // Load GCE Admin class on the post/page edit screen … … 28 28 29 29 if ( !class_exists( 'GCE' ) ) { 30 include_once( WPE_GCE_PATH . "class-wpe-GCE.php");30 include_once( WPE_GCE_PATH . 'class-wpe-GCE.php' ); 31 31 if( !is_admin() ) 32 32 $gce = new GCE(); -
google-content-experiments/trunk/languages/gce-nl_NL.po
r575650 r603524 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2012-07-20 17:38+0100\n" 6 "PO-Revision-Date: 2012-0 7-20 17:42+0100\n"6 "PO-Revision-Date: 2012-09-25 11:34+0100\n" 7 7 "Last-Translator: Glenn Mulleners <info@wp-expert.nl>\n" 8 8 "Language-Team: WP-Expert\n" … … 12 12 "X-Poedit-KeywordsList: __;_e\n" 13 13 "X-Poedit-Basepath: .\n" 14 " X-Poedit-Language: Dutch\n"15 "X- Poedit-Country: NETHERLANDS\n"14 "Language: nl_NL\n" 15 "X-Generator: Poedit 1.5.3\n" 16 16 "X-Poedit-SearchPath-0: ..\n" 17 17 … … 22 22 #: ../admin/class-wpe-GCEAdmin.php:51 23 23 msgid "Activate Content Experiment on this page" 24 msgstr " Activeer Inhoud Experiment voor deze pagina"24 msgstr "Inhoud Experiment voor deze pagina activeren" 25 25 26 26 #: ../admin/class-wpe-GCEAdmin.php:59 27 27 msgid "Your Content Experiment Code:" 28 msgstr "Jouw Inhoud Experiment Code:" 29 28 msgstr "Je Inhoud Experiment Code:" -
google-content-experiments/trunk/readme.txt
r598920 r603524 4 4 Requires at least: 3.4.0 5 5 Tested up to: 3.4.2 6 Stable tag: 1.0. 06 Stable tag: 1.0.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 74 74 == Changelog == 75 75 76 = 1.0.1 = 77 78 * Fixed bug that inserted experiment code when displaying multiple posts (e.g. on category pages) 79 * Updated Dutch translation 80 76 81 = 1.0 = 77 82
Note: See TracChangeset
for help on using the changeset viewer.