Changeset 675574
- Timestamp:
- 03/03/2013 01:49:33 AM (13 years ago)
- Location:
- wp-skitter-slideshow/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
wp-skitter-slideshow.php (modified) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-skitter-slideshow/trunk/readme.txt
r644725 r675574 7 7 Contributors: thiagosf 8 8 Requires at least: 2.9 9 Tested up to: 3.5 10 Stable tag: 2. 09 Tested up to: 3.5.1 10 Stable tag: 2.1 11 11 12 12 Slideshow flexible with many options for customizations. … … 19 19 20 20 To use the Skitter Slideshow, go to Settings -> Skitter Slideshow. Then select a category that will display images, and customize the way you see fit. Add a post in the category you choose, and remember to choose an image highlighted, it will be what will appear on the slides. The plugin crops the image for better presentation of slides. 21 22 EXAMPLE AND DOCUMENTATION 23 24 http://www.skitter-slider.net/ 21 25 22 26 == Screenshots == … … 32 36 * You can either use the automatic plugin installer or your FTP program to upload it to your wp-content/plugins directory the top-level folder. Don't just upload all the php files and put them in /wp-content/plugins/. 33 37 * Activate the plugin through the 'Plugins' menu in WordPress 34 * Insert <code><?php if ( function_exists('show_skitter') ) { show_skitter(); } ?></code> into your template file. 38 * Insert <code><?php if ( function_exists('show_skitter') ) { show_skitter(); } ?></code> into your template file. OR 39 * Insert shortcode [skitter] in post or page 35 40 * Add a post thumb to a desired post. 36 41 * And voila! 37 42 38 43 == Changelog == 44 45 = version 2.1 = 46 47 * Add Shortcode 48 * Background configuration 39 49 40 50 = version 2.0 = -
wp-skitter-slideshow/trunk/wp-skitter-slideshow.php
r644749 r675574 4 4 Plugin URI: http://thiagosf.net/projects/jquery/skitter 5 5 Description: jQuery Slideshow for Wordpress using Skitter Slideshow 6 Version: 2. 06 Version: 2.1 7 7 Author: Thiago Silva Ferreira 8 8 Author URI: http://thiagosf.net … … 136 136 'wp_skitter_with_animations', 137 137 'wp_skitter_auto_play', 138 'wp_skitter_background', 138 139 ); 139 140 return $wp_skitter_settings; … … 167 168 add_option('wp_skitter_stop_over','false'); 168 169 add_option('wp_skitter_auto_play','true'); 170 add_option('wp_skitter_background','#000'); 169 171 170 172 add_option('wp_skitter_attachments', array( … … 209 211 'wp_skitter_controls_position', 210 212 'wp_skitter_focus_position', 213 'wp_skitter_background', 211 214 //'wp_skitter_with_animations', 212 215 ); … … 307 310 $width_skitter = get_option('wp_skitter_width'); 308 311 $height_skitter = get_option('wp_skitter_height'); 312 $background_skitter = get_option('wp_skitter_background'); 309 313 310 314 $category = get_option('wp_skitter_category'); … … 314 318 315 319 <style type="text/css"> 316 .box_skitter {width:<?php echo $width_skitter; ?>px;height:<?php echo $height_skitter; ?>px;} 320 .box_skitter { 321 width:<?php echo $width_skitter; ?>px; 322 height:<?php echo $height_skitter; ?>px; 323 background: <?php echo $background_skitter; ?>; 324 } 325 .box_skitter img { 326 width: auto !important; 327 max-width: none !important; 328 } 317 329 </style> 318 330 … … 463 475 if ($option == 'wp_skitter_xml' && get_option('wp_skitter_type') != 'xml') continue; 464 476 if ($option == 'wp_skitter_animation' && !empty($remove_animation_option)) continue; 477 if ($option == 'wp_skitter_background') continue; 465 478 $options[] = str_replace('wp_skitter_', '', $option).': '.$get_option; 466 479 } … … 651 664 <form method="post" action="options.php" id="form_skitter"> 652 665 <?php settings_fields( 'wp_skitter_settings' ); ?> 653 <input type="hidden" value="<? =$wp_skitter_type;?>" name="wp_skitter_type" id="wp_skitter_type" />666 <input type="hidden" value="<?php echo $wp_skitter_type;?>" name="wp_skitter_type" id="wp_skitter_type" /> 654 667 655 668 <?php … … 665 678 ?> 666 679 <div id="tabs_sk"> 667 <a href="#library" rel="tab_media_library_sk" <? =$selected_library;?>>Media Library</a>668 <a href="#posts" rel="tab_posts_sk" <? =$selected_posts;?>>Posts</a>669 <a href="#xml" rel="tab_xml_sk" <? =$selected_xml;?>>XML</a>680 <a href="#library" rel="tab_media_library_sk" <?php echo $selected_library;?>>Media Library</a> 681 <a href="#posts" rel="tab_posts_sk" <?php echo $selected_posts;?>>Posts</a> 682 <a href="#xml" rel="tab_xml_sk" <?php echo $selected_xml;?>>XML</a> 670 683 </div> 671 684 672 <div id="tab_posts_sk" class="tab_item_sk<? =$tab_selected_posts;?>">685 <div id="tab_posts_sk" class="tab_item_sk<?php echo $tab_selected_posts;?>"> 673 686 <table class="form-table"> 674 687 <tr valign="top"> … … 704 717 </div> 705 718 706 <div id="tab_xml_sk" class="tab_item_sk<? =$tab_selected_xml;?>">719 <div id="tab_xml_sk" class="tab_item_sk<?php echo $tab_selected_xml;?>"> 707 720 <table class="form-table"> 708 721 <tr valign="top"> … … 715 728 </div> 716 729 717 <div id="tab_media_library_sk" class="tab_item_sk<? =$tab_selected_library;?>">730 <div id="tab_media_library_sk" class="tab_item_sk<?php echo $tab_selected_library;?>"> 718 731 <div id="box_list_images"> 719 732 <div id="loading_list_sk">Loading...</div> … … 730 743 ?> 731 744 <div class="item_list_sk"> 732 <a href="#<? =$id;?>" title="Add"<?=$style;?>><?=wp_get_attachment_image( $id, array(50, 50) );?></a>745 <a href="#<?php echo $id;?>" title="Add"<?php echo $style;?>><?php echo wp_get_attachment_image( $id, array(50, 50) );?></a> 733 746 </div> 734 747 <?php … … 760 773 761 774 ?> 762 <div class="box_image_sk" id="box_image_sk_<? =$id;?>" style="display:block;">775 <div class="box_image_sk" id="box_image_sk_<?php echo $id;?>" style="display:block;"> 763 776 <div class="item_image_sk"> 764 <? =wp_get_attachment_image( $id, array(150, 150) );?>765 <input class="attachments_image" type="checkbox" value="<? =$id;?>" name="wp_skitter_attachments[image][]" id="wp_skitter_attachment_<?=$id;?>" checked="checked" style="display:none;" />777 <?php echo wp_get_attachment_image( $id, array(150, 150) );?> 778 <input class="attachments_image" type="checkbox" value="<?php echo $id;?>" name="wp_skitter_attachments[image][]" id="wp_skitter_attachment_<?php echo $id;?>" checked="checked" style="display:none;" /> 766 779 </div> 767 780 <div class="settings_slide"> 768 <label for="wp_skitter_attachment_label_<? =$id;?>">Label</label>769 <input class="attachments_label" type="text" name="wp_skitter_attachments[label][<? =$id;?>]" id="wp_skitter_attachment_label_<?=$id;?>" size="50" value="<?=$label;?>" />770 <label for="wp_skitter_attachment_link_<? =$id;?>">Link</label>771 <input class="attachments_link" type="text" name="wp_skitter_attachments[link][<? =$id;?>]" id="wp_skitter_attachment_link_<?=$id;?>" size="50" value="<?=$link;?>" />772 <label for="wp_skitter_attachment_animation_<? =$id;?>">Animation</label>773 <? =getSelectAnimations(array(781 <label for="wp_skitter_attachment_label_<?php echo $id;?>">Label</label> 782 <input class="attachments_label" type="text" name="wp_skitter_attachments[label][<?php echo $id;?>]" id="wp_skitter_attachment_label_<?php echo $id;?>" size="50" value="<?php echo $label;?>" /> 783 <label for="wp_skitter_attachment_link_<?php echo $id;?>">Link</label> 784 <input class="attachments_link" type="text" name="wp_skitter_attachments[link][<?php echo $id;?>]" id="wp_skitter_attachment_link_<?php echo $id;?>" size="50" value="<?php echo $link;?>" /> 785 <label for="wp_skitter_attachment_animation_<?php echo $id;?>">Animation</label> 786 <?php echo getSelectAnimations(array( 774 787 'name' => 'wp_skitter_attachments[animation]['.$id.']', 775 788 'id' => 'wp_skitter_attachment_animation_'.$id, … … 793 806 794 807 ?> 795 <div class="box_image_sk" id="box_image_sk_<? =$id;?>">808 <div class="box_image_sk" id="box_image_sk_<?php echo $id;?>"> 796 809 <div class="item_image_sk"> 797 <? =wp_get_attachment_image( $id, array(150, 150) );?>798 <input class="attachments_image" type="checkbox" value="<? =$id;?>" name="wp_skitter_attachments[image][]" id="wp_skitter_attachment_<?=$id;?>" checked="checked" style="display:none;" />810 <?php echo wp_get_attachment_image( $id, array(150, 150) );?> 811 <input class="attachments_image" type="checkbox" value="<?php echo $id;?>" name="wp_skitter_attachments[image][]" id="wp_skitter_attachment_<?php echo $id;?>" checked="checked" style="display:none;" /> 799 812 </div> 800 813 <div class="settings_slide"> 801 <label for="wp_skitter_attachment_label_<? =$id;?>">Label</label>802 <input class="attachments_label" type="text" name="wp_skitter_attachments[label][<? =$id;?>]" id="wp_skitter_attachment_label_<?=$id;?>" size="50" />803 <label for="wp_skitter_attachment_link_<? =$id;?>">Link</label>804 <input class="attachments_link" type="text" name="wp_skitter_attachments[link][<? =$id;?>]" id="wp_skitter_attachment_link_<?=$id;?>" size="50" />805 <label for="wp_skitter_attachment_animation_<? =$id;?>">Animation</label>806 <? =getSelectAnimations(array(814 <label for="wp_skitter_attachment_label_<?php echo $id;?>">Label</label> 815 <input class="attachments_label" type="text" name="wp_skitter_attachments[label][<?php echo $id;?>]" id="wp_skitter_attachment_label_<?php echo $id;?>" size="50" /> 816 <label for="wp_skitter_attachment_link_<?php echo $id;?>">Link</label> 817 <input class="attachments_link" type="text" name="wp_skitter_attachments[link][<?php echo $id;?>]" id="wp_skitter_attachment_link_<?php echo $id;?>" size="50" /> 818 <label for="wp_skitter_attachment_animation_<?php echo $id;?>">Animation</label> 819 <?php echo getSelectAnimations(array( 807 820 'name' => 'wp_skitter_attachments[animation]['.$id.']', 808 821 'id' => 'wp_skitter_attachment_animation_'.$id, … … 888 901 889 902 <tr valign="top" style="border-top:1px solid #ccc;"> 903 <th scope="row">background</th> 904 <td><input type="text" name="wp_skitter_background" id="wp_skitter_background" size="20" value="<?php echo get_option('wp_skitter_background'); ?>" /></td> 905 </tr> 906 907 <tr valign="top" style="border-top:1px solid #ccc;"> 890 908 <th scope="row">crop image</th> 891 909 <td><input type="checkbox" value="true" name="wp_skitter_crop" id="wp_skitter_crop" <?php echo (get_option('wp_skitter_crop') == 'true' ? ' checked="checked"' : ''); ?> /></td> … … 925 943 926 944 <tr valign="top" style="border-top:1px solid #ccc;"> 927 <th scope="row"><? =$linha[0];?></th>945 <th scope="row"><?php echo $linha[0];?></th> 928 946 <td> 929 947 <?php … … 934 952 935 953 ?> 936 <input type="checkbox" value="true" name="wp_skitter_<? =$linha[0];?>" <?php echo $selected;?> />954 <input type="checkbox" value="true" name="wp_skitter_<?php echo $linha[0];?>" <?php echo $selected;?> /> 937 955 <?php 938 956 … … 941 959 942 960 ?> 943 <input type="text" name="wp_skitter_<? =$linha[0];?>" id="wp_skitter_<?=$linha[0];?>" size="50" value="<?php echo get_option('wp_skitter_'.$linha[0]); ?>" />961 <input type="text" name="wp_skitter_<?php echo $linha[0];?>" id="wp_skitter_<?php echo $linha[0];?>" size="50" value="<?php echo get_option('wp_skitter_'.$linha[0]); ?>" /> 944 962 <?php 945 963 … … 951 969 952 970 <tr valign="top" style="background-color:#eee;border-bottom:1px solid #ccc;"> 953 <td scope="row" style="padding-left:20px;">Default: <strong><? =$linha[2];?></strong></td>954 <td>Example: <strong><? =$linha[3];?></strong></td>971 <td scope="row" style="padding-left:20px;">Default: <strong><?php echo $linha[2];?></strong></td> 972 <td>Example: <strong><?php echo $linha[3];?></strong></td> 955 973 </tr> 956 974 … … 970 988 </div> 971 989 972 <?php } ?> 990 <?php 991 992 } 993 994 /** 995 * Shortcode 996 */ 997 function skitter_shortcode( $atts ) 998 { 999 return show_skitter( $atts ); 1000 } 1001 add_shortcode( 'skitter', 'skitter_shortcode' ); 1002 1003 ?>
Note: See TracChangeset
for help on using the changeset viewer.