コード例 #1
0
ファイル: shortcode.php プロジェクト: ricardo20473/Web-live
 public static function get_instance()
 {
     // If the single instance hasn't been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
コード例 #2
0
<?php

/**
 * The default template for displaying content error. Used for both single and index/archive/search.
 *
 * @package StylishThemes
 * @subpackage Zen7
 * @since Zen7 1.0.0
 */
$has_widgets = Zen_Blog_Shortcode::get_instance()->has_widgets;
?>

<div class="blog-post-separately clearfix fadeInUp">
    <div class="<?php 
if ($has_widgets) {
    echo 'col-sm-1-5';
} else {
    echo 'col-sm-1';
}
?>
 row-left">

    </div>
    <div class="<?php 
if ($has_widgets) {
    echo 'col-sm-11-5';
} else {
    echo 'col-sm-11';
}
?>
 row-right">
コード例 #3
0
<?php

/**
 * @author Stylish Themes
 *
 * @since 1.0.0
 */
// File Security Check
if (!defined('ABSPATH')) {
    exit;
}
$classes = array('post-container');
$has_widgets = Zen_Blog_Shortcode::get_instance()->has_widgets;
$query = Zen_Blog_Shortcode::get_instance()->blog_query;
?>

<?php 
/**
 * Remove filter because it stays activated throw all posts.
 */
remove_filter('zen_get_content_more', 'zen_return_empty_string', 15);
?>

<div class="blog-post-separately clearfix">

    <div class="<?php 
if ($has_widgets) {
    echo 'col-sm-1-5';
} else {
    echo 'col-sm-1';
}