Plugin Directory

Changeset 772050


Ignore:
Timestamp:
09/14/2013 04:51:31 AM (12 years ago)
Author:
Columcille
Message:

Tippy 6.1.0 with nested tooltips, htmlentities attribute, and fixes

Location:
tippy
Files:
2 deleted
5 edited
7 copied

Legend:

Unmodified
Added
Removed
  • tippy/tags/6.1.0/jquery.tippy.css

    r757687 r772050  
    7777    width: 420px;
    7878    max-height: 275px;
    79     overflow: auto;
    8079
    8180    border-radius: 0 0 5px 5px;
     81    position: relative;
    8282}
    8383
  • tippy/tags/6.1.0/jquery.tippy.js

    r758617 r772050  
    11/*
    22 * jQuery Tippy
    3  * Version 1.2.5
     3 * Version 1.3.0
    44 * By Chris Roberts, [email protected]
    55 * http://croberts.me/
     
    244244                .appendTo(tipBox);
    245245           
    246             // Move body content
    247             $('#' + tipId).appendTo(tipBody).show();
     246            if (tippy_state[tipId].options.htmlentities == false) {
     247                // Move body content
     248                $('#' + tipId).appendTo(tipBody).show();
     249            }
    248250
    249251            if (tippy_state[tipId].options.height != false) {
     
    438440            // Check on a swapimg/swaptitle to use if img/title is set
    439441            if (typeof tippy_state[tipId].options.swapimg != 'undefined' && typeof tippy_state[tipId].options.img != 'undefined') {
    440                
    441442                // If we have a swapimg, just fade it in.
    442443                tippy_state[tipId].swapimg.fadeIn();
     
    447448            if (!tippy_state[tipId].options.multitip && tippy_showing) {
    448449                doHideTooltip(tippy_showing);
     450            }
     451
     452            // See if we need to decode and pull in content
     453            if (tippy_state[tipId].options.htmlentities == true) {
     454                var convertMarkup = $("<div/>").html($('#' + tipId).html()).text();
     455                $('.tippy_body', tippy_state[tipId].tipBox).html(convertMarkup).show();
    449456            }
    450457
     
    486493            }
    487494
    488             tippy_state[tipId].tipBox.fadeOut(tippy_state[tipId].options.hidespeed);
     495            tippy_state[tipId].tipBox.fadeOut(tippy_state[tipId].options.hidespeed, function() {
     496                // See if we need to clear content
     497                if (tippy_state[tipId].options.htmlentities == true) {
     498                    $('.tippy_body', tippy_state[tipId].tipBox).html('');
     499                }
     500            });
    489501        }
    490502
     
    520532        dragheader: true, // If dragging is enabled should the visitor only be able to drag from the header? If false, user can move the tooltip from any part.
    521533        autoshow: false, // Should tooltips automatically be displayed when the page is loaded?
    522         calcpos: 'parent' // Should the tooltip position be calculated relative to the parent or to the document?
     534        calcpos: 'parent', // Should the tooltip position be calculated relative to the parent or to the document?
     535        htmlentities: false // If false, Tippy assumes the tooltip content is straight html. If true, assumes it is encoded as entities and needs to be decoded.
    523536    }
    524537}(jQuery));
  • tippy/tags/6.1.0/readme.txt

    r758871 r772050  
    44Tags: tooltip, popup
    55Requires at least: 2.5
    6 Tested up to: 3.6
    7 Stable tag: 6.0.7
     6Tested up to: 3.6.1
     7Stable tag: 6.1.0
    88License: MIT
    99License URI: https://github.com/jquery/jquery-color/blob/2.1.2/MIT-LICENSE.txt
     
    7676== Changelog ==
    7777
     78= 6.1.0 =
     79* Filters tooltip text through force_balance_tags() to ensure tags are balanced
     80* Add support for nested tooltips. To add a nested tooltip, use the shortcode [subtippy] inside [tippy]. Multiple levels can be added by using a number: [subtippy1]...[/subtippy1], etc.
     81* Fixed a glitch with the initial jQuery load
     82
    7883= 6.0.7 =
    7984* Tweak to allow shortcode to work in sidebar widgets.
  • tippy/tags/6.1.0/tippy.php

    r758871 r772050  
    44Plugin URI: http://croberts.me/tippy/
    55Description: Simple plugin to display tooltips within your WordPress blog.
    6 Version: 6.0.7
     6Version: 6.1.0
    77Author: Chris Roberts
    88Author URI: http://croberts.me/
     
    4949                    'hidespeed' => 200,
    5050                    'showheader' => true,
    51                     'calcpos' => 'parent');
     51                    'calcpos' => 'parent',
     52                    'htmlentities' => false);
    5253
    5354    // List all options possible for Tippy. Used to verify valid attributes
     
    9091                    'id',
    9192                    'name',
    92                     'calcpos');
     93                    'calcpos',
     94                    'htmlentities');
    9395   
    9496    // Various helper properties
     
    281283        }
    282284
    283         if (Tippy::getOption('linkWindow') == "new") {
     285        if (self::getOption('linkWindow') == "new") {
    284286            $setOptions .= ', target: "_blank"';
    285287        }
    286288       
    287         if (Tippy::getOption('showTitle')) {
     289        if (self::getOption('showTitle')) {
    288290            $setOptions .= ', showtitle: true';
    289291        } else {
     
    291293        }
    292294       
    293         if (Tippy::getOption('openTip') == "hover") {
     295        if (self::getOption('openTip') == "hover") {
    294296            $setOptions .= ', hoverpopup: true';
    295297        } else {
     
    297299        }
    298300       
    299         if (Tippy::getOption('dragTips')) {
     301        if (self::getOption('dragTips')) {
    300302            $setOptions .= ', draggable: true';
    301303        } else {
     
    303305        }
    304306       
    305         if (Tippy::getOption('dragHeader')) {
     307        if (self::getOption('dragHeader')) {
    306308            $setOptions .= ', dragheader: true';
    307309        } else {
     
    309311        }
    310312       
    311         if (Tippy::getOption('multitip')) {
     313        if (self::getOption('multitip')) {
    312314            $setOptions .= ', multitip: true';
    313315        } else {
     
    315317        }
    316318       
    317         if (Tippy::getOption('autoshow')) {
     319        if (self::getOption('autoshow')) {
    318320            $setOptions .= ', autoshow: true';
    319321        } else {
     
    322324       
    323325       
    324         if (Tippy::getOption('showheader')) {
     326        if (self::getOption('showheader')) {
    325327            $setOptions .= ', showheader: true';
    326328        } else {
     
    328330        }
    329331       
    330         if (Tippy::getOption('showClose')) {
     332        if (self::getOption('showClose')) {
    331333            $setOptions .= ', showclose: true';
    332334        } else {
    333335            $setOptions .= ', showclose: false';
     336        }
     337
     338        if (self::getOption('htmlentities')) {
     339            $setOptions .= ', htmlentities: true';
     340        } else {
     341            $setOptions .= ', htmlentities: false';
    334342        }
    335343
    336344        echo '
    337345            <script type="text/javascript">
    338                 jQuery(\'document\').ready(function() {
     346                jQuery(document).ready(function() {
    339347                    jQuery(\'.tippy\').tippy({ '. $setOptions .' });
    340348                });
     
    382390            self::$tippyGlobalOptions['showTitle'] = isset($_POST['showTitle']) ? true : false;
    383391            self::$tippyGlobalOptions['showClose'] = isset($_POST['showClose']) ? true : false;
     392            self::$tippyGlobalOptions['htmlentities'] = isset($_POST['htmlentities']) ? false : true;
    384393            self::$tippyGlobalOptions['closeLinkText'] = isset($_POST['closeLinkText']) ? sanitize_text_field($_POST['closeLinkText']) : 'X';
    385394            self::$tippyGlobalOptions['delay'] = isset($_POST['delay']) ? intval($_POST['delay']) : 900;
     
    441450        }
    442451
     452        // See if we are converting to htmlentities
     453        if ((isset($attributes['htmlentities']) && $attributes['htmlentities'] == "true") || (!isset($attributes['htmlentities']) && self::getOption('htmlentities'))) {
     454            $text = htmlentities($text);
     455        }
     456
    443457        // Loop through $attributes and make sure they are in self::tippyOptionNames
    444458        // then add them to our data set
     
    453467
    454468        // Create the div with the text in place
    455         $tooltipContent = self::addContent($text, $tippyId);
     469        if (!in_the_loop() || (isset($attributes['subtip']) && $attributes['subtip'] == true)) {
     470            $storeContent = false;
     471        } else {
     472            $storeContent = true;
     473        }
     474
     475        $tooltipContent = self::addContent($text, $tippyId, $storeContent);
    456476       
    457477        self::$countTips++;
     
    459479        $returnTip = '<a id="'. $tippyId .'_anchor"></a>';
    460480       
    461         if (!in_the_loop()) {
     481        if (!$storeContent) {
    462482            $returnTip .= ' '. $tooltipContent;
    463483        }
     
    471491    }
    472492
    473     private static function addContent($contentText, $contentId)
     493    private static function addContent($contentText, $contentId, $storeContent = true)
    474494    {
    475495        // Put the attributes together
     
    480500        }
    481501
    482         $tooltipDiv = '<div class="tippy" '. $tooltipAttributes .'>'. do_shortcode($contentText) .'</div>';
    483 
    484         self::$tippyContent[$contentId] = $tooltipDiv;
     502        // Balance tags
     503        $contentText = force_balance_tags($contentText);
     504
     505        // Check for nested tooltips
     506        $contentText = self::getNested($contentText);
     507
     508        // Process shortcodes
     509        $contentText = do_shortcode($contentText);
     510
     511        $tooltipDiv = '<div class="tippy" '. $tooltipAttributes .'>'. $contentText .'</div>';
     512
     513        if ($storeContent) {
     514            self::$tippyContent[$contentId] = $tooltipDiv;
     515        }
    485516       
    486517        return $tooltipDiv;
     518    }
     519
     520    // Looks inside a tooltip for any nested tooltips. Because of the tag matching,
     521    // the ShortCode API is deficient and we need our own approach.
     522    private static function getNested($contentText)
     523    {
     524        // Look for subtippy matches, including those with numeric suffixes.
     525        preg_match_all('/\[subtippy([1-9])?([^\]]+)?\](.*)(?!\[subtippy)\[\/subtippy\1?\]/', $contentText, $matchNested);
     526
     527        if (!empty($matchNested[0])) {
     528            for ($i = 0 ; $i < sizeof($matchNested[0]) ; $i++) {
     529                $subTag = $matchNested[0][$i];
     530                $subAttributes = shortcode_parse_atts(trim($matchNested[2][$i]));
     531               
     532                // Flag this so other parts of the script know we're dealing with a nested tooltip
     533                $subAttributes['subtip'] = true;
     534                $subContent = trim($matchNested[3][$i]);
     535
     536                $replaceText = self::getLink($subAttributes, $subContent);
     537                $contentText = str_replace($subTag, $replaceText, $contentText);
     538            }
     539        }
     540
     541        return $contentText;
    487542    }
    488543
  • tippy/tags/6.1.0/tippy_admin.php

    r758617 r772050  
    100100            <div class="tippyHeader"><span>Close Link</span> (<?php echo do_shortcode('[tippy title="info" header="off" autoclose="true" position="link" delay="900" offsetx="0" offsety="10" width="400"]Do you want to display a Close link so visitors can manually close the tooltip? If so, what should the Close link say?[/tippy]'); ?>)</div>
    101101            <div class="tippyOptions">
    102                 <input id="tippy_showClose" name="showClose" type="checkbox" value="true" <?php if (Tippy::getOption('showClose') == 'true') echo "checked" ?> />
     102                <input id="tippy_showClose" name="showClose" type="checkbox" value="true" <?php if (Tippy::getOption('showClose') == true) echo "checked" ?> />
    103103                    <label for="tippy_showClose">
    104104                        Show close link on tooltips
     
    109109                </label>
    110110                <input id="tippy_closeLinkText" name="closeLinkText" size="15" type="text" value="<?php echo Tippy::getOption('closeLinkText'); ?>" />
     111            </div>
     112
     113            <div class="tippyHeader"><span>Autoload Content</span> (<?php echo do_shortcode('[tippy title="info" header="off" autoclose="true" position="link" delay="900" offsetx="0" offsety="10" width="400"]Should tooltip content automatically load with the page? Typically this is desirable, but if you have something like audio set to autoplay when the tooltip opens, you might want to turn off autoload.[/tippy]'); ?>)</div>
     114            <div class="tippyOptions">
     115                <input id="tippy_autoload" name="htmlentities" type="checkbox" value="false" <?php if (Tippy::getOption('htmlentities') == false) echo "checked" ?> />
     116                    <label for="tippy_autoload">
     117                        Autoload Content
     118                    </label>
    111119            </div>
    112120        </div><!-- .tippyOptionSection -->
  • tippy/trunk/jquery.tippy.css

    r757687 r772050  
    7777    width: 420px;
    7878    max-height: 275px;
    79     overflow: auto;
    8079
    8180    border-radius: 0 0 5px 5px;
     81    position: relative;
    8282}
    8383
  • tippy/trunk/jquery.tippy.js

    r758617 r772050  
    11/*
    22 * jQuery Tippy
    3  * Version 1.2.5
     3 * Version 1.3.0
    44 * By Chris Roberts, [email protected]
    55 * http://croberts.me/
     
    244244                .appendTo(tipBox);
    245245           
    246             // Move body content
    247             $('#' + tipId).appendTo(tipBody).show();
     246            if (tippy_state[tipId].options.htmlentities == false) {
     247                // Move body content
     248                $('#' + tipId).appendTo(tipBody).show();
     249            }
    248250
    249251            if (tippy_state[tipId].options.height != false) {
     
    438440            // Check on a swapimg/swaptitle to use if img/title is set
    439441            if (typeof tippy_state[tipId].options.swapimg != 'undefined' && typeof tippy_state[tipId].options.img != 'undefined') {
    440                
    441442                // If we have a swapimg, just fade it in.
    442443                tippy_state[tipId].swapimg.fadeIn();
     
    447448            if (!tippy_state[tipId].options.multitip && tippy_showing) {
    448449                doHideTooltip(tippy_showing);
     450            }
     451
     452            // See if we need to decode and pull in content
     453            if (tippy_state[tipId].options.htmlentities == true) {
     454                var convertMarkup = $("<div/>").html($('#' + tipId).html()).text();
     455                $('.tippy_body', tippy_state[tipId].tipBox).html(convertMarkup).show();
    449456            }
    450457
     
    486493            }
    487494
    488             tippy_state[tipId].tipBox.fadeOut(tippy_state[tipId].options.hidespeed);
     495            tippy_state[tipId].tipBox.fadeOut(tippy_state[tipId].options.hidespeed, function() {
     496                // See if we need to clear content
     497                if (tippy_state[tipId].options.htmlentities == true) {
     498                    $('.tippy_body', tippy_state[tipId].tipBox).html('');
     499                }
     500            });
    489501        }
    490502
     
    520532        dragheader: true, // If dragging is enabled should the visitor only be able to drag from the header? If false, user can move the tooltip from any part.
    521533        autoshow: false, // Should tooltips automatically be displayed when the page is loaded?
    522         calcpos: 'parent' // Should the tooltip position be calculated relative to the parent or to the document?
     534        calcpos: 'parent', // Should the tooltip position be calculated relative to the parent or to the document?
     535        htmlentities: false // If false, Tippy assumes the tooltip content is straight html. If true, assumes it is encoded as entities and needs to be decoded.
    523536    }
    524537}(jQuery));
  • tippy/trunk/readme.txt

    r758871 r772050  
    44Tags: tooltip, popup
    55Requires at least: 2.5
    6 Tested up to: 3.6
    7 Stable tag: 6.0.7
     6Tested up to: 3.6.1
     7Stable tag: 6.1.0
    88License: MIT
    99License URI: https://github.com/jquery/jquery-color/blob/2.1.2/MIT-LICENSE.txt
     
    7676== Changelog ==
    7777
     78= 6.1.0 =
     79* Filters tooltip text through force_balance_tags() to ensure tags are balanced
     80* Add support for nested tooltips. To add a nested tooltip, use the shortcode [subtippy] inside [tippy]. Multiple levels can be added by using a number: [subtippy1]...[/subtippy1], etc.
     81* Fixed a glitch with the initial jQuery load
     82
    7883= 6.0.7 =
    7984* Tweak to allow shortcode to work in sidebar widgets.
  • tippy/trunk/tippy.php

    r758871 r772050  
    44Plugin URI: http://croberts.me/tippy/
    55Description: Simple plugin to display tooltips within your WordPress blog.
    6 Version: 6.0.7
     6Version: 6.1.0
    77Author: Chris Roberts
    88Author URI: http://croberts.me/
     
    4949                    'hidespeed' => 200,
    5050                    'showheader' => true,
    51                     'calcpos' => 'parent');
     51                    'calcpos' => 'parent',
     52                    'htmlentities' => false);
    5253
    5354    // List all options possible for Tippy. Used to verify valid attributes
     
    9091                    'id',
    9192                    'name',
    92                     'calcpos');
     93                    'calcpos',
     94                    'htmlentities');
    9395   
    9496    // Various helper properties
     
    281283        }
    282284
    283         if (Tippy::getOption('linkWindow') == "new") {
     285        if (self::getOption('linkWindow') == "new") {
    284286            $setOptions .= ', target: "_blank"';
    285287        }
    286288       
    287         if (Tippy::getOption('showTitle')) {
     289        if (self::getOption('showTitle')) {
    288290            $setOptions .= ', showtitle: true';
    289291        } else {
     
    291293        }
    292294       
    293         if (Tippy::getOption('openTip') == "hover") {
     295        if (self::getOption('openTip') == "hover") {
    294296            $setOptions .= ', hoverpopup: true';
    295297        } else {
     
    297299        }
    298300       
    299         if (Tippy::getOption('dragTips')) {
     301        if (self::getOption('dragTips')) {
    300302            $setOptions .= ', draggable: true';
    301303        } else {
     
    303305        }
    304306       
    305         if (Tippy::getOption('dragHeader')) {
     307        if (self::getOption('dragHeader')) {
    306308            $setOptions .= ', dragheader: true';
    307309        } else {
     
    309311        }
    310312       
    311         if (Tippy::getOption('multitip')) {
     313        if (self::getOption('multitip')) {
    312314            $setOptions .= ', multitip: true';
    313315        } else {
     
    315317        }
    316318       
    317         if (Tippy::getOption('autoshow')) {
     319        if (self::getOption('autoshow')) {
    318320            $setOptions .= ', autoshow: true';
    319321        } else {
     
    322324       
    323325       
    324         if (Tippy::getOption('showheader')) {
     326        if (self::getOption('showheader')) {
    325327            $setOptions .= ', showheader: true';
    326328        } else {
     
    328330        }
    329331       
    330         if (Tippy::getOption('showClose')) {
     332        if (self::getOption('showClose')) {
    331333            $setOptions .= ', showclose: true';
    332334        } else {
    333335            $setOptions .= ', showclose: false';
     336        }
     337
     338        if (self::getOption('htmlentities')) {
     339            $setOptions .= ', htmlentities: true';
     340        } else {
     341            $setOptions .= ', htmlentities: false';
    334342        }
    335343
    336344        echo '
    337345            <script type="text/javascript">
    338                 jQuery(\'document\').ready(function() {
     346                jQuery(document).ready(function() {
    339347                    jQuery(\'.tippy\').tippy({ '. $setOptions .' });
    340348                });
     
    382390            self::$tippyGlobalOptions['showTitle'] = isset($_POST['showTitle']) ? true : false;
    383391            self::$tippyGlobalOptions['showClose'] = isset($_POST['showClose']) ? true : false;
     392            self::$tippyGlobalOptions['htmlentities'] = isset($_POST['htmlentities']) ? false : true;
    384393            self::$tippyGlobalOptions['closeLinkText'] = isset($_POST['closeLinkText']) ? sanitize_text_field($_POST['closeLinkText']) : 'X';
    385394            self::$tippyGlobalOptions['delay'] = isset($_POST['delay']) ? intval($_POST['delay']) : 900;
     
    441450        }
    442451
     452        // See if we are converting to htmlentities
     453        if ((isset($attributes['htmlentities']) && $attributes['htmlentities'] == "true") || (!isset($attributes['htmlentities']) && self::getOption('htmlentities'))) {
     454            $text = htmlentities($text);
     455        }
     456
    443457        // Loop through $attributes and make sure they are in self::tippyOptionNames
    444458        // then add them to our data set
     
    453467
    454468        // Create the div with the text in place
    455         $tooltipContent = self::addContent($text, $tippyId);
     469        if (!in_the_loop() || (isset($attributes['subtip']) && $attributes['subtip'] == true)) {
     470            $storeContent = false;
     471        } else {
     472            $storeContent = true;
     473        }
     474
     475        $tooltipContent = self::addContent($text, $tippyId, $storeContent);
    456476       
    457477        self::$countTips++;
     
    459479        $returnTip = '<a id="'. $tippyId .'_anchor"></a>';
    460480       
    461         if (!in_the_loop()) {
     481        if (!$storeContent) {
    462482            $returnTip .= ' '. $tooltipContent;
    463483        }
     
    471491    }
    472492
    473     private static function addContent($contentText, $contentId)
     493    private static function addContent($contentText, $contentId, $storeContent = true)
    474494    {
    475495        // Put the attributes together
     
    480500        }
    481501
    482         $tooltipDiv = '<div class="tippy" '. $tooltipAttributes .'>'. do_shortcode($contentText) .'</div>';
    483 
    484         self::$tippyContent[$contentId] = $tooltipDiv;
     502        // Balance tags
     503        $contentText = force_balance_tags($contentText);
     504
     505        // Check for nested tooltips
     506        $contentText = self::getNested($contentText);
     507
     508        // Process shortcodes
     509        $contentText = do_shortcode($contentText);
     510
     511        $tooltipDiv = '<div class="tippy" '. $tooltipAttributes .'>'. $contentText .'</div>';
     512
     513        if ($storeContent) {
     514            self::$tippyContent[$contentId] = $tooltipDiv;
     515        }
    485516       
    486517        return $tooltipDiv;
     518    }
     519
     520    // Looks inside a tooltip for any nested tooltips. Because of the tag matching,
     521    // the ShortCode API is deficient and we need our own approach.
     522    private static function getNested($contentText)
     523    {
     524        // Look for subtippy matches, including those with numeric suffixes.
     525        preg_match_all('/\[subtippy([1-9])?([^\]]+)?\](.*)(?!\[subtippy)\[\/subtippy\1?\]/', $contentText, $matchNested);
     526
     527        if (!empty($matchNested[0])) {
     528            for ($i = 0 ; $i < sizeof($matchNested[0]) ; $i++) {
     529                $subTag = $matchNested[0][$i];
     530                $subAttributes = shortcode_parse_atts(trim($matchNested[2][$i]));
     531               
     532                // Flag this so other parts of the script know we're dealing with a nested tooltip
     533                $subAttributes['subtip'] = true;
     534                $subContent = trim($matchNested[3][$i]);
     535
     536                $replaceText = self::getLink($subAttributes, $subContent);
     537                $contentText = str_replace($subTag, $replaceText, $contentText);
     538            }
     539        }
     540
     541        return $contentText;
    487542    }
    488543
  • tippy/trunk/tippy_admin.php

    r758617 r772050  
    100100            <div class="tippyHeader"><span>Close Link</span> (<?php echo do_shortcode('[tippy title="info" header="off" autoclose="true" position="link" delay="900" offsetx="0" offsety="10" width="400"]Do you want to display a Close link so visitors can manually close the tooltip? If so, what should the Close link say?[/tippy]'); ?>)</div>
    101101            <div class="tippyOptions">
    102                 <input id="tippy_showClose" name="showClose" type="checkbox" value="true" <?php if (Tippy::getOption('showClose') == 'true') echo "checked" ?> />
     102                <input id="tippy_showClose" name="showClose" type="checkbox" value="true" <?php if (Tippy::getOption('showClose') == true) echo "checked" ?> />
    103103                    <label for="tippy_showClose">
    104104                        Show close link on tooltips
     
    109109                </label>
    110110                <input id="tippy_closeLinkText" name="closeLinkText" size="15" type="text" value="<?php echo Tippy::getOption('closeLinkText'); ?>" />
     111            </div>
     112
     113            <div class="tippyHeader"><span>Autoload Content</span> (<?php echo do_shortcode('[tippy title="info" header="off" autoclose="true" position="link" delay="900" offsetx="0" offsety="10" width="400"]Should tooltip content automatically load with the page? Typically this is desirable, but if you have something like audio set to autoplay when the tooltip opens, you might want to turn off autoload.[/tippy]'); ?>)</div>
     114            <div class="tippyOptions">
     115                <input id="tippy_autoload" name="htmlentities" type="checkbox" value="false" <?php if (Tippy::getOption('htmlentities') == false) echo "checked" ?> />
     116                    <label for="tippy_autoload">
     117                        Autoload Content
     118                    </label>
    111119            </div>
    112120        </div><!-- .tippyOptionSection -->
Note: See TracChangeset for help on using the changeset viewer.