Esempio n. 1
0
 public static function get_shortcode_hint_html()
 {
     $shortcodes = W4PL_Core::get_shortcodes();
     $return = '<a target="#shortcode_hint" class="button w4pl_toggler">shortcodes details</a>';
     $return .= '<table id="shortcode_hint" class="widefat csshide">';
     $return .= '<thead><tr><th style="text-align: right;">Tag</th><th>Details</th></tr></thead><tbody>';
     foreach ($shortcodes as $shortcode => $attr) {
         $rc = isset($rc) && $rc == '' ? $rc = 'alt' : '';
         $return .= '<tr class="' . $rc . '">';
         $return .= '<th valign="top" style="text-align: right; font-size:12px; line-height: 1.3em;"><code>[' . $shortcode . ']</code></th>';
         $return .= '<td style="font-size:12px; line-height: 1.3em;">' . $attr['desc'] . '</td>';
         $return .= '</tr>';
     }
     $return .= '</tbody></table>';
     return $return;
 }