예제 #1
0
                ?>
    
    <?php 
                if (eff_option('related_style') == 'default') {
                    ?>
    <li class="related_item_style1">
        <div class="related_image">
            <?php 
                    if (has_post_thumbnail($post->ID)) {
                        ?>
            <div class="post_thumb">
            <?php 
                        if (eff_post_image() != false) {
                            ?>
                                        <?php 
                            $img = eff_post_image('medium');
                            $Fimg = aq_resize($img, 126, 91, true);
                            ?>
                                        <a href="<?php 
                            the_permalink();
                            ?>
"><img src="<?php 
                            echo $Fimg;
                            ?>
" alt="<?php 
                            the_title();
                            ?>
"></a>
            <?php 
                        }
                        ?>
예제 #2
0
					    <img src="<?php 
            echo eff_post_image();
            ?>
" width="158" height="159" alt="<?php 
            the_title();
            ?>
" title="<?php 
            the_title();
            ?>
" />
					
					<?php 
        } elseif (strpos(eff_post_image(), 'dailymotion')) {
            ?>
					    <img src="<?php 
            echo eff_post_image();
            ?>
" width="158" height="159" alt="<?php 
            the_title();
            ?>
" title="<?php 
            the_title();
            ?>
" />
					
					<?php 
        } else {
            ?>
					    <img src="<?php 
            echo $Fimg;
            ?>
예제 #3
0
    while (have_posts()) {
        the_post('');
        ?>
            <section class="section_box">
                <div class="blog_style1">
                    <div class="content_inner">
                        <div class="post_thumb">
                            <a href="<?php 
        the_permalink();
        ?>
">
                                <?php 
        if (eff_post_image() != false) {
            ?>
                                <?php 
            $img = eff_post_image('full');
            $Fimg = aq_resize($img, 158, 159, true);
            ?>
                                <img src="<?php 
            echo $Fimg;
            ?>
" alt="<?php 
            the_title();
            ?>
">
                                <?php 
        }
        ?>
                                <span class="overlay <?php 
        echo $postClass;
        ?>
예제 #4
0
    function widget($args, $instance)
    {
        extract($args);
        /* User-selected settings. */
        $title = apply_filters('widget_title', $instance['title']);
        $orderby = $instance['orderby'];
        $count = $instance['count'];
        /* Before widget (defined by themes). */
        echo $before_widget;
        /* Title of widget (before and after defined by themes). */
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        global $post;
        ?>

<?php 
        if ($orderby == 'Popular') {
            ?>
		<ul class="post_list">
		<?php 
            query_posts(array("ignore_sticky_posts" => 1, 'showposts' => $count, "orderby" => "comment_count"));
            ?>
		<?php 
            if (have_posts()) {
                while (have_posts()) {
                    the_post();
                    ?>

		<li>
			<div class="post_thumb">
			<?php 
                    if (eff_post_image() == false) {
                    } else {
                        ?>
			<a href="<?php 
                        the_permalink();
                        ?>
">
				    <?php 
                        $thumb = eff_post_image();
                        $ntImage = aq_resize($thumb, 50, 50, true);
                        ?>
				<?php 
                        if (strpos(eff_post_image(), 'youtube')) {
                            ?>
				    <img src="<?php 
                            echo eff_post_image();
                            ?>
" width="50" height="50" alt="<?php 
                            the_title();
                            ?>
" title="<?php 
                            the_title();
                            ?>
" />
				    
				<?php 
                        } elseif (strpos(eff_post_image(), 'vimeo')) {
                            ?>
				    <img src="<?php 
                            echo eff_post_image();
                            ?>
" width="50" height="50" alt="<?php 
                            the_title();
                            ?>
" title="<?php 
                            the_title();
                            ?>
" />
				
				<?php 
                        } elseif (strpos(eff_post_image(), 'dailymotion')) {
                            ?>
				    <img src="<?php 
                            echo eff_post_image();
                            ?>
" width="50" height="50" alt="<?php 
                            the_title();
                            ?>
" title="<?php 
                            the_title();
                            ?>
" />
				
				<?php 
                        } else {
                            ?>
				    <img src="<?php 
                            echo $ntImage;
                            ?>
"  alt="<?php 
                            the_title();
                            ?>
" title="<?php 
                            the_title();
                            ?>
" />
				<?php 
                        }
                        ?>
			    <?php 
                    }
                    ?>
			</a>
			</div>
			    <h2><a href="<?php 
                    the_permalink();
                    ?>
"><?php 
                    short_title(35);
                    ?>
</a></h2>
			    <span class="post_meta"><?php 
                    the_time('F d, Y');
                    ?>
<a href="<?php 
                    the_permalink();
                    ?>
" class="comments"><?php 
                    comments_number('(0) Comments', '(1) Comment', '(%) Comments');
                    ?>
</a></span>
		</li>

		<?php 
                }
                ?>
		<?php 
            } else {
                ?>
		<!-- Else in here -->
		<?php 
            }
            ?>
		<?php 
            wp_reset_query();
            ?>
		</ul>
<?php 
        } elseif ($orderby == 'Random') {
            ?>
		<ul class="post_list">
		<?php 
            query_posts(array("ignore_sticky_posts" => 1, 'showposts' => $count, "orderby" => "rand"));
            ?>
		<?php 
            if (have_posts()) {
                while (have_posts()) {
                    the_post();
                    ?>

		<li>
		<div class="post_thumb">
		<?php 
                    if (eff_post_image() == false) {
                    } else {
                        ?>
		<a href="<?php 
                        the_permalink();
                        ?>
">
			<?php 
                        $thumb = eff_post_image();
                        $ntImage = aq_resize($thumb, 50, 50, true);
                        ?>
		    <?php 
                        if (strpos(eff_post_image(), 'youtube')) {
                            ?>
			<img src="<?php 
                            echo eff_post_image();
                            ?>
" width="50" height="50" alt="<?php 
                            the_title();
                            ?>
" title="<?php 
                            the_title();
                            ?>
" />
			
		    <?php 
                        } elseif (strpos(eff_post_image(), 'vimeo')) {
                            ?>
			<img src="<?php 
                            echo eff_post_image();
                            ?>
" width="50" height="50" alt="<?php 
                            the_title();
                            ?>
" title="<?php 
                            the_title();
                            ?>
" />
		    
		    <?php 
                        } elseif (strpos(eff_post_image(), 'dailymotion')) {
                            ?>
			<img src="<?php 
                            echo eff_post_image();
                            ?>
" width="50" height="50" alt="<?php 
                            the_title();
                            ?>
" title="<?php 
                            the_title();
                            ?>
" />
		    
		    <?php 
                        } else {
                            ?>
			<img src="<?php 
                            echo $ntImage;
                            ?>
"  alt="<?php 
                            the_title();
                            ?>
" title="<?php 
                            the_title();
                            ?>
" />
		    <?php 
                        }
                        ?>
		<?php 
                    }
                    ?>
		</a>
		</div>
		<h2><a href="<?php 
                    the_permalink();
                    ?>
"><?php 
                    short_title(35);
                    ?>
</a></h2>
		<span class="post_meta"><?php 
                    the_time('F d, Y');
                    ?>
<a href="<?php 
                    the_permalink();
                    ?>
" class="comments"><?php 
                    comments_number('(0) Comments', '(1) Comment', '(%) Comments');
                    ?>
</a></span>
		</li>

		<?php 
                }
                ?>
		<?php 
            } else {
                ?>
		<!-- Else in here -->
		<?php 
            }
            ?>
		<?php 
            wp_reset_query();
            ?>
		</ul>
<?php 
        } elseif ($orderby == 'Recent') {
            ?>
		<ul class="post_list">
		<?php 
            query_posts(array("ignore_sticky_posts" => 1, 'showposts' => $count));
            ?>
		<?php 
            if (have_posts()) {
                while (have_posts()) {
                    the_post();
                    ?>

		<li>
		<div class="post_thumb">
		<?php 
                    if (eff_post_image() == false) {
                    } else {
                        ?>
		<a href="<?php 
                        the_permalink();
                        ?>
">
			<?php 
                        $thumb = eff_post_image();
                        $ntImage = aq_resize($thumb, 50, 50, true);
                        ?>
		    <?php 
                        if (strpos(eff_post_image(), 'youtube')) {
                            ?>
			<img src="<?php 
                            echo eff_post_image();
                            ?>
" width="50" height="50" alt="<?php 
                            the_title();
                            ?>
" title="<?php 
                            the_title();
                            ?>
" />
			
		    <?php 
                        } elseif (strpos(eff_post_image(), 'vimeo')) {
                            ?>
			<img src="<?php 
                            echo eff_post_image();
                            ?>
" width="50" height="50" alt="<?php 
                            the_title();
                            ?>
" title="<?php 
                            the_title();
                            ?>
" />
		    
		    <?php 
                        } elseif (strpos(eff_post_image(), 'dailymotion')) {
                            ?>
			<img src="<?php 
                            echo eff_post_image();
                            ?>
" width="50" height="50" alt="<?php 
                            the_title();
                            ?>
" title="<?php 
                            the_title();
                            ?>
" />
		    
		    <?php 
                        } else {
                            ?>
			<img src="<?php 
                            echo $ntImage;
                            ?>
"  alt="<?php 
                            the_title();
                            ?>
" title="<?php 
                            the_title();
                            ?>
" />
		    <?php 
                        }
                        ?>
		<?php 
                    }
                    ?>
		</a>
		</div>
		<h2><a href="<?php 
                    the_permalink();
                    ?>
"><?php 
                    short_title(35);
                    ?>
</a></h2>
		<span class="post_meta"><?php 
                    the_time('F d, Y');
                    ?>
<a href="<?php 
                    the_permalink();
                    ?>
" class="comments"><?php 
                    comments_number('(0) Comments', '(1) Comment', '(%) Comments');
                    ?>
</a></span>
		</li>

		<?php 
                }
                ?>
		<?php 
            } else {
                ?>
		<!-- Else in here -->
		<?php 
            }
            ?>
		<?php 
            wp_reset_query();
            ?>
		</ul>
<?php 
        }
        ?>

<?php 
        /* After widget (defined by themes). */
        echo $after_widget;
    }
예제 #5
0
    function widget($args, $instance)
    {
        global $wpdb;
        extract($args);
        /* Our variables from the widget settings. */
        $title = apply_filters('widget_title', $instance['title']);
        $tab1 = $instance['tab1'];
        $tab2 = $instance['tab2'];
        $tab3 = $instance['tab3'];
        $tab4 = $instance['tab4'];
        /* Before widget (defined by themes). */
        /* Display the widget title if one was input (before and after defined by themes). */
        //Randomize tab order in a new array
        $tab = array();
        ?>
<div class="widget">
        <section class="section_widget">
		<div id="tabs_widget">
			
				<ul class="tabs_widget_head">
				    <li><a href="#tab_popular"><?php 
        _e('Popular', 'framework');
        ?>
</a></li>
				    <li><a href="#tab_recent"><?php 
        _e('Recent', 'framework');
        ?>
</a></li>
				    <li><a href="#tab_comments"><?php 
        _e('Comments', 'framework');
        ?>
</a></li>
				</ul>
				
				<div id="tab_popular" class="tabs_widget_content">
					<div>
					    <ul>
						<?php 
        query_posts(array("ignore_sticky_posts" => 1, 'showposts' => 4, "orderby" => "comment_count"));
        ?>
						<?php 
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                ?>
						<li>
						    <div>
							<div class="post_thumb2">
							<a href="<?php 
                the_permalink();
                ?>
">
							<?php 
                $thumb = eff_post_image();
                $ntImage = aq_resize($thumb, 80, 68, true);
                ?>
							    <?php 
                if (strpos(eff_post_image(), 'youtube')) {
                    ?>
								<img src="<?php 
                    echo eff_post_image();
                    ?>
" width="85" height="68" alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
								
							    <?php 
                } elseif (strpos(eff_post_image(), 'vimeo')) {
                    ?>
								<img src="<?php 
                    echo eff_post_image();
                    ?>
" width="85" height="68" alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
							    
							    <?php 
                } elseif (strpos(eff_post_image(), 'dailymotion')) {
                    ?>
								<img src="<?php 
                    echo eff_post_image();
                    ?>
" width="85" height="68" alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
							    
							    <?php 
                } else {
                    ?>
								<img src="<?php 
                    echo $ntImage;
                    ?>
"  alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
							    <?php 
                }
                ?>
							</a>
							</div>
						    </div>
						    <h2><a href="<?php 
                the_permalink();
                ?>
"><?php 
                short_title(50);
                ?>
</a></h2>
						    <span class="post_meta"><?php 
                the_time('F d, Y');
                ?>
<a href="<?php 
                the_permalink();
                ?>
" class="comments"><?php 
                comments_number('(0) Comments', '(1) Comment', '(%) Comments');
                ?>
</a></span></span>
						</li>
						<?php 
            }
            ?>
						<?php 
        } else {
            ?>
						<!-- Else in here -->
						<?php 
        }
        ?>
						<?php 
        wp_reset_query();
        ?>
					    </ul>
					</div>
				</div>
				
				<div id="tab_recent" class="tabs_widget_content">
					<div>
					    <ul>
						<?php 
        query_posts(array("ignore_sticky_posts" => 1, 'showposts' => 4));
        ?>
						<?php 
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                ?>
						<li>
						    <div>
							<div class="post_thumb2">
							<a href="<?php 
                the_permalink();
                ?>
">
							<?php 
                $thumb = eff_post_image();
                $ntImage = aq_resize($thumb, 80, 72, true);
                ?>
							    <?php 
                if (strpos(eff_post_image(), 'youtube')) {
                    ?>
								<img src="<?php 
                    echo eff_post_image();
                    ?>
" width="80" height="68" alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
								
							    <?php 
                } elseif (strpos(eff_post_image(), 'vimeo')) {
                    ?>
								<img src="<?php 
                    echo eff_post_image();
                    ?>
" width="80" height="68" alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
							    
							    <?php 
                } elseif (strpos(eff_post_image(), 'dailymotion')) {
                    ?>
								<img src="<?php 
                    echo eff_post_image();
                    ?>
" width="80" height="68" alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
							    
							    <?php 
                } else {
                    ?>
								<img src="<?php 
                    echo $ntImage;
                    ?>
"  alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
							    <?php 
                }
                ?>
							</a>
							</div>
						    </div>
						    <h2><a href="<?php 
                the_permalink();
                ?>
"><?php 
                short_title(50);
                ?>
</a></h2>
						    <span class="post_meta"><?php 
                the_time('F d, Y');
                ?>
<a href="<?php 
                the_permalink();
                ?>
" class="comments"><?php 
                comments_number('(0) Comments', '(1) Comment', '(%) Comments');
                ?>
</a></span></span>
						</li>
						<?php 
            }
            ?>
						<?php 
        } else {
            ?>
						<!-- Else in here -->
						<?php 
        }
        ?>
						<?php 
        wp_reset_query();
        ?>
					    </ul>
					</div>
				</div>
				
				<div id="tab_comments" class="tabs_widget_content">
					<div>
					    <ul>
						<?php 
        global $wpdb;
        $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_author_email, comment_date_gmt, comment_approved, comment_type, comment_author_url, SUBSTRING(comment_content,1,70) AS com_excerpt FROM {$wpdb->comments} LEFT OUTER JOIN {$wpdb->posts} ON ({$wpdb->comments}.comment_post_ID = {$wpdb->posts}.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT 4";
        $comments = $wpdb->get_results($sql);
        foreach ($comments as $comment) {
            ?>
						<li>
						    <div>
							<a href="<?php 
            echo get_permalink($comment->ID);
            ?>
#comment-<?php 
            echo $comment->comment_ID;
            ?>
" title="<?php 
            echo strip_tags($comment->comment_author);
            ?>
 <?php 
            _e('on ', 'framework');
            echo $comment->post_title;
            ?>
">
							    <?php 
            echo get_avatar($comment, '72', $default = eff_option('custom_gravatar'));
            ?>
							</a>
						    </div>
						    <h2><a href="<?php 
            echo get_permalink($comment->ID);
            ?>
#comment-<?php 
            echo $comment->comment_ID;
            ?>
" title="<?php 
            echo strip_tags($comment->comment_author);
            ?>
 <?php 
            _e('on ', 'framework');
            echo $comment->post_title;
            ?>
"><?php 
            echo strip_tags($comment->comment_author);
            ?>
:
						    <?php 
            $excerpt = $comment->com_excerpt;
            echo wp_html_excerpt($excerpt, 75);
            ?>
 ... 
						    </a></h2>
						</li>
						<?php 
        }
        ?>
			
						<?php 
        wp_reset_query();
        ?>
					    </ul>
					</div>
				</div>
		
		</div>
	</section>
</div>
        
		<?php 
        /* After widget (defined by themes). */
    }
