title: Check if variable used to trigger popup
body: <p>Hello I'm working on a wordpress site and I currently have a popup set to display if an arrtibute in the shortcode is set to "popup="register")... I added another lightbox that I want to display if the attribute is set to "popup="apply")</p>
  
  <p>My question is how to add another variable to the following function.. would I need an if statement? Im new to php, any advice is greatly appreciated.. Thanks!!!!</p>
  
  <pre><code>function oxy_shortcode_button_fancy($atts , $content = '' ) {
       // setup options
      extract( shortcode_atts( array(
          'button_swatch'     =&gt; 'swatch-coral',
          'button_animation'  =&gt; '',
          'size'              =&gt; 'default',
          'xclass'            =&gt; '',
          'link'              =&gt; '',
          'label'             =&gt; 'My button',
          'icon'              =&gt; '',
          'link_open'         =&gt; '_self',
          'popup'             =&gt; ''
      ), $atts ) );
  
      $popup = ('register' == $popup) ? ' onclick="jQuery(\'#registerid, .overlayLogin\').show();"' : '';
      $animation = ( $button_animation != "") ? ' data-animation="'.$button_animation.'"' :"";
      return '&lt;a'.$popup.' href="'. $link .'" class="btn '. $size.' btn-icon-right '. $xclass . ' '. $button_swatch .'" target="' . $link_open . '"&gt; '. $label . '&lt;span&gt;&lt;i class="'.$icon.'" '.$animation.'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/a&gt;';
  
  
  
      }
  </code></pre>
  
  <p>What i'm looking to add is:</p>
  
  <pre><code>$popup = ('apply' == $popup) ? ' onclick="jQuery(\'#applyid, .overlayLogin\').show();"' : '';
  </code></pre>