function widget($args, $instance)
 {
     extract($args);
     $social_names = array('Twitter', 'Facebook', 'Google Plus', 'RSS', 'YouTube', 'Instagram', 'FlickR', 'Tumblr', 'VK', 'Pinterest', 'LinkedIn', 'Dribbble', 'GitHub');
     $title = apply_filters('widget_title', $instance['title']);
     echo $before_widget;
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     ?>
     
     <ul class="sidebar-social clearfix">
     	<?php 
     $count = 0;
     foreach ($social_names as $social_name) {
         $social_id = strtolower($social_name);
         $social_title = $social_id . "_title";
         $social_icon = str_replace(' ', '-', $social_id);
         if ($instance[$social_id] && $instance[$social_id] != '') {
             $count++;
             if ($count % 2 == 0) {
                 $social_align = 'alignright';
             } else {
                 $social_align = 'alignleft';
             }
             echo '<li class="' . $social_align . '"><a href="' . esc_url($instance[$social_id]) . '" class="social-btn ' . $social_icon . '">' . esc_html($instance[$social_title]) . ac_icon($social_icon, false) . '</a></li>';
         }
     }
     ?>
     </ul>
     
     <?php 
     echo $after_widget;
 }
 function widget($args, $instance)
 {
     // Turn $args array into variables.
     extract($args);
     // $instance Defaults
     $instance_defaults = $this->defaults;
     // Parse $instance
     $instance = wp_parse_args((array) $instance, $instance_defaults);
     $title = apply_filters('widget_title', $instance['title']);
     $profiles = (array) $this->profiles;
     echo $before_widget;
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     ?>
     
     <ul class="sidebar-social clearfix">
     	<?php 
     $count = 0;
     foreach ($profiles as $profile => $data) {
         $anc = $data['anchor'];
         if (!empty($instance[$profile]) && !empty($instance[$anc])) {
             $count++;
             if ($count % 2 == 0) {
                 $social_align = 'alignright';
             } else {
                 $social_align = 'alignleft';
             }
             echo '<li class="' . $social_align . '"><a href="' . esc_url($instance[$profile]) . '" class="social-btn ' . esc_attr($profile) . '">' . esc_html($instance[$anc]) . ' ' . ac_icon($profile, false) . '</a></li>';
         } else {
             continue;
         }
     }
     ?>
     </ul>
     
     <?php 
     echo $after_widget;
 }
Esempio n. 3
0
</span>
			<span class="detail left index-post-category"><em><?php 
_e('in', 'justwrite');
?>
</em> <?php 
ac_output_first_category();
?>
</span>
            <a href="<?php 
echo esc_url(get_post_format_link('gallery'));
?>
" title="<?php 
_e('Galleries Archive', 'justwrite');
?>
" class="post-format-icon"><?php 
ac_icon('picture-o');
?>
</a>
        </header><!-- END .details -->
		<div class="single-content">
			<?php 
the_content();
the_tags('<div class="post-tags-wrap clearfix"><strong>' . __('Tagged with:', 'justwrite') . '</strong> <span>', '</span>, <span>', '</span></div>');
wp_link_pages(array('before' => '<footer class="page-links-wrap"><div class="page-links"><span class="page-links-title">' . __('Pages:', 'justwrite') . '</span>', 'after' => '</div></footer>', 'link_before' => '<span>', 'link_after' => '</span>'));
?>
		</div><!-- END .single-content -->
	</div><!-- END .post-content -->
</article><!-- END #post-<?php 
the_ID();
?>
 .post-template-1 -->
Esempio n. 4
0
</span>
			<span class="detail left index-post-category"><em><?php 
_e('in', 'justwrite');
?>
</em> <?php 
ac_output_first_category();
?>
</span>
            <a href="<?php 
echo esc_url(get_post_format_link('audio'));
?>
" title="<?php 
_e('Audio Archive', 'justwrite');
?>
" class="post-format-icon"><?php 
ac_icon('volume-up');
?>
</a>
        </header><!-- END .details -->
		<div class="single-content">
			<?php 
the_content();
the_tags('<div class="post-tags-wrap clearfix"><strong>' . __('Tagged with:', 'justwrite') . '</strong> <span>', '</span>, <span>', '</span></div>');
wp_link_pages(array('before' => '<footer class="page-links-wrap"><div class="page-links"><span class="page-links-title">' . __('Pages:', 'justwrite') . '</span>', 'after' => '</div></footer>', 'link_before' => '<span>', 'link_after' => '</span>'));
?>
		</div><!-- END .single-content -->
	</div><!-- END .post-content -->
