static function project() { if (self::$project === null) { self::$project = new Smart_Project_Base(); return self::$project; } else { return self::$project; } }
function widget($args, $instance) { $title = apply_filters('widget_title', $instance['title']); $limit = is_int($instance['gallery_limit']) ? $instance['gallery_limit'] : 4; extract($args); echo $before_widget; ?> <?php if ($title) { echo $before_title . $title . $after_title; } $query = new WP_Query(array('posts_per_page' => $limit, 'tax_query' => array(array('taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array('post-format-gallery'))))); if ($query->have_posts()) { ?> <ul class="small-block-grid-2"> <?php while ($query->have_posts()) { $query->the_post(); ?> <?php $featured_image = __HARMONUX::layout()->get_featured_image('medium-square'); if ('' != get_the_post_thumbnail()) { ?> <li> <a href="<?php the_permalink(); ?> " class="smartlib-thumbnail-outer"><?php harmonux_get_format_ico('gallery'); the_post_thumbnail('medium-square'); ?> </a> </li> <?php } else { if (!empty($featured_image)) { ?> <li> <a href="<?php the_permalink(); ?> " class="smartlib-thumbnail-outer"><?php harmonux_get_format_ico('gallery'); echo $featured_image; ?> </a></li> <?php } } ?> <?php } wp_reset_postdata(); ?> </ul> <?php echo $after_widget; ?> <?php } }
?> </head> <body <?php body_class(); ?> > <?php harmonux_lt_ie7_info(); //display info if IE lower than 7 ?> <div class="top-bar-outer"> <?php //fixed top bar option $fixed = __HARMONUX::option('project_fixed_topbar'); ?> <div id="top-bar" class="top-bar home-border<?php get_header_fixed_class(); ?> "> <div class="row"> <div class="columns large-4 medium-6 small-8"> <?php /** * Add Theme logo : template_tags */ harmonux_logo(); ?>
} ?> <footer id="main-footer" class="main-footer"> <?php if (!is_404()) { get_sidebar('footer'); } //Add footer sidebar ?> <div id="footer-bottom"> <div class="row"> <div class="large-4 columns"> <?php echo __HARMONUX::option('title_tagline_footer'); ?> </div> <div class="large-12 columns footer-navigation"> <p style="padding-left:100px">Copyright © Salman ITB. Developed by Ekky Fauzan M.</p> <?php //wp_nav_menu(array('theme_location' => 'footer_pages', 'container' => false, 'depth'=>1)); ?> </div> </div> </div> </footer> <?php wp_footer(); ?>
echo get_class_of_component('menu'); ?> "> <nav id="site-navigation" class="main-navigation hide-for-small" role="navigation"> <a class="assistive-text" href="#content" title="<?php esc_attr_e('Skip to content', 'harmonux'); ?> "><?php _e('Skip to content', 'harmonux'); ?> </a> <?php //fixed menu option $fixed = __HARMONUX::option('harmonux_menu_fixed'); ?> <div class="harmonux-nav-menu <?php echo $fixed == '1' ? ' fixed-menu' : ''; ?> "> <?php wp_nav_menu(array('theme_location' => 'categories', 'container' => false)); ?> </div> </nav> <!-- #site-navigation --> <ul class="widget-area smartlib-under-menu-widget-area"> <?php
* * HamronUX functions and definitions. * * The functions file is used to initialize everything in the theme. * It sets up the supported features, default actions and filters. * * * * @since HamronUX 1.0 */ // Load Smart Library require get_template_directory() . '/smart-lib/load.php'; /** * Initialize smart lib project object */ __HARMONUX::init(); /** * Sets up the content width value based on the theme's design and stylesheet. */ /** * Sets up theme defaults and registers the various WordPress features */ if (!function_exists('harmonux_setup')) { function harmonux_setup() { global $content_width; /* * Load textdomain. */ load_theme_textdomain('harmonux', get_template_directory() . '/languages'); // This theme styles the visual editor with editor-style.css to match the theme style.
function harmonux_get_homepage_slider() { $shortcode_slider = __HARMONUX::option('project_homepage_slider_shortcode'); if (!empty($shortcode_slider)) { echo do_shortcode($shortcode_slider); } else { return false; } }