Plugin Directory

Changeset 2077305


Ignore:
Timestamp:
04/29/2019 07:28:47 PM (7 years ago)
Author:
mkastler
Message:

Minor spelling fixes, tested up to WP v5.1.1, and a correction to the way circles were shown on the admin side.

Location:
sticky-back2top-for-genesis/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sticky-back2top-for-genesis/trunk/js/sb2t-admin.js

    r1474022 r2077305  
    1010}
    1111
     12function showType() {
     13    var typeSelect = document.getElementsByName("sb2t_ptype")[0].value;
     14    var pointerSelect = document.getElementById("sb2t_pointer");
     15
     16    var arrowEnd = Number(6);
     17    var loopEnd = Number(10);
     18    var otherEnd = Number(13);
     19
     20    // disable all options
     21    for (var i=0; i<pointerSelect.length; i++) {
     22        pointerSelect.options[i].hidden = true;
     23    }
     24
     25    //TO DO - Force select of the top option on the new set of select
     26    //TO DO - Add transition smoothing animation
     27   
     28    switch (typeSelect) {
     29        case "arrows":
     30            for(var i=0; i<arrowEnd; i++) {
     31                //show arrows only
     32                pointerSelect.options[i].hidden = false;     
     33            }
     34             break;
     35        case "loops":
     36            for(var i=arrowEnd; i<loopEnd; i++) {
     37                //show loops only
     38                pointerSelect.options[i].hidden = false;     
     39            }
     40            break;
     41        case "other":
     42            for(var i=loopEnd; i<pointerSelect.length; i++) {
     43                //show other options only
     44                pointerSelect.options[i].hidden = false;     
     45            }
     46            break;
     47        default:
     48            for(var i=0; i<pointerSelect.length; i++) {
     49                //show everything
     50                pointerSelect.options[i].hidden = false;     
     51            }
     52    }
     53}
    1254
    1355function getPointer(myArrow){
  • sticky-back2top-for-genesis/trunk/readme.txt

    r2076462 r2077305  
    44Donate link: http://paypal.me/43folders
    55Tags: Genesis, navigation, buttons, arrow, back to top, sticky, scroll, jquery, scrolling, nav, scroller, smooth, vertical scroll
    6 Stable tag: 2.1.0
     6Stable tag: 2.1.1
    77Requires at least: 3.5
    88License: GPLv2 or later
     
    5050== Frequently Asked Questions ==
    5151
    52 = Why is the sticky arrow hidden by my widgets or other page content? =
     52= Q: Why is the sticky arrow hidden by my widgets or other page content? =
    5353
    54 A: the CSS z-index of the sticky arrow is set to 9999, so it should sit on top of everything. If it doesn't, it could be that your widget or other content has a z-index of 9999 also - in that case, set it to 9998 or less.   
     54A: The CSS z-index of the sticky arrow is set to 9999, so it should sit on top of everything. If it doesn't, it could be that your widget or other content has a z-index of 9999 also - in that case, set it to 9998 or less.   
    5555
    56 = Does this work if I'm using a Genesis theme? =
     56= Q: Does this work if I'm using a Genesis theme? =
    5757
    5858A: YES! Not only does it work, but the loading of the sticky arrow is specifically optimized for the Genesis hooks and initialization if you are using a Genesis child theme, meaning faster load times. 
    5959
    60 = I've heard of Genesis before, and it sounds cool - where can I find it? =
     60= Q: I've heard of Genesis before, and it sounds cool - where can I find it? =
    6161
    6262A: If you're interested, you can find out more about Genesis and StudioPress here: http://goo.gl/hE5B7F
     
    6464You can find it here:  http://goo.gl/Qsy1xn
    6565
    66 = I don't have time to mess around with stuff like that, can I just hire you to make a nice site for me? =
     66= Q: I don't have time to mess around with stuff like that, can I just hire you to make a nice site for me? =
    6767
    6868A: Of course! You can either email me directly at michael@43folderstech.net or visit my website and portfolio at http://43folderstech.net Thanks!
    6969
    70 = I've already got Genesis, don't need to hire you for anything, but I do stil want to show some appreciation for doing this. What do you suggest? =
     70= Q: I've already got Genesis, don't need to hire you for anything, but I do stil want to show some appreciation for doing this. What do you suggest? =
    7171
    7272A: Can I tell you I love you?  Not in a romantic or creepy way (OK, if I'm completely honest here maybe a little creepy), but I do. Here's where you can buy me a coffee, or lunch or something:  http://paypal.me/43folders 
     
    7979
    8080== CHANGELOG ==
     81= 2.1.1 =
     82*   FIX: Demo screen on admin pages was not showing circle and empty backgrounds in some cases.
     83*   FIX: Corected miner typos and speling erors thruout.
     84
    8185= 2.1.0 =
    8286*   FIX: Updated CSS to force arrow on top of page content
  • sticky-back2top-for-genesis/trunk/sticky-back2top.php

    r1474022 r2077305  
    44 * Plugin URI: http://43folderstech.net/genesis-back2top
    55 * Description: Adds a sticky icon to gently return user to the top - all standard themes supported, and optimized for Genesis.
    6  * Version: 2.1.0
     6 * Version: 2.1.1
    77 * Author: Michael Kastler
    88 * Author URI: http://43folderstech.net
  • sticky-back2top-for-genesis/trunk/views/admin.php

    r1474022 r2077305  
    8383
    8484        <tr>
     85            <th class="sb2table-gen">Pointer Type:</th>
     86            <td class="sb2table-gen">
     87                <select name="sb2t_ptype" id="sb2t_ptype" onchange="showType()" >
     88                    <option value="arrows" <?php if( $sb2t_ptype == 'arrows') echo "selected "  ?>> Arrows &nbsp;
     89                    <option value="loops" <?php if( $sb2t_ptype == 'loops') echo "selected "  ?>> Loops &nbsp;
     90                    <option value="other" <?php if( $sb2t_ptype == 'other') echo "selected "  ?> > Other               
     91                </select>
     92            </td>
     93        </tr>
     94
     95        <tr>
    8596            <th class="sb2table-gen">Pointer Shape:</th>
    8697            <td class="sb2table-gen">
    87                 <select name="sb2t_pointer" onchange="showArrow()" >
     98                <select name="sb2t_pointer" id="sb2t_pointer" onchange="showArrow()" >
    8899                    <option value="arrow" <?php if( $sb2t_pointer == 'arrow') echo "selected "  ?>> Arrow (default) &nbsp;
    89100                    <option value="bigarrow" <?php if( $sb2t_pointer == 'bigarrow') echo "selected "  ?>> Big Arrow &nbsp;
Note: See TracChangeset for help on using the changeset viewer.