예제 #6
0
function eff_bottom_box($num)
{
    ?>
	<?php 
    $bbcat = eff_option('bb' . $num . '_category');
    $bbnum = eff_option('bb' . $num . '_number');
    $bb_title = get_cat_name($bbcat);
    $bb_link = get_category_link($bbcat);
    ?>
            
	    <div class="block bottom_box cat_<?php 
    echo $bbcat;
    ?>
">
		<div class="bblock_title">
		   <div class="title_bg"> <h2><a href="<?php 
    echo $bb_link;
    ?>
"><?php 
    echo $bb_title;
    ?>
</a></h2></div>
		    <span></span>
		</div>
		
		<section class="section_box_2">
				<?php 
    query_posts(array('showposts' => 1, 'cat' => $bbcat));
    ?>
				<?php 
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>
				<div class="post_thumb2">
				    <a href="<?php 
            the_permalink();
            ?>
">
					<?php 
            $img = eff_post_image('medium');
            $Fimg = aq_resize($img, 232, 136, true);
            ?>
					<?php 
            if (strpos(eff_post_image(), 'youtube')) {
                ?>
					<img src="<?php 
                echo eff_post_image();
                ?>
" width="232" height="136" alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
					
					<?php 
            } elseif (strpos(eff_post_image(), 'vimeo')) {
                ?>
					    <img src="<?php 
                echo eff_post_image();
                ?>
" width="232" height="136" alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
					
					<?php 
            } elseif (strpos(eff_post_image(), 'dailymotion')) {
                ?>
					    <img src="<?php 
                echo eff_post_image();
                ?>
" width="232" height="136" alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
					
					<?php 
            } else {
                ?>
					    <img src="<?php 
                echo $Fimg;
                ?>
"  alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
					<?php 
            }
            ?>
				    </a>
				</div>
				<div class="stylebox2">
				    <div class="first_news">
					<h2><a href="<?php 
            the_permalink();
            ?>
" rel="bookmark"><?php 
            the_title();
            ?>
</a></h2>
					<?php 
        }
    } else {
        ?>
					<!--else here-->
					<?php 
    }
    ?>
					<?php 
    wp_reset_query();
    ?>
				    </div>
				    <ul>
					<?php 
    query_posts(array('showposts' => $bbnum, 'offset' => 1, 'cat' => $bbcat));
    ?>
					<?php 
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>
					<li>
					    <h2>&raquo; <a href="<?php 
            the_permalink();
            ?>
