Changeset 1226677
- Timestamp:
- 08/21/2015 01:50:12 AM (11 years ago)
- Location:
- wp-sitemanager/trunk
- Files:
-
- 5 edited
-
advanced_cache_tpl/advanced-cache.tpl (modified) (1 diff)
-
modules/meta-manager.php (modified) (4 diffs)
-
modules/site-structure.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-sitemanager.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-sitemanager/trunk/advanced_cache_tpl/advanced-cache.tpl
r1189382 r1226677 88 88 ### REGEX INCLUDE ### 89 89 90 $sql = "SELECT option_value FROM {$table}options WHERE option_name = 'theme_switcher_disable' LIMIT 1"; 91 $ret = mysql_query( $sql, $dbh ); 92 93 94 if ( $ret ) { 95 $theme_switcher_disable = mysql_result( $ret, 0 ); 96 } else { 97 $theme_switcher_disable = false; 98 } 99 100 if ( $theme_switcher_disable || ( ! $group = $this->get_device_group() ) ) { 90 if ( ! $group = $this->get_device_group() ) { 101 91 $group = ''; 102 92 } 93 103 94 $protocol = isset( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http'; 104 95 -
wp-sitemanager/trunk/modules/meta-manager.php
r1189382 r1226677 318 318 private function get_ogp( $meta ) { 319 319 $og_output = ''; 320 $og_output = apply_filters( 'wp_sitemanager_ogp_before' , $og_output ); 320 321 $og_tags = array(); 321 322 … … 350 351 351 352 foreach ( (array)$og_tags as $tag_property => $tag_content ) { 352 if ( empty( $tag_content ) ) 353 if ( empty( $tag_content ) ) { 353 354 continue; // Don't ever output empty tags 354 355 $og_output .= sprintf( '<meta property="%s" content="%s" />', esc_attr( $tag_property ), esc_attr( $tag_content ) ) . "\n"; 356 } 355 } 356 if ( 'og:image' == $tag_property && is_array( $tag_content ) ) { 357 foreach ( $tag_content as $tag_multi_content ) { 358 $og_output .= sprintf( '<meta property="%s" content="%s" />', esc_attr( $tag_property ), esc_attr( $tag_multi_content ) ) . "\n"; 359 } 360 } else { 361 $og_output .= sprintf( '<meta property="%s" content="%s" />', esc_attr( $tag_property ), esc_attr( $tag_content ) ) . "\n"; 362 } 363 } 364 $og_output = apply_filters( 'wp_sitemanager_ogp_after' , $og_output ); 357 365 return $og_output; 358 366 } … … 361 369 private function get_twitcards( $meta ) { 362 370 $tc_output = ''; 371 $tc_output = apply_filters( 'wp_sitemanager_twitter_cards_before' , $tc_output ); 363 372 $tc_tags = array(); 364 373 … … 394 403 395 404 foreach ( (array)$tc_tags as $tag_property => $tag_content ) { 396 if ( empty( $tag_content ) ) 405 if ( empty( $tag_content ) ) { 397 406 continue; // Don't ever output empty tags 398 407 } 399 408 $tc_output .= sprintf( '<meta name="%s" content="%s" />', esc_attr( $tag_property ), esc_attr( $tag_content ) ) . "\n"; 400 409 } 401 410 $tc_output = apply_filters( 'wp_sitemanager_twitter_cards_after' , $tc_output ); 402 411 return $tc_output; 403 412 } -
wp-sitemanager/trunk/modules/site-structure.php
r1189382 r1226677 973 973 class infinity_sub_navi_widget extends WP_Widget { 974 974 975 function infinity_sub_navi_widget() {975 public function __construct() { 976 976 $widget_ops = array( 977 977 'classname' => 'sub_navi-widget', … … 997 997 ); 998 998 999 $this->WP_Widget( 'sub_navi', 'サブナビ', $widget_ops, $widget_ops );1000 } 1001 1002 function widget( $args, $instance ) {999 parent::__construct( 'sub_navi', 'サブナビ', $widget_ops, $widget_ops ); 1000 } 1001 1002 public function widget( $args, $instance ) { 1003 1003 global $post; 1004 1004 … … 1247 1247 } 1248 1248 1249 function update( $new_instance, $old_instance ) {1249 public function update( $new_instance, $old_instance ) { 1250 1250 // validate 1251 1251 if ( ! isset( $new_instance['page_display_child_of'] ) ) { … … 1355 1355 1356 1356 1357 function add_nen_for_get_archives( $link_html ) {1357 public function add_nen_for_get_archives( $link_html ) { 1358 1358 $regex = array ( 1359 1359 "/ title='([\d]{4})'/" => " title='$1年'", -
wp-sitemanager/trunk/readme.txt
r1189382 r1226677 3 3 Tags: cms, mobile, sitemap, pager, page navi, breadcrumb 4 4 Requires at least: 3.5 5 Tested up to: 4. 2.26 Stable tag: 1.1. 05 Tested up to: 4.3 6 Stable tag: 1.1.1 7 7 8 8 WP SiteManager is an integrated package comprising of necessary functions for using WordPress as a CMS. … … 34 34 35 35 == Changelog == 36 = 1.1 = 37 * add : new filter hooks (wp_sitemanager_ogp_before, wp_sitemanager_ogp_after, wp_sitemanager_twitter_cards_before, wp_sitemanager_twitter_cards_after) 38 * new : multi og:image support( array given $og_tags['og:image'] ) 39 * fix : advanced-cache.tpl error. 40 * fix : widget deprecated error. 41 36 42 = 1.1 = 37 43 * change : post meta boxes priority 10 to 9999. -
wp-sitemanager/trunk/wp-sitemanager.php
r1189382 r1226677 5 5 Description: WP SiteManager is an integrated package comprising of necessary functions for using WordPress as a CMS. 6 6 Author: Prime Strategy Co.,LTD. 7 Version: 1.1. 07 Version: 1.1.1 8 8 Author URI: http://www.prime-strategy.co.jp/ 9 9 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.