Changeset 632240
- Timestamp:
- 11/30/2012 03:26:51 PM (13 years ago)
- Location:
- creative-commons-generator
- Files:
-
- 11 added
- 2 deleted
- 5 edited
-
tags/1.0 (deleted)
-
tags/1.1/ccg-admin.php (modified) (1 diff)
-
tags/1.1/ccg-frontend.php (modified) (1 diff)
-
tags/1.1/ccg-post-options.php (modified) (2 diffs)
-
tags/1.1/readme.txt (modified) (1 diff)
-
tags/1.1/uninstall.php (deleted)
-
tags/1.2 (added)
-
tags/1.2/ccg-admin.php (added)
-
tags/1.2/ccg-frontend.php (added)
-
tags/1.2/ccg-init.php (added)
-
tags/1.2/ccg-post-options.php (added)
-
tags/1.2/lang (added)
-
tags/1.2/lang/ccg-domain-es_ES.mo (added)
-
tags/1.2/lang/ccg-domain-es_ES.po (added)
-
tags/1.2/readme.txt (added)
-
tags/1.2/screenshot-1.png (added)
-
tags/1.2/uninstall.php (added)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
creative-commons-generator/tags/1.1/ccg-admin.php
r632209 r632240 14 14 15 15 function ccg_set_default() { 16 if ( !get_option( 'ccg_options') ) {16 if ( !get_option('ccg_options') ) { 17 17 $ccg_options = array(); 18 18 $ccg_options['active'] = TRUE; -
creative-commons-generator/tags/1.1/ccg-frontend.php
r632209 r632240 1 1 <?php 2 2 function ccg_display($content) { 3 if( is_single()) {3 if(is_single()) { 4 4 global $post; 5 if ( get_post_meta( $post->ID, '_ccg_options' ) ) $content .= ccg_get_banner( get_post_meta( $post->ID, '_ccg_options', true ), 'meta_exist');6 else $content .= ccg_get_banner( get_option( 'ccg_options' ), 'no_meta');5 if ( get_post_meta( $post->ID, '_ccg_options' ) ) $content = $content . ccg_get_banner( get_post_meta( $post->ID, '_ccg_options', true ), "meta_exist" ); 6 else $content = $content . ccg_get_banner( get_option( 'ccg_options' ), "no_meta" ); 7 7 } 8 8 return $content; 9 9 } 10 add_filter( 'the_content', 'ccg_display' , 100);10 add_filter( 'the_content', 'ccg_display' ); 11 11 ?> -
creative-commons-generator/tags/1.1/ccg-post-options.php
r632209 r632240 1 1 <?php 2 2 add_action( 'admin_init', 'ccg_add_meta_box', 1 ); 3 add_action( 'save_post', 'ccg_save_post_data');3 add_action('save_post', 'ccg_save_post_data'); 4 4 5 5 function ccg_add_meta_box() { … … 38 38 echo ccg_get_banner( $ccg_old_options, "publish" ); 39 39 } 40 41 // Preview 42 40 43 41 44 ?> -
creative-commons-generator/tags/1.1/readme.txt
r632209 r632240 48 48 49 49 = 1.1 = 50 * Added uninstall.php file.51 * the_content display filter priority has upload to 100.52 53 = 1.0 =54 50 * Initial release -
creative-commons-generator/trunk/readme.txt
r632209 r632240 5 5 Requires at least: 2.8 6 6 Tested up to: 3.4.5 7 Stable tag: 1. 17 Stable tag: 1.2 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 47 47 == Changelog == 48 48 49 = 1. 1=49 = 1.2 = 50 50 * Added uninstall.php file. 51 51 * the_content display filter priority has upload to 100. 52 52 53 = 1. 0=53 = 1.1 = 54 54 * Initial release
Note: See TracChangeset
for help on using the changeset viewer.