Esempio n. 1
0
 /**
  * Render the child shortcode
  * @param  array $args     Shortcode paramters
  * @param  string $content Content between shortcode
  * @return string          HTML output
  */
 function render_child($args, $content = '')
 {
     $defaults = Magee_Core::set_shortcode_defaults(array(), $args);
     extract($defaults);
     self::$args = $defaults;
     $html = sprintf('<li><i class="fa %s"></i> %s</li>', $this->icon_a, do_shortcode(Magee_Core::fix_shortcodes($content)));
     return $html;
 }
Esempio n. 2
0
 /**
  * Render the child shortcode
  * @param  array $args     Shortcode paramters
  * @param  string $content Content between shortcode
  * @return string          HTML output
  */
 function render_child($args, $content = '')
 {
     $defaults = Magee_Core::set_shortcode_defaults(array(), $args);
     extract($defaults);
     self::$args = $defaults;
     if (stristr($this->icon_a, 'fa-')) {
         $html = sprintf('<li><i class="fa %s"></i> %s</li>', $this->icon_a, do_shortcode(Magee_Core::fix_shortcodes($content)));
     } else {
         $html = sprintf('<li><img src="%s" class="image_instead"/> %s</li>', $this->icon_a, do_shortcode(Magee_Core::fix_shortcodes($content)));
     }
     return $html;
 }