Changeset 146859
- Timestamp:
- 08/18/2009 05:30:47 AM (17 years ago)
- Location:
- frontpage-slideshow/trunk
- Files:
-
- 2 edited
-
frontpage-slideshow.php (modified) (7 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
frontpage-slideshow/trunk/frontpage-slideshow.php
r146858 r146859 5 5 Plugin URI: http://www.modulaweb.fr/blog/wp-plugins/frontside-slideshow/en/ 6 6 Description: Frontpage Slideshow provides a slide show like you can see on <a href="http://linux.com">linux.com</a> or <a href="http://modulaweb.fr/">modulaweb.fr</a> front page. <a href="options-general.php?page=frontpage-slideshow">Configuration Page</a> 7 Version: 0. 27 Version: 0.3 8 8 Author: Jean-François VIAL 9 9 Author URI: http://www.modulaweb.fr/ … … 28 28 function frontpageSlideshow($content,$admin_page=false) { 29 29 30 // modify this var to change the slideshow category31 $fscategory='fs-cat'; 32 // make sur to change this var on the other funtion below30 $options = frontpageSlideshow_get_options(); 31 32 $fscategory = join(',',$options['values']['fs_cats']); 33 33 34 34 if ((!is_feed() && is_front_page()) || $admin_page) { // the slideshow is only displayed on frontpage 35 35 // get the 4th newer posts 36 $fsposts = get_posts('category_name='.$fscategory.'&orderby=ID&numberposts= 4&order=DESC');36 $fsposts = get_posts('category_name='.$fscategory.'&orderby=ID&numberposts='.$options['values']['fs_slides'].'&order=DESC'); 37 37 // put post in more logical order 38 38 $fsposts = array_reverse($fsposts); … … 63 63 $fscontent .= '<div id="fs-entry-button-comment-'.$id.'" class="fs-comment">'.$entry['button-comment'].'</div>'; 64 64 $fscontent .= '<img id="fs-entry-img-'.$id.'" class="fs-skip" src="'.$entry['image'].'"'; 65 if ($id == $fslast) $fscontent .= ' onload="fsDoSlide()"'; // put this to make another loop after the last image65 if ($id == $fslast) $fscontent .= ' onload="fsDoSlide()"'; // put this to make another loop after the last image 66 66 $fscontent .= ' />'; 67 67 $fscontent .= '<span id="fs-entry-comment-'.$id.'" class="fs-skip">'.$entry['comment'].'</span>'; … … 77 77 } 78 78 79 function frontpageSlideshow_header( ) {79 function frontpageSlideshow_header($admin_page=false) { 80 80 $options = frontpageSlideshow_get_options(); 81 // modify this var to change the slideshow category 82 $fscategory='fs-cat'; 83 // make sur to change this var on the other funtion before 84 $fsposts = get_posts('category_name='.$fscategory.'&orderby=ID&numberposts=4'); 85 $fslast = count($fsposts) - 1; 86 87 frontpageSlideshow_JS($options,$fslast); 88 frontpageSlideshow_CSS($options); 81 82 $fscategory = join(',',$options['values']['fs_cats']); 83 if ((!is_feed() && is_front_page()) || $admin_page) { // the slideshow is only displayed on frontpage 84 $fsposts = get_posts('category_name='.$fscategory.'&orderby=ID&numberposts='.$options['values']['fs_slides']); 85 $fslast = count($fsposts) - 1; 86 87 frontpageSlideshow_JS($options,$fslast); 88 frontpageSlideshow_CSS($options); 89 } 89 90 } 90 91 … … 206 207 font-weight: bold; 207 208 font-size: 11px; 208 line-height: 1. 2em;209 line-height: 1.4em; 209 210 } 210 211 #fs-excerpt { … … 242 243 } 243 244 .fs-current { 244 background-color: #444 ;245 background-color: #444!important; 245 246 } 246 247 .fs-entry { 247 248 background-color: #000; 248 249 margin: 0; 250 overflow: hidden; 249 251 } 250 252 .fs-entry:hover { … … 383 385 <div class="inside" style="padding: 5px;"> 384 386 <? 385 frontpageSlideshow_header( );387 frontpageSlideshow_header(true); 386 388 echo frontpageSlideshow('',true); 387 389 ?> -
frontpage-slideshow/trunk/readme.txt
r146858 r146859 5 5 Requires at least: 2.0 6 6 Tested up to: 2.8.4 7 Stable tag: 0. 27 Stable tag: 0.3 8 8 9 9 Frontpage Slideshow provides a slide show like you can see in linux.com front page … … 32 32 33 33 1. Upload `frontpage-slideshow.zip` to the `/wp-content/plugins/` directory and uncompress it. 34 1. Create a specific category called "fs-cat" and put some posts on it 34 35 1. Activate the plugin through the 'Plugins' menu in WordPress 35 1. Create a specific category called "fs-cat" 36 1. Put short-tag "[frontpage-slideshow]" onto your frontpage 36 1. No short-tag is needed : the plugin work as soon as activated 37 37 38 38 == Frequently Asked Questions == … … 43 43 v 0.1 : very first release usable but no option page 44 44 v 0.2 : some terrible graphic bugs fixed : option page under construction and preview 45 v 0.3 : some minor javascript and CSS bugs fixed : now the plugon is ready for the option-page and fine tunes. 45 46 46 47 == Screenshots ==
Note: See TracChangeset
for help on using the changeset viewer.