" rel="bookmark"><?php 
            the_title();
            ?>
</a></h2>
					</li>
					<?php 
        }
    } else {
        ?>
					<!--else here-->
					<?php 
    }
    ?>
					<?php 
    wp_reset_query();
    ?>
					<a href="<?php 
    echo $bb_link;
    ?>
" class="read_more">More &raquo;</a>
				    </ul>
				</div>
		</section>
	    </div>
<?php 
}
    function widget($args, $instance)
    {
        extract($args);
        /* User-selected settings. */
        $title = apply_filters('widget_title', $instance['title']);
        $orderby = $instance['orderby'];
        $count = $instance['count'];
        /* Before widget (defined by themes). */
        echo $before_widget;
        /* Title of widget (before and after defined by themes). */
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>

	<?php 
        if ($orderby == 'Popular') {
            ?>
	<div class="w_posts_images clearfix">
	<?php 
            query_posts(array('showposts' => $count, "orderby" => "comment_count"));
            ?>
	<?php 
            if (have_posts()) {
                while (have_posts()) {
                    the_post();
                    ?>
	    <div><a href="<?php 
                    the_permalink();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" class="tip_n">
			<?php 
                    $thumb = eff_post_image();
                    $ntImage = aq_resize($thumb, 55, 55, true);
                    ?>
		    <?php 
                    if (strpos(eff_post_image(), 'youtube')) {
                        ?>
			<img src="<?php 
                        echo eff_post_image();
                        ?>
" width="55" height="55" alt="<?php 
                        the_title();
                        ?>
" title="<?php 
                        the_title();
                        ?>
" />
			
		    <?php 
                    } elseif (strpos(eff_post_image(), 'vimeo')) {
                        ?>
			<img src="<?php 
                        echo eff_post_image();
                        ?>
" width="55" height="55" alt="<?php 
                        the_title();
                        ?>
" title="<?php 
                        the_title();
                        ?>
" />
		    
		    <?php 
                    } elseif (strpos(eff_post_image(), 'dailymotion')) {
                        ?>
			<img src="<?php 
                        echo eff_post_image();
                        ?>
" width="55" height="55" alt="<?php 
                        the_title();
                        ?>
" title="<?php 
                        the_title();
                        ?>
" />
		    
		    <?php 
                    } else {
                        ?>
			<img src="<?php 
                        echo $ntImage;
                        ?>
"  alt="<?php 
                        the_title();
                        ?>
" title="<?php 
                        the_title();
                        ?>
" />
		    <?php 
                    }
                    ?>
	    </a></div>
	<?php 
                }
                ?>
	<?php 
            } else {
                ?>
	<!-- Else in here -->
	<?php 
            }
            ?>
	<?php 
            wp_reset_query();
            ?>
	</div>
<?php 
        } elseif ($orderby == 'Random') {
            ?>
	<div class="w_posts_images clearfix">
	<?php 
            query_posts(array('showposts' => $count, "orderby" => "rand"));
            ?>
	<?php 
            if (have_posts()) {
                while (have_posts()) {
                    the_post();
                    ?>
	    <div><a href="<?php 
                    the_permalink();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" class="tip_n">
			<?php 
                    $thumb = eff_post_image();
                    $ntImage = aq_resize($thumb, 55, 55, true);
                    ?>
		    <?php 
                    if (strpos(eff_post_image(), 'youtube')) {
                        ?>
			<img src="<?php 
                        echo eff_post_image();
                        ?>
" width="55" height="55" alt="<?php 
                        the_title();
                        ?>
" title="<?php 
                        the_title();
                        ?>
" />
			
		    <?php 
                    } elseif (strpos(eff_post_image(), 'vimeo')) {
                        ?>
			<img src="<?php 
                        echo eff_post_image();
                        ?>
" width="55" height="55" alt="<?php 
                        the_title();
                        ?>
" title="<?php 
                        the_title();
                        ?>
" />
		    
		    <?php 
                    } elseif (strpos(eff_post_image(), 'dailymotion')) {
                        ?>
			<img src="<?php 
                        echo eff_post_image();
                        ?>
" width="55" height="55" alt="<?php 
                        the_title();
                        ?>
" title="<?php 
                        the_title();
                        ?>
" />
		    
		    <?php 
                    } else {
                        ?>
			<img src="<?php 
                        echo $ntImage;
                        ?>
"  alt="<?php 
                        the_title();
                        ?>
" title="<?php 
                        the_title();
                        ?>
" />
		    <?php 
                    }
                    ?>
	    </a></div>
	<?php 
                }
                ?>
	<?php 
            } else {
                ?>
	<!-- Else in here -->
	<?php 
            }
            ?>
	<?php 
            wp_reset_query();
            ?>
	</div>
		
<?php 
        } elseif ($orderby == 'Recent') {
            ?>
	<div class="w_posts_images clearfix">
	<?php 
            query_posts(array('showposts' => $count));
            ?>
	<?php 
            if (have_posts()) {
                while (have_posts()) {
                    the_post();
                    ?>
	    <div><a href="<?php 
                    the_permalink();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" class="tip_n">
			<?php 
                    $thumb = eff_post_image();
                    $ntImage = aq_resize($thumb, 55, 55, true);
                    ?>
		    <?php 
                    if (strpos(eff_post_image(), 'youtube')) {
                        ?>
			<img src="<?php 
                        echo eff_post_image();
                        ?>
" width="55" height="55" alt="<?php 
                        the_title();
                        ?>
" title="<?php 
                        the_title();
                        ?>
" />
			
		    <?php 
                    } elseif (strpos(eff_post_image(), 'vimeo')) {
                        ?>
			<img src="<?php 
                        echo eff_post_image();
                        ?>
" width="55" height="55" alt="<?php 
                        the_title();
                        ?>
" title="<?php 
                        the_title();
                        ?>
" />
		    
		    <?php 
                    } elseif (strpos(eff_post_image(), 'dailymotion')) {
                        ?>
			<img src="<?php 
                        echo eff_post_image();
                        ?>
" width="55" height="55" alt="<?php 
                        the_title();
                        ?>
" title="<?php 
                        the_title();
                        ?>
" />
		    
		    <?php 
                    } else {
                        ?>
			<img src="<?php 
                        echo $ntImage;
                        ?>
"  alt="<?php 
                        the_title();
                        ?>
" title="<?php 
                        the_title();
                        ?>
" />
		    <?php 
                    }
                    ?>
	    </a></div>
	<?php 
                }
                ?>
	<?php 
            } else {
                ?>
	<!-- Else in here -->
	<?php 
            }
            ?>
	<?php 
            wp_reset_query();
            ?>
	</div>
	
<?php 
        }
        ?>

<?php 
        /* After widget (defined by themes). */
        echo $after_widget;
    }
