Exemplo n.º 1
0
/**
 * Footer Code
 */
function dw_fixel_custom_footer_code()
{
    echo dw_get_theme_option('footer_code');
}
Exemplo n.º 2
0
                            <?php 
dw_fixel_logo();
?>
                        </div>
                    </div>
                </header> <!--/# top {banner} -->
                <div class="nav-wrap">
                    <div class="topbtn"><i class="icon-plus topshow"></i></div>
                    <?php 
$facebook = dw_get_theme_option('facebook_link');
$twitter = dw_get_theme_option('twitter_link');
$instagram = dw_get_theme_option('instagram_link');
$youtube = dw_get_theme_option('youtube_link');
$gplus = dw_get_theme_option('google_plus_link');
$linkedin = dw_get_theme_option('linkedin_link');
$flickr = dw_get_theme_option('flickr_link');
if ($facebook || $youtube || $gplus || $linkedin || $flickr || $instagram || $twitter) {
    ?>
                    <div class="social-link">
                        <ul>
                            <?php 
    if ($facebook) {
        ?>
                            <li id="facebook_link"><a href="<?php 
        echo $facebook;
        ?>
" class="facebook"><i class="icon-facebook"></i></a></li>
                            <?php 
    }
    ?>
                            <?php 
Exemplo n.º 3
0
    function dw_ajax_flickrs_setup()
    {
        $flickr_id = dw_get_theme_option('flickr-id');
        if ($flickr_id) {
            $flickrs = get_flickrs($flickr_id);
            $i = 0;
            ?>
        <div class="carousel-inner">
            <?php 
            if (!empty($flickrs)) {
                ?>
              <?php 
                foreach ($flickrs as $flickr) {
                    ?>
              <div class="<?php 
                    echo $i == 0 ? 'active' : '';
                    ?>
 item">
                  <a href="<?php 
                    echo $flickr['url'];
                    ?>
" ><img src="<?php 
                    echo $flickr['photo_url'];
                    ?>
" target="_blank" /></a>
                  <div class="carousel-caption">
                    <h4><a href="<?php 
                    echo $flickr['url'];
                    ?>
" ><?php 
                    echo $flickr['title'];
                    ?>
</a></h4>
                    <p><?php 
                    echo strip_tags($flickr['description']);
                    ?>
</p>
                  </div>
              </div>
              <?php 
                    $i++;
                    ?>
              <?php 
                }
                ?>
            <?php 
            }
            ?>
          </div>
          <a class="carousel-control left" href="#carousel-flickr" data-slide="prev"><i class="icon-long-arrow-left"></i></a>
          <a class="carousel-control right" href="#carousel-flickr" data-slide="next"><i class="icon-long-arrow-right"></i></a>
        <?php 
        }
        exit(0);
    }
Exemplo n.º 4
0
 function dw_theme_options_textarea_type($setting_id, $description = false, $tab = 'dw_theme_options')
 {
     echo '<textarea rows="5" class="large-text code" id="' . $setting_id . '" name="' . $tab . '[' . $setting_id . ']">' . dw_get_theme_option($setting_id) . '</textarea>';
     if ($description) {
         echo '<br><span class="description">' . $description . '</span>';
     }
 }
Exemplo n.º 5
0
    _e('block setting', 'dw');
    ?>
</h3>
                    <label for="username"><?php 
    _e('Profile Name', 'dw');
    ?>
</label>
                    <input type="text" name="google-plus-name" value="<?php 
    echo dw_get_theme_option('google-plus-name');
    ?>
" >
                    <label for="ggurl"><?php 
    _e('Profile URL', 'dw');
    ?>
</label>
                    <input type="text" name="google-plus-url"  value="<?php 
    echo dw_get_theme_option('google-plus-url');
    ?>
" >
                </div>
                <?php 
}
?>
                <button type="submit" class="btn btn-small btn-publish-new-block" name="publish-new-block"><?php 
_e('Save', 'dw');
?>
</button>
            </div>
        </form>
    </div>
</article>
Exemplo n.º 6
0
    function dw_show_more_button()
    {
        $show_more_type = dw_get_theme_option('show_more_type', 'infinite');
        if ('button' == $show_more_type) {
            global $wp_query;
            if ($wp_query->query_vars['posts_per_page'] < $wp_query->found_posts) {
                ?>
            <div class="show-more"><a href="#" class="btn button-add-content" data-query-var="<?php 
                echo http_build_query($wp_query->query_vars);
                ?>
" data-paged="<?php 
                echo $wp_query->query_vars['paged'];
                ?>
"><?php 
                _e('Show More', 'dw');
                ?>
</a></div>
            <?php 
            }
        }
    }