Пример #1
0
 * -----------------------------------------------------------------------------
 */
$shortcode = new THB_Shortcode('thb_highlight', 'frontend/shortcodes/general');
$shortcode->setData('tag', 'mark');
$shortcode->setClass('thb-highlight');
$shortcode->setExample('[thb_highlight]...[/thb_highlight]');
$shortcode->setLabel(__('Highlighted text', 'thb_text_domain'));
$shortcode->setType(__('Typography', 'thb_text_domain'));
$thb_theme->addShortcode($shortcode);
/**
 * Divider
 * -----------------------------------------------------------------------------
 */
$shortcode = new THB_Shortcode('thb_divider', 'frontend/shortcodes/general');
$shortcode->setData('tag', 'span');
$shortcode->setClass('thb-divider');
$shortcode->setExample('[thb_divider]');
$shortcode->setLabel(__('Divider', 'thb_text_domain'));
$shortcode->setType(__('Layout', 'thb_text_domain'));
$thb_theme->addShortcode($shortcode);
/**
 * Drop caps
 * -----------------------------------------------------------------------------
 */
$shortcode = new THB_Shortcode('thb_dropcaps', 'frontend/shortcodes/dropcaps');
$shortcode->setAttributes(array('color' => ''));
$shortcode->setExample('[thb_dropcaps]A[/thb_dropcaps]');
$shortcode->setLabel(__('Dropcap', 'thb_text_domain'));
$shortcode->setType(__('Typography', 'thb_text_domain'));
$thb_theme->addShortcode($shortcode);
/**