forked from scholarslab/TeiDisplay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
34 lines (26 loc) · 964 Bytes
/
plugin.php
File metadata and controls
34 lines (26 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4; */
/**
* Plugin runner.
*
* @package omeka
* @subpackage teidisplay
* @copyright 2012 Rector and Board of Visitors, University of Virginia
* @license http://www.apache.org/licenses/LICENSE-2.0.html
*/
if (!defined('TEI_PLUGIN_VERSION'))
define('TEI_PLUGIN_VERSION', get_plugin_ini('TeiDisplay', 'version'));
if (!defined('TEI_PLUGIN_DIR'))
define('TEI_PLUGIN_DIR', dirname(__FILE__));
// Load assets.
require_once TEI_PLUGIN_DIR . '/TeiDisplayPlugin.php';
require_once TEI_PLUGIN_DIR . '/helpers/TeiDisplayFunctions.php';
require_once TEI_PLUGIN_DIR . '/forms/StylesheetForm.php';
require_once TEI_PLUGIN_DIR . '/forms/TextForm.php';
require_once TEI_PLUGIN_DIR . '/forms/HeaderForm.php';
// Set file transfer adapter.
$adapter = new Zend_File_Transfer_Adapter_Http();
Zend_Registry::set('adapter', $adapter);
// Run.
$tei = new TeiDisplayPlugin();
$tei->setUp();