Пример #1
0
 /**
  * Singleton pattern.
  * @return type
  */
 public static function instance()
 {
     if (!is_object(self::$instance)) {
         $class = __CLASS__;
         self::$instance = new $class();
     }
     return self::$instance;
 }
Пример #2
0
echo cwp_theme::the_offline_slug();
?>
 </h1>

<!-- ###### -->
<div class="row">
    <div class="span12">
        <div class="well">
            <?php 
$cwp_offline_pg = get_page_by_title('Offline');
if ($cwp_offline_pg) {
} else {
    ?>

            <p><?php 
    echo cwp_theme::the_offline_copy();
    ?>
</p>
<?php 
}
?>
            <p class="social-icons font-larger">(</p></div>
        <!-- class content -->
    </div>
    <!-- ###### -->
</div>
<div class="row">
    <div class="span12">
        <?php 
//if(mod_mobile::detect()->isPhone()) echo "Phone";
?>
Пример #3
0
        </div>
        <div class="row">
            <div class="span12">
                <div id="copright-info">
                    <p class="copyright">&copy; <?php 
echo date('Y');
?>
 <a href="<?php 
echo home_url();
?>
"><?php 
bloginfo('name');
?>
</a>.
                        <?php 
echo cwp_theme::the_copyright_copy();
?>
.
                        <br />
                    </p>
                    <p class="designer-copy"> <a href="http://craftedandpressed.com" target="_BLANK">
                            <?php 
_e('Designed by Crafted and Pressed', 'basejump');
?>
 </a>.
                    </p>
                </div>
                <!-- ###end-row### -->
            </div>
        </div>
</div>
Пример #4
0
get_header('tbs');
cwp_layout::the_header('tbs');
?>
<section id="feature" >
    <div class="container">
        <div class="row">
            <div class="span12">
                <div class="strip">
                    <h1>
                        <?php 
echo $cpt_options->the_headline_copy();
?>
                    </h1>
                    <p>
                        <?php 
echo cwp_theme::the_main_copy();
?>
                    </p>
                    <!-- class content -->
                </div>
            </div>
            <!-- container -->
        </div>
    </div>
</section>
<section id="content">


    <div id="articles" class="container">
        <?php 
cwp_layout::main_tpl();
Пример #5
0
/**
 * Theme decativation functions
 */
add_action('switch_theme', 'cwp_switch_theme');
function cwp_switch_theme()
{
    //update_option('cwp_last_theme', "theme switched reactivated");
    if (!cwp::theme_options('saveoptions') and cwp::theme_options('saveoptions') == 0) {
        delete_option('cwp_theme_options');
    }
}
/**
 * Theme options
 * Instantiate and load theme options
 */
$cpt_options = cwp_theme::options();
if (!function_exists('_bj_comment')) {
    /**
     * Template for comments and pingbacks.
     *
     * Used as a callback by wp_list_comments() for displaying the comments.
     *
     * @since basejump 1.0
     */
    function _bj_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        switch ($comment->comment_type) {
            case 'pingback':
            case 'trackback':
                ?>