Changeset 159001
- Timestamp:
- 09/29/2009 04:00:11 PM (17 years ago)
- Location:
- frontpage-slideshow/trunk
- Files:
-
- 2 edited
-
frontpage-slideshow.php (modified) (17 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
frontpage-slideshow/trunk/frontpage-slideshow.php
r158307 r159001 1 1 <?php 2 3 2 /* 4 3 Plugin Name: Frontpage-Slideshow 5 4 Plugin URI: http://www.modulaweb.fr/blog/wp-plugins/frontside-slideshow/en/ 6 5 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.6 6 Version: 0.6.1 8 7 Author: Jean-François VIAL 9 8 Author URI: http://www.modulaweb.fr/ … … 116 115 <script type="text/javascript"> 117 116 /* <![CDATA[ */ 118 var fslast = <? =$fslast?>; // # of last slide (if less than 4)117 var fslast = <?php echo $fslast?>; // # of last slide (if less than 4) 119 118 var fsid = -1; // the current slide 120 119 var fsinterval = 0; // the setInterval var … … 144 143 /* ]]> */ 145 144 </script> 146 <? 145 <?php 147 146 } 148 147 } … … 160 159 <style type="text/css"> 161 160 #fs-text { 162 filter: alpha(opacity=<? =str_replace('%','',$options['values']['fs_text_opacity'])?>);161 filter: alpha(opacity=<?php echo str_replace('%','',$options['values']['fs_text_opacity'])?>); 163 162 } 164 163 </style> … … 167 166 <style type="text/css"> 168 167 #fs-main { 169 width: <? =$options['values']['fs_main_width']?>;170 height: <? =$options['values']['fs_main_height']?>;171 border: 1px solid <? =$options['values']['fs_main_border_color']?>;168 width: <?php echo $options['values']['fs_main_width']?>; 169 height: <?php echo $options['values']['fs_main_height']?>; 170 border: 1px solid <?php echo $options['values']['fs_main_border_color']?>; 172 171 -moz-border-radius: 5px; 173 172 -khtml-border-radius: 5px; … … 175 174 border-radius: 5px; 176 175 overflow: hidden; 177 background-color: <? =$options['values']['fs_main_color']?>;178 color: <? =$options['values']['fs_font_color']?>;176 background-color: <?php echo $options['values']['fs_main_color']?>; 177 color: <?php echo $options['values']['fs_font_color']?>; 179 178 font-family: Verdana, Sans, Helvetica, Arial, sans-serif!important; 180 179 } 181 180 #fs-slide { 182 float: <? if ($options['values']['fs_buttons_position']=='right') echo 'left'; else echo 'right'; ?>;183 width: <? if ($options['values']['fs_show_buttons']) echo $options['values']['fs_slide_width']; else echo '100%'; ?>;181 float: <?php if ($options['values']['fs_buttons_position']=='right') echo 'left'; else echo 'right'; ?>; 182 width: <?php if ($options['values']['fs_show_buttons']) echo $options['values']['fs_slide_width']; else echo '100%'; ?>; 184 183 height: 100%; 185 184 -moz-border-radius: 5px; … … 193 192 background-position: center center; 194 193 background-repeat: no-repeat; 195 background-image: url(<? (is_ssl()) ? $url = str_replace('http://','https://',get_bloginfo('url')) : $url = str_replace('https://','http://',get_bloginfo('url')); echo $url ?>/wp-content/plugins/frontpage-slideshow/images/loading_black.gif);194 background-image: url(<?php (is_ssl()) ? $url = str_replace('http://','https://',get_bloginfo('url')) : $url = str_replace('https://','http://',get_bloginfo('url')); echo $url ?>/wp-content/plugins/frontpage-slideshow/images/loading_black.gif); 196 195 -moz-border-radius: 5px; 197 196 -khtml-border-radius: 5px; … … 200 199 } 201 200 #fs-placeholder { 202 height: <? =$options['values']['fs_placeholder_height']?>;201 height: <?php echo $options['values']['fs_placeholder_height']?>; 203 202 } 204 203 #fs-placeholder a { … … 212 211 } 213 212 #fs-text { 214 opacity: <? echo intval(str_replace('%','',$options['values']['fs_text_opacity'])) / 100; ?>;215 background-color: <? =$options['values']['fs_text_bgcolor']?>;213 opacity: <?php echo intval(str_replace('%','',$options['values']['fs_text_opacity'])) / 100; ?>; 214 background-color: <?php echo $options['values']['fs_text_bgcolor']?>; 216 215 /*margin-top: 10px;*/ 217 216 padding: 10px; … … 253 252 #fs-main ul { 254 253 display: block; 255 float: <? =$options['values']['fs_buttons_position']?>!important;254 float: <?php echo $options['values']['fs_buttons_position']?>!important; 256 255 clear: none!important; 257 256 … … 259 258 padding: 0!important; 260 259 261 width: <? =$options['values']['fs_buttons_width']?>!important;260 width: <?php echo $options['values']['fs_buttons_width']?>!important; 262 261 height: 100%; 263 262 … … 293 292 294 293 .fs-entry { 295 background-color: <? =$options['values']['fs_button_normal_color']?>!important;294 background-color: <?php echo $options['values']['fs_button_normal_color']?>!important; 296 295 margin: 0; 297 296 overflow: hidden; 298 297 } 299 298 .fs-entry:hover { 300 background-color: <? =$options['values']['fs_button_hover_color']?>!important;299 background-color: <?php echo $options['values']['fs_button_hover_color']?>!important; 301 300 } 302 301 .fs-current { 303 background-color: <? =$options['values']['fs_button_current_color']?>!important;302 background-color: <?php echo $options['values']['fs_button_current_color']?>!important; 304 303 } 305 304 .fs-skip { … … 308 307 } 309 308 </style> 310 <? 309 <?php 311 310 } 312 311 } … … 589 588 <div class="wrap"> 590 589 <div id="icon-plugins" class="icon32"><br/></div> 591 <h2>Frontpage Slideshow – <? _e('Option page','frontpage-slideshow')?></h2>592 <? if ($message!='') { ?>593 <div id="message" class="updated"><? =$message?></div>594 <? } ?>590 <h2>Frontpage Slideshow – <?php _e('Option page','frontpage-slideshow')?></h2> 591 <?php if ($message!='') { ?> 592 <div id="message" class="updated"><?php echo $message?></div> 593 <?php } ?> 595 594 <div id="poststuff" class="meta-box-sortables"> 596 595 <div class="postbox"> 597 <h3><span><? _e('Preview')?></span></h3>598 <div class="inside" style="padding: 5px;"> 599 <? 596 <h3><span><?php _e('Preview')?></span></h3> 597 <div class="inside" style="padding: 5px;"> 598 <?php 600 599 frontpageSlideshow_header(true,$options); 601 600 echo frontpageSlideshow('',true,$options); 602 601 ?> 603 <p><strong><? _e('Important: ','frontpage-slideshow')?></strong> <?_e('the slideshow may appear differently here and on your site due to the stylesheet of your theme.','frontpage-slideshow')?></p>602 <p><strong><?php _e('Important: ','frontpage-slideshow')?></strong> <?php _e('the slideshow may appear differently here and on your site due to the stylesheet of your theme.','frontpage-slideshow')?></p> 604 603 </div> 605 604 </div> 606 605 <form method="post"> 607 <div class="postbox<? if ($options['values']['fs_is_activated']) echo ' closed' ?>">608 <h3><span><? if ($options['values']['fs_is_activated']) _e('Disable the plugin','frontpage-slideshow'); else _e('Enable the plugin','frontpage-slideshow');?></span></h3>609 <div class="inside" style="padding: 5px;"> 610 <p><? 606 <div class="postbox<?php if ($options['values']['fs_is_activated']) echo ' closed' ?>"> 607 <h3><span><?php if ($options['values']['fs_is_activated']) _e('Disable the plugin','frontpage-slideshow'); else _e('Enable the plugin','frontpage-slideshow');?></span></h3> 608 <div class="inside" style="padding: 5px;"> 609 <p><?php 611 610 if ($options['values']['fs_is_activated']) { 612 ?><label for="fs_disable"><? 611 ?><label for="fs_disable"><?php 613 612 _e('The plugin is currently ENABLED : you can use the following button to disable it.','frontpage-slideshow')?> 614 <input type="submit" class="button-primary" id="fs_disable" name="fs_disable" size="2" maxlength="2" value="<? _e('Disable the plugin','frontpage-slideshow')?>" />615 <? 613 <input type="submit" class="button-primary" id="fs_disable" name="fs_disable" size="2" maxlength="2" value="<?php _e('Disable the plugin','frontpage-slideshow')?>" /> 614 <?php 616 615 } else { 617 ?><label for="fs_enable"><? 616 ?><label for="fs_enable"><?php 618 617 _e('The plugin is currently DISABLED : you can use the following button to enable it.','frontpage-slideshow')?> 619 <input type="submit" class="button-primary" id="fs_enable" name="fs_enable" size="2" maxlength="2" value="<? _e('Enable the plugin now !!','frontpage-slideshow')?>" />620 <? 618 <input type="submit" class="button-primary" id="fs_enable" name="fs_enable" size="2" maxlength="2" value="<?php _e('Enable the plugin now !!','frontpage-slideshow')?>" /> 619 <?php 621 620 } 622 621 ?> … … 626 625 <div class="postbox closed"> 627 626 <div class="handlediv" title="Cliquez pour ouvrir/fermer"><br /></div> 628 <h3><span><? _e('About inserting the slideshow','frontpage-slideshow')?></span></h3>629 <div class="inside" style="padding: 5px;"> 630 <p><? _e('Where to insert the slideshow ?','frontpage-slideshow')?></p><?echo $options['values']['fs_insert']; ?>627 <h3><span><?php _e('About inserting the slideshow','frontpage-slideshow')?></span></h3> 628 <div class="inside" style="padding: 5px;"> 629 <p><?php _e('Where to insert the slideshow ?','frontpage-slideshow')?></p><?php echo $options['values']['fs_insert']; ?> 631 630 <ul style="list-style: none"> 632 <li><label for="fs_insert_1"><input type="radio" id="fs_insert_1" name="fs_insert" value="frontpage"<? if ($options['values']['fs_insert']=='frontpage') echo ' checked="checked"'; ?> /> <?_e('On front-page','frontpage-slideshow')?></label><br />633 <label for="fs_insert_shortcode"> → <? _e('The slideshow will appear only on the front page when it has been configured to display a static-page only.','frontpage-slideshow')?>631 <li><label for="fs_insert_1"><input type="radio" id="fs_insert_1" name="fs_insert" value="frontpage"<?php if ($options['values']['fs_insert']=='frontpage') echo ' checked="checked"'; ?> /> <?php _e('On front-page','frontpage-slideshow')?></label><br /> 632 <label for="fs_insert_shortcode"> → <?php _e('The slideshow will appear only on the front page when it has been configured to display a static-page only.','frontpage-slideshow')?> 634 633 </li> 635 <li><label for="fs_insert_2"><input type="radio" id="fs_insert_2" name="fs_insert" value="shortcode"<? if ($options['values']['fs_insert']=='shortcode') echo ' checked="checked"'; ?> /> <?_e('Everywhere on content post (using the dedicated shortcode)','frontpage-slideshow')?></label><br />636 <label for="fs_insert_shortcode"> → <? _e('Shortcode','frontpage-slideshow')?> : <input id="fs_shortcode" name="fs_shortcode" value="<?=$options['values']['fs_shortcode']?>" /></label>634 <li><label for="fs_insert_2"><input type="radio" id="fs_insert_2" name="fs_insert" value="shortcode"<?php if ($options['values']['fs_insert']=='shortcode') echo ' checked="checked"'; ?> /> <?php _e('Everywhere on content post (using the dedicated shortcode)','frontpage-slideshow')?></label><br /> 635 <label for="fs_insert_shortcode"> → <?php _e('Shortcode','frontpage-slideshow')?> : <input id="fs_shortcode" name="fs_shortcode" value="<?php echo $options['values']['fs_shortcode']?>" /></label> 637 636 </li> 638 637 </ul> 639 <p><? _e('The default shortcode is [FrontpageSlideshow]. By using the shortcode, you will be able to pass some directives to the slideshow directly from the shortcode in order to override the current slideshow options.','frontpage-slideshow')?></p>640 <p><? _e('The accepted chars are a to z 0 to 9 - (minus) and _ (underscore). ','frontpage-slideshow')?></p>641 <p><? _e('You can use the shortcode as an enclosing one : you can put replacement content in case of the slideshow cannot be shown (if it has already been added earlier in the document flow) or is not activated. ','frontpage-slideshow')?></p>642 <p><? _e('When using shortcode, you can use other shortcodes into the replacement content : they will be parsed well, so that you can use another plugin (a gallery for example) to show some content','frontpage-slideshow')?></p>643 <p><? _e('Note that only one slideshow can be displayed at this time, if you need to display more than one slideshow, contact the author.','frontpage-slideshow')?></p>638 <p><?php _e('The default shortcode is [FrontpageSlideshow]. By using the shortcode, you will be able to pass some directives to the slideshow directly from the shortcode in order to override the current slideshow options.','frontpage-slideshow')?></p> 639 <p><?php _e('The accepted chars are a to z 0 to 9 - (minus) and _ (underscore). ','frontpage-slideshow')?></p> 640 <p><?php _e('You can use the shortcode as an enclosing one : you can put replacement content in case of the slideshow cannot be shown (if it has already been added earlier in the document flow) or is not activated. ','frontpage-slideshow')?></p> 641 <p><?php _e('When using shortcode, you can use other shortcodes into the replacement content : they will be parsed well, so that you can use another plugin (a gallery for example) to show some content','frontpage-slideshow')?></p> 642 <p><?php _e('Note that only one slideshow can be displayed at this time, if you need to display more than one slideshow, contact the author.','frontpage-slideshow')?></p> 644 643 </div> 645 644 </div> 646 645 <div class="postbox closed"> 647 646 <div class="handlediv" title="Cliquez pour ouvrir/fermer"><br /></div> 648 <h3><span><? _e('About categories','frontpage-slideshow')?></span></h3>649 <div class="inside" style="padding: 5px;"> 650 <p><? _e('Frontpage Slideshow will look for posts to display as slides into these categories : ','frontpage-slideshow')?></p>647 <h3><span><?php _e('About categories','frontpage-slideshow')?></span></h3> 648 <div class="inside" style="padding: 5px;"> 649 <p><?php _e('Frontpage Slideshow will look for posts to display as slides into these categories : ','frontpage-slideshow')?></p> 651 650 <ul style="list-style: none"> 652 <? 651 <?php 653 652 $cats = get_categories('hide_empty=0&depth=1'); 654 653 $count=1; … … 664 663 ?> 665 664 </ul> 666 <p><input type="submit" name="fs_preview" class="button-primary" value="<? _e('Preview'); ?>" /></p>665 <p><input type="submit" name="fs_preview" class="button-primary" value="<?php _e('Preview'); ?>" /></p> 667 666 </div> 668 667 </div> 669 668 <div class="postbox closed"> 670 <h3><span><? _e('About slides and buttons','frontpage-slideshow')?></span></h3>671 <div class="inside" style="padding: 5px;"> 672 <p><label for="fs_slides"><? _e('How many slides to show ?','frontpage-slideshow')?> <input type="text" id="fs_slides" name="fs_slides" size="2" maxlength="2" value="<?=$options['values']['fs_slides']?>" /></label></p>669 <h3><span><?php _e('About slides and buttons','frontpage-slideshow')?></span></h3> 670 <div class="inside" style="padding: 5px;"> 671 <p><label for="fs_slides"><?php _e('How many slides to show ?','frontpage-slideshow')?> <input type="text" id="fs_slides" name="fs_slides" size="2" maxlength="2" value="<?php echo $options['values']['fs_slides']?>" /></label></p> 673 672 <p><label for="fs_show_buttons"><select id="fs_show_buttons" name="fs_show_buttons"> 674 <option value="1"<? if ($options['values']['fs_show_buttons']) echo ' selected="selected"'?>><?_e('Show buttons','frontpage-slideshow'); ?></option>675 <option value="0"<? if (!$options['values']['fs_show_buttons']) echo ' selected="selected"'?>><?_e('Hide buttons','frontpage-slideshow'); ?></option>673 <option value="1"<?php if ($options['values']['fs_show_buttons']) echo ' selected="selected"'?>><?php _e('Show buttons','frontpage-slideshow'); ?></option> 674 <option value="0"<?php if (!$options['values']['fs_show_buttons']) echo ' selected="selected"'?>><?php _e('Hide buttons','frontpage-slideshow'); ?></option> 676 675 </select></p> 677 <p><input type="submit" name="fs_preview" class="button-primary" value="<? _e('Preview'); ?>" /></p>676 <p><input type="submit" name="fs_preview" class="button-primary" value="<?php _e('Preview'); ?>" /></p> 678 677 </div> 679 678 </div> 680 679 <div class="postbox closed"> 681 <h3><span><? _e('About default link','frontpage-slideshow')?></span></h3>680 <h3><span><?php _e('About default link','frontpage-slideshow')?></span></h3> 682 681 <div class="inside" style="padding: 5px;"> 683 682 <p><label for="fs_default_link_to_page_link"><select id="fs_default_link_to_page_link" name="fs_default_link_to_page_link"> 684 <option value="0"<? if ($options['values']['fs_default_link_to_page_link']) echo ' selected="selected"'?>><?_e('If no link is specidied : dont use the slide URL','frontpage-slideshow'); ?></option>685 <option value="1"<? if (!$options['values']['fs_default_link_to_page_link']) echo ' selected="selected"'?>><?_e('If no link is specidied : use the slide URL','frontpage-slideshow'); ?></option>683 <option value="0"<?php if ($options['values']['fs_default_link_to_page_link']) echo ' selected="selected"'?>><?php _e('If no link is specidied : dont use the slide URL','frontpage-slideshow'); ?></option> 684 <option value="1"<?php if (!$options['values']['fs_default_link_to_page_link']) echo ' selected="selected"'?>><?php _e('If no link is specidied : use the slide URL','frontpage-slideshow'); ?></option> 686 685 </select></p> 687 <p><input type="submit" name="fs_preview" class="button-primary" value="<? _e('Preview'); ?>" /></p>686 <p><input type="submit" name="fs_preview" class="button-primary" value="<?php _e('Preview'); ?>" /></p> 688 687 </div> 689 688 </div> 690 689 <div class="postbox closed"> 691 <h3><span><? _e('About sizes and positions','frontpage-slideshow')?></span></h3>692 <div class="inside" style="padding: 5px;"> 693 <p><label for="fs_main_width"><? _e('Slideshow width :','frontpage-slideshow')?> <input type="text" id="fs_main_width" name="fs_main_width" size="5" value="<?=$options['values']['fs_main_width']?>" /></label></p>694 <p><label for="fs_main_height"><? _e('Slideshow height :','frontpage-slideshow')?> <input type="text" id="fs_main_height" name="fs_main_height" size="5" value="<?=$options['values']['fs_main_height']?>" /></label></p>695 <p><label for="fs_slide_width"><? _e('Image width :','frontpage-slideshow')?> <input type="text" id="fs_slide_width" name="fs_slide_width" size="5" value="<?=$options['values']['fs_slide_width']?>" /></label></p>696 <p><label for="fs_buttons_width"><? _e('Buttons width :','frontpage-slideshow')?> <input type="text" id="fs_buttons_width" name="fs_buttons_width" size="5" value="<?=$options['values']['fs_buttons_width']?>" /></label></p>697 <p><label for="fs_placeholder_height"><? _e('Main text top :','frontpage-slideshow')?> <input type="text" id="fs_placeholder_height" name="fs_placeholder_height" size="5" value="<?=$options['values']['fs_placeholder_height']?>" /></label></p>698 <p><label for="fs_buttons_position"><? _e('Buttons position :','frontpage-slideshow')?> <select id="fs_buttons_position" name="fs_buttons_position">699 <option value="right"<? if ($options['values']['fs_buttons_position']=='right') echo ' selected="selected"';?>><?_e('right','frontpage-slideshow') ?></option>700 <option value="left"<? if ($options['values']['fs_buttons_position']=='left') echo ' selected="selected"';?>><?_e('left','frontpage-slideshow') ?></option>690 <h3><span><?php _e('About sizes and positions','frontpage-slideshow')?></span></h3> 691 <div class="inside" style="padding: 5px;"> 692 <p><label for="fs_main_width"><?php _e('Slideshow width :','frontpage-slideshow')?> <input type="text" id="fs_main_width" name="fs_main_width" size="5" value="<?php echo $options['values']['fs_main_width']?>" /></label></p> 693 <p><label for="fs_main_height"><?php _e('Slideshow height :','frontpage-slideshow')?> <input type="text" id="fs_main_height" name="fs_main_height" size="5" value="<?php echo $options['values']['fs_main_height']?>" /></label></p> 694 <p><label for="fs_slide_width"><?php _e('Image width :','frontpage-slideshow')?> <input type="text" id="fs_slide_width" name="fs_slide_width" size="5" value="<?php echo $options['values']['fs_slide_width']?>" /></label></p> 695 <p><label for="fs_buttons_width"><?php _e('Buttons width :','frontpage-slideshow')?> <input type="text" id="fs_buttons_width" name="fs_buttons_width" size="5" value="<?php echo $options['values']['fs_buttons_width']?>" /></label></p> 696 <p><label for="fs_placeholder_height"><?php _e('Main text top :','frontpage-slideshow')?> <input type="text" id="fs_placeholder_height" name="fs_placeholder_height" size="5" value="<?php echo $options['values']['fs_placeholder_height']?>" /></label></p> 697 <p><label for="fs_buttons_position"><?php _e('Buttons position :','frontpage-slideshow')?> <select id="fs_buttons_position" name="fs_buttons_position"> 698 <option value="right"<?php if ($options['values']['fs_buttons_position']=='right') echo ' selected="selected"';?>><?php _e('right','frontpage-slideshow') ?></option> 699 <option value="left"<?php if ($options['values']['fs_buttons_position']=='left') echo ' selected="selected"';?>><?php _e('left','frontpage-slideshow') ?></option> 701 700 </select></label></p> 702 <p><input type="submit" name="fs_preview" class="button-primary" value="<? _e('Preview'); ?>" /></p>701 <p><input type="submit" name="fs_preview" class="button-primary" value="<?php _e('Preview'); ?>" /></p> 703 702 </div> 704 703 </div> 705 704 <div class="postbox closed"> 706 <h3><span><? _e('About colors and opacities','frontpage-slideshow')?></span></h3>707 <div class="inside" style="padding: 5px;"> 708 <p><label for="fs_main_color"><? _e('Slideshow background color','frontpage-slideshow')?> <input type="text" id="fs_main_color" name="fs_main_color" size="15" value="<?=$options['values']['fs_main_color']?>" /></label></p>709 <p><label for="fs_main_border_color"><? _e('Slideshow border color','frontpage-slideshow')?> <input type="text" id="fs_main_border_color" name="fs_main_border_color" size="15" value="<?=$options['values']['fs_main_border_color']?>" /></label></p>710 <p><label for="fs_font_color"><? _e('Font color','frontpage-slideshow')?> <input type="text" id="fs_font_color" name="fs_font_color" size="15" value="<?=$options['values']['fs_font_color']?>" /></label></p>711 <p><label for="fs_button_normal_color"><? _e('Buttons\' color (normal state)','frontpage-slideshow')?> <input type="text" id="fs_button_normal_color" name="fs_button_normal_color" size="15" value="<?=$options['values']['fs_button_normal_color']?>" /></label></p>712 <p><label for="fs_button_hover_color"><? _e('Buttons\' color (hover)','frontpage-slideshow')?> <input type="text" id="fs_button_hover_color" name="fs_button_hover_color" size="15" value="<?=$options['values']['fs_button_hover_color']?>" /></label></p>713 <p><label for="fs_button_current_color"><? _e('Buttons\' color (current)','frontpage-slideshow')?> <input type="text" id="fs_button_current_color" name="fs_button_current_color" size="15" value="<?=$options['values']['fs_button_current_color']?>" /></label></p>714 <p><label for="fs_text_bgcolor"><? _e('Main text background color','frontpage-slideshow')?> <input type="text" id="fs_text_bgcolor" name="fs_text_bgcolor" size="15" value="<?=$options['values']['fs_text_bgcolor']?>" /></label></p>715 <p><label for="fs_text_opacity"><? _e('Main text opacity','frontpage-slideshow')?> <input type="text" id="fs_text_opacity" name="fs_text_opacity" size="15" value="<?=$options['values']['fs_text_opacity']?>" /></label></p>716 <p><input type="submit" name="fs_preview" class="button-primary" value="<? _e('Preview'); ?>" /></p>705 <h3><span><?php _e('About colors and opacities','frontpage-slideshow')?></span></h3> 706 <div class="inside" style="padding: 5px;"> 707 <p><label for="fs_main_color"><?php _e('Slideshow background color','frontpage-slideshow')?> <input type="text" id="fs_main_color" name="fs_main_color" size="15" value="<?php echo $options['values']['fs_main_color']?>" /></label></p> 708 <p><label for="fs_main_border_color"><?php _e('Slideshow border color','frontpage-slideshow')?> <input type="text" id="fs_main_border_color" name="fs_main_border_color" size="15" value="<?php echo $options['values']['fs_main_border_color']?>" /></label></p> 709 <p><label for="fs_font_color"><?php _e('Font color','frontpage-slideshow')?> <input type="text" id="fs_font_color" name="fs_font_color" size="15" value="<?php echo $options['values']['fs_font_color']?>" /></label></p> 710 <p><label for="fs_button_normal_color"><?php _e('Buttons\' color (normal state)','frontpage-slideshow')?> <input type="text" id="fs_button_normal_color" name="fs_button_normal_color" size="15" value="<?php echo $options['values']['fs_button_normal_color']?>" /></label></p> 711 <p><label for="fs_button_hover_color"><?php _e('Buttons\' color (hover)','frontpage-slideshow')?> <input type="text" id="fs_button_hover_color" name="fs_button_hover_color" size="15" value="<?php echo $options['values']['fs_button_hover_color']?>" /></label></p> 712 <p><label for="fs_button_current_color"><?php _e('Buttons\' color (current)','frontpage-slideshow')?> <input type="text" id="fs_button_current_color" name="fs_button_current_color" size="15" value="<?php echo $options['values']['fs_button_current_color']?>" /></label></p> 713 <p><label for="fs_text_bgcolor"><?php _e('Main text background color','frontpage-slideshow')?> <input type="text" id="fs_text_bgcolor" name="fs_text_bgcolor" size="15" value="<?php echo $options['values']['fs_text_bgcolor']?>" /></label></p> 714 <p><label for="fs_text_opacity"><?php _e('Main text opacity','frontpage-slideshow')?> <input type="text" id="fs_text_opacity" name="fs_text_opacity" size="15" value="<?php echo $options['values']['fs_text_opacity']?>" /></label></p> 715 <p><input type="submit" name="fs_preview" class="button-primary" value="<?php _e('Preview'); ?>" /></p> 717 716 </div> 718 717 </div> 719 718 <div class="postbox closed"> 720 <h3><span><? _e('Reset preview or plugin','frontpage-slideshow')?></span></h3>721 <div class="inside" style="padding: 5px;"> 722 <p><label for="fs_reset_preview"><? _e('Use this button to reset the preview to the actual active configuration.','frontpage-slideshow')?> <input type="submit" id="fs_reset_preview" name="fs_reset_preview" class="button-primary" value="<?_e('Reset preview','frontpage-slideshow'); ?>" /></label></p>723 <p><label for="fs_reset"><? _e('Use this button to reset the plugin to its default configuration.','frontpage-slideshow')?> <input type="submit" id="fs_reset" name="fs_reset" class="button-primary" value="<? _e('Reset the plugin','frontpage-slideshow'); ?>" onclick="if(!confirm('<?_e('There will be no way back !!!','frontpage-slideshow')?>')) return false;" onkeypress="if(!confirm('<?_e('There will be no way back !!!','frontpage-slideshow')?>')) return false;" /></label></p>724 </div> 725 </div> 726 <p><label for="fs_submit"><? _e('When you are satified by the settings, you can press this button :','frontpage-slideshow')?>727 <input type="submit" id="fs_submit" name="fs_submit" class="button-primary" value="<? _e('Save the settings and apply them immediately','frontpage-slideshow'); ?>" onclick="if(!confirm('<?_e('The changes will be seen immediately !','frontpage-slideshow')?>')) return false;" onkeypress="if(!confirm('<?_e('The changes will be seen immediately !','frontpage-slideshow')?>')) return false;" /></label></p>719 <h3><span><?php _e('Reset preview or plugin','frontpage-slideshow')?></span></h3> 720 <div class="inside" style="padding: 5px;"> 721 <p><label for="fs_reset_preview"><?php _e('Use this button to reset the preview to the actual active configuration.','frontpage-slideshow')?> <input type="submit" id="fs_reset_preview" name="fs_reset_preview" class="button-primary" value="<?php _e('Reset preview','frontpage-slideshow'); ?>" /></label></p> 722 <p><label for="fs_reset"><?php _e('Use this button to reset the plugin to its default configuration.','frontpage-slideshow')?> <input type="submit" id="fs_reset" name="fs_reset" class="button-primary" value="<?php _e('Reset the plugin','frontpage-slideshow'); ?>" onclick="if(!confirm('<?php _e('There will be no way back !!!','frontpage-slideshow')?>')) return false;" onkeypress="if(!confirm('<?php _e('There will be no way back !!!','frontpage-slideshow')?>')) return false;" /></label></p> 723 </div> 724 </div> 725 <p><label for="fs_submit"><?php _e('When you are satified by the settings, you can press this button :','frontpage-slideshow')?> 726 <input type="submit" id="fs_submit" name="fs_submit" class="button-primary" value="<?php _e('Save the settings and apply them immediately','frontpage-slideshow'); ?>" onclick="if(!confirm('<?php _e('The changes will be seen immediately !','frontpage-slideshow')?>')) return false;" onkeypress="if(!confirm('<?php _e('The changes will be seen immediately !','frontpage-slideshow')?>')) return false;" /></label></p> 728 727 </div> 729 728 </form> … … 740 739 </script> 741 740 742 <? 741 <?php 743 742 } 744 743 -
frontpage-slideshow/trunk/readme.txt
r158316 r159001 41 41 * v 0.5 : important bug fix when the plugin is loaded before jQuery and some CSS improvement 42 42 * v 0.6 : improving the loading of javascript frameworks needed, the shortcode funtionnality added, alternative picture option added, when no link is set, the URL of the post can be used 43 * v 0.6.1 : minor bug correction (replacing php short tags by long ones 43 44 44 45 == Screenshots ==
Note: See TracChangeset
for help on using the changeset viewer.