PluginProbe
Timed Content / trunk
Timed Content vtrunk
2.99 trunk 1.0 1.1 1.2 2.0 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.10 2.11 2.12 2.15 2.2 2.3 2.3.1 2.4 2.5 2.5.1 2.50 2.51 2.52 All 67 releases
timed-content / timed-content.php

timed-content.php in Timed Content trunk, at timed-content.php

41 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Timed Content
4 Text Domain: timed-content
5 Domain Path: /lang
6 Plugin URI: http://wordpress.org/plugins/timed-content/
7 Description: Plugin to show or hide portions of a Page or Post based on specific date/time characteristics. These actions can either be processed either server-side or client-side, depending on the desired effect.
8 Author: K. Tough, Arno Welz7el, Enrico Bacis
9 Version: 2.99
10 Author URI: http://wordpress.org/plugins/timed-content/
11 */
12 defined( 'ABSPATH' ) or die();
13
14 require 'lib/class-customfieldsinterface.php';
15 require 'lib/class-timedcontentplugin.php';
16
17 define( 'TIMED_CONTENT_VERSION', '2.99' );
18 define( 'TIMED_CONTENT_SLUG', 'timed-content' );
19 define( 'TIMED_CONTENT_PLUGIN_URL', plugins_url() . '/' . TIMED_CONTENT_SLUG );
20 define( 'TIMED_CONTENT_SHORTCODE_CLIENT', 'timed-content-client' );
21 define( 'TIMED_CONTENT_SHORTCODE_SERVER', 'timed-content-server' );
22 define( 'TIMED_CONTENT_SHORTCODE_RULE', 'timed-content-rule' );
23 define( 'TIMED_CONTENT_TIME_ZERO', '1970-01-01 00:00:00 +000' ); // Start of Unix Epoch (32 bit)
24 define( 'TIMED_CONTENT_TIME_END', '2038-01-19 03:14:06 +000' ); // End of Unix Epoch (32 bit)
25 define( 'TIMED_CONTENT_RULE_TYPE', 'timed_content_rule' );
26 define( 'TIMED_CONTENT_RULE_POSTMETA_PREFIX', TIMED_CONTENT_RULE_TYPE . '_' );
27 define( 'TIMED_CONTENT_CSS', TIMED_CONTENT_PLUGIN_URL . '/css/timed-content.css' );
28 define( 'TIMED_CONTENT_CSS_DASHICONS', TIMED_CONTENT_PLUGIN_URL . '/css/dashicons/style.css' );
29 define( 'TIMED_CONTENT_JQUERY_UI_CSS', TIMED_CONTENT_PLUGIN_URL . '/css/jqueryui/1.10.3/themes/smoothness/jquery-ui.css' );
30 define( 'TIMED_CONTENT_JQUERY_UI_TIMEPICKER_JS', TIMED_CONTENT_PLUGIN_URL . '/js/jquery-ui-timepicker-0.3.3/jquery.ui.timepicker.min.js' );
31 define( 'TIMED_CONTENT_JQUERY_UI_TIMEPICKER_CSS', TIMED_CONTENT_PLUGIN_URL . '/js/jquery-ui-timepicker-0.3.3/jquery.ui.timepicker.css' );
32 define( 'TIMED_CONTENT_DATE_FORMAT_OUTPUT', 'Y-m-d H:i O' );
33 define( 'TIMED_CONTENT_FREQ_HOURLY', 0 );
34 define( 'TIMED_CONTENT_FREQ_DAILY', 1 );
35 define( 'TIMED_CONTENT_FREQ_WEEKLY', 2 );
36 define( 'TIMED_CONTENT_FREQ_MONTHLY', 3 );
37 define( 'TIMED_CONTENT_FREQ_YEARLY', 4 );
38
39 // Initialize plugin
40 $timed_content_plugin_instance = new TimedContentPlugin();
41