* @copyright Copyright 2012, Andrea Gandino & Simone Maranzana * @link http:// * @since The Happy Framework v 1.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ $thb_theme = thb_theme(); /** * Gallery * ----------------------------------------------------------------------------- */ $shortcode = new THB_Shortcode('thb_gallery', 'frontend/shortcodes/gallery'); $shortcode->setAttributes(array('link' => 'file', 'size' => 'thumbnail', 'gallery_id' => '')); $shortcode->setExample('[thb_gallery]'); $shortcode->setLabel(__('Gallery', 'thb_text_domain')); $shortcode->setType(__('Media', 'thb_text_domain')); $shortcode->setPrivate(); $thb_theme->addShortcode($shortcode); /* Remove default gallery inline style */ add_filter('use_default_gallery_style', '__return_false'); /** * Audio * ----------------------------------------------------------------------------- */ $shortcode = new THB_Shortcode('thb_audio', 'frontend/shortcodes/audio'); $shortcode->setAttributes(array('src' => '')); $shortcode->setExample('[thb_audio src="..."]'); $shortcode->setLabel(__('Audio', 'thb_text_domain')); $shortcode->setType(__('Media', 'thb_text_domain')); $thb_theme->addShortcode($shortcode); /** * Video