-
Notifications
You must be signed in to change notification settings - Fork 0
/
easy-content-templates.php
41 lines (32 loc) · 1.48 KB
/
easy-content-templates.php
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
35
36
37
38
39
40
41
<?php
/*
Plugin Name: Easy Content Templates
Plugin URI: https://alekhin.llemos.com/easy-content-templates-wordpress-plugin
Description: This plugin lets you define content templates to quickly and easily create new posts or pages.
Version: 1.4.3.1
Author: Alekhin
Author URI: https://alekhin.llemos.com
License: GPL2
Text Domain: easy-content-templates
Copyright 2011-2014 Japa Alekhin Llemos (email : [email protected])
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
define("ECTDS", DIRECTORY_SEPARATOR);
function ectdir($parts = array()) {
$parts = is_array($parts) ? $parts : array();
return dirname(__FILE__) . ECTDS . implode(ECTDS, $parts);
}
function ecturl($parts) {
$parts = is_array($parts) ? $parts : array();
return plugins_url("", __FILE__) . "/" . implode("/", $parts);
}
include ectdir(array("obj", "template.class.php"));