Пример #1
0
            echo $post;
        }
        echo '</div>';
    }
} else {
    get_template_part('content', 'none');
}
/**
 * @hooked eighteen_tags_paging_nav - 10
 */
do_action('eighteen_tags_loop_after');
?>

	</main><!-- #main -->
</div><!-- #primary -->
<?php 
if (Eighteen_Tags::instance()->public->get('blog-show-sidebar')) {
    get_sidebar();
    ?>
	<style>
	@media screen and (min-width: 763px) {
		.eighteen-tags-pro-active div#primary {
			width: 73.9130434783%;
			float: left;
			margin-right: 4.347826087%;
		}
	}
	</style>
	<?php 
}
get_footer();
Пример #2
0
 /**
  * Main Eighteen_Tags Instance
  *
  * Ensures only one instance of Eighteen_Tags is loaded or can be loaded.
  *
  * @since 1.0.0
  * @static
  * @see Eighteen_Tags()
  * @return Eighteen_Tags instance
  */
 public static function instance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Пример #3
0
/**
 * Gets the theme mod for customizer fields
 *
 * @param string $id
 * @param mixed $default
 * @return mixed Setting value
 */
function get_18tags_mod($id, $default = null)
{
    return get_theme_mod(Eighteen_Tags::instance()->token . '-' . $id, $default);
}