예제 #8
0
function eff_latest_videos_sc($order, $title, $count)
{
    ?>
	    <!--Crousel-->
		<div class="block rcrousel">
		    <div class="block_title">
			<div class="title_bg"><h2><a href="#"><?php 
    echo $title;
    ?>
</a></h2></div>
			<a href="#" class="lv_next">next</a>
			<a href="#" class="lv_prev">prev</a>
			<span></span>
		    </div>
		    
		    <section class="section_box">
			<div class="content_inner">
			    <div class="crousel_style1_lv">
				<div class="crousel1_lv">
				    <?php 
    query_posts(array('showposts' => $count, 'meta_key' => 'eff_article_type', 'meta_value' => 'video', 'orderby' => $order));
    ?>
                                    <?php 
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>
				    <div class="lv_item">
					<div class="post_thumb">
					    <a href="<?php 
            the_permalink();
            ?>
">
						<?php 
            $img = eff_post_image('thumbnail');
            $Fimg = aq_resize($img, 125, 93, true);
            ?>
						<?php 
            if (strpos(eff_post_image(), 'youtube')) {
                ?>
						<img src="<?php 
                echo eff_post_image();
                ?>
" width="125" height="93" alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
						
						<?php 
            } elseif (strpos(eff_post_image(), 'vimeo')) {
                ?>
						    <img src="<?php 
                echo eff_post_image();
                ?>
" width="125" height="93" alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
						
						<?php 
            } elseif (strpos(eff_post_image(), 'dailymotion')) {
                ?>
						    <img src="<?php 
                echo eff_post_image();
                ?>
" width="125" height="93" alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
						
						<?php 
            } else {
                ?>
						    <img src="<?php 
                echo $Fimg;
                ?>
"  alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
						<?php 
            }
            ?>
					    </a>
					</div>
					<h2><a href="<?php 
            the_permalink();
            ?>
" rel="bookmark"><?php 
            short_title(40);
            ?>
</a></h2>
					<span class="post_meta"><?php 
            the_time('F d, Y');
            ?>
</span>	
				    </div>
				    <?php 
        }
    } else {
        ?>
				    <!--else here-->
				    <?php 
    }
    ?>
				    <?php 
    wp_reset_query();
    ?>
				</div>
			    </div>
			</div>
		    </section>
		</div>
		<!--Crousel-->
		<script>
		    jQuery(document).ready(function($) {
			//latest vids wrap
			var vids = $(".lv_item");
			for(var i = 0; i < vids.length; i+=4) {
			  vids.slice(i, i+4).wrapAll('<div class="four_items"></div>');
			}
			//Crousel Style1
		       $('.crousel1_lv').cycle({
			prev: '.lv_prev',
			next: '.lv_next',
			slideExpr: '.four_items',
			slideResize: 0,
			pause: 1,
			easing: 'swing',
			<?php 
    if (is_rtl()) {
        ?>
			fx: 'scrollRight',
			<?php 
    } else {
        ?>
			fx: 'scrollHorz',
			<?php 
    }
    ?>
			cleartype: true,
			cleartypeNoBg: true,
			speed: <?php 
    echo eff_option('lv_speed');
    ?>
,
			<?php 
    if (eff_option('lv_auto') != false) {
        ?>
			 timeout:<?php 
        echo eff_option('lv_auto_time');
        ?>
,
			<?php 
    } else {
        ?>
			 timeout:0,
			<?php 
    }
    ?>
		    });
		    });
		</script>
<?php 
}