Exemplo n.º 1
0
 function narga_topbar()
 {
     echo '<div class="custom-topbar';
     #Sticky Top Bar Option
     if (narga_options('sticky_topbar') == 1) {
         echo ' sticky';
     }
     #Contain Top Bar Layout Width
     if (narga_options('contain2grid') == 1) {
         echo ' contain-to-grid';
     }
     echo '">
         <nav role="navigation" class="top-bar" data-topbar>
         <ul class="title-area';
     #Sticky Top Bar Option
     if (narga_options('show_topbar_title') == 0) {
         echo ' show-for-small';
     }
     echo '">
         <li class="name"><h1><a href="' . narga_options('topbar_title_url') . '">' . narga_options('topbar_title') . '</a></h1></li>
         <li class="toggle-topbar menu-icon"><a href="#"><span>' . __('Menu', 'narga') . '</span></a></li>
         </ul>
         <section class="top-bar-section">';
     #Top Bar Search Form
     if (narga_options('search_form') == 1) {
         narga_topbar_search_form();
     }
     echo '<!-- Left Nav Section -->';
     narga_topbar_l();
     echo '</section>
         </nav>
         </div>';
 }
Exemplo n.º 2
0
/**
 * Add postMessage support for site title and description for the Theme Customizer.
 *
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 *
 * @since NARGA v1.6
 */
function narga_customize_register($wp_customize)
{
    $readmore = narga_options('post_readmore');
    $wp_customize->get_setting('blogname')->transport = 'postMessage';
    $wp_customize->get_setting('blogdescription')->transport = 'postMessage';
    $wp_customize->get_setting('header_textcolor')->transport = 'postMessage';
}
Exemplo n.º 3
0
 function narga_orbit_slider()
 {
     echo '<div class="orbit-container';
     if (narga_options('medium_screen_up') == 1) {
         echo ' show-for-medium-up';
     }
     echo '">
         <ul data-orbit data-options="bullets:false;';
     if (narga_options('resume_on_mouseout') == 1) {
         echo 'resume_on_mouseout: true.;';
     }
     echo '">';
     $args = array('showposts' => narga_options('number_slide'), 'post_type' => 'any', 'cat' => narga_options('featured_category'));
     $narga_slider_query = new WP_Query($args);
     while ($narga_slider_query->have_posts()) {
         $narga_slider_query->the_post();
         if (has_post_thumbnail()) {
             $number = 1;
             $number = $number++;
             echo '
             <li>';
             the_post_thumbnail('post-thumbnail', array('alt' => get_the_title(), 'title' => get_the_title(), 'data-caption' => '#htmlCaption-' . $narga_slider_query->current_post));
             echo '
             <div class="orbit-caption"><h3><a href="' . get_permalink() . '" ' . 'title="' . get_the_title() . '">' . get_the_title() . '</a></h3></div></li>' . "\n";
         } elseif (!has_post_thumbnail() && narga_options('default_slides_image') == '1') {
             echo '
             <li><img width="640" height="290" src="' . get_template_directory_uri() . '/images/default-slide-image.png" class="attachment-post-thumbnail wp-post-image" alt="' . get_the_title() . '" title="' . get_the_title() . '" data-caption="#htmlCaption-' . $narga_slider_query->current_post . '" />';
             echo '
         <div class="orbit-caption"><h3><a href="' . get_permalink() . '" ' . 'title="' . get_the_title() . '">' . get_the_title() . '</a></h3></div></li>' . "\n";
         } else {
             echo '';
         }
     }
     echo '</ul>';
     if (narga_options('slide_indicator') == 1) {
         $i = 1;
         echo '<ol class="orbit-bullets">';
         if (narga_options('default_slides_image') == '1') {
             for ($i; $i <= narga_options('number_slide'); $i++) {
                 echo '<li data-orbit-slide-number="' . $i . '"></li>';
             }
         } elseif (narga_options('default_slides_image') == '0') {
             for ($i; $i <= $number + 2; $i++) {
                 echo '<li data-orbit-slide-number="' . $i . '"></li>';
             }
         }
         echo '</ol>';
     }
     echo '</div>';
 }
Exemplo n.º 4
0
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 * 
 * @package WordPress
 * @subpackage NARGA
 * @since NARGA 1.0
 **/
?>

<?php 
get_header();
?>
<!-- Row for main content area -->
<div id="archive-wrapper" class="large-8 medium-8 small-12 columns" role="content">
    <?php 
#Breadcrumb Control
if (narga_options('breadcrumb') == 1) {
    narga_breadcrumb();
}
?>

    <h2><?php 
if (is_day()) {
    printf(__('Daily Archives: %s', 'narga'), '<span>' . get_the_date() . '</span>');
} elseif (is_month()) {
    printf(__('Monthly Archives: %s', 'narga'), '<span>' . get_the_date(_x('F Y', 'monthly archives date format', 'narga')) . '</span>');
} elseif (is_year()) {
    printf(__('Yearly Archives: %s', 'narga'), '<span>' . get_the_date(_x('Y', 'yearly archives date format', 'narga')) . '</span>');
} else {
    single_cat_title();
}
?>
Exemplo n.º 5
0
            <h3 class="assistive-text"><?php 
        _e('Post navigation', 'narga');
        ?>
</h3>
            <span class="nav-previous"><?php 
        previous_post_link('%link', '<span class="meta-nav">' . _x('&larr;', 'Previous post link', 'narga') . '</span> %title');
        ?>
</span>
            <span class="nav-next"><?php 
        next_post_link('%link', '%title <span class="meta-nav">' . _x('&rarr;', 'Next post link', 'narga') . '</span>');
        ?>
</span>
        </nav>      
        <?php 
    }
    if (narga_options('post_author') == '1') {
        ?>
        <div class="post-author">
            <h3><?php 
        _e('About the Author &#151; ', 'narga');
        the_author_posts_link();
        ?>
</h3>
            <div class="post-author-info"><?php 
        echo get_avatar(get_the_author_meta('ID'), '80', '', 'The author avatar');
        ?>
            <p><?php 
        echo get_the_author_meta("description");
        ?>
</div>
        </div>
Exemplo n.º 6
0
 * 
 * @package WordPress
 * @subpackage NARGA
 * @since NARGA 1.0
 **/
get_header();
?>
<!-- Row for main content area -->
    <div id="main-content" class="large-8 medium-8 small-12 columns <?php 
if (narga_options('sidebar_position') == 'right') {
    echo 'right';
}
?>
" role="content">
<?php 
if (is_front_page() && !is_paged() && narga_options('featured_category') != '-1') {
    echo '<div id="orbit-slider">';
    narga_orbit_slider();
    echo '</div>';
}
?>
    <?php 
if (!have_posts()) {
    ?>
    <div class="notice">
        <p class="bottom"><?php 
    _e('Sorry, no results were found.', 'narga');
    ?>
</p>
    </div>
    <?php 
Exemplo n.º 7
0
 function narga_custom_favicon()
 {
     # Custom favicon
     echo "\t" . '<link rel="shortcut icon" type="image/png" href="';
     if (narga_options('favicon') != '') {
         echo narga_options('favicon');
     } else {
         echo get_stylesheet_directory_uri() . '/core/images/favicon.png';
     }
     echo '">' . "\n";
 }
Exemplo n.º 8
0
 function narga_excerpt_more_link($more)
 {
     return '<br />
         <span class="excerpt-readmore"><a class="more-link" href="' . get_permalink(get_the_ID()) . '">' . narga_options('post_readmore') . '</a></span>';
 }