edge_framework 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  /* --------------------
2
2
  - EDGE Framework
3
3
  - edge.setyono.net
4
- - v1.3.2 (Furion)
4
+ - v1.3.3 (Furion)
5
5
  --------------------- */
6
6
 
7
7
  @import "edge/base";
data/lib/edge/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Edge
2
- VERSION = "1.3.2"
2
+ VERSION = "1.3.3"
3
3
  CODENAME = "Furion"
4
4
  end
@@ -2,6 +2,11 @@
2
2
  include "inflector.php";
3
3
  include "cpt.php";
4
4
 
5
+ // If Timber not installed, ignore all the code below this
6
+ if (!class_exists("Timber") ) {
7
+ return;
8
+ }
9
+
5
10
  class TimberEdge extends TimberSite {
6
11
 
7
12
  function __construct(){
@@ -1,7 +1,12 @@
1
1
  <?php
2
+ // If Timber not installed or not activated
3
+ if (!class_exists("Timber") ) {
4
+ echo "Timber not activated. <a href='" . admin_url("plugin-install.php?tab=search&type=term&s=Timber+Library&plugin-search-input=Search+Plugins") . "'>Install</a> or <a href='" . admin_url("plugins.php#timber") . "'>Activate it</a> via Admin Panel</a>";
5
+ return;
6
+ }
7
+
2
8
  $context = Timber::get_context();
3
9
  $context["posts"] = Timber::get_posts();
4
10
  $context["pagination"] = Timber::get_pagination();
5
11
 
6
- Timber::render("index.twig", $context);
7
-
12
+ Timber::render("index.twig", $context);
@@ -14,6 +14,6 @@
14
14
  {% endfor %}
15
15
 
16
16
  {% if pagination.next %}
17
- <a href="{{pagination.next.link}}">Next</a>
17
+ <a href="{{ pagination.next.link }}">Next</a>
18
18
  {% endif %}
19
19
  </footer>
@@ -10,4 +10,10 @@
10
10
 
11
11
  {% endfor %}
12
12
 
13
+ {% if not posts %}
14
+ <p>
15
+ No posts found
16
+ </p>
17
+ {% endif %}
18
+
13
19
  {% include "partials/_pagination.twig" %}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edge_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-01 00:00:00.000000000 Z
12
+ date: 2014-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass