/**
  *
  *	Function: ptshortcode.
  *  @return Shortcode main output in html
  *
  */
 public function ptshortcode($atts, $content = null)
 {
     extract(shortcode_atts(array("id" => "", "font_color" => "", "class" => ""), $atts));
     $class_id = $style = $op = '';
     /*** Class ID ***/
     if (!empty($id)) {
         $class_id = 'ts-ptshortcode-' . $id;
     } else {
         $rand = rand(1000, 9999);
         $class_id = 'ts-ptshortcode-' . $rand;
     }
     /*** Content ***/
     if (class_exists('TS_funcs')) {
         $ts_funcs = new TS_funcs();
         $content = $ts_funcs->removeautowrap($content);
     }
     do_shortcode($content);
     /*** Custom Class ***/
     $style = 'color: ' . $font_color . ';';
     if (!empty($style)) {
         $styleblock = '.' . $class_id . '{' . $style . '}';
         if (class_exists('TS_funcs') && $ts_funcs->tste_settings['gn_theme_ajax'] === 'true') {
             echo '<style id="style-' . $class_id . '" type="text/css">' . $styleblock . '</style>';
         } else {
             wp_enqueue_style($this->parent->_token . '-dummystyle');
             wp_add_inline_style($this->parent->_token . '-dummystyle', $styleblock);
         }
     }
     /*** Output ***/
     $op = '<div class="' . $class_id . ' ' . $class . '">' . $content . '</div>';
     return $op;
 }
 /**
  *
  *    Function: ptshortcodeajax.
  * @return Shortcode main output in html
  *
  */
 public function ptshortcodeajax($atts, $content = null)
 {
     global $post;
     extract(shortcode_atts(array("id" => "", "field" => "", "font_color" => "", "class" => ""), $atts));
     $class_id = $style = $op = '';
     /*** Class ID ***/
     if (!empty($id)) {
         $class_id = 'ts-ptshortcodeajax-' . $id;
     } else {
         $rand = rand(1000, 9999);
         $class_id = 'ts-ptshortcodeajax-' . $rand;
     }
     /*** Content ***/
     if (class_exists('TS_funcs')) {
         $ts_funcs = new TS_funcs();
         $content = $ts_funcs->removeautowrap($content);
     }
     do_shortcode($content);
     /*** Custom Class ***/
     /*$style = 'color: ' . $font_color . ';';
     
                 if (!empty($style)){
     
                     $styleblock = '.' . $class_id . '{' . $style . '}';
     
                     if (class_exists('TS_funcs') && $ts_funcs->tste_settings['gn_theme_ajax'] === 'true') {
                             echo '<style id="style-' . $class_id . '" type="text/css">'
                                     . $styleblock
                                 . '</style>';
                     }else{
                         wp_enqueue_style($this->parent->_token . '-dummystyle');
                         wp_add_inline_style($this->parent->_token . '-dummystyle', $styleblock);
                     }
                 }*/
     /*** Output ***/
     $op .= '<div class="' . $class_id . ' ' . $class . '">';
     $op .= '<p>' . $content . '</p>';
     $op .= '<button class="btn btn tmpl-subtle btn-lg popover-button " data-id="' . $post->ID . '" data-field="' . $field . '"><i class="glyphicon glyphicon-repeat"></i></button>';
     $op .= '<p class="callback" style="min-height: 28px;">' . '' . '</p>';
     $op .= '</div>';
     return $op;
 }