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 __construct() { parent::__construct(); // Set the elements. include 'elements.php'; $this->_elements = $elements; }
public function setUp() { if (plugin_is_active('GuestUser')) { $this->_filters[] = 'guest_user_links'; $this->_filters[] = 'guest_user_widgets'; } parent::setUp(); }
public function __construct() { parent::__construct(); // Set the elements. include 'elements.php'; $this->_elements = $elements; $this->_elementSet = $elementSetMetadata; $this->_elementSetName = $elementSetMetadata['name']; }
/** * Load the objects table. */ public function __construct() { parent::__construct(); $this->_objects = $this->_db->getTable('FedoraConnectorObject'); // TODO : add this to admin config page set_option('maxFedoraImageWidth', $this->maxImageWidth); set_option('maxFedoraImageHeight', $this->maxImageHeight); set_option('fedoraImageServerURL', $this->imageServerURL); set_option('digitalCaseThumbnailURL', $this->digitalCaseThumbnailURL); set_option('fedoraDigitalCaseURL', $this->digitalCaseURL); set_option('belowFedoraImageMessage', $this->belowImageMessage); }
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()); }
/** * Plugin constructor. * * Requires class autoloader, and calls parent constructor. */ public function __construct() { require 'vendor/autoload.php'; parent::__construct(); }
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(); }