Plugin Directory

Changeset 1409475


Ignore:
Timestamp:
05/03/2016 09:22:33 AM (10 years ago)
Author:
noideaboy
Message:

template files got left out earlier.

Location:
easy-accordion-posts/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • easy-accordion-posts/trunk/README.txt

    r1399016 r1409475  
    1313== Description ==
    1414
    15 **Easy accordion posts (EAP)**
     15### Easy accordion posts (EAP)
    1616
    1717Display 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!
    1818
    19 **View these examples:**
    20 
     19###View these examples:
    2120* [Searchable & Filterable Property Directory](http://webfixfast.com/sites/easy-accordion-posts/properties-directory/)
    2221* [WooCommerce Products Catalogue](http://webfixfast.com/sites/easy-accordion-posts/woocommerce-products/)
     
    2524* [Super Hero Stats](http://webfixfast.com/sites/easy-accordion-posts/superhero-stats/)
    2625
    27 **Documentation:**
    28 
     26###Documentation:
    2927You can find EAP's documentation [here](http://webfixfast.com/sites/easy-accordion-posts)
    3028
    31 **Developers attention!**
    32 
     29###Developers attention!
    3330While 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 :)
    3431
    35 **Feature Highlights:**
    36 
     32###Feature Highlights:
    3733* Search
    3834* Pagination
     
    4541* Instant results
    4642
    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
    5348
    5449**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  
    185185        if( empty( $query_args ) ){
    186186            $query_args = array(
    187                 's'=> null,
    188187                'posts_per_page' => ! empty( $args['query']['posts_per_page'] ) ? $args['query']['posts_per_page'] : 10,
    189188                'post_type' => array(),
    190                 'paged' => ( isset( $_GET['eap_'. $this->count .'_paged'] ) ) ? $_GET['eap_'. $this->count .'_paged'] : 1,
    191189                'tax_query' => array(
    192190                    'relation' => 'AND',
    193191                ),
    194192            );
     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']];
    195199
    196200            // search
     
    360364                echo "<div class='eap_pagination'>";
    361365                $_count = $this->count;
    362                 echo paginate_links( array(
     366                $pagination_args = array(
    363367                    // 'base'               => '%_%',
    364368                    // 'format'             => '?eappaged=%#%&eap_id='. $_count,
    365                     'format'             => '?eap_'.$_count.'_paged=%#%', // if you want
    366369                    'total'              => $query->max_num_pages,
    367                     'current'            => ( isset( $_GET['eap_'. $this->count .'_paged'] ) ) ? $_GET['eap_'. $this->count .'_paged'] : 1,
    368370                    // 'show_all'           => false,
    369371                    // 'end_size'           => 1,
     
    377379                    // 'before_page_number' => '',
    378380                    // '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 );
    380396                echo "</div>";
    381397            }
     
    615631        foreach( $_GET as $key=> $val ){
    616632            $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 grid
     633            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
    618634                $hidden_fields .= '<input type="hidden" name="'. $key .'" value="'. $val .'" />';
    619635                $clear_link_append .= '&'. $key .'='. $val;
  • easy-accordion-posts/trunk/public/css/easy-accordion-posts-public.css

    r1398953 r1409475  
    173173  background: white;
    174174  border: 2px solid;
    175   border-color: inherit; 
     175  border-color: inherit;
    176176  border-radius: 4px;
    177177  padding: 7px 14px;
     
    214214
    215215.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;
    218218  border-bottom: 2px solid transparent;
    219219  display: inline-block;
     
    226226.eap_filters .eap_term_children a{
    227227  padding: .25em 0;
     228  margin-right: 0;
     229  margin-left: 0;
    228230}
    229231
     
    442444}
    443445
    444 
    445446/*employee*/
    446447.eap_employee_cell{
Note: See TracChangeset for help on using the changeset viewer.