Plugin Directory

Changeset 159001


Ignore:
Timestamp:
09/29/2009 04:00:11 PM (17 years ago)
Author:
jeff_
Message:

replacement of short-tags by long ones

Location:
frontpage-slideshow/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • frontpage-slideshow/trunk/frontpage-slideshow.php

    r158307 r159001  
    11<?php
    2 
    32/*
    43Plugin Name: Frontpage-Slideshow
    54Plugin URI: http://www.modulaweb.fr/blog/wp-plugins/frontside-slideshow/en/
    65Description: 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
     6Version: 0.6.1
    87Author: Jean-François VIAL
    98Author URI: http://www.modulaweb.fr/
     
    116115<script type="text/javascript">
    117116/* <![CDATA[ */
    118 var fslast = <?=$fslast?>; // # of last slide (if less than 4)
     117var fslast = <?php echo $fslast?>; // # of last slide (if less than 4)
    119118var fsid = -1; // the current slide
    120119var fsinterval = 0; //  the setInterval var
     
    144143/* ]]> */
    145144</script>
    146 <?
     145<?php
    147146    }
    148147}
     
    160159<style type="text/css">
    161160#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'])?>);
    163162}
    164163</style>
     
    167166<style type="text/css">
    168167#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']?>;
    172171    -moz-border-radius: 5px;
    173172    -khtml-border-radius: 5px;
     
    175174    border-radius: 5px;
    176175    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']?>;
    179178    font-family: Verdana, Sans, Helvetica, Arial, sans-serif!important;
    180179}
    181180#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%'; ?>;
    184183    height: 100%;
    185184    -moz-border-radius: 5px;
     
    193192    background-position: center center;
    194193    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);
    196195    -moz-border-radius: 5px;
    197196    -khtml-border-radius: 5px;
     
    200199}
    201200#fs-placeholder {
    202     height: <?=$options['values']['fs_placeholder_height']?>;
     201    height: <?php echo $options['values']['fs_placeholder_height']?>;
    203202}
    204203#fs-placeholder a {
     
    212211}
    213212#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']?>;
    216215    /*margin-top: 10px;*/
    217216    padding: 10px;
     
    253252#fs-main ul {
    254253    display: block;
    255     float: <?=$options['values']['fs_buttons_position']?>!important;
     254    float: <?php echo $options['values']['fs_buttons_position']?>!important;
    256255    clear: none!important;
    257256
     
    259258    padding: 0!important;
    260259
    261     width: <?=$options['values']['fs_buttons_width']?>!important;
     260    width: <?php echo $options['values']['fs_buttons_width']?>!important;
    262261    height: 100%;
    263262
     
    293292
    294293.fs-entry {
    295     background-color: <?=$options['values']['fs_button_normal_color']?>!important;
     294    background-color: <?php echo $options['values']['fs_button_normal_color']?>!important;
    296295    margin: 0;
    297296    overflow: hidden;
    298297}
    299298.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;
    301300}
    302301.fs-current {
    303     background-color: <?=$options['values']['fs_button_current_color']?>!important;
     302    background-color: <?php echo $options['values']['fs_button_current_color']?>!important;
    304303}
    305304.fs-skip {
     
    308307}
    309308</style>
    310 <?
     309<?php
    311310    }
    312311}
     
    589588    <div class="wrap">
    590589        <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 } ?>
    595594            <div id="poststuff" class="meta-box-sortables">
    596595                <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
    600599                            frontpageSlideshow_header(true,$options);
    601600                            echo frontpageSlideshow('',true,$options);
    602601                        ?>
    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>
    604603                    </div>
    605604                </div>
    606605            <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
    611610                            if ($options['values']['fs_is_activated']) {
    612                         ?><label for="fs_disable"><?
     611                        ?><label for="fs_disable"><?php
    613612                                _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
    616615                            } else {
    617                         ?><label for="fs_enable"><?
     616                        ?><label for="fs_enable"><?php
    618617                                _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
    621620                            }
    622621                        ?>
     
    626625                <div class="postbox closed">
    627626                    <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']; ?>
    631630                        <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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;→ <?_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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;→ <?php _e('The slideshow will appear only on the front page when it has been configured to display a static-page only.','frontpage-slideshow')?>
    634633                            </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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;→ <?_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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;→ <?php _e('Shortcode','frontpage-slideshow')?> : <input id="fs_shortcode" name="fs_shortcode" value="<?php echo $options['values']['fs_shortcode']?>" /></label>
    637636                            </li>
    638637                        </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>
    644643                    </div>
    645644                </div>
    646645                <div class="postbox closed">
    647646                    <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>
    651650                        <ul style="list-style: none">
    652                         <?
     651                        <?php
    653652                            $cats = get_categories('hide_empty=0&depth=1');
    654653                            $count=1;
     
    664663                ?>
    665664                        </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>
    667666                    </div>
    668667                </div>
    669668                <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>
    673672                        <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>
    676675                        </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>
    678677                    </div>
    679678                </div>
    680679                <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>
    682681                    <div class="inside" style="padding: 5px;">
    683682                        <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>
    686685                        </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>
    688687                    </div>
    689688                </div>
    690689                <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>
    701700                        </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>
    703702                    </div>
    704703                </div>
    705704                <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>
    717716                    </div>
    718717                </div>
    719718                <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>
    728727            </div>
    729728        </form>
     
    740739    </script>
    741740
    742     <?
     741    <?php
    743742}
    744743
  • frontpage-slideshow/trunk/readme.txt

    r158316 r159001  
    4141* v 0.5 : important bug fix when the plugin is loaded before jQuery and some CSS improvement
    4242* 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
    4344
    4445== Screenshots ==
Note: See TracChangeset for help on using the changeset viewer.