static function TplDropDown($type, $selected = null) { $tpls = WPFB_Core::GetTpls($type); $content = '<option value="default">' . __('Default') . '</option>'; foreach ($tpls as $tag => $tpl) { if ($tag != 'default') { $content .= '<option value="' . $tag . '"' . ($selected == $tag ? ' selected="selected"' : '') . '>' . __(__(esc_attr(WPFB_Output::Filename2Title($tag))), WPFB) . '</option>'; } } return $content; }
function GetTitle() { return __(__(esc_html(WPFB_Output::Filename2Title($this->tag))), WPFB); }
static function TplTitle($tpl_tag) { return __(__(esc_html(WPFB_Output::Filename2Title($tpl_tag))), 'wp-filebase'); }