Skip to content

Commit aa5729a

Browse files
author
Darren Cooney
committed
Updating to 1.1
1 parent c53a3ae commit aa5729a

File tree

17 files changed

+142
-559
lines changed

17 files changed

+142
-559
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
# wordpress-easy-query
2-
Create complex WordPress queries in seconds - it's that easy!
1+
# Easy Query
2+
Easy Query is the fastest and simplest way to build WordPress queries without writing a single line of code.
33

44
The Easy Query WordPress plugin is the fastest and simplest way to build complex WordPress queries without touching a single line of code.
55
Simply adjust the Query Builder parameters to create a custom easy_query shortcode and custom WP_Query for use on your pages and templates.
66

7-
Get more information and view live examples at http://connekthq.com/plugins/easy-query/
7+
Get more information and view live examples at https://connekthq.com/plugins/easy-query/
88

99
##WordPress.org
1010
Easy Query is available as an installed plugin on [wordpress.org](https://wordpress.org/plugins/easy-query/).
1111
Please download the latest stable version from your WordPress plugins dashboard by searching for Easy Query or visiting https://wordpress.org/plugins/easy-query/.
12+
13+
##Easy Query Pro
14+
Upgrade to [Easy Query Pro](https://connekthq.com/plugins/easy-query/) and get these added features and more.
15+
16+
1. Unlimited Templates - Create, modify and delete repeater templates as you need them with absolutely zero restrictions.
17+
2. Saved Queries - Save, edit and delete past queries using the custom query editor.
18+
3. Additional Query Arguments - Unlock additional query parameters such a taxonomy and custom fields.
19+
4. Multisite Compatibility - Install and manage Easy Query templates and queries across multiple sites in your network.
20+
5. Support - Get unlimited support and technical assistance for 1 year.

easy-query/README.txt

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
=== Easy Query ===
1+
=== Easy Query - A Query Builder Plugin===
22
Contributors: dcooney
33
Donate link: https://connekthq.com/donate/
44
Tags: query, query builder, wp_query, save query, query generator, generator, paging, paged, shortcode builder, shortcode, tags, category, post types, taxonomy, meta_query
55
Requires at least: 3.7
6-
Tested up to: 4.3
7-
Stable tag: 1.0.3
6+
Tested up to: 4.5.3
7+
Stable tag: 1.1
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

11-
Easy Query is the fastest and simplest way to build WordPress queries without touching a single line of code.
11+
Easy Query is the fastest and simplest way to build WordPress queries without writing a single line of code.
1212

1313
== Description ==
1414

15+
As of October 21st, 2015 the free version **Easy Query** will no longer be supported.
16+
The plugin will continue to function as usual, however anyone wishing to receive updates and new features is encouraged to upgrade to [Easy Query Pro](https://connekthq.com/plugins/easy-query/).
17+
1518
Create complex queries using our Custom Query Builder then add the generated shortcode to your pages via the content editor or directly into your template files using our WP_Query Generator.
1619

1720

@@ -39,16 +42,9 @@ Easy Query accepts a number of parameters that are passed to the WordPress query
3942
* **category__not_in** - A comma separated list of categories to exclude by ID. Default = null
4043
* **tag__in** - A comma separated list of tags to include by ID. Default = null
4144
* **tag__not_in** - A comma separated list of tags to exclude by ID. Default = null
42-
* **taxonomy** - Query by custom taxonomy name. Default = null
43-
* **taxonomy_terms** - Comma separated list of custom taxonomy terms(slug). Default = null
44-
* **taxonomy_operator** - Operator to compare Taxonomy Terms against (IN/NOT IN). Default = ‘IN’
4545
* **day** - Day of the week. Default = null
4646
* **month** - Month of the year. Default = null
4747
* **year** - Year of post. Default = null
48-
* **taxonomy_operator** - Operator to compare Taxonomy Terms against (IN/NOT IN). Default = ‘IN’
49-
* **meta_key** - Custom field key(name). Default = null
50-
* **meta_value** - Custom field value. Default = null
51-
* **meta_compare** - Operator to compare meta_key and meta_value against (IN/NOT IN/=/!=/>/>=/</<= etc.). Default = ‘IN’
5248
* **author** - Query by author id. Default = null
5349
* **search** - Query search term (‘s’). Default = null
5450
* **post__in** - Comma separated list of post ID’s to include in query. Default = null
@@ -157,6 +153,9 @@ How to install Easy Query.
157153

158154
== Changelog ==
159155

156+
= 1.1 =
157+
* NEWS - As of October 21st, 2015 the free version Easy Query will no longer be supported.
158+
160159
= 1.0.3 =
161160
* Security Update - We have added an extra layer of security verification around the saving of custom templates.
162161

easy-query/admin/admin.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ function ewpq_admin_menu() {
145145

146146
$ewpq_go_pro_page = add_submenu_page( // Go Pro
147147
'easy-query',
148-
'Pro',
149-
'<span style="color: #e1e0f5;font-weight: 700;">Pro<span>',
148+
'Upgrade to Pro',
149+
'<span style="font-weight: 700;">&raquo; Upgrade to Pro<span>',
150150
'edit_theme_options',
151151
'easy-query-go-pro',
152152
'ewpq_go_pro_page'
@@ -219,7 +219,6 @@ function ewpq_enqueue_admin_scripts(){
219219
wp_enqueue_script( 'ewpq-drops', EWPQ_ADMIN_URL. 'js/libs/jquery.drops.js', array( 'jquery' ));
220220
wp_enqueue_script( 'ewpq-admin', EWPQ_ADMIN_URL. 'js/admin.js', array( 'jquery' ));
221221
wp_enqueue_script( 'ewpq-shortcode-builder', EWPQ_ADMIN_URL. 'shortcode-builder/js/shortcode-builder.js', array( 'jquery' ));
222-
wp_enqueue_script( 'ewpq-query-genertor', EWPQ_ADMIN_URL. 'query-generator/js/query-generator.js', array( 'jquery' ), false);
223222
}
224223

225224

easy-query/admin/css/admin.css

Lines changed: 47 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,600);
22

3-
3+
.eq-callout{
4+
background-color: #fffde1;
5+
border: 1px solid #e4e2cf;
6+
padding: 15px;
7+
display: block;
8+
margin: 0 0 20px;
9+
color: #444;
10+
line-height: 1.55;
11+
}
12+
.eq-callout span{
13+
display: block;
14+
font-size: 18px;
15+
line-height: 1.2;
16+
padding: 0 0 10px;
17+
}
418
/* Saved Query Listing */
519
ul.query-list{
620
margin: 0 !important;
@@ -116,10 +130,12 @@ ul.query-list{
116130

117131
/* Save Query */
118132

119-
.cnkt .save-query-wrap{
133+
.cnkt .save-query-wrap,
134+
.query-builder-preview{
120135
position: relative;
121136
}
122-
.cnkt .save-query-wrap .cover{
137+
.cnkt .save-query-wrap .cover,
138+
.query-builder-preview .cover{
123139
position: absolute;
124140
left: 0;
125141
top: 0;
@@ -130,7 +146,8 @@ ul.query-list{
130146
padding: 0 14px;
131147
text-align: center;
132148
}
133-
.cnkt .save-query-wrap .cover span{
149+
.cnkt .save-query-wrap .cover span,
150+
.query-builder-preview .cover span{
134151
font-size: 13px;
135152
font-weight: 600;
136153
text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
@@ -291,7 +308,7 @@ ul.query-list{
291308
margin:0 0 15px;
292309
}
293310
.cnkt p.lg{
294-
font-size: 20px;
311+
font-size: 22px;
295312
font-weight: 300;
296313
}
297314

@@ -632,6 +649,10 @@ ul.query-list{
632649
font-style: italic;
633650
}
634651

652+
.cnkt input[type=number]{
653+
line-height: 1;
654+
height: auto;
655+
}
635656
.cnkt input[type=text],
636657
.cnkt input[type=number],
637658
.cnkt textarea{
@@ -1077,11 +1098,13 @@ ul.query-list{
10771098
padding-top: 11px;
10781099
max-width: 75%;
10791100
}
1101+
.cnkt .header-wrap h1,
10801102
.cnkt .header-wrap h2{
10811103
padding-top: 0;
1082-
font-size: 26px;
1104+
font-size: 24px;
10831105
}
1084-
.cnkt .header-wrap h2 + p{
1106+
.cnkt .header-wrap h2 + p,
1107+
.cnkt .header-wrap h1 + p{
10851108
margin-top: -3px;
10861109
opacity: 0.8;
10871110
}
@@ -1286,24 +1309,30 @@ table.highlight{
12861309
#ewpq-add-ons .group{
12871310
overflow: hidden;
12881311
}
1289-
#ewpq-add-ons .row .wrap{
1290-
padding-bottom: 60px;
1291-
width: 55%;
1312+
.go-eq-pro ol li h3{
1313+
font-size: 14px;
1314+
font-weight: 700;
12921315
}
1293-
#ewpq-add-ons .section-title{
1294-
width: 45%;
1295-
padding: 0;
1316+
.go-eq-pro ol li p{
1317+
font-size: 13px;
12961318
}
1319+
12971320
#ewpq-add-ons .group .section-title p{
12981321
padding-left: 0 !important;
12991322
}
13001323
#ewpq-add-ons .group a.btn{
1301-
position: absolute;
1302-
bottom: 20px;
1303-
right: 20px;
1324+
float: left;
13041325
font-size: 14px;
1305-
padding: 8px 14px;
1326+
padding: 12px 24px 12px 20px;
13061327
display: block;
1328+
margin: 10px 0 15px;
1329+
}
1330+
1331+
.pro-updates{
1332+
display: block;
1333+
padding: 40px 0 0;
1334+
border-top: 1px solid #efefef;
1335+
overflow: hidden;
13071336
}
13081337

13091338
/* Add-on Callout! */
@@ -2104,7 +2133,7 @@ table.highlight{
21042133
.cnkt .section-title,
21052134
.cnkt .row .wrap{
21062135
clear: both;
2107-
width: 100%;
2136+
width: 100% !important;
21082137
display: block;
21092138
float: none;
21102139
padding: 10px;
142 KB
Loading
Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,13 @@
11
<div class="cta padding-bottom">
22
<h3>Other Projects</h3>
33
<div class="cta-wrap">
4-
<?php
5-
// Parse JSON feed on dashboard
6-
function get_about_data($url) {
7-
$ch = curl_init();
8-
$timeout = 5;
9-
curl_setopt($ch, CURLOPT_URL, $url);
10-
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
11-
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
12-
$data = curl_exec($ch);
13-
curl_close($ch);
14-
return $data;
15-
}
16-
$about_url = 'http://download.connekthq.com/easy-wp-query/projects.json';
17-
$about_json = json_decode(get_about_data($about_url));
18-
print "<ul>";
19-
foreach($about_json->data->links as $item) {
20-
print '<li><strong><a target="blank" href="'. $item->url .'">'. $item->title .'</a></strong><br>'. $item->description .'</li>';
21-
}
22-
print "</ul>";
23-
?>
4+
<ul>
5+
<li><strong><a target="blank" href="https://connekthq.com/plugins/easy-query/">Ajax Load More</a></strong><br>A powerful plugin to add infinite scroll functionality to your website.</li>
6+
<li><strong><a target="blank" href="https://connekthq.com/plugins/velocity/">Velocity</a></strong><br>Improve website performance by lazy loading and customizing your embedded media with Velocity.</li>
7+
<li><strong><a target="blank" href="https://connekthq.com/plugins/unsplash-wp/">Unsplash WP</a></strong><br>The fastest way to upload high quality stock photos from unsplash.com directly to your media library.</li>
8+
<li><strong><a target="blank" href="https://connekthq.com">Connekt Media</a></strong><br>A digital creation company.</li>
9+
</ul>
2410
</div>
25-
<a href="http://twitter.com/kaptonkaos" target="blank" class="visit"><i class="fa fa-twitter"></i> Follow on Twitter</a>
11+
<a href="http://twitter.com/connekthq" target="blank" class="visit"><i class="fa fa-twitter"></i> Follow on Twitter</a>
2612
</div>
2713

easy-query/admin/includes/cta/config.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<div class="cta">
22
<h3><?php _e('About the Plugin', EWPQ_NAME); ?></h3>
33
<div class="cta-wrap config">
4+
<div class="eq-callout" style="display: none;">
5+
<span>As of October 21st, 2015 the free version <strong>Easy Query</strong> will no longer be supported.</span>The plugin will continue to function as usual, however anyone wishing to receive updates and new features is encouraged to upgrade to <a href="https://connekthq.com/plugins/easy-query/" target="_blank"><strong>Easy Query Pro</strong></a>.
6+
</div>
47
<p class="lg">Easy Query is the fastest and simplest way to build complex WordPress queries without touching a single line of code.</p>
58
<p>Create your queries using our <a href="?page=easy-query-custom-query-builder">Custom Query Builder</a> then place the generated Shortcode or <a href="http://codex.wordpress.org/Class_Reference/WP_Query" target="_blank">WP_Query</a> PHP output directly into your theme templates, content editor or widget area. </p>
69
<div class="spacer"></div>
Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
11
<div class="cta">
22
<h3><?php _e('Help/Resources', EWPQ_NAME); ?></h3>
33
<div class="cta-wrap">
4-
<?php
5-
6-
// Parse help/resources JSON feed on dashboard
7-
function get_resource_data($url) {
8-
$ch = curl_init();
9-
$timeout = 5;
10-
curl_setopt($ch, CURLOPT_URL, $url);
11-
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
12-
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
13-
$data = curl_exec($ch);
14-
curl_close($ch);
15-
return $data;
16-
}
17-
$resource_url = 'http://download.connekthq.com/easy-wp-query/resources.json';
18-
$resource_json = json_decode(get_resource_data($resource_url));
19-
20-
print "<ul>";
21-
foreach($resource_json->data->resource as $resource) {
22-
print '<li><a target="blank" href="'. $resource->url .'">'. $resource->title .'</a></li>';
23-
}
24-
print "</ul>";
25-
?>
4+
<ul>
5+
<li><a href="https://connekthq.com/plugins/easy-query/">Official Website</a></li>
6+
<li><a href="https://wordpress.org/support/plugin/easy-query/">Plugin Support</a></li>
7+
<li><a href="https://connekthq.com/plugins/easy-query/pro/"><strong>Upgrade to Easy Query Pro</strong></a></li>
8+
</ul>
269
</div>
2710
</div>

easy-query/admin/query-generator/generator.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<div class="cnkt-main">
2-
<div class="group">
3-
<p><?php _e('Copy and paste the following WP_Query into a <a href="http://codex.wordpress.org/Theme_Development#Template_Files" target="_blank">PHP template</a> within your WordPress theme.', EWPQ_NAME); ?></p>
4-
<textarea id="query-output"></textarea>
2+
<div class="group query-builder-preview">
3+
<img src="<?php echo EWPQ_ADMIN_URL; ?>img/generator-preview.jpg">
4+
<div class="cover">
5+
<span>
6+
View your generated WP_Query() with <a target="_parent" href="https://connekthq.com/plugins/easy-query/pro/">Easy Query Pro</a>
7+
</span>
8+
</div>
59
</div>
610
</div>
711
<div class="cnkt-sidebar">

0 commit comments

Comments
 (0)