Version Description
- Fix for image bug with WPML and Roots/Bedrock active #1445 (thanks @njbarrett)
- Fix for some HTTPs issues #1448 (thanks @baldursson)
- Improved docs! #1441 (thanks @gchtr)
- Allow ACF to convert single WP_Post objects to Timber Posts #1439 (thanks @luism-s)
Download this release
Release Info
Developer | jarednova |
Plugin | Timber |
Version | 1.3.2 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.2
- lib/FunctionWrapper.php +23 -13
- lib/Image/Operation/ToJpg.php +11 -32
- lib/ImageHelper.php +8 -24
- lib/Integrations.php +1 -0
- lib/Integrations/Timber_WP_CLI_Command.php +10 -17
- lib/Integrations/WPML.php +21 -0
- lib/Loader.php +5 -2
- lib/Menu.php +4 -0
- lib/Post.php +8 -4
- lib/PostGetter.php +5 -2
- lib/Site.php +9 -7
- lib/Timber.php +83 -32
- lib/URLHelper.php +46 -6
- readme.txt +14 -2
- timber-starter-theme/README.md +2 -2
- timber-starter-theme/templates/menu.twig +3 -3
- timber-starter-theme/templates/single.twig +17 -17
- timber.php +2 -2
- vendor/autoload.php +1 -1
- vendor/composer/autoload_classmap.php +345 -0
- vendor/composer/autoload_real.php +3 -3
- vendor/composer/installed.json +106 -106
lib/FunctionWrapper.php
CHANGED
@@ -38,7 +38,7 @@ class FunctionWrapper {
|
|
38 |
if ( (is_string($function[0]) && class_exists($function[0])) || gettype($function[0]) === 'object' ) {
|
39 |
$this->_class = $function[0];
|
40 |
}
|
41 |
-
|
42 |
if ( is_string($function[1]) ) {
|
43 |
$this->_function = $function[1];
|
44 |
}
|
@@ -56,20 +56,30 @@ class FunctionWrapper {
|
|
56 |
add_filter('timber/twig', array(&$this, 'add_to_twig'));
|
57 |
}
|
58 |
|
59 |
-
/**
|
60 |
-
*
|
|
|
|
|
|
|
|
|
|
|
61 |
* @deprecated since 1.3.0
|
62 |
-
* @todo remove in 1.4.0
|
63 |
-
* @param Twig_Environment $twig
|
64 |
-
* @return Twig_Environment
|
65 |
-
*/
|
66 |
public function add_to_twig( $twig ) {
|
67 |
-
$wrapper = $this;
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
|
|
|
|
|
|
|
|
|
|
73 |
}
|
74 |
|
75 |
/**
|
38 |
if ( (is_string($function[0]) && class_exists($function[0])) || gettype($function[0]) === 'object' ) {
|
39 |
$this->_class = $function[0];
|
40 |
}
|
41 |
+
|
42 |
if ( is_string($function[1]) ) {
|
43 |
$this->_function = $function[1];
|
44 |
}
|
56 |
add_filter('timber/twig', array(&$this, 'add_to_twig'));
|
57 |
}
|
58 |
|
59 |
+
/**
|
60 |
+
* Make function available in Twig.
|
61 |
+
*
|
62 |
+
* When a function is added more than once, addFunction() will throw a LogicException that states that the function
|
63 |
+
* is already registered. By catching this exception, we can prevent a fatal error.
|
64 |
+
* @see Twig_Extension_Staging::addFunction()
|
65 |
+
*
|
66 |
* @deprecated since 1.3.0
|
67 |
+
* @todo remove in 1.4.0
|
68 |
+
* @param \Twig_Environment $twig
|
69 |
+
* @return \Twig_Environment
|
70 |
+
*/
|
71 |
public function add_to_twig( $twig ) {
|
72 |
+
$wrapper = $this;
|
73 |
+
|
74 |
+
try {
|
75 |
+
$twig->addFunction( new \Twig_SimpleFunction( $this->_function, function() use ( $wrapper ) {
|
76 |
+
return call_user_func_array( array( $wrapper, 'call' ), func_get_args() );
|
77 |
+
} ) );
|
78 |
+
|
79 |
+
// Use empty 'catch' block and not 'finally', because finally needs PHP 5.5 to work.
|
80 |
+
} catch ( \Exception $e ) {}
|
81 |
+
|
82 |
+
return $twig;
|
83 |
}
|
84 |
|
85 |
/**
|
lib/Image/Operation/ToJpg.php
CHANGED
@@ -40,21 +40,25 @@ class ToJpg extends ImageOperation {
|
|
40 |
* @return bool true if everything went fine, false otherwise
|
41 |
*/
|
42 |
public function run( $load_filename, $save_filename ) {
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
|
48 |
$ext = wp_check_filetype($load_filename);
|
49 |
if ( isset($ext['ext']) ) {
|
50 |
$ext = $ext['ext'];
|
51 |
}
|
52 |
$ext = strtolower($ext);
|
53 |
-
|
|
|
|
|
|
|
54 |
return false;
|
55 |
}
|
56 |
-
|
57 |
-
$input =
|
|
|
58 |
list($width, $height) = getimagesize($load_filename);
|
59 |
$output = imagecreatetruecolor($width, $height);
|
60 |
$c = self::hexrgb($this->color);
|
@@ -64,29 +68,4 @@ class ToJpg extends ImageOperation {
|
|
64 |
imagejpeg($output, $save_filename);
|
65 |
return true;
|
66 |
}
|
67 |
-
|
68 |
-
/**
|
69 |
-
* @param string $filename
|
70 |
-
* @return resource an image identifier representing the image obtained from the given filename
|
71 |
-
* will return the same data type regardless of whether the source is gif or png
|
72 |
-
*/
|
73 |
-
public function image_create( $filename, $ext = 'auto' ) {
|
74 |
-
if ( $ext == 'auto' ) {
|
75 |
-
$ext = wp_check_filetype($filename);
|
76 |
-
if ( isset($ext['ext']) ) {
|
77 |
-
$ext = $ext['ext'];
|
78 |
-
}
|
79 |
-
}
|
80 |
-
$ext = strtolower($ext);
|
81 |
-
if ( $ext == 'gif' ) {
|
82 |
-
return imagecreatefromgif($filename);
|
83 |
-
}
|
84 |
-
if ( $ext == 'png' ) {
|
85 |
-
return imagecreatefrompng($filename);
|
86 |
-
}
|
87 |
-
if ( $ext == 'jpg' || $ext == 'jpeg' ) {
|
88 |
-
return imagecreatefromjpeg($filename);
|
89 |
-
}
|
90 |
-
throw new \InvalidArgumentException('image_create only accepts PNG, GIF and JPGs. File extension was: '.$ext);
|
91 |
-
}
|
92 |
}
|
40 |
* @return bool true if everything went fine, false otherwise
|
41 |
*/
|
42 |
public function run( $load_filename, $save_filename ) {
|
43 |
+
|
44 |
+
if ( !file_exists($load_filename) ) {
|
45 |
+
return false;
|
46 |
+
}
|
47 |
|
48 |
$ext = wp_check_filetype($load_filename);
|
49 |
if ( isset($ext['ext']) ) {
|
50 |
$ext = $ext['ext'];
|
51 |
}
|
52 |
$ext = strtolower($ext);
|
53 |
+
$ext = str_replace('jpg', 'jpeg', $ext);
|
54 |
+
|
55 |
+
$imagecreate_function = 'imagecreatefrom' . $ext;
|
56 |
+
if ( !function_exists($imagecreate_function) ) {
|
57 |
return false;
|
58 |
}
|
59 |
+
|
60 |
+
$input = $imagecreate_function($load_filename);
|
61 |
+
|
62 |
list($width, $height) = getimagesize($load_filename);
|
63 |
$output = imagecreatetruecolor($width, $height);
|
64 |
$c = self::hexrgb($this->color);
|
68 |
imagejpeg($output, $save_filename);
|
69 |
return true;
|
70 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
}
|
lib/ImageHelper.php
CHANGED
@@ -29,9 +29,9 @@ class ImageHelper {
|
|
29 |
const BASE_CONTENT = 2;
|
30 |
|
31 |
public static function init() {
|
32 |
-
self::add_constants();
|
33 |
self::add_actions();
|
34 |
self::add_filters();
|
|
|
35 |
}
|
36 |
|
37 |
/**
|
@@ -179,17 +179,6 @@ class ImageHelper {
|
|
179 |
}, 10, 2);
|
180 |
}
|
181 |
|
182 |
-
/**
|
183 |
-
* Adds a constant defining the path to the content directory relative to the site
|
184 |
-
* for example /wp-content or /content
|
185 |
-
*/
|
186 |
-
protected static function add_constants() {
|
187 |
-
if ( !defined('WP_CONTENT_SUBDIR') ) {
|
188 |
-
$wp_content_path = str_replace(get_home_url(), '', WP_CONTENT_URL);
|
189 |
-
define('WP_CONTENT_SUBDIR', $wp_content_path);
|
190 |
-
}
|
191 |
-
}
|
192 |
-
|
193 |
/**
|
194 |
* adds a 'relative' key to wp_upload_dir() result.
|
195 |
* It will contain the relative url to upload dir.
|
@@ -365,18 +354,13 @@ class ImageHelper {
|
|
365 |
$tmp = str_replace(WP_CONTENT_DIR, '', $tmp);
|
366 |
}
|
367 |
} else {
|
368 |
-
|
369 |
-
|
370 |
-
if ( false === strpos($upload_dir['baseurl'], site_url()) ) {
|
371 |
-
// use HOME_URL and relative image path
|
372 |
-
$tmp = get_home_url().$tmp;
|
373 |
-
} else if ( !$result['absolute'] ) {
|
374 |
-
$tmp = site_url().$tmp;
|
375 |
}
|
376 |
-
if (
|
377 |
$result['base'] = self::BASE_UPLOADS; // upload based
|
378 |
$tmp = str_replace($upload_dir['baseurl'], '', $tmp);
|
379 |
-
} else if (
|
380 |
$result['base'] = self::BASE_CONTENT; // content-based
|
381 |
$tmp = self::theme_url_to_dir($tmp);
|
382 |
$tmp = str_replace(WP_CONTENT_DIR, '', $tmp);
|
@@ -468,7 +452,7 @@ class ImageHelper {
|
|
468 |
$subdir = URLHelper::url_to_file_system($subdir);
|
469 |
}
|
470 |
$subdir = self::maybe_realpath($subdir);
|
471 |
-
|
472 |
$path = '';
|
473 |
if ( self::BASE_UPLOADS == $base ) {
|
474 |
//it is in the Uploads directory
|
@@ -535,11 +519,11 @@ class ImageHelper {
|
|
535 |
$au['subdir'],
|
536 |
$au['basename']
|
537 |
);
|
538 |
-
|
539 |
$new_url = apply_filters('timber/image/new_url', $new_url);
|
540 |
$destination_path = apply_filters('timber/image/new_path', $destination_path);
|
541 |
// if already exists...
|
542 |
-
if ( file_exists($destination_path) ) {
|
543 |
if ( $force || filemtime($source_path) > filemtime($destination_path) ) {
|
544 |
// Force operation - warning: will regenerate the image on every pageload, use for testing purposes only!
|
545 |
unlink($destination_path);
|
29 |
const BASE_CONTENT = 2;
|
30 |
|
31 |
public static function init() {
|
|
|
32 |
self::add_actions();
|
33 |
self::add_filters();
|
34 |
+
return true;
|
35 |
}
|
36 |
|
37 |
/**
|
179 |
}, 10, 2);
|
180 |
}
|
181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
/**
|
183 |
* adds a 'relative' key to wp_upload_dir() result.
|
184 |
* It will contain the relative url to upload dir.
|
354 |
$tmp = str_replace(WP_CONTENT_DIR, '', $tmp);
|
355 |
}
|
356 |
} else {
|
357 |
+
if ( !$result['absolute'] ) {
|
358 |
+
$tmp = untrailingslashit(network_home_url()).$tmp;
|
|
|
|
|
|
|
|
|
|
|
359 |
}
|
360 |
+
if ( URLHelper::starts_with($tmp, $upload_dir['baseurl']) ) {
|
361 |
$result['base'] = self::BASE_UPLOADS; // upload based
|
362 |
$tmp = str_replace($upload_dir['baseurl'], '', $tmp);
|
363 |
+
} else if ( URLHelper::starts_with($tmp, content_url()) ) {
|
364 |
$result['base'] = self::BASE_CONTENT; // content-based
|
365 |
$tmp = self::theme_url_to_dir($tmp);
|
366 |
$tmp = str_replace(WP_CONTENT_DIR, '', $tmp);
|
452 |
$subdir = URLHelper::url_to_file_system($subdir);
|
453 |
}
|
454 |
$subdir = self::maybe_realpath($subdir);
|
455 |
+
|
456 |
$path = '';
|
457 |
if ( self::BASE_UPLOADS == $base ) {
|
458 |
//it is in the Uploads directory
|
519 |
$au['subdir'],
|
520 |
$au['basename']
|
521 |
);
|
522 |
+
|
523 |
$new_url = apply_filters('timber/image/new_url', $new_url);
|
524 |
$destination_path = apply_filters('timber/image/new_path', $destination_path);
|
525 |
// if already exists...
|
526 |
+
if ( file_exists($source_path) && file_exists($destination_path) ) {
|
527 |
if ( $force || filemtime($source_path) > filemtime($destination_path) ) {
|
528 |
// Force operation - warning: will regenerate the image on every pageload, use for testing purposes only!
|
529 |
unlink($destination_path);
|
lib/Integrations.php
CHANGED
@@ -30,5 +30,6 @@ class Integrations {
|
|
30 |
if ( class_exists('CoAuthors_Plus') ) {
|
31 |
$this->coauthors_plus = new Integrations\CoAuthorsPlus();
|
32 |
}
|
|
|
33 |
}
|
34 |
}
|
30 |
if ( class_exists('CoAuthors_Plus') ) {
|
31 |
$this->coauthors_plus = new Integrations\CoAuthorsPlus();
|
32 |
}
|
33 |
+
$this->wpml = new Integrations\WPML();
|
34 |
}
|
35 |
}
|
lib/Integrations/Timber_WP_CLI_Command.php
CHANGED
@@ -19,7 +19,13 @@ class Timber_WP_CLI_Command extends \WP_CLI_Command {
|
|
19 |
*
|
20 |
*/
|
21 |
public function clear_cache( $mode = 'all' ) {
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
|
25 |
/**
|
@@ -31,12 +37,7 @@ class Timber_WP_CLI_Command extends \WP_CLI_Command {
|
|
31 |
*
|
32 |
*/
|
33 |
public function clear_cache_twig() {
|
34 |
-
$
|
35 |
-
if ( $clear ) {
|
36 |
-
WP_CLI::success('Cleared contents of twig cache');
|
37 |
-
} else {
|
38 |
-
WP_CLI::warning('Failed to clear twig cache');
|
39 |
-
}
|
40 |
}
|
41 |
|
42 |
/**
|
@@ -48,14 +49,6 @@ class Timber_WP_CLI_Command extends \WP_CLI_Command {
|
|
48 |
*
|
49 |
*/
|
50 |
public function clear_cache_timber() {
|
51 |
-
$
|
52 |
-
$message = 'Failed to clear timber cache';
|
53 |
-
if ( $clear ) {
|
54 |
-
$message = "Cleared contents of Timber's Cache";
|
55 |
-
WP_CLI::success($message);
|
56 |
-
} else {
|
57 |
-
WP_CLI::warning($message);
|
58 |
-
}
|
59 |
-
return $message;
|
60 |
}
|
61 |
-
}
|
19 |
*
|
20 |
*/
|
21 |
public function clear_cache( $mode = 'all' ) {
|
22 |
+
$mode = $mode ? : 'all';
|
23 |
+
$cleared = Command::clear_cache( $mode );
|
24 |
+
if ( $cleared ) {
|
25 |
+
\WP_CLI::success("Cleared {$mode} cached contents");
|
26 |
+
} else {
|
27 |
+
\WP_CLI::warning("Failed to clear {$mode} cached contents");
|
28 |
+
}
|
29 |
}
|
30 |
|
31 |
/**
|
37 |
*
|
38 |
*/
|
39 |
public function clear_cache_twig() {
|
40 |
+
$this->clear_cache( 'twig' );
|
|
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
|
43 |
/**
|
49 |
*
|
50 |
*/
|
51 |
public function clear_cache_timber() {
|
52 |
+
$this->clear_cache( 'timber' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
}
|
54 |
+
}
|
lib/Integrations/WPML.php
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace Timber\Integrations;
|
4 |
+
|
5 |
+
class WPML {
|
6 |
+
|
7 |
+
public function __construct() {
|
8 |
+
add_filter('timber/URLHelper/file_system_to_url', array($this, 'file_system_to_url'), 10, 1);
|
9 |
+
add_filter('timber/URLHelper/get_content_subdir/home_url', array($this, 'file_system_to_url'), 10, 1);
|
10 |
+
add_filter('timber/URLHelper/url_to_file_system/path', array($this, 'file_system_to_url'), 10, 1);
|
11 |
+
|
12 |
+
}
|
13 |
+
|
14 |
+
public function file_system_to_url($url) {
|
15 |
+
if ( defined('ICL_LANGUAGE_CODE') ) {
|
16 |
+
$url = preg_replace('/\/' . ICL_LANGUAGE_CODE . '/', '', $url);
|
17 |
+
}
|
18 |
+
return $url;
|
19 |
+
}
|
20 |
+
|
21 |
+
}
|
lib/Loader.php
CHANGED
@@ -87,8 +87,11 @@ class Loader {
|
|
87 |
}
|
88 |
|
89 |
/**
|
90 |
-
*
|
91 |
-
*
|
|
|
|
|
|
|
92 |
*/
|
93 |
public function choose_template( $filenames ) {
|
94 |
if ( is_array($filenames) ) {
|
87 |
}
|
88 |
|
89 |
/**
|
90 |
+
* Get first existing template file.
|
91 |
+
*
|
92 |
+
* @param array|string $filenames Name of the Twig file to render. If this is an array of files, the function
|
93 |
+
* return the first file that exists.
|
94 |
+
* @return string
|
95 |
*/
|
96 |
public function choose_template( $filenames ) {
|
97 |
if ( is_array($filenames) ) {
|
lib/Menu.php
CHANGED
@@ -151,6 +151,10 @@ class Menu extends Core {
|
|
151 |
}
|
152 |
if ( isset($locations[$slug]) ) {
|
153 |
$menu_id = $locations[$slug];
|
|
|
|
|
|
|
|
|
154 |
return $menu_id;
|
155 |
}
|
156 |
}
|
151 |
}
|
152 |
if ( isset($locations[$slug]) ) {
|
153 |
$menu_id = $locations[$slug];
|
154 |
+
if ( function_exists('wpml_object_id_filter') ) {
|
155 |
+
$menu_id = wpml_object_id_filter($locations[$slug], 'nav_menu');
|
156 |
+
}
|
157 |
+
|
158 |
return $menu_id;
|
159 |
}
|
160 |
}
|
lib/Post.php
CHANGED
@@ -375,7 +375,7 @@ class Post extends Core implements CoreInterface {
|
|
375 |
* get a preview of your post, if you have an excerpt it will use that,
|
376 |
* otherwise it will pull from the post_content.
|
377 |
* If there's a <!-- more --> tag it will use that to mark where to pull through.
|
378 |
-
* @
|
379 |
* @example
|
380 |
* ```twig
|
381 |
* <p>{{post.get_preview(50)}}</p>
|
@@ -410,7 +410,9 @@ class Post extends Core implements CoreInterface {
|
|
410 |
$text = do_shortcode($text);
|
411 |
}
|
412 |
if ( !strlen($text) ) {
|
413 |
-
$text =
|
|
|
|
|
414 |
$trimmed = true;
|
415 |
}
|
416 |
if ( !strlen(trim($text)) ) {
|
@@ -1184,11 +1186,13 @@ class Post extends Core implements CoreInterface {
|
|
1184 |
|
1185 |
/**
|
1186 |
* Finds any WP_Post objects and converts them to Timber\Posts
|
1187 |
-
* @param array $data
|
1188 |
* @param string $class
|
1189 |
*/
|
1190 |
public function convert( $data, $class ) {
|
1191 |
-
if (
|
|
|
|
|
1192 |
$func = __FUNCTION__;
|
1193 |
foreach ( $data as &$ele ) {
|
1194 |
if ( gettype($ele) === 'array' ) {
|
375 |
* get a preview of your post, if you have an excerpt it will use that,
|
376 |
* otherwise it will pull from the post_content.
|
377 |
* If there's a <!-- more --> tag it will use that to mark where to pull through.
|
378 |
+
* @deprecated since 1.3.1, use {{ post.preview }} instead
|
379 |
* @example
|
380 |
* ```twig
|
381 |
* <p>{{post.get_preview(50)}}</p>
|
410 |
$text = do_shortcode($text);
|
411 |
}
|
412 |
if ( !strlen($text) ) {
|
413 |
+
$text = $this->content();
|
414 |
+
$text = TextHelper::remove_tags($text, array('script', 'style'));
|
415 |
+
$text = TextHelper::trim_words($text, $len, false);
|
416 |
$trimmed = true;
|
417 |
}
|
418 |
if ( !strlen(trim($text)) ) {
|
1186 |
|
1187 |
/**
|
1188 |
* Finds any WP_Post objects and converts them to Timber\Posts
|
1189 |
+
* @param array|WP_Post $data
|
1190 |
* @param string $class
|
1191 |
*/
|
1192 |
public function convert( $data, $class ) {
|
1193 |
+
if ( $data instanceof WP_Post ) {
|
1194 |
+
$data = new $class($data);
|
1195 |
+
} else if ( is_array($data) ) {
|
1196 |
$func = __FUNCTION__;
|
1197 |
foreach ( $data as &$ele ) {
|
1198 |
if ( gettype($ele) === 'array' ) {
|
lib/PostGetter.php
CHANGED
@@ -8,9 +8,9 @@ use Timber\QueryIterator;
|
|
8 |
class PostGetter {
|
9 |
|
10 |
/**
|
11 |
-
* @param mixed
|
12 |
* @param string|array $PostClass
|
13 |
-
* @return
|
14 |
*/
|
15 |
public static function get_post( $query = false, $PostClass = '\Timber\Post' ) {
|
16 |
// if a post id is passed, grab the post directly
|
@@ -26,9 +26,12 @@ class PostGetter {
|
|
26 |
}
|
27 |
|
28 |
$posts = self::get_posts($query, $PostClass);
|
|
|
29 |
if ( $post = reset($posts) ) {
|
30 |
return $post;
|
31 |
}
|
|
|
|
|
32 |
}
|
33 |
|
34 |
public static function get_posts( $query = false, $PostClass = '\Timber\Post', $return_collection = false ) {
|
8 |
class PostGetter {
|
9 |
|
10 |
/**
|
11 |
+
* @param mixed $query
|
12 |
* @param string|array $PostClass
|
13 |
+
* @return \Timber\Post|bool
|
14 |
*/
|
15 |
public static function get_post( $query = false, $PostClass = '\Timber\Post' ) {
|
16 |
// if a post id is passed, grab the post directly
|
26 |
}
|
27 |
|
28 |
$posts = self::get_posts($query, $PostClass);
|
29 |
+
|
30 |
if ( $post = reset($posts) ) {
|
31 |
return $post;
|
32 |
}
|
33 |
+
|
34 |
+
return false;
|
35 |
}
|
36 |
|
37 |
public static function get_posts( $query = false, $PostClass = '\Timber\Post', $return_collection = false ) {
|
lib/Site.php
CHANGED
@@ -53,11 +53,6 @@ class Site extends Core implements CoreInterface {
|
|
53 |
* @var string the language setting ex: en-US
|
54 |
*/
|
55 |
public $language;
|
56 |
-
/**
|
57 |
-
* @api
|
58 |
-
* @var string of language attributes for usage in the <html> tag
|
59 |
-
*/
|
60 |
-
public $language_attributes;
|
61 |
/**
|
62 |
* @api
|
63 |
* @var bool true if multisite, false if plain ole' WordPress
|
@@ -163,7 +158,6 @@ class Site extends Core implements CoreInterface {
|
|
163 |
$this->title = $this->name;
|
164 |
$this->description = get_bloginfo('description');
|
165 |
$this->theme = new Theme();
|
166 |
-
$this->language_attributes = get_language_attributes();
|
167 |
$this->multisite = false;
|
168 |
}
|
169 |
|
@@ -180,7 +174,15 @@ class Site extends Core implements CoreInterface {
|
|
180 |
$this->language = get_bloginfo('language');
|
181 |
$this->charset = get_bloginfo('charset');
|
182 |
$this->pingback = $this->pingback_url = get_bloginfo('pingback_url');
|
183 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
}
|
185 |
|
186 |
/**
|
53 |
* @var string the language setting ex: en-US
|
54 |
*/
|
55 |
public $language;
|
|
|
|
|
|
|
|
|
|
|
56 |
/**
|
57 |
* @api
|
58 |
* @var bool true if multisite, false if plain ole' WordPress
|
158 |
$this->title = $this->name;
|
159 |
$this->description = get_bloginfo('description');
|
160 |
$this->theme = new Theme();
|
|
|
161 |
$this->multisite = false;
|
162 |
}
|
163 |
|
174 |
$this->language = get_bloginfo('language');
|
175 |
$this->charset = get_bloginfo('charset');
|
176 |
$this->pingback = $this->pingback_url = get_bloginfo('pingback_url');
|
177 |
+
}
|
178 |
+
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Returns the language attributes that you're looking for
|
182 |
+
* @return string
|
183 |
+
*/
|
184 |
+
public function language_attributes() {
|
185 |
+
return get_language_attributes();
|
186 |
}
|
187 |
|
188 |
/**
|
lib/Timber.php
CHANGED
@@ -120,11 +120,14 @@ class Timber {
|
|
120 |
================================ */
|
121 |
|
122 |
/**
|
123 |
-
* Get post.
|
|
|
124 |
* @api
|
125 |
-
* @param mixed
|
126 |
-
*
|
127 |
-
*
|
|
|
|
|
128 |
*/
|
129 |
public static function get_post( $query = false, $PostClass = 'Timber\Post' ) {
|
130 |
return PostGetter::get_post($query, $PostClass);
|
@@ -256,14 +259,30 @@ class Timber {
|
|
256 |
}
|
257 |
|
258 |
/**
|
259 |
-
* Compile
|
|
|
|
|
|
|
260 |
* @api
|
261 |
-
* @
|
262 |
-
*
|
263 |
-
*
|
264 |
-
*
|
265 |
-
*
|
266 |
-
* @
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
*/
|
268 |
public static function compile( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT, $via_render = false ) {
|
269 |
if ( !defined('TIMBER_LOADED') ) {
|
@@ -293,10 +312,19 @@ class Timber {
|
|
293 |
}
|
294 |
|
295 |
/**
|
296 |
-
* Compile string.
|
|
|
297 |
* @api
|
298 |
-
* @
|
299 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
* @return bool|string
|
301 |
*/
|
302 |
public static function compile_string( $string, $data = array() ) {
|
@@ -308,12 +336,16 @@ class Timber {
|
|
308 |
|
309 |
/**
|
310 |
* Fetch function.
|
|
|
311 |
* @api
|
312 |
-
* @param array
|
313 |
-
*
|
314 |
-
* @param
|
315 |
-
* @param
|
316 |
-
*
|
|
|
|
|
|
|
317 |
*/
|
318 |
public static function fetch( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
|
319 |
$output = self::compile($filenames, $data, $expires, $cache_mode, true);
|
@@ -323,12 +355,24 @@ class Timber {
|
|
323 |
|
324 |
/**
|
325 |
* Render function.
|
|
|
|
|
|
|
326 |
* @api
|
327 |
-
* @
|
328 |
-
*
|
329 |
-
*
|
330 |
-
*
|
331 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
332 |
*/
|
333 |
public static function render( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
|
334 |
$output = self::fetch($filenames, $data, $expires, $cache_mode);
|
@@ -337,11 +381,20 @@ class Timber {
|
|
337 |
}
|
338 |
|
339 |
/**
|
340 |
-
* Render string.
|
|
|
341 |
* @api
|
342 |
-
* @
|
343 |
-
*
|
344 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
*/
|
346 |
public static function render_string( $string, $data = array() ) {
|
347 |
$compiled = self::compile_string($string, $data);
|
@@ -402,12 +455,10 @@ class Timber {
|
|
402 |
*
|
403 |
* @api
|
404 |
* @param int|string $widget_id Optional. Index, name or ID of dynamic sidebar. Default 1.
|
405 |
-
* @return
|
406 |
*/
|
407 |
public static function get_widgets( $widget_id ) {
|
408 |
-
|
409 |
-
|
410 |
-
return trim( $output );
|
411 |
}
|
412 |
|
413 |
/* Pagination
|
120 |
================================ */
|
121 |
|
122 |
/**
|
123 |
+
* Get a post by post ID or query (as a query string or an array of arguments).
|
124 |
+
*
|
125 |
* @api
|
126 |
+
* @param mixed $query Optional. Post ID or query (as query string or an array of arguments for
|
127 |
+
* WP_Query). If a query is provided, only the first post of the result will be
|
128 |
+
* returned. Default false.
|
129 |
+
* @param string|array $PostClass Optional. Class to use to wrap the returned post object. Default 'Timber\Post'.
|
130 |
+
* @return \Timber\Post|bool Timber\Post object if a post was found, false if no post was found.
|
131 |
*/
|
132 |
public static function get_post( $query = false, $PostClass = 'Timber\Post' ) {
|
133 |
return PostGetter::get_post($query, $PostClass);
|
259 |
}
|
260 |
|
261 |
/**
|
262 |
+
* Compile a Twig file.
|
263 |
+
*
|
264 |
+
* Passes data to a Twig file and returns the output.
|
265 |
+
*
|
266 |
* @api
|
267 |
+
* @example
|
268 |
+
* ```php
|
269 |
+
* $data = array(
|
270 |
+
* 'firstname' => 'Jane',
|
271 |
+
* 'lastname' => 'Doe',
|
272 |
+
* 'email' => 'jane.doe@example.org',
|
273 |
+
* );
|
274 |
+
*
|
275 |
+
* $team_member = Timber::compile( 'team-member.twig', $data );
|
276 |
+
* ```
|
277 |
+
* @param array|string $filenames Name of the Twig file to render. If this is an array of files, Timber will
|
278 |
+
* render the first file that exists.
|
279 |
+
* @param array $data Optional. An array of data to use in Twig template.
|
280 |
+
* @param bool|int $expires Optional. In seconds. Use false to disable cache altogether. When passed an
|
281 |
+
* array, the first value is used for non-logged in visitors, the second for users.
|
282 |
+
* Default false.
|
283 |
+
* @param string $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
|
284 |
+
* @param bool $via_render Optional. Whether to apply optional render or compile filters. Default false.
|
285 |
+
* @return bool|string The returned output.
|
286 |
*/
|
287 |
public static function compile( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT, $via_render = false ) {
|
288 |
if ( !defined('TIMBER_LOADED') ) {
|
312 |
}
|
313 |
|
314 |
/**
|
315 |
+
* Compile a string.
|
316 |
+
*
|
317 |
* @api
|
318 |
+
* @example
|
319 |
+
* ```php
|
320 |
+
* $data = array(
|
321 |
+
* 'username' => 'Jane Doe',
|
322 |
+
* );
|
323 |
+
*
|
324 |
+
* $welcome = Timber::compile_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
|
325 |
+
* ```
|
326 |
+
* @param string $string A string with Twig variables.
|
327 |
+
* @param array $data Optional. An array of data to use in Twig template.
|
328 |
* @return bool|string
|
329 |
*/
|
330 |
public static function compile_string( $string, $data = array() ) {
|
336 |
|
337 |
/**
|
338 |
* Fetch function.
|
339 |
+
*
|
340 |
* @api
|
341 |
+
* @param array|string $filenames Name of the Twig file to render. If this is an array of files, Timber will
|
342 |
+
* render the first file that exists.
|
343 |
+
* @param array $data Optional. An array of data to use in Twig template.
|
344 |
+
* @param bool|int $expires Optional. In seconds. Use false to disable cache altogether. When passed an
|
345 |
+
* array, the first value is used for non-logged in visitors, the second for users.
|
346 |
+
* Default false.
|
347 |
+
* @param string $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
|
348 |
+
* @return bool|string The returned output.
|
349 |
*/
|
350 |
public static function fetch( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
|
351 |
$output = self::compile($filenames, $data, $expires, $cache_mode, true);
|
355 |
|
356 |
/**
|
357 |
* Render function.
|
358 |
+
*
|
359 |
+
* Passes data to a Twig file and echoes the output.
|
360 |
+
*
|
361 |
* @api
|
362 |
+
* @example
|
363 |
+
* ```php
|
364 |
+
* $context = Timber::get_context();
|
365 |
+
*
|
366 |
+
* Timber::render( 'index.twig', $context );
|
367 |
+
* ```
|
368 |
+
* @param array|string $filenames Name of the Twig file to render. If this is an array of files, Timber will
|
369 |
+
* render the first file that exists.
|
370 |
+
* @param array $data Optional. An array of data to use in Twig template.
|
371 |
+
* @param bool|int $expires Optional. In seconds. Use false to disable cache altogether. When passed an
|
372 |
+
* array, the first value is used for non-logged in visitors, the second for users.
|
373 |
+
* Default false.
|
374 |
+
* @param string $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
|
375 |
+
* @return bool|string The echoed output.
|
376 |
*/
|
377 |
public static function render( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
|
378 |
$output = self::fetch($filenames, $data, $expires, $cache_mode);
|
381 |
}
|
382 |
|
383 |
/**
|
384 |
+
* Render a string with Twig variables.
|
385 |
+
*
|
386 |
* @api
|
387 |
+
* @example
|
388 |
+
* ```php
|
389 |
+
* $data = array(
|
390 |
+
* 'username' => 'Jane Doe',
|
391 |
+
* );
|
392 |
+
*
|
393 |
+
* Timber::render_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
|
394 |
+
* ```
|
395 |
+
* @param string $string A string with Twig variables.
|
396 |
+
* @param array $data An array of data to use in Twig template.
|
397 |
+
* @return bool|string
|
398 |
*/
|
399 |
public static function render_string( $string, $data = array() ) {
|
400 |
$compiled = self::compile_string($string, $data);
|
455 |
*
|
456 |
* @api
|
457 |
* @param int|string $widget_id Optional. Index, name or ID of dynamic sidebar. Default 1.
|
458 |
+
* @return string
|
459 |
*/
|
460 |
public static function get_widgets( $widget_id ) {
|
461 |
+
return trim( Helper::ob_function( 'dynamic_sidebar', array( $widget_id ) ) );
|
|
|
|
|
462 |
}
|
463 |
|
464 |
/* Pagination
|
lib/URLHelper.php
CHANGED
@@ -28,6 +28,22 @@ class URLHelper {
|
|
28 |
return isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http';
|
29 |
}
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
/**
|
33 |
*
|
@@ -98,7 +114,7 @@ class URLHelper {
|
|
98 |
if ( isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] ) {
|
99 |
return $_SERVER['HTTP_HOST'];
|
100 |
}
|
101 |
-
if ( isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME']) {
|
102 |
return $_SERVER['SERVER_NAME'];
|
103 |
}
|
104 |
return '';
|
@@ -140,6 +156,7 @@ class URLHelper {
|
|
140 |
*/
|
141 |
public static function url_to_file_system( $url ) {
|
142 |
$url_parts = parse_url($url);
|
|
|
143 |
$path = ABSPATH.$url_parts['path'];
|
144 |
$path = str_replace('//', '/', $path);
|
145 |
return $path;
|
@@ -151,9 +168,22 @@ class URLHelper {
|
|
151 |
public static function file_system_to_url( $fs ) {
|
152 |
$relative_path = self::get_rel_path($fs);
|
153 |
$home = home_url('/'.$relative_path);
|
|
|
154 |
return $home;
|
155 |
}
|
156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
/**
|
158 |
*
|
159 |
*
|
@@ -166,7 +196,7 @@ class URLHelper {
|
|
166 |
}
|
167 |
//its outside the wordpress directory, alternate setups:
|
168 |
$src = str_replace(WP_CONTENT_DIR, '', $src);
|
169 |
-
return
|
170 |
}
|
171 |
|
172 |
/**
|
@@ -180,6 +210,9 @@ class URLHelper {
|
|
180 |
if ( strstr($url, 'http:') && !strstr($url, 'http://') ) {
|
181 |
$url = str_replace('http:/', 'http://', $url);
|
182 |
}
|
|
|
|
|
|
|
183 |
return $url;
|
184 |
}
|
185 |
|
@@ -193,7 +226,14 @@ class URLHelper {
|
|
193 |
public static function prepend_to_url( $url, $path ) {
|
194 |
if ( strstr(strtolower($url), 'http') ) {
|
195 |
$url_parts = parse_url($url);
|
196 |
-
$url = $url_parts['scheme'].'://'.$url_parts['host']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
if ( isset($url_parts['path']) ) {
|
198 |
$url .= $url_parts['path'];
|
199 |
}
|
@@ -316,10 +356,10 @@ class URLHelper {
|
|
316 |
return $link;
|
317 |
}
|
318 |
|
319 |
-
if( isset($link_parts['path']) && $link_parts['path'] != '/' ) {
|
320 |
-
$new_path = user_trailingslashit(
|
321 |
|
322 |
-
if ( $new_path != $link_parts['path'] )
|
323 |
$link = str_replace($link_parts['path'], $new_path, $link);
|
324 |
}
|
325 |
}
|
28 |
return isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http';
|
29 |
}
|
30 |
|
31 |
+
/**
|
32 |
+
*
|
33 |
+
* Check to see if the URL begins with the string in question
|
34 |
+
* Because it's a URL we don't care about protocol (HTTP vs HTTPS)
|
35 |
+
* Or case (so it's cAsE iNsEnSeTiVe)
|
36 |
+
* @return boolean
|
37 |
+
*/
|
38 |
+
public static function starts_with( $haystack, $starts_with ) {
|
39 |
+
$haystack = str_replace('https', 'http', strtolower($haystack));
|
40 |
+
$starts_with = str_replace('https', 'http', strtolower($starts_with));
|
41 |
+
if ( 0 === strpos($haystack, $starts_with) ) {
|
42 |
+
return true;
|
43 |
+
}
|
44 |
+
return false;
|
45 |
+
}
|
46 |
+
|
47 |
|
48 |
/**
|
49 |
*
|
114 |
if ( isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] ) {
|
115 |
return $_SERVER['HTTP_HOST'];
|
116 |
}
|
117 |
+
if ( isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] ) {
|
118 |
return $_SERVER['SERVER_NAME'];
|
119 |
}
|
120 |
return '';
|
156 |
*/
|
157 |
public static function url_to_file_system( $url ) {
|
158 |
$url_parts = parse_url($url);
|
159 |
+
$url_parts['path'] = apply_filters('timber/URLHelper/url_to_file_system/path', $url_parts['path']);
|
160 |
$path = ABSPATH.$url_parts['path'];
|
161 |
$path = str_replace('//', '/', $path);
|
162 |
return $path;
|
168 |
public static function file_system_to_url( $fs ) {
|
169 |
$relative_path = self::get_rel_path($fs);
|
170 |
$home = home_url('/'.$relative_path);
|
171 |
+
$home = apply_filters('timber/URLHelper/file_system_to_url', $home);
|
172 |
return $home;
|
173 |
}
|
174 |
|
175 |
+
/**
|
176 |
+
* Get the path to the content directory relative to the site.
|
177 |
+
* This replaces the WP_CONTENT_SUBDIR constant
|
178 |
+
* @return string (ex: /wp-content or /content)
|
179 |
+
*/
|
180 |
+
public static function get_content_subdir() {
|
181 |
+
$home_url = get_home_url();
|
182 |
+
$home_url = apply_filters('timber/URLHelper/get_content_subdir/home_url', $home_url);
|
183 |
+
$wp_content_path = str_replace($home_url, '', WP_CONTENT_URL);
|
184 |
+
return $wp_content_path;
|
185 |
+
}
|
186 |
+
|
187 |
/**
|
188 |
*
|
189 |
*
|
196 |
}
|
197 |
//its outside the wordpress directory, alternate setups:
|
198 |
$src = str_replace(WP_CONTENT_DIR, '', $src);
|
199 |
+
return self::get_content_subdir().$src;
|
200 |
}
|
201 |
|
202 |
/**
|
210 |
if ( strstr($url, 'http:') && !strstr($url, 'http://') ) {
|
211 |
$url = str_replace('http:/', 'http://', $url);
|
212 |
}
|
213 |
+
if ( strstr($url, 'https:') && !strstr($url, 'https://') ) {
|
214 |
+
$url = str_replace('https:/', 'https://', $url);
|
215 |
+
}
|
216 |
return $url;
|
217 |
}
|
218 |
|
226 |
public static function prepend_to_url( $url, $path ) {
|
227 |
if ( strstr(strtolower($url), 'http') ) {
|
228 |
$url_parts = parse_url($url);
|
229 |
+
$url = $url_parts['scheme'].'://'.$url_parts['host'];
|
230 |
+
|
231 |
+
if ( isset($url_parts['port']) ) {
|
232 |
+
$url .= ':'.$url_parts['port'];
|
233 |
+
}
|
234 |
+
|
235 |
+
$url .= $path;
|
236 |
+
|
237 |
if ( isset($url_parts['path']) ) {
|
238 |
$url .= $url_parts['path'];
|
239 |
}
|
356 |
return $link;
|
357 |
}
|
358 |
|
359 |
+
if ( isset($link_parts['path']) && $link_parts['path'] != '/' ) {
|
360 |
+
$new_path = user_trailingslashit($link_parts['path']);
|
361 |
|
362 |
+
if ( $new_path != $link_parts['path'] ) {
|
363 |
$link = str_replace($link_parts['path'], $new_path, $link);
|
364 |
}
|
365 |
}
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: jarednova, connorjburton, lggorman
|
3 |
Tags: template engine, templates, twig
|
4 |
Requires at least: 3.7
|
5 |
-
Stable tag: 1.3.
|
6 |
Tested up to: 4.7.3
|
7 |
PHP version: 5.3.0 or greater
|
8 |
License: GPLv2 or later
|
@@ -41,6 +41,18 @@ Timber is great for any WordPress developer who cares about writing good, mainta
|
|
41 |
|
42 |
== Changelog ==
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
= 1.3.0 =
|
45 |
* Default $context object now returns a PostQuery for $context['posts'] this is cool because you can use `{{ posts.pagination }}` in your Twig templates without any further PHP work (thanks @lggorman)
|
46 |
* Timber\Images with PDFs and other content types now return the file instead of null # (thanks @hoandang)
|
@@ -53,7 +65,7 @@ Timber is great for any WordPress developer who cares about writing good, mainta
|
|
53 |
* Fixed up some things with Timber/Archives and getting post_count #1376
|
54 |
* Don't let Timber fail when converting TIFFs or other weird file types, instead return the passed value w/o modifying #1383
|
55 |
* Updated `FunctionWrapper` with appropriate warnings and Twig 2.0 compat (thank you thank you @gchtr)
|
56 |
-
|
57 |
|
58 |
= 1.2.4 =
|
59 |
* Fixed regression from S3 handling #1330 (@gchtr)
|
2 |
Contributors: jarednova, connorjburton, lggorman
|
3 |
Tags: template engine, templates, twig
|
4 |
Requires at least: 3.7
|
5 |
+
Stable tag: 1.3.2
|
6 |
Tested up to: 4.7.3
|
7 |
PHP version: 5.3.0 or greater
|
8 |
License: GPLv2 or later
|
41 |
|
42 |
== Changelog ==
|
43 |
|
44 |
+
= 1.3.2 =
|
45 |
+
* Fix for image bug with WPML and Roots/Bedrock active #1445 (thanks @njbarrett)
|
46 |
+
* Fix for some HTTPs issues #1448 (thanks @baldursson)
|
47 |
+
* Improved docs! #1441 (thanks @gchtr)
|
48 |
+
* Allow ACF to convert single WP_Post objects to Timber Posts #1439 (thanks @luism-s)
|
49 |
+
|
50 |
+
= 1.3.1 =
|
51 |
+
* Fix for Timber::get_widgets with Twig 2.0 #1422 (thanks @gchtr)
|
52 |
+
* Fix for WPML Menus #1414 (thanks @mikeyb31)
|
53 |
+
* Fix for WPCLI integration #1429 #1430 (thanks @vyarmolenko)
|
54 |
+
* Fix for image format processing #1421 (thanks @mgussekloo)
|
55 |
+
|
56 |
= 1.3.0 =
|
57 |
* Default $context object now returns a PostQuery for $context['posts'] this is cool because you can use `{{ posts.pagination }}` in your Twig templates without any further PHP work (thanks @lggorman)
|
58 |
* Timber\Images with PDFs and other content types now return the file instead of null # (thanks @hoandang)
|
65 |
* Fixed up some things with Timber/Archives and getting post_count #1376
|
66 |
* Don't let Timber fail when converting TIFFs or other weird file types, instead return the passed value w/o modifying #1383
|
67 |
* Updated `FunctionWrapper` with appropriate warnings and Twig 2.0 compat (thank you thank you @gchtr)
|
68 |
+
Misc fixes to documentation
|
69 |
|
70 |
= 1.2.4 =
|
71 |
* Fixed regression from S3 handling #1330 (@gchtr)
|
timber-starter-theme/README.md
CHANGED
@@ -9,7 +9,7 @@ The "_s" for Timber: a dead-simple theme that you can build from. The primary pu
|
|
9 |
|
10 |
Install this theme as you would any other, and be sure the Timber plugin is activated. But hey, let's break it down into some bullets:
|
11 |
|
12 |
-
1. Make sure you have installed the plugin for the [Timber Library](https://wordpress.org/plugins/timber-library/) (and Advanced Custom Fields - they [play quite nicely](
|
13 |
2. Download the zip for this theme (or clone it) and move it to `wp-content/themes` in your WordPress installation.
|
14 |
3. Rename the folder to something that makes sense for your website (generally no spaces and all lowercase). You could keep the name `timber-starter-theme` but the point of a starter theme is to make it your own!
|
15 |
4. Activate the theme in Appearance > Themes.
|
@@ -31,5 +31,5 @@ The [main Timber Wiki](https://github.com/jarednova/timber/wiki) is super great,
|
|
31 |
* [Twig for Timber Cheatsheet](http://notlaura.com/the-twig-for-timber-cheatsheet/)
|
32 |
* [Timber and Twig Reignited My Love for WordPress](https://css-tricks.com/timber-and-twig-reignited-my-love-for-wordpress/) on CSS-Tricks
|
33 |
* [A real live Timber theme](https://github.com/laras126/yuling-theme).
|
34 |
-
* [Timber Video Tutorials](
|
35 |
|
9 |
|
10 |
Install this theme as you would any other, and be sure the Timber plugin is activated. But hey, let's break it down into some bullets:
|
11 |
|
12 |
+
1. Make sure you have installed the plugin for the [Timber Library](https://wordpress.org/plugins/timber-library/) (and Advanced Custom Fields - they [play quite nicely](http://timber.github.io/timber/#acf-cookbook) together).
|
13 |
2. Download the zip for this theme (or clone it) and move it to `wp-content/themes` in your WordPress installation.
|
14 |
3. Rename the folder to something that makes sense for your website (generally no spaces and all lowercase). You could keep the name `timber-starter-theme` but the point of a starter theme is to make it your own!
|
15 |
4. Activate the theme in Appearance > Themes.
|
31 |
* [Twig for Timber Cheatsheet](http://notlaura.com/the-twig-for-timber-cheatsheet/)
|
32 |
* [Timber and Twig Reignited My Love for WordPress](https://css-tricks.com/timber-and-twig-reignited-my-love-for-wordpress/) on CSS-Tricks
|
33 |
* [A real live Timber theme](https://github.com/laras126/yuling-theme).
|
34 |
+
* [Timber Video Tutorials](http://timber.github.io/timber/#video-tutorials) and [an incomplete set of screencasts](https://www.youtube.com/playlist?list=PLuIlodXmVQ6pkqWyR6mtQ5gQZ6BrnuFx-) for building a Timber theme from scratch.
|
35 |
|
timber-starter-theme/templates/menu.twig
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
{% if menu %}
|
2 |
<ul>
|
3 |
{% for item in menu %}
|
4 |
-
<li class="{{item.classes | join(' ')}}">
|
5 |
-
<a href="{{item.
|
6 |
{% include "menu.twig" with {'menu': item.get_children} %}
|
7 |
</li>
|
8 |
{% endfor %}
|
9 |
</ul>
|
10 |
-
{% endif %}
|
1 |
{% if menu %}
|
2 |
<ul>
|
3 |
{% for item in menu %}
|
4 |
+
<li class="{{ item.classes | join(' ') }}">
|
5 |
+
<a target="{{ item.target }}" href="{{ item.link }}">{{ item.title }}</a>
|
6 |
{% include "menu.twig" with {'menu': item.get_children} %}
|
7 |
</li>
|
8 |
{% endfor %}
|
9 |
</ul>
|
10 |
+
{% endif %}
|
timber-starter-theme/templates/single.twig
CHANGED
@@ -13,25 +13,25 @@
|
|
13 |
</div>
|
14 |
</section>
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
|
28 |
-
|
29 |
<p> comments for this post are closed </p>
|
30 |
{% else %}
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
</article>
|
36 |
</div><!-- /content-wrapper -->
|
37 |
-
{% endblock %}
|
13 |
</div>
|
14 |
</section>
|
15 |
|
16 |
+
<!-- comment box -->
|
17 |
+
<section class="comment-box">
|
18 |
+
<!-- comments -->
|
19 |
+
<div class="comments">
|
20 |
+
{% if post.comments %}
|
21 |
+
<h3> comments </h3>
|
22 |
+
{% for cmt in post.comments %}
|
23 |
+
{% include "comment.twig" with {comment:cmt} %}
|
24 |
+
{% endfor %}
|
25 |
+
{% endif %}
|
26 |
+
</div>
|
27 |
|
28 |
+
{% if post.comment_status == "closed" %}
|
29 |
<p> comments for this post are closed </p>
|
30 |
{% else %}
|
31 |
+
<!-- comment form -->
|
32 |
+
{% include "comment-form.twig" %}
|
33 |
+
{% endif %}
|
34 |
+
</section>
|
35 |
</article>
|
36 |
</div><!-- /content-wrapper -->
|
37 |
+
{% endblock %}
|
timber.php
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Timber
|
4 |
-
Description: The WordPress Timber Library allows you to write themes using the power Twig templates.
|
5 |
Plugin URI: http://timber.upstatement.com
|
6 |
Author: Jared Novack + Upstatement
|
7 |
-
Version: 1.3.
|
8 |
Author URI: http://upstatement.com/
|
9 |
*/
|
10 |
// we look for Composer files first in the plugins dir.
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Timber
|
4 |
+
Description: The WordPress Timber Library allows you to write themes using the power of Twig templates.
|
5 |
Plugin URI: http://timber.upstatement.com
|
6 |
Author: Jared Novack + Upstatement
|
7 |
+
Version: 1.3.2
|
8 |
Author URI: http://upstatement.com/
|
9 |
*/
|
10 |
// we look for Composer files first in the plugins dir.
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit9c8d8c9dddaed590b765e0180cfd6e86::getLoader();
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -7,4 +7,349 @@ $baseDir = dirname($vendorDir);
|
|
7 |
|
8 |
return array(
|
9 |
'AltoRouter' => $vendorDir . '/altorouter/altorouter/AltoRouter.php',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
);
|
7 |
|
8 |
return array(
|
9 |
'AltoRouter' => $vendorDir . '/altorouter/altorouter/AltoRouter.php',
|
10 |
+
'Asm89\\Twig\\CacheExtension\\CacheProviderInterface' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/CacheProviderInterface.php',
|
11 |
+
'Asm89\\Twig\\CacheExtension\\CacheProvider\\DoctrineCacheAdapter' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/CacheProvider/DoctrineCacheAdapter.php',
|
12 |
+
'Asm89\\Twig\\CacheExtension\\CacheProvider\\PsrCacheAdapter' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/CacheProvider/PsrCacheAdapter.php',
|
13 |
+
'Asm89\\Twig\\CacheExtension\\CacheStrategyInterface' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/CacheStrategyInterface.php',
|
14 |
+
'Asm89\\Twig\\CacheExtension\\CacheStrategy\\BlackholeCacheStrategy' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/CacheStrategy/BlackholeCacheStrategy.php',
|
15 |
+
'Asm89\\Twig\\CacheExtension\\CacheStrategy\\GenerationalCacheStrategy' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/CacheStrategy/GenerationalCacheStrategy.php',
|
16 |
+
'Asm89\\Twig\\CacheExtension\\CacheStrategy\\IndexedChainingCacheStrategy' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/CacheStrategy/IndexedChainingCacheStrategy.php',
|
17 |
+
'Asm89\\Twig\\CacheExtension\\CacheStrategy\\KeyGeneratorInterface' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/CacheStrategy/KeyGeneratorInterface.php',
|
18 |
+
'Asm89\\Twig\\CacheExtension\\CacheStrategy\\LifetimeCacheStrategy' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/CacheStrategy/LifetimeCacheStrategy.php',
|
19 |
+
'Asm89\\Twig\\CacheExtension\\Exception\\BaseException' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/Exception/BaseException.php',
|
20 |
+
'Asm89\\Twig\\CacheExtension\\Exception\\InvalidCacheKeyException' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/Exception/InvalidCacheKeyException.php',
|
21 |
+
'Asm89\\Twig\\CacheExtension\\Exception\\InvalidCacheLifetimeException' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/Exception/InvalidCacheLifetimeException.php',
|
22 |
+
'Asm89\\Twig\\CacheExtension\\Exception\\NonExistingStrategyException' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/Exception/NonExistingStrategyException.php',
|
23 |
+
'Asm89\\Twig\\CacheExtension\\Exception\\NonExistingStrategyKeyException' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/Exception/NonExistingStrategyKeyException.php',
|
24 |
+
'Asm89\\Twig\\CacheExtension\\Extension' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/Extension.php',
|
25 |
+
'Asm89\\Twig\\CacheExtension\\Node\\CacheNode' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/Node/CacheNode.php',
|
26 |
+
'Asm89\\Twig\\CacheExtension\\TokenParser\\Cache' => $vendorDir . '/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/TokenParser/Cache.php',
|
27 |
+
'Composer\\Installers\\AglInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AglInstaller.php',
|
28 |
+
'Composer\\Installers\\AimeosInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AimeosInstaller.php',
|
29 |
+
'Composer\\Installers\\AnnotateCmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php',
|
30 |
+
'Composer\\Installers\\AsgardInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AsgardInstaller.php',
|
31 |
+
'Composer\\Installers\\AttogramInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AttogramInstaller.php',
|
32 |
+
'Composer\\Installers\\BaseInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/BaseInstaller.php',
|
33 |
+
'Composer\\Installers\\BitrixInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/BitrixInstaller.php',
|
34 |
+
'Composer\\Installers\\BonefishInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/BonefishInstaller.php',
|
35 |
+
'Composer\\Installers\\CakePHPInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php',
|
36 |
+
'Composer\\Installers\\ChefInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ChefInstaller.php',
|
37 |
+
'Composer\\Installers\\ClanCatsFrameworkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php',
|
38 |
+
'Composer\\Installers\\CockpitInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CockpitInstaller.php',
|
39 |
+
'Composer\\Installers\\CodeIgniterInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php',
|
40 |
+
'Composer\\Installers\\Concrete5Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Concrete5Installer.php',
|
41 |
+
'Composer\\Installers\\CraftInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CraftInstaller.php',
|
42 |
+
'Composer\\Installers\\CroogoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CroogoInstaller.php',
|
43 |
+
'Composer\\Installers\\DecibelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DecibelInstaller.php',
|
44 |
+
'Composer\\Installers\\DokuWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php',
|
45 |
+
'Composer\\Installers\\DolibarrInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php',
|
46 |
+
'Composer\\Installers\\DrupalInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DrupalInstaller.php',
|
47 |
+
'Composer\\Installers\\ElggInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ElggInstaller.php',
|
48 |
+
'Composer\\Installers\\EliasisInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/EliasisInstaller.php',
|
49 |
+
'Composer\\Installers\\ExpressionEngineInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php',
|
50 |
+
'Composer\\Installers\\FuelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelInstaller.php',
|
51 |
+
'Composer\\Installers\\FuelphpInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php',
|
52 |
+
'Composer\\Installers\\GravInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/GravInstaller.php',
|
53 |
+
'Composer\\Installers\\HuradInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/HuradInstaller.php',
|
54 |
+
'Composer\\Installers\\ImageCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php',
|
55 |
+
'Composer\\Installers\\Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Installer.php',
|
56 |
+
'Composer\\Installers\\ItopInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ItopInstaller.php',
|
57 |
+
'Composer\\Installers\\JoomlaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/JoomlaInstaller.php',
|
58 |
+
'Composer\\Installers\\KanboardInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KanboardInstaller.php',
|
59 |
+
'Composer\\Installers\\KirbyInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KirbyInstaller.php',
|
60 |
+
'Composer\\Installers\\KodiCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php',
|
61 |
+
'Composer\\Installers\\KohanaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KohanaInstaller.php',
|
62 |
+
'Composer\\Installers\\LaravelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LaravelInstaller.php',
|
63 |
+
'Composer\\Installers\\LavaLiteInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LavaLiteInstaller.php',
|
64 |
+
'Composer\\Installers\\LithiumInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LithiumInstaller.php',
|
65 |
+
'Composer\\Installers\\MODULEWorkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php',
|
66 |
+
'Composer\\Installers\\MODXEvoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php',
|
67 |
+
'Composer\\Installers\\MagentoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MagentoInstaller.php',
|
68 |
+
'Composer\\Installers\\MakoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MakoInstaller.php',
|
69 |
+
'Composer\\Installers\\MauticInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MauticInstaller.php',
|
70 |
+
'Composer\\Installers\\MayaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MayaInstaller.php',
|
71 |
+
'Composer\\Installers\\MediaWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php',
|
72 |
+
'Composer\\Installers\\MicroweberInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php',
|
73 |
+
'Composer\\Installers\\MoodleInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MoodleInstaller.php',
|
74 |
+
'Composer\\Installers\\OctoberInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OctoberInstaller.php',
|
75 |
+
'Composer\\Installers\\OntoWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OntoWikiInstaller.php',
|
76 |
+
'Composer\\Installers\\OxidInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OxidInstaller.php',
|
77 |
+
'Composer\\Installers\\PPIInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PPIInstaller.php',
|
78 |
+
'Composer\\Installers\\PhiftyInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PhiftyInstaller.php',
|
79 |
+
'Composer\\Installers\\PhpBBInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php',
|
80 |
+
'Composer\\Installers\\PimcoreInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php',
|
81 |
+
'Composer\\Installers\\PiwikInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PiwikInstaller.php',
|
82 |
+
'Composer\\Installers\\PlentymarketsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php',
|
83 |
+
'Composer\\Installers\\Plugin' => $vendorDir . '/composer/installers/src/Composer/Installers/Plugin.php',
|
84 |
+
'Composer\\Installers\\PortoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PortoInstaller.php',
|
85 |
+
'Composer\\Installers\\PrestashopInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php',
|
86 |
+
'Composer\\Installers\\PuppetInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PuppetInstaller.php',
|
87 |
+
'Composer\\Installers\\RadPHPInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RadPHPInstaller.php',
|
88 |
+
'Composer\\Installers\\ReIndexInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ReIndexInstaller.php',
|
89 |
+
'Composer\\Installers\\RedaxoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php',
|
90 |
+
'Composer\\Installers\\RoundcubeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php',
|
91 |
+
'Composer\\Installers\\SMFInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SMFInstaller.php',
|
92 |
+
'Composer\\Installers\\ShopwareInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php',
|
93 |
+
'Composer\\Installers\\SilverStripeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php',
|
94 |
+
'Composer\\Installers\\SyDESInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SyDESInstaller.php',
|
95 |
+
'Composer\\Installers\\Symfony1Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Symfony1Installer.php',
|
96 |
+
'Composer\\Installers\\TYPO3CmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php',
|
97 |
+
'Composer\\Installers\\TYPO3FlowInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php',
|
98 |
+
'Composer\\Installers\\TheliaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TheliaInstaller.php',
|
99 |
+
'Composer\\Installers\\TuskInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TuskInstaller.php',
|
100 |
+
'Composer\\Installers\\VanillaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/VanillaInstaller.php',
|
101 |
+
'Composer\\Installers\\VgmcpInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/VgmcpInstaller.php',
|
102 |
+
'Composer\\Installers\\WHMCSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php',
|
103 |
+
'Composer\\Installers\\WolfCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php',
|
104 |
+
'Composer\\Installers\\WordPressInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WordPressInstaller.php',
|
105 |
+
'Composer\\Installers\\YawikInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/YawikInstaller.php',
|
106 |
+
'Composer\\Installers\\ZendInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ZendInstaller.php',
|
107 |
+
'Composer\\Installers\\ZikulaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ZikulaInstaller.php',
|
108 |
+
'Routes' => $vendorDir . '/upstatement/routes/Routes.php',
|
109 |
+
'Timber\\Admin' => $baseDir . '/lib/Admin.php',
|
110 |
+
'Timber\\Archives' => $baseDir . '/lib/Archives.php',
|
111 |
+
'Timber\\Cache\\Cleaner' => $baseDir . '/lib/Cache/Cleaner.php',
|
112 |
+
'Timber\\Cache\\KeyGenerator' => $baseDir . '/lib/Cache/KeyGenerator.php',
|
113 |
+
'Timber\\Cache\\TimberKeyGeneratorInterface' => $baseDir . '/lib/Cache/TimberKeyGeneratorInterface.php',
|
114 |
+
'Timber\\Cache\\WPObjectCacheAdapter' => $baseDir . '/lib/Cache/WPObjectCacheAdapter.php',
|
115 |
+
'Timber\\Comment' => $baseDir . '/lib/Comment.php',
|
116 |
+
'Timber\\CommentThread' => $baseDir . '/lib/CommentThread.php',
|
117 |
+
'Timber\\Core' => $baseDir . '/lib/Core.php',
|
118 |
+
'Timber\\CoreInterface' => $baseDir . '/lib/CoreInterface.php',
|
119 |
+
'Timber\\FunctionWrapper' => $baseDir . '/lib/FunctionWrapper.php',
|
120 |
+
'Timber\\Helper' => $baseDir . '/lib/Helper.php',
|
121 |
+
'Timber\\Image' => $baseDir . '/lib/Image.php',
|
122 |
+
'Timber\\ImageHelper' => $baseDir . '/lib/ImageHelper.php',
|
123 |
+
'Timber\\Image\\Operation' => $baseDir . '/lib/Image/Operation.php',
|
124 |
+
'Timber\\Image\\Operation\\Letterbox' => $baseDir . '/lib/Image/Operation/Letterbox.php',
|
125 |
+
'Timber\\Image\\Operation\\Resize' => $baseDir . '/lib/Image/Operation/Resize.php',
|
126 |
+
'Timber\\Image\\Operation\\Retina' => $baseDir . '/lib/Image/Operation/Retina.php',
|
127 |
+
'Timber\\Image\\Operation\\ToJpg' => $baseDir . '/lib/Image/Operation/ToJpg.php',
|
128 |
+
'Timber\\Integrations' => $baseDir . '/lib/Integrations.php',
|
129 |
+
'Timber\\Integrations\\ACF' => $baseDir . '/lib/Integrations/ACF.php',
|
130 |
+
'Timber\\Integrations\\CoAuthorsPlus' => $baseDir . '/lib/Integrations/CoAuthorsPlus.php',
|
131 |
+
'Timber\\Integrations\\CoAuthorsPlusUser' => $baseDir . '/lib/Integrations/CoAuthorsPlusUser.php',
|
132 |
+
'Timber\\Integrations\\Command' => $baseDir . '/lib/Integrations/Command.php',
|
133 |
+
'Timber\\Integrations\\Timber_WP_CLI_Command' => $baseDir . '/lib/Integrations/Timber_WP_CLI_Command.php',
|
134 |
+
'Timber\\Integrations\\WPML' => $baseDir . '/lib/Integrations/WPML.php',
|
135 |
+
'Timber\\Loader' => $baseDir . '/lib/Loader.php',
|
136 |
+
'Timber\\LocationManager' => $baseDir . '/lib/LocationManager.php',
|
137 |
+
'Timber\\Menu' => $baseDir . '/lib/Menu.php',
|
138 |
+
'Timber\\MenuItem' => $baseDir . '/lib/MenuItem.php',
|
139 |
+
'Timber\\Pagination' => $baseDir . '/lib/Pagination.php',
|
140 |
+
'Timber\\Post' => $baseDir . '/lib/Post.php',
|
141 |
+
'Timber\\PostCollection' => $baseDir . '/lib/PostCollection.php',
|
142 |
+
'Timber\\PostGetter' => $baseDir . '/lib/PostGetter.php',
|
143 |
+
'Timber\\PostPreview' => $baseDir . '/lib/PostPreview.php',
|
144 |
+
'Timber\\PostQuery' => $baseDir . '/lib/PostQuery.php',
|
145 |
+
'Timber\\PostType' => $baseDir . '/lib/PostType.php',
|
146 |
+
'Timber\\PostsIterator' => $baseDir . '/lib/PostCollection.php',
|
147 |
+
'Timber\\QueryIterator' => $baseDir . '/lib/QueryIterator.php',
|
148 |
+
'Timber\\Request' => $baseDir . '/lib/Request.php',
|
149 |
+
'Timber\\Site' => $baseDir . '/lib/Site.php',
|
150 |
+
'Timber\\Term' => $baseDir . '/lib/Term.php',
|
151 |
+
'Timber\\TermGetter' => $baseDir . '/lib/TermGetter.php',
|
152 |
+
'Timber\\TextHelper' => $baseDir . '/lib/TextHelper.php',
|
153 |
+
'Timber\\Theme' => $baseDir . '/lib/Theme.php',
|
154 |
+
'Timber\\Timber' => $baseDir . '/lib/Timber.php',
|
155 |
+
'Timber\\Twig' => $baseDir . '/lib/Twig.php',
|
156 |
+
'Timber\\URLHelper' => $baseDir . '/lib/URLHelper.php',
|
157 |
+
'Timber\\User' => $baseDir . '/lib/User.php',
|
158 |
+
'Twig_Autoloader' => $vendorDir . '/twig/twig/lib/Twig/Autoloader.php',
|
159 |
+
'Twig_BaseNodeVisitor' => $vendorDir . '/twig/twig/lib/Twig/BaseNodeVisitor.php',
|
160 |
+
'Twig_CacheInterface' => $vendorDir . '/twig/twig/lib/Twig/CacheInterface.php',
|
161 |
+
'Twig_Cache_Filesystem' => $vendorDir . '/twig/twig/lib/Twig/Cache/Filesystem.php',
|
162 |
+
'Twig_Cache_Null' => $vendorDir . '/twig/twig/lib/Twig/Cache/Null.php',
|
163 |
+
'Twig_Compiler' => $vendorDir . '/twig/twig/lib/Twig/Compiler.php',
|
164 |
+
'Twig_CompilerInterface' => $vendorDir . '/twig/twig/lib/Twig/CompilerInterface.php',
|
165 |
+
'Twig_ContainerRuntimeLoader' => $vendorDir . '/twig/twig/lib/Twig/ContainerRuntimeLoader.php',
|
166 |
+
'Twig_Environment' => $vendorDir . '/twig/twig/lib/Twig/Environment.php',
|
167 |
+
'Twig_Error' => $vendorDir . '/twig/twig/lib/Twig/Error.php',
|
168 |
+
'Twig_Error_Loader' => $vendorDir . '/twig/twig/lib/Twig/Error/Loader.php',
|
169 |
+
'Twig_Error_Runtime' => $vendorDir . '/twig/twig/lib/Twig/Error/Runtime.php',
|
170 |
+
'Twig_Error_Syntax' => $vendorDir . '/twig/twig/lib/Twig/Error/Syntax.php',
|
171 |
+
'Twig_ExistsLoaderInterface' => $vendorDir . '/twig/twig/lib/Twig/ExistsLoaderInterface.php',
|
172 |
+
'Twig_ExpressionParser' => $vendorDir . '/twig/twig/lib/Twig/ExpressionParser.php',
|
173 |
+
'Twig_Extension' => $vendorDir . '/twig/twig/lib/Twig/Extension.php',
|
174 |
+
'Twig_ExtensionInterface' => $vendorDir . '/twig/twig/lib/Twig/ExtensionInterface.php',
|
175 |
+
'Twig_Extension_Core' => $vendorDir . '/twig/twig/lib/Twig/Extension/Core.php',
|
176 |
+
'Twig_Extension_Debug' => $vendorDir . '/twig/twig/lib/Twig/Extension/Debug.php',
|
177 |
+
'Twig_Extension_Escaper' => $vendorDir . '/twig/twig/lib/Twig/Extension/Escaper.php',
|
178 |
+
'Twig_Extension_GlobalsInterface' => $vendorDir . '/twig/twig/lib/Twig/Extension/GlobalsInterface.php',
|
179 |
+
'Twig_Extension_InitRuntimeInterface' => $vendorDir . '/twig/twig/lib/Twig/Extension/InitRuntimeInterface.php',
|
180 |
+
'Twig_Extension_Optimizer' => $vendorDir . '/twig/twig/lib/Twig/Extension/Optimizer.php',
|
181 |
+
'Twig_Extension_Profiler' => $vendorDir . '/twig/twig/lib/Twig/Extension/Profiler.php',
|
182 |
+
'Twig_Extension_Sandbox' => $vendorDir . '/twig/twig/lib/Twig/Extension/Sandbox.php',
|
183 |
+
'Twig_Extension_Staging' => $vendorDir . '/twig/twig/lib/Twig/Extension/Staging.php',
|
184 |
+
'Twig_Extension_StringLoader' => $vendorDir . '/twig/twig/lib/Twig/Extension/StringLoader.php',
|
185 |
+
'Twig_FactoryRuntimeLoader' => $vendorDir . '/twig/twig/lib/Twig/FactoryRuntimeLoader.php',
|
186 |
+
'Twig_FileExtensionEscapingStrategy' => $vendorDir . '/twig/twig/lib/Twig/FileExtensionEscapingStrategy.php',
|
187 |
+
'Twig_Filter' => $vendorDir . '/twig/twig/lib/Twig/Filter.php',
|
188 |
+
'Twig_FilterCallableInterface' => $vendorDir . '/twig/twig/lib/Twig/FilterCallableInterface.php',
|
189 |
+
'Twig_FilterInterface' => $vendorDir . '/twig/twig/lib/Twig/FilterInterface.php',
|
190 |
+
'Twig_Filter_Function' => $vendorDir . '/twig/twig/lib/Twig/Filter/Function.php',
|
191 |
+
'Twig_Filter_Method' => $vendorDir . '/twig/twig/lib/Twig/Filter/Method.php',
|
192 |
+
'Twig_Filter_Node' => $vendorDir . '/twig/twig/lib/Twig/Filter/Node.php',
|
193 |
+
'Twig_Function' => $vendorDir . '/twig/twig/lib/Twig/Function.php',
|
194 |
+
'Twig_FunctionCallableInterface' => $vendorDir . '/twig/twig/lib/Twig/FunctionCallableInterface.php',
|
195 |
+
'Twig_FunctionInterface' => $vendorDir . '/twig/twig/lib/Twig/FunctionInterface.php',
|
196 |
+
'Twig_Function_Function' => $vendorDir . '/twig/twig/lib/Twig/Function/Function.php',
|
197 |
+
'Twig_Function_Method' => $vendorDir . '/twig/twig/lib/Twig/Function/Method.php',
|
198 |
+
'Twig_Function_Node' => $vendorDir . '/twig/twig/lib/Twig/Function/Node.php',
|
199 |
+
'Twig_Lexer' => $vendorDir . '/twig/twig/lib/Twig/Lexer.php',
|
200 |
+
'Twig_LexerInterface' => $vendorDir . '/twig/twig/lib/Twig/LexerInterface.php',
|
201 |
+
'Twig_LoaderInterface' => $vendorDir . '/twig/twig/lib/Twig/LoaderInterface.php',
|
202 |
+
'Twig_Loader_Array' => $vendorDir . '/twig/twig/lib/Twig/Loader/Array.php',
|
203 |
+
'Twig_Loader_Chain' => $vendorDir . '/twig/twig/lib/Twig/Loader/Chain.php',
|
204 |
+
'Twig_Loader_Filesystem' => $vendorDir . '/twig/twig/lib/Twig/Loader/Filesystem.php',
|
205 |
+
'Twig_Loader_String' => $vendorDir . '/twig/twig/lib/Twig/Loader/String.php',
|
206 |
+
'Twig_Markup' => $vendorDir . '/twig/twig/lib/Twig/Markup.php',
|
207 |
+
'Twig_Node' => $vendorDir . '/twig/twig/lib/Twig/Node.php',
|
208 |
+
'Twig_NodeCaptureInterface' => $vendorDir . '/twig/twig/lib/Twig/NodeCaptureInterface.php',
|
209 |
+
'Twig_NodeInterface' => $vendorDir . '/twig/twig/lib/Twig/NodeInterface.php',
|
210 |
+
'Twig_NodeOutputInterface' => $vendorDir . '/twig/twig/lib/Twig/NodeOutputInterface.php',
|
211 |
+
'Twig_NodeTraverser' => $vendorDir . '/twig/twig/lib/Twig/NodeTraverser.php',
|
212 |
+
'Twig_NodeVisitorInterface' => $vendorDir . '/twig/twig/lib/Twig/NodeVisitorInterface.php',
|
213 |
+
'Twig_NodeVisitor_Escaper' => $vendorDir . '/twig/twig/lib/Twig/NodeVisitor/Escaper.php',
|
214 |
+
'Twig_NodeVisitor_Optimizer' => $vendorDir . '/twig/twig/lib/Twig/NodeVisitor/Optimizer.php',
|
215 |
+
'Twig_NodeVisitor_SafeAnalysis' => $vendorDir . '/twig/twig/lib/Twig/NodeVisitor/SafeAnalysis.php',
|
216 |
+
'Twig_NodeVisitor_Sandbox' => $vendorDir . '/twig/twig/lib/Twig/NodeVisitor/Sandbox.php',
|
217 |
+
'Twig_Node_AutoEscape' => $vendorDir . '/twig/twig/lib/Twig/Node/AutoEscape.php',
|
218 |
+
'Twig_Node_Block' => $vendorDir . '/twig/twig/lib/Twig/Node/Block.php',
|
219 |
+
'Twig_Node_BlockReference' => $vendorDir . '/twig/twig/lib/Twig/Node/BlockReference.php',
|
220 |
+
'Twig_Node_Body' => $vendorDir . '/twig/twig/lib/Twig/Node/Body.php',
|
221 |
+
'Twig_Node_CheckSecurity' => $vendorDir . '/twig/twig/lib/Twig/Node/CheckSecurity.php',
|
222 |
+
'Twig_Node_Do' => $vendorDir . '/twig/twig/lib/Twig/Node/Do.php',
|
223 |
+
'Twig_Node_Embed' => $vendorDir . '/twig/twig/lib/Twig/Node/Embed.php',
|
224 |
+
'Twig_Node_Expression' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression.php',
|
225 |
+
'Twig_Node_Expression_Array' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Array.php',
|
226 |
+
'Twig_Node_Expression_AssignName' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/AssignName.php',
|
227 |
+
'Twig_Node_Expression_Binary' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary.php',
|
228 |
+
'Twig_Node_Expression_Binary_Add' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/Add.php',
|
229 |
+
'Twig_Node_Expression_Binary_And' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/And.php',
|
230 |
+
'Twig_Node_Expression_Binary_BitwiseAnd' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/BitwiseAnd.php',
|
231 |
+
'Twig_Node_Expression_Binary_BitwiseOr' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/BitwiseOr.php',
|
232 |
+
'Twig_Node_Expression_Binary_BitwiseXor' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/BitwiseXor.php',
|
233 |
+
'Twig_Node_Expression_Binary_Concat' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/Concat.php',
|
234 |
+
'Twig_Node_Expression_Binary_Div' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/Div.php',
|
235 |
+
'Twig_Node_Expression_Binary_EndsWith' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/EndsWith.php',
|
236 |
+
'Twig_Node_Expression_Binary_Equal' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/Equal.php',
|
237 |
+
'Twig_Node_Expression_Binary_FloorDiv' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/FloorDiv.php',
|
238 |
+
'Twig_Node_Expression_Binary_Greater' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/Greater.php',
|
239 |
+
'Twig_Node_Expression_Binary_GreaterEqual' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/GreaterEqual.php',
|
240 |
+
'Twig_Node_Expression_Binary_In' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/In.php',
|
241 |
+
'Twig_Node_Expression_Binary_Less' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/Less.php',
|
242 |
+
'Twig_Node_Expression_Binary_LessEqual' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/LessEqual.php',
|
243 |
+
'Twig_Node_Expression_Binary_Matches' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/Matches.php',
|
244 |
+
'Twig_Node_Expression_Binary_Mod' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/Mod.php',
|
245 |
+
'Twig_Node_Expression_Binary_Mul' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/Mul.php',
|
246 |
+
'Twig_Node_Expression_Binary_NotEqual' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/NotEqual.php',
|
247 |
+
'Twig_Node_Expression_Binary_NotIn' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/NotIn.php',
|
248 |
+
'Twig_Node_Expression_Binary_Or' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/Or.php',
|
249 |
+
'Twig_Node_Expression_Binary_Power' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/Power.php',
|
250 |
+
'Twig_Node_Expression_Binary_Range' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/Range.php',
|
251 |
+
'Twig_Node_Expression_Binary_StartsWith' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/StartsWith.php',
|
252 |
+
'Twig_Node_Expression_Binary_Sub' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Binary/Sub.php',
|
253 |
+
'Twig_Node_Expression_BlockReference' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/BlockReference.php',
|
254 |
+
'Twig_Node_Expression_Call' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Call.php',
|
255 |
+
'Twig_Node_Expression_Conditional' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Conditional.php',
|
256 |
+
'Twig_Node_Expression_Constant' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Constant.php',
|
257 |
+
'Twig_Node_Expression_ExtensionReference' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/ExtensionReference.php',
|
258 |
+
'Twig_Node_Expression_Filter' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Filter.php',
|
259 |
+
'Twig_Node_Expression_Filter_Default' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Filter/Default.php',
|
260 |
+
'Twig_Node_Expression_Function' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Function.php',
|
261 |
+
'Twig_Node_Expression_GetAttr' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/GetAttr.php',
|
262 |
+
'Twig_Node_Expression_MethodCall' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/MethodCall.php',
|
263 |
+
'Twig_Node_Expression_Name' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Name.php',
|
264 |
+
'Twig_Node_Expression_NullCoalesce' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/NullCoalesce.php',
|
265 |
+
'Twig_Node_Expression_Parent' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Parent.php',
|
266 |
+
'Twig_Node_Expression_TempName' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/TempName.php',
|
267 |
+
'Twig_Node_Expression_Test' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Test.php',
|
268 |
+
'Twig_Node_Expression_Test_Constant' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Test/Constant.php',
|
269 |
+
'Twig_Node_Expression_Test_Defined' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Test/Defined.php',
|
270 |
+
'Twig_Node_Expression_Test_Divisibleby' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Test/Divisibleby.php',
|
271 |
+
'Twig_Node_Expression_Test_Even' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Test/Even.php',
|
272 |
+
'Twig_Node_Expression_Test_Null' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Test/Null.php',
|
273 |
+
'Twig_Node_Expression_Test_Odd' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Test/Odd.php',
|
274 |
+
'Twig_Node_Expression_Test_Sameas' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Test/Sameas.php',
|
275 |
+
'Twig_Node_Expression_Unary' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Unary.php',
|
276 |
+
'Twig_Node_Expression_Unary_Neg' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Unary/Neg.php',
|
277 |
+
'Twig_Node_Expression_Unary_Not' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Unary/Not.php',
|
278 |
+
'Twig_Node_Expression_Unary_Pos' => $vendorDir . '/twig/twig/lib/Twig/Node/Expression/Unary/Pos.php',
|
279 |
+
'Twig_Node_Flush' => $vendorDir . '/twig/twig/lib/Twig/Node/Flush.php',
|
280 |
+
'Twig_Node_For' => $vendorDir . '/twig/twig/lib/Twig/Node/For.php',
|
281 |
+
'Twig_Node_ForLoop' => $vendorDir . '/twig/twig/lib/Twig/Node/ForLoop.php',
|
282 |
+
'Twig_Node_If' => $vendorDir . '/twig/twig/lib/Twig/Node/If.php',
|
283 |
+
'Twig_Node_Import' => $vendorDir . '/twig/twig/lib/Twig/Node/Import.php',
|
284 |
+
'Twig_Node_Include' => $vendorDir . '/twig/twig/lib/Twig/Node/Include.php',
|
285 |
+
'Twig_Node_Macro' => $vendorDir . '/twig/twig/lib/Twig/Node/Macro.php',
|
286 |
+
'Twig_Node_Module' => $vendorDir . '/twig/twig/lib/Twig/Node/Module.php',
|
287 |
+
'Twig_Node_Print' => $vendorDir . '/twig/twig/lib/Twig/Node/Print.php',
|
288 |
+
'Twig_Node_Sandbox' => $vendorDir . '/twig/twig/lib/Twig/Node/Sandbox.php',
|
289 |
+
'Twig_Node_SandboxedPrint' => $vendorDir . '/twig/twig/lib/Twig/Node/SandboxedPrint.php',
|
290 |
+
'Twig_Node_Set' => $vendorDir . '/twig/twig/lib/Twig/Node/Set.php',
|
291 |
+
'Twig_Node_SetTemp' => $vendorDir . '/twig/twig/lib/Twig/Node/SetTemp.php',
|
292 |
+
'Twig_Node_Spaceless' => $vendorDir . '/twig/twig/lib/Twig/Node/Spaceless.php',
|
293 |
+
'Twig_Node_Text' => $vendorDir . '/twig/twig/lib/Twig/Node/Text.php',
|
294 |
+
'Twig_Node_With' => $vendorDir . '/twig/twig/lib/Twig/Node/With.php',
|
295 |
+
'Twig_Parser' => $vendorDir . '/twig/twig/lib/Twig/Parser.php',
|
296 |
+
'Twig_ParserInterface' => $vendorDir . '/twig/twig/lib/Twig/ParserInterface.php',
|
297 |
+
'Twig_Profiler_Dumper_Blackfire' => $vendorDir . '/twig/twig/lib/Twig/Profiler/Dumper/Blackfire.php',
|
298 |
+
'Twig_Profiler_Dumper_Html' => $vendorDir . '/twig/twig/lib/Twig/Profiler/Dumper/Html.php',
|
299 |
+
'Twig_Profiler_Dumper_Text' => $vendorDir . '/twig/twig/lib/Twig/Profiler/Dumper/Text.php',
|
300 |
+
'Twig_Profiler_NodeVisitor_Profiler' => $vendorDir . '/twig/twig/lib/Twig/Profiler/NodeVisitor/Profiler.php',
|
301 |
+
'Twig_Profiler_Node_EnterProfile' => $vendorDir . '/twig/twig/lib/Twig/Profiler/Node/EnterProfile.php',
|
302 |
+
'Twig_Profiler_Node_LeaveProfile' => $vendorDir . '/twig/twig/lib/Twig/Profiler/Node/LeaveProfile.php',
|
303 |
+
'Twig_Profiler_Profile' => $vendorDir . '/twig/twig/lib/Twig/Profiler/Profile.php',
|
304 |
+
'Twig_RuntimeLoaderInterface' => $vendorDir . '/twig/twig/lib/Twig/RuntimeLoaderInterface.php',
|
305 |
+
'Twig_Sandbox_SecurityError' => $vendorDir . '/twig/twig/lib/Twig/Sandbox/SecurityError.php',
|
306 |
+
'Twig_Sandbox_SecurityNotAllowedFilterError' => $vendorDir . '/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedFilterError.php',
|
307 |
+
'Twig_Sandbox_SecurityNotAllowedFunctionError' => $vendorDir . '/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedFunctionError.php',
|
308 |
+
'Twig_Sandbox_SecurityNotAllowedMethodError' => $vendorDir . '/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedMethodError.php',
|
309 |
+
'Twig_Sandbox_SecurityNotAllowedPropertyError' => $vendorDir . '/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedPropertyError.php',
|
310 |
+
'Twig_Sandbox_SecurityNotAllowedTagError' => $vendorDir . '/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedTagError.php',
|
311 |
+
'Twig_Sandbox_SecurityPolicy' => $vendorDir . '/twig/twig/lib/Twig/Sandbox/SecurityPolicy.php',
|
312 |
+
'Twig_Sandbox_SecurityPolicyInterface' => $vendorDir . '/twig/twig/lib/Twig/Sandbox/SecurityPolicyInterface.php',
|
313 |
+
'Twig_SimpleFilter' => $vendorDir . '/twig/twig/lib/Twig/SimpleFilter.php',
|
314 |
+
'Twig_SimpleFunction' => $vendorDir . '/twig/twig/lib/Twig/SimpleFunction.php',
|
315 |
+
'Twig_SimpleTest' => $vendorDir . '/twig/twig/lib/Twig/SimpleTest.php',
|
316 |
+
'Twig_Source' => $vendorDir . '/twig/twig/lib/Twig/Source.php',
|
317 |
+
'Twig_SourceContextLoaderInterface' => $vendorDir . '/twig/twig/lib/Twig/SourceContextLoaderInterface.php',
|
318 |
+
'Twig_Template' => $vendorDir . '/twig/twig/lib/Twig/Template.php',
|
319 |
+
'Twig_TemplateInterface' => $vendorDir . '/twig/twig/lib/Twig/TemplateInterface.php',
|
320 |
+
'Twig_TemplateWrapper' => $vendorDir . '/twig/twig/lib/Twig/TemplateWrapper.php',
|
321 |
+
'Twig_Test' => $vendorDir . '/twig/twig/lib/Twig/Test.php',
|
322 |
+
'Twig_TestCallableInterface' => $vendorDir . '/twig/twig/lib/Twig/TestCallableInterface.php',
|
323 |
+
'Twig_TestInterface' => $vendorDir . '/twig/twig/lib/Twig/TestInterface.php',
|
324 |
+
'Twig_Test_Function' => $vendorDir . '/twig/twig/lib/Twig/Test/Function.php',
|
325 |
+
'Twig_Test_IntegrationTestCase' => $vendorDir . '/twig/twig/lib/Twig/Test/IntegrationTestCase.php',
|
326 |
+
'Twig_Test_Method' => $vendorDir . '/twig/twig/lib/Twig/Test/Method.php',
|
327 |
+
'Twig_Test_Node' => $vendorDir . '/twig/twig/lib/Twig/Test/Node.php',
|
328 |
+
'Twig_Test_NodeTestCase' => $vendorDir . '/twig/twig/lib/Twig/Test/NodeTestCase.php',
|
329 |
+
'Twig_Token' => $vendorDir . '/twig/twig/lib/Twig/Token.php',
|
330 |
+
'Twig_TokenParser' => $vendorDir . '/twig/twig/lib/Twig/TokenParser.php',
|
331 |
+
'Twig_TokenParserBroker' => $vendorDir . '/twig/twig/lib/Twig/TokenParserBroker.php',
|
332 |
+
'Twig_TokenParserBrokerInterface' => $vendorDir . '/twig/twig/lib/Twig/TokenParserBrokerInterface.php',
|
333 |
+
'Twig_TokenParserInterface' => $vendorDir . '/twig/twig/lib/Twig/TokenParserInterface.php',
|
334 |
+
'Twig_TokenParser_AutoEscape' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/AutoEscape.php',
|
335 |
+
'Twig_TokenParser_Block' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/Block.php',
|
336 |
+
'Twig_TokenParser_Do' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/Do.php',
|
337 |
+
'Twig_TokenParser_Embed' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/Embed.php',
|
338 |
+
'Twig_TokenParser_Extends' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/Extends.php',
|
339 |
+
'Twig_TokenParser_Filter' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/Filter.php',
|
340 |
+
'Twig_TokenParser_Flush' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/Flush.php',
|
341 |
+
'Twig_TokenParser_For' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/For.php',
|
342 |
+
'Twig_TokenParser_From' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/From.php',
|
343 |
+
'Twig_TokenParser_If' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/If.php',
|
344 |
+
'Twig_TokenParser_Import' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/Import.php',
|
345 |
+
'Twig_TokenParser_Include' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/Include.php',
|
346 |
+
'Twig_TokenParser_Macro' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/Macro.php',
|
347 |
+
'Twig_TokenParser_Sandbox' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/Sandbox.php',
|
348 |
+
'Twig_TokenParser_Set' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/Set.php',
|
349 |
+
'Twig_TokenParser_Spaceless' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/Spaceless.php',
|
350 |
+
'Twig_TokenParser_Use' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/Use.php',
|
351 |
+
'Twig_TokenParser_With' => $vendorDir . '/twig/twig/lib/Twig/TokenParser/With.php',
|
352 |
+
'Twig_TokenStream' => $vendorDir . '/twig/twig/lib/Twig/TokenStream.php',
|
353 |
+
'Twig_Util_DeprecationCollector' => $vendorDir . '/twig/twig/lib/Twig/Util/DeprecationCollector.php',
|
354 |
+
'Twig_Util_TemplateDirIterator' => $vendorDir . '/twig/twig/lib/Twig/Util/TemplateDirIterator.php',
|
355 |
);
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit8b5bad47eaad3b412325467b36c7faaa
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit9c8d8c9dddaed590b765e0180cfd6e86
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit9c8d8c9dddaed590b765e0180cfd6e86', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit9c8d8c9dddaed590b765e0180cfd6e86', 'loadClassLoader'));
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
vendor/composer/installed.json
CHANGED
@@ -115,112 +115,6 @@
|
|
115 |
"zikula"
|
116 |
]
|
117 |
},
|
118 |
-
{
|
119 |
-
"name": "altorouter/altorouter",
|
120 |
-
"version": "v1.1.0",
|
121 |
-
"version_normalized": "1.1.0.0",
|
122 |
-
"source": {
|
123 |
-
"type": "git",
|
124 |
-
"url": "https://github.com/dannyvankooten/AltoRouter.git",
|
125 |
-
"reference": "09d9d946c546bae6d22a7654cdb3b825ffda54b4"
|
126 |
-
},
|
127 |
-
"dist": {
|
128 |
-
"type": "zip",
|
129 |
-
"url": "https://api.github.com/repos/dannyvankooten/AltoRouter/zipball/09d9d946c546bae6d22a7654cdb3b825ffda54b4",
|
130 |
-
"reference": "09d9d946c546bae6d22a7654cdb3b825ffda54b4",
|
131 |
-
"shasum": ""
|
132 |
-
},
|
133 |
-
"require": {
|
134 |
-
"php": ">=5.3.0"
|
135 |
-
},
|
136 |
-
"time": "2014-04-16 09:44:40",
|
137 |
-
"type": "library",
|
138 |
-
"installation-source": "dist",
|
139 |
-
"autoload": {
|
140 |
-
"classmap": [
|
141 |
-
"AltoRouter.php"
|
142 |
-
]
|
143 |
-
},
|
144 |
-
"notification-url": "https://packagist.org/downloads/",
|
145 |
-
"license": [
|
146 |
-
"MIT"
|
147 |
-
],
|
148 |
-
"authors": [
|
149 |
-
{
|
150 |
-
"name": "Danny van Kooten",
|
151 |
-
"email": "dannyvankooten@gmail.com",
|
152 |
-
"homepage": "http://dannyvankooten.com/"
|
153 |
-
},
|
154 |
-
{
|
155 |
-
"name": "Koen Punt",
|
156 |
-
"homepage": "https://github.com/koenpunt"
|
157 |
-
},
|
158 |
-
{
|
159 |
-
"name": "niahoo",
|
160 |
-
"homepage": "https://github.com/niahoo"
|
161 |
-
}
|
162 |
-
],
|
163 |
-
"description": "A lightning fast router for PHP",
|
164 |
-
"homepage": "https://github.com/dannyvankooten/AltoRouter",
|
165 |
-
"keywords": [
|
166 |
-
"lightweight",
|
167 |
-
"router",
|
168 |
-
"routing"
|
169 |
-
]
|
170 |
-
},
|
171 |
-
{
|
172 |
-
"name": "upstatement/routes",
|
173 |
-
"version": "0.4",
|
174 |
-
"version_normalized": "0.4.0.0",
|
175 |
-
"source": {
|
176 |
-
"type": "git",
|
177 |
-
"url": "https://github.com/Upstatement/routes.git",
|
178 |
-
"reference": "fae7d46f56e8b5775f072774941a5f0a25cb86f3"
|
179 |
-
},
|
180 |
-
"dist": {
|
181 |
-
"type": "zip",
|
182 |
-
"url": "https://api.github.com/repos/Upstatement/routes/zipball/fae7d46f56e8b5775f072774941a5f0a25cb86f3",
|
183 |
-
"reference": "fae7d46f56e8b5775f072774941a5f0a25cb86f3",
|
184 |
-
"shasum": ""
|
185 |
-
},
|
186 |
-
"require": {
|
187 |
-
"altorouter/altorouter": "1.1.0",
|
188 |
-
"composer/installers": "~1.0",
|
189 |
-
"php": ">=5.3.0"
|
190 |
-
},
|
191 |
-
"require-dev": {
|
192 |
-
"phpunit/phpunit": "3.7.*",
|
193 |
-
"satooshi/php-coveralls": "dev-master",
|
194 |
-
"wp-cli/wp-cli": "*"
|
195 |
-
},
|
196 |
-
"time": "2016-07-06 12:53:24",
|
197 |
-
"type": "library",
|
198 |
-
"installation-source": "dist",
|
199 |
-
"autoload": {
|
200 |
-
"psr-0": {
|
201 |
-
"Routes": ""
|
202 |
-
}
|
203 |
-
},
|
204 |
-
"notification-url": "https://packagist.org/downloads/",
|
205 |
-
"license": [
|
206 |
-
"MIT"
|
207 |
-
],
|
208 |
-
"authors": [
|
209 |
-
{
|
210 |
-
"name": "Jared Novack",
|
211 |
-
"email": "jared@upstatement.com",
|
212 |
-
"homepage": "http://upstatement.com"
|
213 |
-
}
|
214 |
-
],
|
215 |
-
"description": "Manage rewrites and routes in WordPress with this dead-simple plugin",
|
216 |
-
"homepage": "http://routes.upstatement.com",
|
217 |
-
"keywords": [
|
218 |
-
"redirects",
|
219 |
-
"rewrite",
|
220 |
-
"routes",
|
221 |
-
"routing"
|
222 |
-
]
|
223 |
-
},
|
224 |
{
|
225 |
"name": "twig/twig",
|
226 |
"version": "v1.33.2",
|
@@ -340,5 +234,111 @@
|
|
340 |
"extension",
|
341 |
"twig"
|
342 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
343 |
}
|
344 |
]
|
115 |
"zikula"
|
116 |
]
|
117 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
{
|
119 |
"name": "twig/twig",
|
120 |
"version": "v1.33.2",
|
234 |
"extension",
|
235 |
"twig"
|
236 |
]
|
237 |
+
},
|
238 |
+
{
|
239 |
+
"name": "altorouter/altorouter",
|
240 |
+
"version": "v1.1.0",
|
241 |
+
"version_normalized": "1.1.0.0",
|
242 |
+
"source": {
|
243 |
+
"type": "git",
|
244 |
+
"url": "https://github.com/dannyvankooten/AltoRouter.git",
|
245 |
+
"reference": "09d9d946c546bae6d22a7654cdb3b825ffda54b4"
|
246 |
+
},
|
247 |
+
"dist": {
|
248 |
+
"type": "zip",
|
249 |
+
"url": "https://api.github.com/repos/dannyvankooten/AltoRouter/zipball/09d9d946c546bae6d22a7654cdb3b825ffda54b4",
|
250 |
+
"reference": "09d9d946c546bae6d22a7654cdb3b825ffda54b4",
|
251 |
+
"shasum": ""
|
252 |
+
},
|
253 |
+
"require": {
|
254 |
+
"php": ">=5.3.0"
|
255 |
+
},
|
256 |
+
"time": "2014-04-16 09:44:40",
|
257 |
+
"type": "library",
|
258 |
+
"installation-source": "dist",
|
259 |
+
"autoload": {
|
260 |
+
"classmap": [
|
261 |
+
"AltoRouter.php"
|
262 |
+
]
|
263 |
+
},
|
264 |
+
"notification-url": "https://packagist.org/downloads/",
|
265 |
+
"license": [
|
266 |
+
"MIT"
|
267 |
+
],
|
268 |
+
"authors": [
|
269 |
+
{
|
270 |
+
"name": "Danny van Kooten",
|
271 |
+
"email": "dannyvankooten@gmail.com",
|
272 |
+
"homepage": "http://dannyvankooten.com/"
|
273 |
+
},
|
274 |
+
{
|
275 |
+
"name": "Koen Punt",
|
276 |
+
"homepage": "https://github.com/koenpunt"
|
277 |
+
},
|
278 |
+
{
|
279 |
+
"name": "niahoo",
|
280 |
+
"homepage": "https://github.com/niahoo"
|
281 |
+
}
|
282 |
+
],
|
283 |
+
"description": "A lightning fast router for PHP",
|
284 |
+
"homepage": "https://github.com/dannyvankooten/AltoRouter",
|
285 |
+
"keywords": [
|
286 |
+
"lightweight",
|
287 |
+
"router",
|
288 |
+
"routing"
|
289 |
+
]
|
290 |
+
},
|
291 |
+
{
|
292 |
+
"name": "upstatement/routes",
|
293 |
+
"version": "0.4",
|
294 |
+
"version_normalized": "0.4.0.0",
|
295 |
+
"source": {
|
296 |
+
"type": "git",
|
297 |
+
"url": "https://github.com/Upstatement/routes.git",
|
298 |
+
"reference": "fae7d46f56e8b5775f072774941a5f0a25cb86f3"
|
299 |
+
},
|
300 |
+
"dist": {
|
301 |
+
"type": "zip",
|
302 |
+
"url": "https://api.github.com/repos/Upstatement/routes/zipball/fae7d46f56e8b5775f072774941a5f0a25cb86f3",
|
303 |
+
"reference": "fae7d46f56e8b5775f072774941a5f0a25cb86f3",
|
304 |
+
"shasum": ""
|
305 |
+
},
|
306 |
+
"require": {
|
307 |
+
"altorouter/altorouter": "1.1.0",
|
308 |
+
"composer/installers": "~1.0",
|
309 |
+
"php": ">=5.3.0"
|
310 |
+
},
|
311 |
+
"require-dev": {
|
312 |
+
"phpunit/phpunit": "3.7.*",
|
313 |
+
"satooshi/php-coveralls": "dev-master",
|
314 |
+
"wp-cli/wp-cli": "*"
|
315 |
+
},
|
316 |
+
"time": "2016-07-06 12:53:24",
|
317 |
+
"type": "library",
|
318 |
+
"installation-source": "dist",
|
319 |
+
"autoload": {
|
320 |
+
"psr-0": {
|
321 |
+
"Routes": ""
|
322 |
+
}
|
323 |
+
},
|
324 |
+
"notification-url": "https://packagist.org/downloads/",
|
325 |
+
"license": [
|
326 |
+
"MIT"
|
327 |
+
],
|
328 |
+
"authors": [
|
329 |
+
{
|
330 |
+
"name": "Jared Novack",
|
331 |
+
"email": "jared@upstatement.com",
|
332 |
+
"homepage": "http://upstatement.com"
|
333 |
+
}
|
334 |
+
],
|
335 |
+
"description": "Manage rewrites and routes in WordPress with this dead-simple plugin",
|
336 |
+
"homepage": "http://routes.upstatement.com",
|
337 |
+
"keywords": [
|
338 |
+
"redirects",
|
339 |
+
"rewrite",
|
340 |
+
"routes",
|
341 |
+
"routing"
|
342 |
+
]
|
343 |
}
|
344 |
]
|