Example #1
0
function page_animation($post)
{
    ?>
    <p><strong><?php 
    _e('Select Animation:', 'metrika');
    ?>
</strong></p>
    <?php 
    $page_animation = get_post_meta($post->ID, 'page_animation', true);
    if (empty($page_animation)) {
        $page_animation = 0;
    }
    animationList('page-animation', $page_animation, 'page_animation');
}
Example #2
0
function pageHeaderOptions()
{
    $header_options = get_option('page_header_options');
    ?>
    <div class="page-header-options">
        <div class="pull-left">
            <label><?php 
    _e('Home Button Options:', 'metrika');
    ?>
</label>
            <label><input type="checkbox" id="enable-home-button" <?php 
    if (!empty($header_options['home_button']) && $header_options['home_button'] == 'true') {
        echo 'checked';
    }
    ?>
> <?php 
    _e('Enable Button', 'metrika');
    ?>
</label>
            <?php 
    if (empty($header_options['home_animation'])) {
        $header_options['home_animation'] = 0;
    }
    ?>
            <?php 
    animationList('home-button-animation', $header_options['home_animation']);
    ?>
        </div>
        <div class="pull-left last">
            <label><?php 
    _e('Prev Page Button Options:', 'metrika');
    ?>
</label>
            <label><input type="checkbox" id="enable-prev-button" <?php 
    if (!empty($header_options['prev_button']) && $header_options['prev_button'] == 'true') {
        echo 'checked';
    }
    ?>
> <?php 
    _e('Enable Button', 'metrika');
    ?>
</label>
            <?php 
    if (empty($header_options['prev_animation'])) {
        $header_options['prev_animation'] = 0;
    }
    ?>
            <?php 
    animationList('prev-button-animation', $header_options['prev_animation']);
    ?>
        </div>
        <div class="pull-left last">
            <label><?php 
    _e('Next Page Button Options:', 'metrika');
    ?>
</label>
            <label><input type="checkbox" id="enable-next-button" <?php 
    if (!empty($header_options['next_button']) && $header_options['next_button'] == 'true') {
        echo 'checked';
    }
    ?>
> <?php 
    _e('Enable Button', 'metrika');
    ?>
</label>
            <?php 
    if (empty($header_options['next_animation'])) {
        $header_options['next_animation'] = 0;
    }
    ?>
            <?php 
    animationList('next-button-animation', $header_options['next_animation']);
    ?>
        </div>
        <div class="clearfix"></div>
        <a href="#" id="save-page-header" class="button-primary"><?php 
    _e('Save Options', 'metrika');
    ?>
</a>
        <span class="page-header-save-status"></span>
    </div>
    <?php 
}