</article><!-- END #post-<?php 
the_ID();
?>
 .post-template-1 -->
    function widget($args, $instance)
    {
        // Turn $args array into variables.
        extract($args);
        // $instance Defaults
        $instance_defaults = $this->defaults;
        // Parse $instance
        $instance = wp_parse_args($instance, $instance_defaults);
        // Widget Settings
        $title = !empty($instance['title']) ? $instance['title'] : '';
        $featured_posts_number = !empty($instance['featured_posts_number']) ? absint($instance['featured_posts_number']) : 3;
        echo $before_widget;
        // Widget Front End Output
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        $args = array('posts_per_page' => $featured_posts_number, 'meta_key' => 'ac_featured_article', 'meta_value' => 1, 'ignore_sticky_posts' => 1);
        $wp_query = new WP_Query();
        $wp_query->query($args);
        $count = 0;
        ?>
		<ul class="ac-featured-posts">
			<?php 
        if ($wp_query->have_posts()) {
            while ($wp_query->have_posts()) {
                $wp_query->the_post();
                $count++;
                ?>
			<li id="featured-post-<?php 
                echo $count;
                ?>
">
				<figure class="thumbnail<?php 
                if (!has_post_thumbnail()) {
                    echo ' no-thumbnail';
                }
                ?>
">
					<?php 
                if (has_post_thumbnail()) {
                    the_post_thumbnail('ac-sidebar-featured');
                } else {
                    echo '<img src="' . get_template_directory_uri() . '/images/no-thumbnail.png" alt="' . __('No Thumbnail', 'justwrite') . '" />';
                }
                ?>
					<figcaption class="details">
						<span class="category"><?php 
                ac_output_first_category();
                ?>
</span>
						<?php 
                the_title('<a href="' . esc_url(get_permalink()) . '" class="title" rel="bookmark">', '</a>');
                ?>
						<a href="<?php 
                the_permalink();
                ?>
" title="<?php 
                _e('Read More', 'justwrite');
                ?>
" class="read-more"><?php 
                ac_icon('ellipsis-h fa-lg');
                ?>
</a>
					</figcaption>
				</figure>
			</li>
			<?php 
            }
        }
        wp_reset_postdata();
        ?>
		</ul>
		<?php 
        echo $after_widget;
    }
Esempio n. 6
0
?>
</em> <?php 
ac_output_first_category();
?>
</span>
        <?php 
if (!$show_thumbnail) {
    ?>
            <a href="<?php 
    echo esc_url(get_post_format_link('aside'));
    ?>
" title="<?php 
    _e('Aside Archive', 'justwrite');
    ?>
" class="post-format-icon"><?php 
    ac_icon('coffee');
    ?>
</a>
            <?php 
} else {
}
?>
        </header><!-- END .details -->
        <?php 
if ($show_thumbnail && ac_check_paged()) {
    ?>
        <figure class="featured-image-wrap">
        	<?php 
    if (has_post_thumbnail() && $paged == false) {
        the_post_thumbnail('ac-sidebar-featured');
    } else {
Esempio n. 7
0
        echo '<span class="post-format-icon">' . ac_icon('volume-up', false) . '</span>';
    }
    if (has_post_format('gallery') && !is_sticky()) {
        echo '<span class="post-format-icon">' . ac_icon('picture-o', false) . '</span>';
    }
    if (has_post_format('quote') && !is_sticky()) {
        echo '<span class="post-format-icon">' . ac_icon('quote-left', false) . '</span>';
    }
    if (has_post_format('link') && !is_sticky()) {
        echo '<span class="post-format-icon">' . ac_icon('link', false) . '</span>';
    }
    if (has_post_format('aside') && !is_sticky()) {
        echo '<span class="post-format-icon">' . ac_icon('coffee', false) . '</span>';
    }
    if (has_post_format('image') && !is_sticky()) {
        echo '<span class="post-format-icon">' . ac_icon('instagram', false) . '</span>';
    }
    ?>
	</figure>
    <?php 
}
?>
	<div class="post-content">
    	<?php 
the_title('<h2 class="title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>');
?>
		<?php 
the_excerpt();
?>
        <footer class="details">
        	<span class="post-small-button left p-read-more" id="share-<?php 
Esempio n. 8
0
</span>
			<span class="detail left index-post-category"><em><?php 
_e('in', 'justwrite');
?>
</em> <?php 
ac_output_first_category();
?>
</span>
            <a href="<?php 
