Plugin Directory

Changeset 1290482


Ignore:
Timestamp:
11/20/2015 07:31:46 AM (10 years ago)
Author:
latorante
Message:

Updating to version 3.0.8 - CTA LINK can now have appearence interval

Location:
genoo/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • genoo/trunk/Genoo.php

    r1289849 r1290482  
    66    Author URI: http://www.genoo.com/
    77    Author Email: info@genoo.com
    8     Version: 3.0.7
     8    Version: 3.0.8
    99    License: GPLv2
    1010    Text Domain: genoo
  • genoo/trunk/libs/Genoo/WidgetCTA.php

    r1289849 r1290482  
    270270                    if($this->cta->isLink){
    271271                        $blank = $this->cta->isNewWindow ? 'target="_blank"'  : '';
     272                        $hidden = (isset($instance['hideButton']) && $instance['hideButton'] == TRUE) ? 'style="display:none"' : '';
    272273                        $r .= '<form '. $blank .' method="POST" action="'. $this->cta->link .'">';
    273                             $r .= '<span id="'. $bid .'">';
    274                             $r .= '<input type="submit" value="'. $this->cta->linkText .'" />';
    275                             $r .= '</span>';
     274                        $r .= '<span id="'. $bid .'" '. $hidden .'>';
     275                        $r .= '<input type="submit" value="'. $this->cta->linkText .'" />';
     276                        $r .= '</span>';
    276277                        $r .= '</form>';
    277278                        if($this->cta->isImage && (!empty($this->cta->image) || !empty($this->cta->imageHover))){
     
    282283                    }
    283284                    $r .= isset($args['after_widget']) ? $args['after_widget'] : '';
     285                    if(isset($instance['hideButton']) && $instance['hideButton'] == TRUE){
     286                        $r .= WidgetForm::getModalFullScrollJavascript($bid, (int)$instance['hideButtonTIME']);
     287                    }
    284288                }
    285289            }
  • genoo/trunk/readme.txt

    r1289849 r1290482  
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
    8 Stable tag: 3.0.7
     8Stable tag: 3.0.8
    99
    1010Combine the flexibility of WordPress with the power of Genoo and experience amazing results!
Note: See TracChangeset for help on using the changeset viewer.