Plugin Directory

Changeset 623876


Ignore:
Timestamp:
11/12/2012 04:26:04 AM (13 years ago)
Author:
joychao.cc
Message:

横向增加百分比支持

Location:
wp-auto-top/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-auto-top/trunk/readme.txt

    r623100 r623876  
    55Requires at least: 3.3
    66Tested up to: 3.4.2
    7 Stable tag: 2.83
     7Stable tag: 2.84
    88
    99
  • wp-auto-top/trunk/wp-auto-top.js

    r623094 r623876  
    33 * Plugin URI: http://www.joychao.cc/854.html
    44 * Description: 博客侧边滑动,返回顶部,查看评论的小工具,A little tool for back to top and view the comments.
    5  * Version: 2.83
     5 * Version: 2.84
    66 * Author: Joy chao
    77 * Author URI: http://www.joychao.cc
  • wp-auto-top/trunk/wp-auto-top.php

    r623100 r623876  
    44 * Plugin URI: http://www.joychao.cc/854.html
    55 * Description: 博客侧边滑动,返回顶部,查看评论的小工具,A little tool for back to top and view the comments.
    6  * Version: 2.83
     6 * Version: 2.84
    77 * Author: Joy chao
    88 * Author URI: http://www.joychao.cc
     
    1717    'autotop_position'        => 'left',
    1818    'autotop_margin'          => '540',
     19    'autotop_margin_unit'     => 'px',
    1920    'autotop_zindex'          => '9999',
    2021    'autotop_top_val'         => '45',
     
    103104                </tr>
    104105                <tr>
    105                     <td>显示位置</td><td><select name="autotop_position" style="width:100px;" ><option value="left"<?php if($autotop_position == 'left') echo 'selected="selected"';?>>左</option><option value="right" <?php if($autotop_position == 'right') echo 'selected="selected"';?>>右</option></select> 相对网页正中间线距离:<input type="number" name="autotop_margin"  style="width:60px;" value="<?php echo $autotop_margin;?>" />(单位:像素px), 距离顶部:<input type="number" style="width:60px;" name="autotop_top_val" value="<?php echo $autotop_top_val; ?>" />单位:<select name="autotop_top_unit"><option value="px" <?php if($autotop_top_unit == 'px') echo 'selected'; ?>>px</option><option value="%" <?php if($autotop_top_unit == '%') echo 'selected'; ?>>%</option></select></td>
     106                    <td>显示位置</td><td><select name="autotop_position" style="width:100px;" ><option value="left"<?php if($autotop_position == 'left') echo 'selected="selected"';?>>左</option><option value="right" <?php if($autotop_position == 'right') echo 'selected="selected"';?>>右</option></select> 相对网页正中间线距离:<input type="number" name="autotop_margin"  style="width:60px;" value="<?php echo $autotop_margin;?>" />单位:<select name="autotop_margin_unit"><option value="px" <?php if($autotop_margin_unit == 'px') echo 'selected'; ?>>px</option><option value="%" <?php if($autotop_margin_unit == '%') echo 'selected'; ?>>%</option></select>, 距离顶部:<input type="number" style="width:60px;" name="autotop_top_val" value="<?php echo $autotop_top_val; ?>" />单位:<select name="autotop_top_unit"><option value="px" <?php if($autotop_top_unit == 'px') echo 'selected'; ?>>px</option><option value="%" <?php if($autotop_top_unit == '%') echo 'selected'; ?>>%</option></select></td>
    106107                </tr>
    107108                <tr>
     
    200201   wp_enqueue_script('wp-auto-top',plugins_url('wp-auto-top.js',__FILE__),array('jquery'));
    201202   echo '<style>
    202 #autotopshangxia{position:fixed;top:'.get_option('autotop_top_val').get_option('autotop_top_unit').';'.get_option('autotop_position').':50%;display:block;margin-'.get_option('autotop_position').':-'.get_option('autotop_margin').'px; z-index:'.get_option('autotop_zindex').';}#autotopshang,#autotopcomt,#autotopxia{background:url('.plugins_url('img/',__FILE__).get_option('autotop_color_img').') no-repeat;position:relative;cursor:pointer;height:25px;width:29px;margin:10px 0 0;}#autotopcomt{background-position:left -30px;height:32px;}#autotopxia{background-position:left -68px;}#autotopcomt:hover{background-position:right -30px;}#autotopshang:hover{background-position:right 0;}#autotopxia:hover{background-position:right -68px ;}
     203#autotopshangxia{position:fixed;top:'.get_option('autotop_top_val').get_option('autotop_top_unit').';'.get_option('autotop_position').':50%;display:block;margin-'.get_option('autotop_position').':-'.get_option('autotop_margin').get_option('autotop_margin_unit').'; z-index:'.get_option('autotop_zindex').';}#autotopshang,#autotopcomt,#autotopxia{background:url('.plugins_url('img/',__FILE__).get_option('autotop_color_img').') no-repeat;position:relative;cursor:pointer;height:25px;width:29px;margin:10px 0 0;}#autotopcomt{background-position:left -30px;height:32px;}#autotopxia{background-position:left -68px;}#autotopcomt:hover{background-position:right -30px;}#autotopshang:hover{background-position:right 0;}#autotopxia:hover{background-position:right -68px ;}
    203204   </style>';
    204205}
Note: See TracChangeset for help on using the changeset viewer.