Esempio n. 1
1
<?php

defined('ABSPATH') or die('This script cannot be accessed directly.');
/**
 * The template for displaying the 404 page
 */
US_Layout::instance()->sidebar_pos = 'none';
get_header();
?>
<div class="l-main">
	<div class="l-main-h i-cf">

		<div class="l-content g-html">

			<section class="l-section">
				<div class="l-section-h i-cf">

					<?php 
do_action('us_before_404');
?>

					<div class="page-404">

						<?php 
$the_content = '<h1>' . __('Error 404 - page not found', 'us') . '</h1><p>' . __('Ohh... You have requested the page that is no longer there.', 'us') . '</p>';
echo apply_filters('us_404_content', $the_content);
?>

					</div>

					<?php 
Esempio n. 2
0
 /**
  * Singleton pattern: US_Layout::instance()->do_something()
  *
  * @return US_Layout
  */
 public static function instance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Esempio n. 3
0
 function us_woocommerce_after_main_content()
 {
     $us_layout = US_Layout::instance();
     echo '</div></section></div>';
     if ($us_layout->sidebar_pos == 'left' or $us_layout->sidebar_pos == 'right') {
         echo '<aside class="l-sidebar at_' . $us_layout->sidebar_pos . '">';
         dynamic_sidebar('shop_sidebar');
         echo '</aside>';
     }
     echo '</div></div>';
 }
Esempio n. 4
0
<?php

defined('ABSPATH') or die('This script cannot be accessed directly.');
/**
 * Header navigation menu block
 *
 * (!) Important: this file is not intended to be overloaded, so use the below hooks for customizing instead
 *
 * @action Before the template: 'us_before_template:templates/widgets/nav-main'
 * @action After the template: 'us_after_template:templates/widgets/nav-main'
 */
$menu_location = apply_filters('us_main_menu_location', 'us_main_menu');
if (!has_nav_menu($menu_location)) {
    return;
}
$us_layout = US_Layout::instance();
$classes = '';
$classes .= ' layout_' . ($us_layout->header_layout != 'sided' ? 'hor' : 'ver');
$classes .= ' type_desktop';
$classes .= ' animation_' . us_get_option('menu_dropdown_effect', 'opacity');
if (us_get_option('menu_height')) {
    $classes .= ' height_' . (us_get_option('menu_height') ? 'full' : 'auto');
}
?>
<!-- NAV -->
<nav class="w-nav<?php 
echo $classes;
?>
">
	<div class="w-nav-control"></div>
	<ul class="w-nav-list level_1 hover_none hidden">