Beispiel #1
0
 protected static function get_instance()
 {
     if (self::$instance === null) {
         self::$instance = new Thietkeweb();
     }
     return self::$instance;
 }
Beispiel #2
0
 public static function getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new Thietkeweb();
     }
     return self::$instance;
 }
Beispiel #3
0
<?php

define('SH_THEME_SHOUTBOX_VERSION', '1.0.0');
define('SH_THEME_MINIMUM_WP_VERSION', '3.9.2');
define('SH_THEME_URL', get_template_directory_uri());
define('SH_THEME_DIR', plugin_dir_path(__FILE__));
define('SH_THEME_LANGUAGES', dirname(plugin_basename(__FILE__) . '/languages/'));
require SH_THEME_DIR . 'wp_bootstrap_navwalker.php';
require SH_THEME_DIR . 'includes/class.thietkeweb.php';
require SH_THEME_DIR . 'includes/class.thietkeweb-widget-footer.php';
Thietkeweb::run();
ThietkewebWidgetFooter::run();
Beispiel #4
0
		                    </div><!--/.blog-item-->
                                
                            <h1 id="comments_title"><?php 
        echo wp_count_comments(get_the_id())->approved;
        ?>
 Comments</h1>
                            <?php 
        comments_template();
        ?>
						<?php 
    }
}
?>
                    
                    <?php 
Thietkeweb::paginate();
?>

                    <ul class="pagination pagination-lg">
                        <li><a href="#"><i class="fa fa-long-arrow-left"></i>Previous Page</a></li>
                        <li class="active"><a href="#">1</a></li>
                        <li><a href="#">2</a></li>
                        <li><a href="#">3</a></li>
                        <li><a href="#">4</a></li>
                        <li><a href="#">5</a></li>
                        <li><a href="#">Next Page<i class="fa fa-long-arrow-right"></i></a></li>
                    </ul><!--/.pagination-->


                </div><!--/.col-md-8--> 
                <aside class="col-md-4">
Beispiel #5
0
<div class="clearfix">
<?php 
if (have_comments()) {
    Thietkeweb::getComments(get_comments(['status' => 'approve', 'post_id' => get_the_id()]));
}
if (!comments_open()) {
    echo '<p class="no-comments">Comments are closed.</p>';
} else {
    comment_form();
}
?>
</div>
Beispiel #6
0
                            <!-- LOGO -->
                            <div id="logo">
                                <a href="index.html">
                                    <img src="assets/images/logo.png" alt="">
                                </a>
                            </div><!-- LOGO -->
                            
                        </div><!-- col -->
                        <div class="col-sm-9">
                            
                            <!-- MENU --> 
                            <nav>
                            
                                <a id="mobile-menu-button" href="#"><i class="mt-icon-menu"></i></a>
                                 <?php 
echo Thietkeweb::primary_menu();
?>
                
                                <ul class="menu clearfix" id="menu">
                                    <li class="dropdown active">
                                        <a href="index.html">Home</a>
                                        <ul>
                                            <li><a href="index.html">Home version 1</a></li>
                                            <li><a href="index-2.html">Home version 2</a></li>
                                            <li><a href="index-3.html">Home version 3</a></li>
                                        </ul>
                                    </li>
                                    <li class="dropdown">
                                        <a href="#">Pages</a>
                                        <ul>
                                            <li><a href="about-us.html">About us</a></li>