public function setUp() { add_shortcode('carousel', array('ShortcodeCarouselPlugin', 'carousel')); add_shortcode('featured_carousel', array('ShortcodeCarouselPlugin', 'featuredCarousel')); add_shortcode('recent_carousel', array('ShortcodeCarouselPlugin', 'recentCarousel')); parent::setUp(); }
public function setUp() { if (plugin_is_active('GuestUser')) { $this->_filters[] = 'guest_user_links'; $this->_filters[] = 'guest_user_widgets'; } parent::setUp(); }
public function setUp() { parent::setUp(); $linkedElements = unserialize(get_option('search_by_metadata_elements')); if (is_array($linkedElements)) { foreach ($linkedElements as $elementSet => $elements) { foreach ($elements as $element) { add_filter(array('Display', 'Item', $elementSet, $element), array($this, 'link')); } } } }
public function setUp() { parent::setUp(); if (plugin_is_active('UserProfiles')) { $this->_hooks[] = 'user_profiles_user_page'; } if (!is_admin_theme()) { //dig up all the elements being used, and add their ElementForm hook $elementsTable = $this->_db->getTable('Element'); $select = $elementsTable->getSelect(); $select->join(array('contribution_type_elements' => $this->_db->ContributionTypeElement), 'element_id = elements.id', array()); $elements = $elementsTable->fetchObjects($select); foreach ($elements as $element) { add_filter(array('ElementForm', 'Item', $element->set_name, $element->name), array($this, 'elementFormFilter'), 2); add_filter(array('ElementInput', 'Item', $element->set_name, $element->name), array($this, 'elementInputFilter'), 2); } } }
public function setUp() { parent::setUp(); require_once GUEST_USER_PLUGIN_DIR . '/libraries/GuestUser_ControllerPlugin.php'; Zend_Controller_Front::getInstance()->registerPlugin(new GuestUser_ControllerPlugin()); }
public function setUp() { parent::setUp(); Zend_Controller_Front::getInstance()->registerPlugin(new MultiCollections_ControllerPlugin()); }
public function setUp() { add_shortcode('concarousel', array('ShortcodeConnectedCarouselPlugin', 'carousel')); parent::setUp(); }
public function setUp() { if (plugin_is_active('SimplePages')) { $this->_filters[] = 'api_extend_simple_pages'; } if (plugin_is_active('ExhibitBuilder')) { $this->_filters[] = 'api_extend_exhibit_pages'; } parent::setUp(); }