Plugin Directory

Changeset 1226677


Ignore:
Timestamp:
08/21/2015 01:50:12 AM (11 years ago)
Author:
primestrategy
Message:

commit WP SiteManager 1.1.1

Location:
wp-sitemanager/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wp-sitemanager/trunk/advanced_cache_tpl/advanced-cache.tpl

    r1189382 r1226677  
    8888### REGEX INCLUDE ###
    8989
    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() ) {
    10191            $group = '';
    10292        }
     93
    10394        $protocol = isset( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
    10495
  • wp-sitemanager/trunk/modules/meta-manager.php

    r1189382 r1226677  
    318318private function get_ogp( $meta ) {
    319319    $og_output = '';
     320    $og_output = apply_filters( 'wp_sitemanager_ogp_before' , $og_output );
    320321    $og_tags = array();
    321322
     
    350351
    351352    foreach ( (array)$og_tags as $tag_property => $tag_content ) {
    352         if ( empty( $tag_content ) )
     353        if ( empty( $tag_content ) ) {
    353354            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 );
    357365    return $og_output;
    358366}
     
    361369private function get_twitcards( $meta ) {
    362370    $tc_output = '';
     371    $tc_output = apply_filters( 'wp_sitemanager_twitter_cards_before' , $tc_output );
    363372    $tc_tags = array();
    364373
     
    394403   
    395404    foreach ( (array)$tc_tags as $tag_property => $tag_content ) {
    396         if ( empty( $tag_content ) )
     405        if ( empty( $tag_content ) ) {
    397406            continue; // Don't ever output empty tags
    398 
     407        }
    399408        $tc_output .= sprintf( '<meta name="%s" content="%s" />', esc_attr( $tag_property ), esc_attr( $tag_content ) ) . "\n";
    400409    }
    401 
     410    $tc_output = apply_filters( 'wp_sitemanager_twitter_cards_after' , $tc_output );
    402411    return $tc_output;
    403412}
  • wp-sitemanager/trunk/modules/site-structure.php

    r1189382 r1226677  
    973973class infinity_sub_navi_widget extends WP_Widget {
    974974   
    975     function infinity_sub_navi_widget () {
     975    public function __construct() {
    976976        $widget_ops = array(
    977977            'classname' => 'sub_navi-widget',
     
    997997        );
    998998
    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 ) {
    10031003        global $post;
    10041004       
     
    12471247    }
    12481248
    1249     function update( $new_instance, $old_instance ) {
     1249    public function update( $new_instance, $old_instance ) {
    12501250        // validate
    12511251        if ( ! isset( $new_instance['page_display_child_of'] ) ) {
     
    13551355   
    13561356   
    1357     function add_nen_for_get_archives( $link_html ) {
     1357    public function add_nen_for_get_archives( $link_html ) {
    13581358        $regex = array (
    13591359            "/ title='([\d]{4})'/"  => " title='$1年'",
  • wp-sitemanager/trunk/readme.txt

    r1189382 r1226677  
    33Tags: cms, mobile, sitemap, pager, page navi, breadcrumb
    44Requires at least: 3.5
    5 Tested up to: 4.2.2
    6 Stable tag: 1.1.0
     5Tested up to: 4.3
     6Stable tag: 1.1.1
    77
    88WP SiteManager is an integrated package comprising of necessary functions for using WordPress as a CMS.
     
    3434
    3535== 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
    3642= 1.1 =
    3743* change : post meta boxes priority 10 to 9999.
  • wp-sitemanager/trunk/wp-sitemanager.php

    r1189382 r1226677  
    55 Description: WP SiteManager is an integrated package comprising of necessary functions for using WordPress as a CMS.
    66 Author: Prime Strategy Co.,LTD.
    7  Version: 1.1.0
     7 Version: 1.1.1
    88 Author URI: http://www.prime-strategy.co.jp/
    99 License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.