edge_framework 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +2 -0
- data/assets/sass/edge/components/_form.scss +7 -7
- data/assets/sass/edge.scss +1 -1
- data/lib/edge/version.rb +1 -1
- data/template/wordpress/code/cpt.php +1 -0
- data/template/wordpress/code/query.php +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjAzOTY3MTViM2I0N2E5NDc2MGVkNGE3YzYzOWYzMGY4YzU0YWNjYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjM0ZTQxMWI5ZDM1MTc1YjhlZjcwMmEzYzJkYmU0NjhlN2QzOTY0NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmEwNzk2ZWNiMjdkNDI5MzYxYmY5OTc2Y2UyYjI1MjlhYjY0ZjVkNDBmODUy
|
10
|
+
NTUyY2E2MzkwZTI5ODdlYTdkMmMxOTg5Y2Q3N2VmMzIyZWI5NTM0NDQzODUx
|
11
|
+
MTA5OWY0ZjI3ZmIyY2FhN2FlYzk4Yzg2NmUwYmE0ZDU1NTQxZjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGI4YWUzMTI2NjQ2NzQyM2UxMWI2OGI5ZWMwOWQxYjlmODJiYzQ3NTU4YWUz
|
14
|
+
NmFmNWI2YzE4MGY5ZjE0MWJmYjM0NWY3YTNlYjBmNWUwZWZiNGQxZGUzMWUx
|
15
|
+
OTcxMzhjNTczNDNiNGI5MjU2YzQ1ZTMwMTg5OWIzOTE5OTFhN2M=
|
data/README.md
CHANGED
@@ -355,6 +355,8 @@ Now, you can use the custom WP Query:
|
|
355
355
|
$products = Product::find_by("brand", "Microsoft")
|
356
356
|
$events = Event::find()
|
357
357
|
|
358
|
+
**Alert**: If you want pagination to work, the Name cannot be the same as any page's slug.
|
359
|
+
|
358
360
|
Template File
|
359
361
|
---------------
|
360
362
|
|
@@ -2,15 +2,15 @@
|
|
2
2
|
// EDGE FORM
|
3
3
|
// ============
|
4
4
|
|
5
|
-
$input-padding : 10px;
|
6
|
-
$input-border-style : 1px solid;
|
7
|
-
$input-border-color : $passive-color;
|
5
|
+
$input-padding : 10px !default;
|
6
|
+
$input-border-style : 1px solid !default;
|
7
|
+
$input-border-color : $passive-color !default;
|
8
8
|
|
9
|
-
$input-border : $input-border-style $input-border-color;
|
10
|
-
$input-border-hover : $input-border-style darken($input-border-color, 10%);
|
11
|
-
$input-border-focus : $input-border-style $main-color;
|
9
|
+
$input-border : $input-border-style $input-border-color !default;
|
10
|
+
$input-border-hover : $input-border-style darken($input-border-color, 10%) !default;
|
11
|
+
$input-border-focus : $input-border-style $main-color !default;
|
12
12
|
|
13
|
-
$prefix-bg-color : $passive-color;
|
13
|
+
$prefix-bg-color : $passive-color !default;
|
14
14
|
|
15
15
|
@mixin input() {
|
16
16
|
[type="text"],
|
data/assets/sass/edge.scss
CHANGED
data/lib/edge/version.rb
CHANGED
@@ -10,6 +10,7 @@ function add_post_type($name, $icon = "admin-post", $tax_name = null) {
|
|
10
10
|
$labels = array(
|
11
11
|
"name" => $plural,
|
12
12
|
"singular_name" => $singular,
|
13
|
+
"all_items" => "All " . $plural,
|
13
14
|
"add_new_item" => "Add New " . $singular,
|
14
15
|
"edit_item" => "Edit " . $singular,
|
15
16
|
"new_item" => "New " . $singular,
|
@@ -12,11 +12,14 @@ class Post {
|
|
12
12
|
$args = array(
|
13
13
|
"post_type" => get_called_class()
|
14
14
|
);
|
15
|
+
} else {
|
16
|
+
$args["post_type"] = get_called_class();
|
15
17
|
}
|
16
18
|
|
17
19
|
return new WP_Query($args);
|
18
20
|
}
|
19
21
|
|
22
|
+
|
20
23
|
public static function find_by($key, $value) {
|
21
24
|
wp_reset_postdata();
|
22
25
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edge_framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henner Setyono
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|