caffeinated/modules/event_single_caff/EED_Event_Single_Caff.module.php 1 location
|
@@ 113-119 (lines=7) @@
|
110 |
|
/** |
111 |
|
* Set constants only if they haven't been set yet. |
112 |
|
*/ |
113 |
|
public static function setDefinitions() |
114 |
|
{ |
115 |
|
if (! defined('EVENT_SINGLE_CAFF_TEMPLATES_PATH')) { |
116 |
|
define('EVENT_SINGLE_CAFF_TEMPLATES_PATH', plugin_dir_path(__FILE__) . 'templates' . DS); |
117 |
|
define('EVENT_SINGLE_CAFF_ASSETS_URL', plugin_dir_url(__FILE__) . 'assets' . DS); |
118 |
|
} |
119 |
|
} |
120 |
|
|
121 |
|
|
122 |
|
/** |
caffeinated/modules/events_archive_caff/EED_Events_Archive_Caff.module.php 1 location
|
@@ 80-89 (lines=10) @@
|
77 |
|
/** |
78 |
|
* Conditionally set constants if they haven't been defined yet. |
79 |
|
*/ |
80 |
|
public static function setDefinitions() |
81 |
|
{ |
82 |
|
if (! defined('EVENTS_ARCHIVE_CAFF_TEMPLATES_PATH')) { |
83 |
|
define( |
84 |
|
'EVENTS_ARCHIVE_CAFF_TEMPLATES_PATH', |
85 |
|
str_replace('\\', DS, plugin_dir_path(__FILE__)) . 'templates' . DS |
86 |
|
); |
87 |
|
define('EVENT_ARCHIVE_CAFF_ASSETS_URL', plugin_dir_url(__FILE__) . 'assets' . DS); |
88 |
|
} |
89 |
|
} |
90 |
|
|
91 |
|
|
92 |
|
/** |
modules/add_new_state/EED_Add_New_State.module.php 1 location
|
@@ 160-171 (lines=12) @@
|
157 |
|
/** |
158 |
|
* @return void |
159 |
|
*/ |
160 |
|
public static function set_definitions() |
161 |
|
{ |
162 |
|
define('ANS_ASSETS_URL', plugin_dir_url(__FILE__) . 'assets' . DS); |
163 |
|
define( |
164 |
|
'ANS_TEMPLATES_PATH', |
165 |
|
str_replace( |
166 |
|
'\\', |
167 |
|
DS, |
168 |
|
plugin_dir_path(__FILE__) |
169 |
|
) . 'templates' . DS |
170 |
|
); |
171 |
|
} |
172 |
|
|
173 |
|
|
174 |
|
/** |