Binders: gallery_block

TODO

 

{{gallery_block id="{{$post.ID}}" assign_to="gallery"}}
<!--buttons-->
<ol class="carousel-indicators">
    {{foreach $gallery as $image}}
        <li data-target="#carousel-example-generic" data-slide-to="{{$image@index}}" class="{{if $image_url@index eq 0}}active{{/if}}"></li>
    {{/foreach}}
</ol>

<!--slides--> 
<div class="carousel-inner" role="listbox">
    {{foreach $gallery as $image_url}}
    <div class="item {{if $image_url@index eq 0}}active{{/if}}">
        <img alt="First slide [900x500]" src="{{$image_url}}" data-holder-rendered="true">
    </div>
    {{/foreach}}
</div>
{{/gallery_block}} 

 

Binders: login

TODO:

<div id="my-login" class="appc-dynamic">
    {{login}}
        {{if $is_user_logged_in}}
            <a href="{{wp_logout_url redirect_url='self'}}">Logout</a>
        {{else}}
            <div>
                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#signup-modal">
                    Sign Up
                </button>
    
                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#login-modal">
                    Login
                </button>
            </div>
        {{/if}}
    {{/login}}
</div>

 

binder-login-login

 

 

binder-login-register

Binders: footer

TODO

 

/**
 * Include required files and attributes in the page footer.
 *
 * @param $params {array} 
 *          $params['use_bootstrap']
 *          $params['use_jquery'] included by default
 *          $params['use_jqueryui'] not included by default
 *          $params['use_jquerymobile'] not included by default
 *          $params['use_fontawesome']
 *          $params['use_wp_footer'] included by default
 *          $params['use_compiled_script']
 *          $params['assign_to']
 *
 */

 

Example:

<!DOCTYPE html>
<html lang="en">
    <head>
        {{header}}{{/header}}
    </head>
    <body>
        <!-- .appc-page -->
        <div class="appc-page">
            {{blocks}}
        </div><!-- /.appc-page -->

        {{footer}}{{/footer}}
    </body>
</html>

 

Binders: header

TODO:

/**
 * Include required files and attributes in the page header.
 *
 * @param $params {array} 
 *          $params['title']
 *          $params['use_bootstrap']
 *          $params['use_fontawesome']
 *          $params['use_charset']
 *          $params['use_viewport']
 *          $params['use_wp_head']
 *          $params['use_compiled_stylesheet']
 *          $params['use_ie_compatible'] // http-equiv="X-UA-Compatible"
 *          $params['old_browser_support']  < IE9
 *          $params['assign_to']
 *
 */

 

Example:

<!DOCTYPE html>
<html lang="en">
    <head>
        {{header}}{{/header}}
    </head>
    <body>
        <!-- .appc-page -->
        <div class="appc-page">
            {{blocks}}
        </div><!-- /.appc-page -->

        {{footer}}{{/footer}}
    </body>
</html>