echo esc_url(get_post_format_link('image'));
?>
" title="<?php 
_e('Images Archive', 'justwrite');
?>
" class="post-format-icon"><?php 
ac_icon('instagram');
?>
</a>
        </header><!-- END .details -->
		<div class="single-content">
			<?php 
the_content();
the_tags('<div class="post-tags-wrap clearfix"><strong>' . __('Tagged with:', 'justwrite') . '</strong> <span>', '</span>, <span>', '</span></div>');
wp_link_pages(array('before' => '<footer class="page-links-wrap"><div class="page-links"><span class="page-links-title">' . __('Pages:', 'justwrite') . '</span>', 'after' => '</div></footer>', 'link_before' => '<span>', 'link_after' => '</span>'));
?>
		</div><!-- END .single-content -->
	</div><!-- END .post-content -->
</article><!-- END #post-<?php 
the_ID();
?>
 .post-template-1 -->
Esempio n. 9
0
            
        <?php 
    }
}
wp_reset_postdata();
?>
		</ul>
	</div><!-- END .slider -->
				
	<nav class="slider-controls clearfix">
		<a href="#" class="slide-btn prev-slide"><?php 
ac_icon('chevron-left');
?>
</a>
		<a href="#" class="slide-btn next-slide"><?php 
ac_icon('chevron-right');
?>
</a>
		<p class="slider-pagination clearfix"></p>
	</nav><!-- END .pagination -->
</section><!-- END .slider-wrap -->

