Changeset 1409475
- Timestamp:
- 05/03/2016 09:22:33 AM (10 years ago)
- Location:
- easy-accordion-posts/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (3 diffs)
-
public/class-easy-accordion-posts-public.php (modified) (4 diffs)
-
public/css/easy-accordion-posts-public.css (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-accordion-posts/trunk/README.txt
r1399016 r1409475 13 13 == Description == 14 14 15 **Easy accordion posts (EAP)** 15 ### Easy accordion posts (EAP) 16 16 17 17 Display your posts as accordions (in a grid) using simple and intuitive options. No programming skills necessary for basic output (see examples below), anyone can do it :) Advanced facilities for developers! 18 18 19 **View these examples:** 20 19 ###View these examples: 21 20 * [Searchable & Filterable Property Directory](http://webfixfast.com/sites/easy-accordion-posts/properties-directory/) 22 21 * [WooCommerce Products Catalogue](http://webfixfast.com/sites/easy-accordion-posts/woocommerce-products/) … … 25 24 * [Super Hero Stats](http://webfixfast.com/sites/easy-accordion-posts/superhero-stats/) 26 25 27 **Documentation:** 28 26 ###Documentation: 29 27 You can find EAP's documentation [here](http://webfixfast.com/sites/easy-accordion-posts) 30 28 31 **Developers attention!** 32 29 ###Developers attention! 33 30 While this plugin is a fantastic beginners tool, it has all the ground work laid out so you can dive into the juicier aspects of development right now skipping past a lot of tedious setup code. Customise advanced results faster! Editing later on will be a breeze :) 34 31 35 **Feature Highlights:** 36 32 ###Feature Highlights: 37 33 * Search 38 34 * Pagination … … 45 41 * Instant results 46 42 47 **Achieve ANYTHING:** 48 49 * **Freedom:** You can customise the formatting of your accordion cells using your own HTML. You can even create custom PHP templates for the cells. This is very useful in case you need more advanced results like performing operations on custom fields before presenting them. Pre-defined cell templates are included so you can easily copy and modify them. [Learn more](http://webfixfast.com/sites/easy-accordion-posts/customizing-cell-templates/) 50 * **Solid Documentation:** This plugin is built in a way for you to completely own it. This is why it is well documented, giving you deep control over its facilities and instant power to create fantastic results. [Learn more](http://webfixfast.com/sites/easy-accordion-posts/) 51 * **Custom Query:** Want to include only specific CPT, taxonomy and terms in your query? No problem, its easy visual interface lets you select them with just a few clicks. You need even finer control with tax queries and meta queries? Then use its documented filter hook to insert your own WP_Query args. [Learn more](http://webfixfast.com/sites/easy-accordion-posts/hooking-in-your-custom-wp-query-for-eap/) 52 * **Quality Support:** This is an up and coming plugin and I (Kartik, aka WordPressaHolic, the plugin's author) am fully committed towards developing it into a powerful, feature rich tool. Reported bugs will be promptly quashed and any holes in the documentation will be quickly filled. If you have feature requests that will benefit the rest of us, please send them in and I'll see what I can do :D 43 ###Achieve ANYTHING: 44 - **Freedom:** You can customise the formatting of your accordion cells using your own HTML. You can even create custom PHP templates for the cells. This is very useful in case you need more advanced results like performing operations on custom fields before presenting them. Pre-defined cell templates are included so you can easily copy and modify them. [Learn more](http://webfixfast.com/sites/easy-accordion-posts/customizing-cell-templates/) 45 - **Solid Documentation:** This plugin is built in a way for you to completely own it. This is why it is well documented, giving you deep control over its facilities and instant power to create fantastic results. [Learn more](http://webfixfast.com/sites/easy-accordion-posts/) 46 - **Custom Query:** Want to include only specific CPT, taxonomy and terms in your query? No problem, its easy visual interface lets you select them with just a few clicks. You need even finer control with tax queries and meta queries? Then use its documented filter hook to insert your own WP_Query args. [Learn more](http://webfixfast.com/sites/easy-accordion-posts/hooking-in-your-custom-wp-query-for-eap/) 47 - **Quality Support:** This is an up and coming plugin and I (Kartik, aka WordPressaHolic, the plugin's author) am fully committed towards developing it into a powerful, feature rich tool. Reported bugs will be promptly quashed and any holes in the documentation will be quickly filled. If you have feature requests that will benefit the rest of us, please send them in and I'll see what I can do :D 53 48 54 49 **PS-** I wrote this plugin in AngularJS, a sweet framework for rapid app development. [Contact me](http://kartik.webfixfast.com/) if you're looking for an offshore developer with the necessary chops to build your next web app / WordPress plugin / bespoke website. -
easy-accordion-posts/trunk/public/class-easy-accordion-posts-public.php
r1398953 r1409475 185 185 if( empty( $query_args ) ){ 186 186 $query_args = array( 187 's'=> null,188 187 'posts_per_page' => ! empty( $args['query']['posts_per_page'] ) ? $args['query']['posts_per_page'] : 10, 189 188 'post_type' => array(), 190 'paged' => ( isset( $_GET['eap_'. $this->count .'_paged'] ) ) ? $_GET['eap_'. $this->count .'_paged'] : 1,191 189 'tax_query' => array( 192 190 'relation' => 'AND', 193 191 ), 194 192 ); 193 194 // pagination 195 if( ! empty( $_GET['eap_'. $this->count .'_paged'] ) ) 196 $query_args[ 'paged' ] = $_GET['eap_'. $this->count .'_paged']; 197 else if( ! empty( $_GET['eap_paged_'. $atts['id']] ) ) 198 $query_args[ 'paged' ] = $_GET['eap_paged_'. $atts['id']]; 195 199 196 200 // search … … 360 364 echo "<div class='eap_pagination'>"; 361 365 $_count = $this->count; 362 echo paginate_links(array(366 $pagination_args = array( 363 367 // 'base' => '%_%', 364 368 // 'format' => '?eappaged=%#%&eap_id='. $_count, 365 'format' => '?eap_'.$_count.'_paged=%#%', // if you want366 369 'total' => $query->max_num_pages, 367 'current' => ( isset( $_GET['eap_'. $this->count .'_paged'] ) ) ? $_GET['eap_'. $this->count .'_paged'] : 1,368 370 // 'show_all' => false, 369 371 // 'end_size' => 1, … … 377 379 // 'before_page_number' => '', 378 380 // 'after_page_number' => '' 379 ) ); 381 ); 382 383 if( isset( $atts[ 'id' ] ) ){ 384 $pagination_args[ 'format' ] = '?eap_paged_'.$atts[ 'id' ].'=%#%'; 385 }else{ 386 $pagination_args[ 'format' ] = '?eap_'.$_count.'_paged=%#%'; 387 } 388 389 $pagination_args[ 'current' ] = 1; 390 if( isset( $_GET['eap_'. $this->count .'_paged'] ) ) 391 $pagination_args[ 'current' ] = $_GET['eap_'. $this->count .'_paged']; 392 else if( isset( $_GET[ 'eap_paged_'. $atts['id'] ] ) ) 393 $pagination_args[ 'current' ] = $_GET[ 'eap_paged_'. $atts['id'] ]; 394 395 echo paginate_links( $pagination_args ); 380 396 echo "</div>"; 381 397 } … … 615 631 foreach( $_GET as $key=> $val ){ 616 632 $test = substr( $key, 0, $prefixlen ); 617 if( $test !== $prefix && $key !== 'eap_search_'. $atts['id'] ){ // found a match : means we have a tax:term_id filter set for this grid633 if( $test !== $prefix && $key !== 'eap_search_'. $atts['id'] && $key !== 'eap_paged_'. $atts['id'] ){ // found a match : means we have a tax:term_id filter set for this grid 618 634 $hidden_fields .= '<input type="hidden" name="'. $key .'" value="'. $val .'" />'; 619 635 $clear_link_append .= '&'. $key .'='. $val; -
easy-accordion-posts/trunk/public/css/easy-accordion-posts-public.css
r1398953 r1409475 173 173 background: white; 174 174 border: 2px solid; 175 border-color: inherit; 175 border-color: inherit; 176 176 border-radius: 4px; 177 177 padding: 7px 14px; … … 214 214 215 215 .eap_filters a{ 216 padding: .5em .5em .25em .5em;217 margin: .25em .25em .5em .25em;216 padding: .5em 0 .25em 0; 217 margin: .25em 0.75em .5em .75em; 218 218 border-bottom: 2px solid transparent; 219 219 display: inline-block; … … 226 226 .eap_filters .eap_term_children a{ 227 227 padding: .25em 0; 228 margin-right: 0; 229 margin-left: 0; 228 230 } 229 231 … … 442 444 } 443 445 444 445 446 /*employee*/ 446 447 .eap_employee_cell{
Note: See TracChangeset
for help on using the changeset viewer.