Plugin Directory

Changeset 1027616


Ignore:
Timestamp:
11/18/2014 12:17:15 AM (11 years ago)
Author:
ethanhackett
Message:

Fix Admin Settings

Location:
post-slides
Files:
22 added
3 edited

Legend:

Unmodified
Added
Removed
  • post-slides/trunk/inc/post-slides-backend.php

    r1026979 r1027616  
    104104        $margin = "15";
    105105    }
    106     $stagePadding = get_option('stagePadding');
    107     if(empty($stagePadding)){
    108         $stagePadding = "0";
     106    $stage_padding = get_option('stage_padding');
     107    if(empty($stage_padding)){
     108        $stage_padding = "0";
    109109    }
    110110    $nav = get_option('nav');
     
    120120        $autoplay = "false";
    121121    }
    122     $autoplayTimeout = get_option('autoplayTimeout');
    123     if(empty($autoplayTimeout)){
    124         $autoplayTimeout = "5000";
    125     }
    126     $autoplayHoverPause = get_option('autoplayHoverPause');
    127     if(empty($autoplayHoverPause)){
    128         $autoplayHoverPause = "false";
     122    $autoplay_timeout = get_option('autoplay_timeout');
     123    if(empty($autoplay_timeout)){
     124        $autoplay_timeout = "5000";
     125    }
     126    $autoplay_hover_pause = get_option('autoplay_hover_pause');
     127    if(empty($autoplay_hover_pause)){
     128        $autoplay_hover_pause = "false";
    129129    }
    130130    ?>
     
    276276                    </td>
    277277                    <td>
    278                         <input type="text" name="stagePadding" value="<?= $stagePadding; ?>" class='small-input'><span class="px">px</span>
     278                        <input type="text" name="stage_padding" value="<?= $stage_padding; ?>" class='small-input'><span class="px">px</span>
    279279                    </td>
    280280                </tr>
     
    338338                    <td>Autoplay Timeout:</td>
    339339                    <td>
    340                         <input type="text" name="autoplayTimeout" value="<?= $autoplayTimeout; ?>" class='small-input'>
     340                        <input type="text" name="autoplay_timeout" value="<?= $autoplay_timeout; ?>" class='small-input'>
    341341                    </td>
    342342                </tr>
     
    344344                    <td>Autoplay Hover Pause:</td>
    345345                    <td>
    346                         <input type="radio" name="autoplayHoverPause" value="true" <?php if($autoplayHoverPause == 'true') echo 'checked="checked"'; ?>>true
    347                         <input type="radio" name="autoplayHoverPause" value="false" <?php if($autoplayHoverPause == 'false') echo 'checked="checked"'; ?>>false
     346                        <input type="radio" name="autoplay_hover_pause" value="true" <?php if($autoplay_hover_pause == 'true') echo 'checked="checked"'; ?>>true
     347                        <input type="radio" name="autoplay_hover_pause" value="false" <?php if($autoplay_hover_pause == 'false') echo 'checked="checked"'; ?>>false
    348348                    </td>
    349349                </tr>
  • post-slides/trunk/skins/default.php

    r1026979 r1027616  
    2323        $GLOBALS['global_skin_attrs_default']['center']
    2424        $GLOBALS['global_skin_attrs_default']['margin']
    25         $GLOBALS['global_skin_attrs_default']['stage_padding']
    2625        $GLOBALS['global_skin_attrs_default']['nav']
    2726        $GLOBALS['global_skin_attrs_default']['dots']
     
    5857                array_splice($words, $GLOBALS['global_skin_attrs_default']['excerpt_length']);
    5958                $temp_excerpt = implode(' ', $words);
    60                 $temp_excerpt .= $GLOBALS['global_skin_attrs_default']['excerpt_length'];
     59                $temp_excerpt .= $GLOBALS['global_skin_attrs_default']['excerpt_tail'];
    6160            }
    6261
  • post-slides/trunk/skins/single.php

    r1026979 r1027616  
    99
    1010        // Get the global variable name
    11 
    12 
    1311
    1412        /* ----------------------------------
     
    2725        $GLOBALS['global_skin_attrs_single']['center']
    2826        $GLOBALS['global_skin_attrs_single']['margin']
    29         $GLOBALS['global_skin_attrs_single']['stage_padding']
    3027        $GLOBALS['global_skin_attrs_single']['nav']
    3128        $GLOBALS['global_skin_attrs_single']['dots']
     
    6259                array_splice($words, $GLOBALS['global_skin_attrs_single']['excerpt_length']);
    6360                $temp_excerpt = implode(' ', $words);
    64                 $temp_excerpt .= $GLOBALS['global_skin_attrs_single']['excerpt_length'];
     61                $temp_excerpt .= $GLOBALS['global_skin_attrs_single']['excerpt_tail'];
    6562            }
    6663
Note: See TracChangeset for help on using the changeset viewer.