Changeset 632209
- Timestamp:
- 11/30/2012 02:27:05 PM (13 years ago)
- Location:
- creative-commons-generator
- Files:
-
- 12 added
- 4 edited
-
tags/1.1 (added)
-
tags/1.1/ccg-admin.php (added)
-
tags/1.1/ccg-frontend.php (added)
-
tags/1.1/ccg-init.php (added)
-
tags/1.1/ccg-post-options.php (added)
-
tags/1.1/lang (added)
-
tags/1.1/lang/ccg-domain-es_ES.mo (added)
-
tags/1.1/lang/ccg-domain-es_ES.po (added)
-
tags/1.1/readme.txt (added)
-
tags/1.1/screenshot-1.png (added)
-
tags/1.1/uninstall.php (added)
-
trunk/ccg-admin.php (modified) (1 diff)
-
trunk/ccg-frontend.php (modified) (1 diff)
-
trunk/ccg-post-options.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/uninstall.php (added)
Legend:
- Unmodified
- Added
- Removed
-
creative-commons-generator/trunk/ccg-admin.php
r631821 r632209 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/trunk/ccg-frontend.php
r631821 r632209 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 = $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");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' ); 7 7 } 8 8 return $content; 9 9 } 10 add_filter( 'the_content', 'ccg_display' );10 add_filter( 'the_content', 'ccg_display', 100 ); 11 11 ?> -
creative-commons-generator/trunk/ccg-post-options.php
r631821 r632209 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 // Preview42 43 40 44 41 ?> -
creative-commons-generator/trunk/readme.txt
r631953 r632209 5 5 Requires at least: 2.8 6 6 Tested up to: 3.4.5 7 Stable tag: 1. 07 Stable tag: 1.1 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 = 50 * Added uninstall.php file. 51 * the_content display filter priority has upload to 100. 52 49 53 = 1.0 = 50 54 * Initial release
Note: See TracChangeset
for help on using the changeset viewer.