Plugin Directory

Changeset 857973


Ignore:
Timestamp:
02/14/2014 04:02:41 PM (12 years ago)
Author:
marcelioleal
Message:

added new setting option and fix twitter link

Location:
siteapps/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • siteapps/trunk/classes/PluginConfig.php

    r788976 r857973  
    5050    }
    5151   
    52     public function getTag($id, $type)
     52    public function getTag($id, $type, $isCloudFlare = false)
    5353    {
    54         $tag = '<script type="text/javascript">
    55                 //<![CDATA[[
     54        $cloudFlare = '';
     55        if ($isCloudFlare) {
     56            $cloudFlare = ' data-cfasync="false"';
     57        }
     58       
     59       
     60        $tag = '<script ' . $cloudFlare .'>
     61                //<![CDATA[
    5662                $SA={s:'.$id.',asynch:1};
    5763                (function(){
     
    6369                </script>';
    6470        if($type == 1) {
    65             $tag = '<script type="text/javascript">
    66                     //<![CDATA[[
     71            $tag = '<script ' . $cloudFlare .'>
     72                    //<![CDATA[
    6773                    $SA={s:'.$id.'};
    6874                    document.write(unescape("%3Cscript src=\'" + ("https:" == document.location.protocol ? "https://" + $SA.s + ".sa" : "http://" + $SA.s + ".a") + ".siteapps.com/" + $SA.s + ".js\' type=\'text/javascript\'%3E%3C/script%3E"));
  • siteapps/trunk/readme.txt

    r838514 r857973  
    5151
    5252* [SiteApps Blog](http://blog.siteapps.com/?origin=wordpress);
    53 * [SiteApps Twitter](http://twitter.com/siteapps);
     53* [SiteApps Twitter](http://twitter.com/site_apps);
    5454
    5555
  • siteapps/trunk/views/admin/settings.php

    r838514 r857973  
    108108                </div>
    109109                <div class="inputitem" style="position: relative; top: 15px; float: none;">
    110                     <span><input type="checkbox" name="sa_enable_smart_widgets" <?php print $smartWidgetCheck; ?> value="1"> Enable SiteApps segments on WordPress widgets: <a href="" class="question" title="SiteApps allows you to segment specific WordPress widget based on segments created on the SIteApps platform.  Leave this option selected to segment your WordPress widgets.">?</a></span>
     110                    <span><input type="checkbox" name="sa_enable_smart_widgets" <?php print $smartWidgetCheck; ?> value="1"> Enable SiteApps segments on WordPress widgets. <a href="" class="question" title="SiteApps allows you to segment specific WordPress widget based on segments created on the SIteApps platform.  Leave this option selected to segment your WordPress widgets.">?</a></span>
    111111                </div>
    112112               
    113113                <div class="inputitem" style="position: relative; top: 15px; float: none;">
    114                     <span><input type="checkbox" name="sa_debug" <?php print $debugCheck; ?>> Debug Mode: <a href="#" class="question" title="If you enable this option, the SiteApps WordPress plugin will send important debugging information to the web console.  This can be used to diagnose segmentation configuration with WordPress Widgets.">?</a></span>
     114                    <span><input type="checkbox" name="sa_cloudflare" <?php print $cloudFlare; ?>> Enable CloudFlareRocket Loader compatibility. <a href="#" class="question" title="">?</a></span>
     115                </div>
     116               
     117                <div class="inputitem" style="position: relative; top: 15px; float: none;">
     118                    <span><input type="checkbox" name="sa_debug" <?php print $debugCheck; ?>> Debug Mode. <a href="#" class="question" title="If you enable this option, the SiteApps WordPress plugin will send important debugging information to the web console.  This can be used to diagnose segmentation configuration with WordPress Widgets.">?</a></span>
    115119                </div>
    116120               
Note: See TracChangeset for help on using the changeset viewer.