<script type='text/javascript'>
/* <![CDATA[ */ 
(function( $ ) { $( document ).ready(function() {
	var jcarousel = $('.slider');
	jcarousel.on('jcarousel:reload jcarousel:create', function () {
			var width = jcarousel.innerWidth();
			if (width >= 1150) {
				width = width / 1;
			} else if (width >= 650) {
Esempio n. 10
0
 function ac_post_nav_arrows()
 {
     global $post;
     $prev_post = get_next_post();
     $next_post = get_previous_post();
     if ($prev_post) {
         $prev_post_id = $prev_post->ID;
         $prev_post_url = get_permalink($prev_post_id);
     }
     if ($next_post) {
         $next_post_id = $next_post->ID;
         $next_post_url = get_permalink($next_post_id);
     }
     echo '<div class="post-navigation clearfix">';
     if ($prev_post) {
         echo '<a href="' . esc_url($prev_post_url) . '" class="prev-post" title="' . __('Previous Post', 'justwrite') . '">' . ac_icon('angle-left', false) . '</a>';
     } else {
         echo '<span class="prev-post">' . ac_icon('angle-left', false) . '</span>';
     }
     if ($next_post) {
         echo '<a href="' . esc_url($next_post_url) . '" class="next-post" title="' . __('Next Post', 'justwrite') . '">' . ac_icon('angle-right', false) . '</a>';
     } else {
         echo '<span class="next-post">' . ac_icon('angle-right', false) . '</span>';
     }
     echo '</div>';
 }
        function widget($args, $instance)
        {
            // Turn $args array into variables.
            extract($args);
            // $instance Defaults
            $instance_defaults = $this->defaults;
            // Parse $instance
            $instance = wp_parse_args((array) $instance, $instance_defaults);
            // Options output
            $section_title = !empty($instance['title']) ? $instance['title'] : '';
            $cnmt = !empty($instance['css_no_mt']) ? '1' : '0';
            $cnmb = !empty($instance['css_no_mb']) ? '1' : '0';
            $cbot = !empty($instance['css_b_top']) ? '1' : '0';
            $cbob = !empty($instance['css_b_bot']) ? '1' : '0';
            $cpat = !empty($instance['css_p_top']) ? '1' : '0';
            $cpab = !empty($instance['css_p_bot']) ? '1' : '0';
            // Widget styling based on options
            $css_class = array();
            if ($cnmt) {
                $css_class[] = 'n-mt';
            }
            if ($cnmb) {
                $css_class[] = 'n-mb';
            }
            if ($cbot) {
                $css_class[] = 'b-top';
            }
            if ($cbob) {
                $css_class[] = 'b-bot';
            }
            if ($cpat) {
                $css_class[] = 'p-top';
            }
            if ($cpab) {
                $css_class[] = 'p-bot';
            }
            $css_classes = join(' ', $css_class);
            if (!empty($css_classes)) {
                if (strpos($args['before_widget'], 'class') === false) {
                    $args['before_widget'] = str_replace('>', 'class="' . esc_attr($css_classes) . '"', $args['before_widget']);
                } else {
                    $args['before_widget'] = str_replace('class="', 'class="' . esc_attr($css_classes) . ' ', $args['before_widget']);
                }
            }
            $profiles = (array) $this->profiles;
            // Output
            echo $args['before_widget'];
            // Before widget template
            // Check if a title is set
            if (!empty($section_title)) {
                ?>
                <header class="twelvecol sh-large-smaller">
                    <h2 class="section-title-2nd st-small st-bold"><?php 
                echo esc_html($section_title);
                ?>
</h2>	
                </header><!-- END .section-heading -->
                <?php 
            }
            ?>
                
                <ul class="sp-social-list clearfix">
                	<?php 
            foreach ($profiles as $profile => $data) {
                $anc = $data['anchor'];
                if (!empty($instance[$profile]) && !empty($instance[$anc])) {
                    ?>
                    <li><a href="<?php 
                    echo esc_url($instance[$profile]);
                    ?>
" class="social-btn <?php 
                    echo esc_attr($profile);
                    ?>
"><?php 
                    echo esc_html($instance[$anc]) . ' ' . ac_icon($profile);
                    ?>
 </a></li>
                    <?php 
                } else {
                    continue;
                }
            }
            ?>
                </ul>
                <?php 
            echo $args['after_widget'];
            // After widget template
        }
Esempio n. 12
0
</span>
			<span class="detail left index-post-category"><em><?php 
_e('in', 'justwrite');
?>
</em> <?php 
ac_output_first_category();
?>
</span>
            <a href="<?php 
echo esc_url(get_post_format_link('video'));
?>
" title="<?php 
_e('Video Archive', 'justwrite');
?>
" class="post-format-icon"><?php 
ac_icon('play');
?>
</a>
        </header><!-- END .details -->
		<div class="single-content">
			<?php 
the_content();
the_tags('<div class="post-tags-wrap clearfix"><strong>' . __('Tagged with:', 'justwrite') . '</strong> <span>', '</span>, <span>', '</span></div>');
wp_link_pages(array('before' => '<footer class="page-links-wrap"><div class="page-links"><span class="page-links-title">' . __('Pages:', 'justwrite') . '</span>', 'after' => '</div></footer>', 'link_before' => '<span>', 'link_after' => '</span>'));
?>
		</div><!-- END .single-content -->
	</div><!-- END .post-content -->
</article><!-- END #post-<?php 
the_ID();
?>
 .post-template-1 -->
Esempio n. 13
0
    	<?php 
// Archives content wrap inside top action
do_action('ac_action_archives_content_wrap_inside_top');
?>
    
    	<header class="main-page-title">
        	<h1 class="page-title">
            <?php 
if (is_day()) {
    printf(__('Daily Archives: <span>%s</span>', 'justwrite'), get_the_date()) . ac_icon('angle-down');
} elseif (is_month()) {
    printf(__('Monthly Archives: <span>%s</span>', 'justwrite'), get_the_date(_x('F Y', 'monthly archives date format', 'justwrite'))) . ac_icon('angle-down');
} elseif (is_year()) {
    printf(__('Yearly Archives: <span>%s</span>', 'justwrite'), get_the_date(_x('Y', 'yearly archives date format', 'justwrite'))) . ac_icon('angle-down');
} else {
    _e('Archives', 'justwrite') . ac_icon('angle-down');
}
?>
			</h1>
        </header>
    
    	<div class="posts-wrap clearfix">
        
        <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        get_template_part('post-templates/content', 'index');
    }
} else {
    get_template_part('post-templates/content', 'no-articles');
Esempio n. 14
0
<section class="container<?php 
ac_mini_disabled();
?>
 main-section clearfix">
	
    <?php 
get_sidebar('browse');
?>
    
    <div class="wrap-template-1 clearfix">
    
    <section class="content-wrap with-title" role="main">
    
    	<header class="main-page-title">
        	<h1 class="page-title"><?php 
printf(__('Tag Archives: %s', 'justwrite'), '<span>' . single_tag_title('', false) . '</span>') . ac_icon('angle-down');
?>
</h1>
        </header>
    
    	<div class="posts-wrap clearfix">
        
        <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        get_template_part('post-templates/content', 'index');
    }
} else {
    get_template_part('post-templates/content', 'no-articles');
}
Esempio n. 15
0
        echo esc_url(get_permalink());
        ?>
" rel="nofollow" class="st-overlay-link"></a>
					<div class="st-title-wrap">
						<?php 
        if ($sco || $sda || $sca) {
            ?>
						<aside class="s-info si-center clearfix">
							<?php 
            if ($sco) {
                ?>
<a href="<?php 
                comments_link();
                ?>
" rel="nofollow" class="com"><?php 
                ac_icon('comment');
                ?>
</a><?php 
            }
            ?>
							<?php 
            if ($sda) {
                ?>
<time class="date" datetime="<?php 
                echo get_the_date('Y-m-d');
                ?>
"><?php 
                echo get_the_date('M d, Y');
                ?>
</time><?php 
            }
    function widget($args, $instance)
    {
        extract($args);
        // Widget Settings
        $show_popular_posts = isset($instance['show_popular_posts']) ? $instance['show_popular_posts'] : false;
        $show_featured_posts = isset($instance['show_featured_posts']) ? $instance['show_featured_posts'] : false;
        $show_recent_posts = isset($instance['show_recent_posts']) ? $instance['show_recent_posts'] : false;
        $show_recent_comments = isset($instance['show_recent_comments']) ? $instance['show_recent_comments'] : false;
        $show_tags = isset($instance['show_tags']) ? $instance['show_tags'] : false;
        // How Many Posts Settings
        $popular_posts_number = $instance['popular_posts_number'];
        $featured_posts_number = $instance['featured_posts_number'];
        $recent_posts_number = $instance['recent_posts_number'];
        $recent_comments_number = $instance['recent_comments_number'];
        // Hide thumbnails
        $hide_recent_thumbs = isset($instance['hide_recent_thumbs']) ? $instance['hide_recent_thumbs'] : false;
        // Widget Front End Output
        echo '<aside class="side-box ac-tabs-init-wrap widget" id="ac-tabs-widget-' . $this->id . '">';
        if ($show_popular_posts || $show_featured_posts || $show_recent_posts || $show_recent_comments || $show_tags) {
            // Navigation
            echo '<nav class="tabs-widget-navigation clearfix">';
            echo '<ul class="ac-tabs-init">';
            if ($show_popular_posts) {
                echo '<li class="current"><a href="#' . $this->id . '_tab-1" title="' . __('Popular Posts', 'acosmin') . '"><i class="fa fa-list-ol"></i></a></li>';
            }
            if ($show_featured_posts) {
                echo '<li><a href="#' . $this->id . '_tab-2" title="' . __('Featured Posts', 'acosmin') . '"><i class="fa fa-star"></i></a></li>';
            }
            if ($show_recent_posts) {
                echo '<li><a href="#' . $this->id . '_tab-3" title="' . __('Latest Posts', 'acosmin') . '"><i class="fa fa-bell"></i></a></li>';
            }
            if ($show_recent_comments) {
                echo '<li><a href="#' . $this->id . '_tab-4" title="' . __('Recent Comments', 'acosmin') . '"><i class="fa fa-comments"></i></a></li>';
            }
            if ($show_tags) {
                echo '<li><a href="#' . $this->id . '_tab-5" title="' . __('Tag Cloud', 'acosmin') . '"><i class="fa fa-tags"></i></a></li>';
            }
            echo '</ul>';
            echo '</nav>';
            // Tabs & Content
            // -- Popular Posts
            if ($show_popular_posts) {
                ?>
                	<div class="sb-content tabs-widget-tab clearfix" id="<?php 
                echo $this->id;
                ?>
_tab-1">
                    	<?php 
                $args = array('orderby' => 'comment_count', 'posts_per_page' => $popular_posts_number, 'ignore_sticky_posts' => 1);
                $wp_query = new WP_Query();
                $wp_query->query($args);
                $count = 0;
                ?>
                    	<ul class="ac-popular-posts">
                        	<?php 
                if ($wp_query->have_posts()) {
                    while ($wp_query->have_posts()) {
                        $wp_query->the_post();
                        $count++;
                        $mcn = get_comments_number();
                        $ncn = get_comments_number();
                        if ($count == 1) {
                            $max_comments_number = $mcn;
                        }
                        if ($ncn != 0) {
                            $make_percent = number_format(100 * $ncn / $max_comments_number);
                            ?>
                             <li>
                            	<span class="position"><?php 
                            echo $count;
                            ?>
</span>
                                <div class="details">
                        			<span class="category"><?php 
                            ac_output_first_category();
                            ?>
</span>
                                    <?php 
                            the_title('<a href="' . esc_url(get_permalink()) . '" class="title" rel="bookmark">', '</a>');
                            ?>
                            		<div class="the-percentage" style="width: <?php 
                            echo $make_percent;
                            ?>
%"></div>
                            		<a href="<?php 
                            comments_link();
                            ?>
" class="comments-number"><?php 
                            ac_comments_number();
                            ?>
</a>
                        		</div>
                            </li>
                            <?php 
                        }
                    }
                } else {
                    ?>
                            <li><?php 
                    _e('No popular posts available!', 'acosmin');
                    ?>
</li>
                            <?php 
                }
                wp_reset_postdata();
                ?>
                        </ul>
                    </div>
                <?php 
            }
            // .END $show_popular_posts
            // -- Featured Posts
            if ($show_featured_posts) {
                ?>
                	<div class="sb-content tabs-widget-tab clearfix" id="<?php 
                echo $this->id;
                ?>
_tab-2">
                    	<?php 
                $args = array('posts_per_page' => $featured_posts_number, 'meta_key' => 'ac_featured_article', 'meta_value' => 1, 'ignore_sticky_posts' => 1);
                $wp_query = new WP_Query();
                $wp_query->query($args);
                $count = 0;
                ?>
                        <ul class="ac-featured-posts">
                        	<?php 
                if ($wp_query->have_posts()) {
                    while ($wp_query->have_posts()) {
                        $wp_query->the_post();
                        $count++;
                        ?>
                        	<li id="featured-post-<?php 
                        echo $count;
                        ?>
">
                    			<figure class="thumbnail<?php 
                        if (!has_post_thumbnail()) {
                            echo ' no-thumbnail';
                        }
                        ?>
">
                                	<?php 
                        if (has_post_thumbnail()) {
                            the_post_thumbnail('ac-sidebar-featured');
                        } else {
                            echo '<img src="' . get_template_directory_uri() . '/images/no-thumbnail.png" alt="' . __('No Thumbnail', 'acosmin') . '" />';
                        }
                        ?>
                            		<figcaption class="details">
                            			<span class="category"><?php 
                        ac_output_first_category();
                        echo get_post_meta('ac_featured_post');
                        ?>
</span>
                                        <?php 
                        the_title('<a href="' . esc_url(get_permalink()) . '" class="title" rel="bookmark">', '</a>');
                        ?>
                                		<a href="<?php 
                        the_permalink();
                        ?>
" title="<?php 
                        _e('Read More', 'acosmin');
                        ?>
" class="read-more"><?php 
                        ac_icon('ellipsis-h fa-lg');
                        ?>
</a>
                            		</figcaption>
                        		</figure>
                    		</li>
                            <?php 
                    }
                }
                wp_reset_postdata();
                ?>
                        </ul>
                    </div>
                <?php 
            }
            // .END $show_featured_posts
            // -- Recent Posts
            if ($show_recent_posts) {
                ?>
                	<div class="sb-content tabs-widget-tab clearfix" id="<?php 
                echo $this->id;
                ?>
_tab-3">
                    	<?php 
                $args = array('posts_per_page' => $recent_posts_number, 'ignore_sticky_posts' => 1);
                $wp_query = new WP_Query();
                $wp_query->query($args);
                $count = 0;
                ?>
                    	<ul class="ac-recent-posts">
                        	<?php 
                if ($wp_query->have_posts()) {
                    while ($wp_query->have_posts()) {
                        $wp_query->the_post();
                        $count++;
                        ?>
                             <li class="clearfix<?php 
                        if ($hide_recent_thumbs) {
                            echo ' full-width';
                        }
                        ?>
">
                             	<?php 
                        if (!$hide_recent_thumbs) {
                            ?>
                            	<figure class="thumbnail">
                                	<?php 
                            if (has_post_thumbnail()) {
                                the_post_thumbnail('ac-sidebar-small-thumbnail');
                            } else {
                                echo '<img src="' . get_template_directory_uri() . '/images/no-thumbnail.png" alt="' . __('No Thumbnail', 'acosmin') . '" class="no-thumbnail" />';
                            }
                            ?>
                                </figure>
                                <?php 
                        }
                        ?>
                                <div class="details">
                        			<span class="category"><?php 
                        ac_output_first_category();
                        ?>
</span>
                                    <?php 
                        the_title('<a href="' . esc_url(get_permalink()) . '" class="title" rel="bookmark">', '</a>');
                        ?>
                            		<a href="<?php 
                        comments_link();
                        ?>
" class="comments-number"><?php 
                        ac_comments_number();
                        ?>
</a>
                        		</div>
                            </li>
                            <?php 
                    }
                } else {
                    ?>
                            <li><?php 
                    _e('No popular posts available!', 'acosmin');
                    ?>
</li>
                            <?php 
                }
                wp_reset_postdata();
                ?>
                        </ul>
                    </div>
                <?php 
            }
            // .END $show_recent_posts
            // -- Recent Comments
            if ($show_recent_comments) {
                ?>
                	<div class="sb-content tabs-widget-tab clearfix" id="<?php 
                echo $this->id;
                ?>
_tab-4">
                    	<?php 
                $args = array('before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '');
                $instance = array('title' => ' ', 'number' => $recent_comments_number);
                the_widget('WP_Widget_Recent_Comments', $instance, $args);
                ?>
                    </div>
                <?php 
            }
            // .END $show_recent_comments
            // -- Tag Cloud
            if ($show_tags) {
                ?>
                	<div class="sb-content tabs-widget-tab clearfix" id="<?php 
                echo $this->id;
                ?>
_tab-5">
                    	<?php 
                $args = array('before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '');
                $instance = array('title' => ' ', 'filter' => 'tags');
                the_widget('WP_Widget_Tag_Cloud', $instance, $args);
                ?>
                    </div>
                <?php 
            }
            // .END $show_tags
        } else {
            echo '<div class="sb-content">' . __('Please select some settings for this widget - Tabs', 'acosmin') . '</div>';
        }
        echo '</aside><!-- END .sidebox .widget -->';
    }
Esempio n. 17
0
        <?php 
if (!get_theme_mod('ac_disable_minisidebar')) {
    ?>
        <a href="#" class="browse-more" id="browse-more"><?php 
    echo ac_icon('ellipsis-v', false);
    ?>
</a>
        <?php 
}
?>
        <?php 
do_action('ac_action_search_btn_before');
// Before search button action
?>
        <a href="#" class="search-button"><?php 
ac_icon('search');
?>
</a>
        <?php 
do_action('ac_action_search_btn_after');
// After search button action
?>
        
        
        
        <div class="search-wrap nobs">
        	<form role="search" id="header-search" method="get" class="search-form" action="<?php 
echo esc_url(home_url('/'));
?>
">
            	<input type="submit" class="search-submit" value="<?php 
 /**
  *
  */
 function cartoq_post_nav_arrows()
 {
     global $post;
     $prev_post = get_next_post();
     $next_post = get_previous_post();
     if ($prev_post) {
         $prev_post_id = $prev_post->ID;
         $prev_post_url = get_permalink($prev_post_id);
         $prev_post_title = get_the_title($prev_post_id);
     }
     if ($next_post) {
         $next_post_id = $next_post->ID;
         $next_post_url = get_permalink($next_post_id);
         $next_post_title = get_the_title($next_post_id);
     }
     echo '<div class="post-navigation clearfix">';
     echo '<div class="before-block"></div>';
     echo '<div class="after-block"></div>';
     if ($prev_post) {
         echo '<a href="' . esc_url($prev_post_url) . '" class="prev-post" title="Previous Post">';
         echo '<span class="icon-wrap">' . ac_icon('angle-left', false) . '</span>';
         echo '<span class="link-text"><strong>' . $prev_post_title . '</strong></span>';
         echo '</a>';
     } else {
         echo '<span class="prev-post">' . ac_icon('angle-left', false) . '</span>';
     }
     if ($next_post) {
         echo '<a href="' . esc_url($next_post_url) . '" class="next-post" title="Next Post">';
         echo '<span class="link-text"><strong>' . $next_post_title . '</strong></span>';
         echo '<span class="icon-wrap">' . ac_icon('angle-right', false) . '</span>';
         echo '</a>';
     } else {
         echo '<span class="next-post">' . ac_icon('angle-right', false) . '</span>';
     }
     echo '</div>';
 }
Esempio n. 19
0
<?php 
get_header();
?>

<section class="container<?php 
ac_mini_disabled();
?>
 main-section clearfix">
	
    <div class="page-404">
    
    	<header class="not-found-header">
        	<h1><?php 
_e('404', 'justwrite');
?>
</h1>
            <h2><?php 
_e('It looks like nothing was found at this location.', 'justwrite');
?>
<br /><a href="#" class="try-a-search"><?php 
ac_icon('search') . ' ' . _e('Maybe try a search?', 'justwrite');
?>
</a></h2>
		</header>
        
    </div><!-- END .page-404 -->
    
</section><!-- END .container -->

<?php 
get_footer();
            ac_icon('ellipsis-h');
            ?>
</a></li><?php 
        }
        ?>
            <?php 
        if ($srs) {
            ?>
<li><a href="<?php 
            echo esc_url(get_category_feed_link($cat_name, ''));
            ?>
" title="<?php 
            _e('RSS Feed', 'justwrite');
            ?>
"><?php 
            ac_icon('rss');
            ?>
</a></li><?php 
        }
        ?>
		</ul><?php 
    }
    ?>
	</header><!-- END .section-col-header -->
	
	<?php 
    if (${"section_category{$i}"} != '') {
        ?>
	<div class="section-cat-wrap clearfix">
		<?php 
        /* Query arguments
Esempio n. 21
0
		<figure class="avatar-wrap">
			<?php 
echo get_avatar($author_id, 58);
?>
			<?php 
if ($user_url) {
    ?>
			<figcaption class="links">
				<a href="<?php 
    echo $user_url;
    ?>
" class="author-link" title="<?php 
    _e("Author's Link", 'justwrite');
    ?>
"><?php 
    ac_icon('link');
    ?>
</a>
			</figcaption>
			<?php 
}
?>
		</figure>
		<div class="info">
			<?php 
echo get_the_author_meta('description', $author_id);
?>
		</div>
	</div>
                    
	<div class="clear-border"></div>
Esempio n. 22
0
?>
    
    <div class="wrap-template-1 clearfix">
    
    <section class="content-wrap with-title" role="main">
    	<?php 
// Categories content wrap inside top action
do_action('ac_action_categories_content_wrap_inside_top');
?>
    
    	<header class="main-page-title">
        	<h1 class="page-title"><?php 
_e('Category Archives:', 'justwrite');
?>
 <?php 
ac_output_first_category('', true) . ac_icon('angle-down');
?>
</h1>
        </header>
    
    	<div class="posts-wrap clearfix">
        
        <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        get_template_part('post-templates/content', 'index');
    }
} else {
    get_template_part('post-templates/content', 'no-articles');
}
Esempio n. 23
0
                    <a href="<?php 
    echo $the_wp_link;
    ?>
">Proudly powered by WordPress</a> &mdash;
                    <em>Theme: JustWrite by</em>
                    <a href="<?php 
    echo $credit_link;
    ?>
" title="Acosmin">Acosmin</a>
				</span>
                <?php 
}
?>
        	</aside><!-- END .footer-credits -->
			<a href="#" class="back-to-top"><?php 
ac_icon('angle-up');
?>
</a>
		</footer><!-- END .footer-wrap -->
    	<?php 
do_action('ac_action_wrap_main_inside_bot');
// Main .wrap class inside bottom
?>
    </div><!-- END .wrap -->
    
    <?php 
do_action('ac_action_body_end');
// <body> end action
// WP Footer
wp_footer();
?>
" rel="nofollow" class="st-overlay-link"></a>
                </figcaption>
            </figure>
            <div class="sc-entry">
                <?php 
            if ($sco || $sda || $sca) {
                ?>
                <aside class="s-info si-center clearfix">
                    <?php 
                if ($sco) {
                    ?>
<a href="<?php 
                    comments_link();
                    ?>
" rel="nofollow" class="com"><?php 
                    ac_icon('comment') . ' ' . comments_number('0', '1', '%');
                    ?>
</a><?php 
                }
                ?>
                    <?php 
                if ($sda) {
                    ?>
<time class="date" datetime="<?php 
                    echo get_the_date('Y-m-d');
                    ?>
"><?php 
                    echo get_the_date('M d, Y');
                    ?>
</time><?php 
                }
Esempio n. 25
0
<section class="container<?php 
ac_mini_disabled();
?>
 main-section clearfix">
	
    <?php 
get_sidebar('browse');
?>
    
    <div class="wrap-template-1 clearfix">
    
    <section class="content-wrap with-title" role="main">
    
    	<header class="main-page-title">
        	<h1 class="page-title"><?php 
printf(__('Search Results for: %s', 'justwrite'), '<span>' . get_search_query() . '</span>') . ac_icon('angle-down');
?>
</h1>
        </header>
    
    	<div class="posts-wrap clearfix">
        
        <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        get_template_part('post-templates/content', 'index');
    }
} else {
    get_template_part('post-templates/content', 'no-articles');
}
Esempio n. 26
0
?>
</em> <?php 
ac_output_first_category();
?>
</span>
        	<?php 
if (!$show_thumbnail) {
    ?>
            <a href="<?php 
    echo esc_url(get_post_format_link('quote'));
    ?>
" title="<?php 
    _e('Quote Archive', 'justwrite');
    ?>
" class="post-format-icon"><?php 
    ac_icon('quote-left');
    ?>
</a>
            <?php 
} else {
}
?>
        </header><!-- END .details -->
        <?php 
if ($show_thumbnail && ac_check_paged()) {
    ?>
        <figure class="featured-image-wrap">
        	<?php 
    if (has_post_thumbnail() && $paged == false) {
        the_post_thumbnail('ac-sidebar-featured');
    } else {