function tt_taxonomy_columns_scripts($hook_suffix)
 {
     if ('edit-tags.php' === $hook_suffix && isset($_GET['taxonomy']) && $this->taxonomy . '' === $_GET['taxonomy'] && !isset($_GET['action'])) {
         wp_enqueue_script('tt-tax-quickedit', tesla_locate_uri('tesla_framework/static/js/tax-quickedit.js'), array('inline-edit-tax'), null, true);
     }
 }
예제 #2
0
<?php

get_header();
?>
<section class="error-404">
    <div class="container compact">
    <h1><?php 
_ex('<b>Error 404</b> PAGE NOT FOUND', '404', 'biznex');
?>
</h1>

    <div class="error-img"><img src="<?php 
echo tesla_locate_uri('img/error-bg.png');
?>
" alt="error" /></div>

    <p><?php 
_ex('The page you are looking for might have been removed, had its name changed, or it is unavailable.', '404', 'biznex');
?>
</p>

    <div class="widget">
        <?php 
get_search_form();
?>
    </div>

    </div>
</section>
<?php 
get_footer();
예제 #3
0
        <!-- Back to top arrow -->
        <a href="#home" class="to-top"><img src="<?php 
echo tesla_locate_uri('img/to-top.png');
?>
" alt="to-top" /></a>

        <!-- Footer section -->
        <footer>&copy; COPYRIGHTS 2014, BIZNEX by <a href="http://www.teslathemes.com/" target="_blank">TESLATHEMES</a>. All rights reserved.</footer>

        <?php 
wp_footer();
?>
        
    </body>
</html>
예제 #4
0
function biznex_portfolio_get($category = '', $nr = 5, $page = 0, $enable_links = true, $link_target = '', $more_text = '')
{
    $output = '';
    $args = array('numberposts' => $nr, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', 'post_status' => 'publish', 'post__not_in' => get_option('sticky_posts'), 'category_name' => $category, 'offset' => $page * $nr);
    $query = get_posts($args);
    $count = count($query);
    foreach ($query as $i => $q) {
        setup_postdata($q);
        if (has_post_thumbnail($q->ID)) {
            $q_featured = get_the_post_thumbnail($q->ID);
        } else {
            $q_featured = '';
        }
        if ($enable_links) {
            $q_more = '
            <div class="align-center">
                <a href="' . get_permalink($q->ID) . '" target="' . $link_target . '" class="button button-small">' . $more_text . '</a>
            </div>
            ';
        } else {
            $q_more = '';
        }
        switch (biznex_post_type($q)) {
            case 'image':
                $q_type = '<img src="' . tesla_locate_uri('img/blog-type-camera.png') . '" class="type" alt="camera" />';
                break;
            default:
                $q_type = '<img src="' . tesla_locate_uri('img/blog-type-article.png') . '" class="type" alt="article" />';
                break;
        }
        $output .= '
        <div class="' . join(get_post_class('', $q->ID), ' ') . '">
            <a href="' . get_permalink($q->ID) . '" class="line">
                ' . $q_type . '
                <span class="title">' . get_the_title($q->ID) . '</span>
                <span class="date">' . biznex_post_time($q, 'j M') . '</span>
            </a>
            ' . $q_featured . '
            <div class="content">
                ' . biznex_excerpt($q) . '
            </div>
            ' . $q_more . '
        </div>
        ';
    }
    wp_reset_postdata();
    return $output;
}
예제 #5
0
<div class="row counters">
    <?php 
foreach ($slides as $i => $slide) {
    ?>
    <div class="col-lg-2 col-md-2 col-sm-4">
        <div class="counter">
            <div class="left"><img src="<?php 
    echo tesla_locate_uri('img/counter-left.png');
    ?>
" alt="skills-image" /></div>
            <div class="right"><img src="<?php 
    echo tesla_locate_uri('img/counter-right.png');
    ?>
" alt="skills-image" /></div>
            <div class="value" data-value="<?php 
    echo $slide['options']['value'];
    ?>
%">0%</div>
        </div>
        <div class="title"><?php 
    echo get_the_title($slide['post']->ID);
    ?>
</div>
    </div>
    <?php 
}
?>
</div>
예제 #6
0
    ?>
" alt="google-plus" /></a>
                            <a href="#"><img src="<?php 
    echo tesla_locate_uri('img/social-linkedin.png');
    ?>
" alt="linkedin" /></a>
                            <a href="#"><img src="<?php 
    echo tesla_locate_uri('img/social-dribbble.png');
    ?>
" alt="dribbble" /></a>
                            <a href="#"><img src="<?php 
    echo tesla_locate_uri('img/social-pinterest.png');
    ?>
" alt="pinterest" /></a>
                            <a href="#"><img src="<?php 
    echo tesla_locate_uri('img/social-instagram.png');
    ?>
" alt="instagram" /></a>
                        </div>
                    </div>
                </div>
                <?php 
    comments_template();
    ?>
            </div>
            <?php 
    if (is_active_sidebar('page-sidebar')) {
        ?>
            <div class="col-md-4">
                <div class="sidebar">
                    <?php 
예제 #7
0
                <!-- <span class="likes"><img src="<?php 
        echo htmlspecialchars(tesla_locate_uri('img/likes.png'));
        ?>
" alt="" />56 likes</span> -->
                <a href="<?php 
        echo htmlspecialchars($slide['options']['big_image']);
        ?>
" data-lightbox-gallery="portfolio" class="zoom"><img src="<?php 
        echo htmlspecialchars(tesla_locate_uri('img/spacer.gif'));
        ?>
" alt="spacer" /></a>
                <a href="<?php 
        echo $slide['options']['url'];
        ?>
" class="link"><img src="<?php 
        echo htmlspecialchars(tesla_locate_uri('img/spacer.gif'));
        ?>
" alt="spacer" /></a>
            </div>
        </div>
        <?php 
    }
    ?>
        <div class="clear"></div>
    </div>
    <?php 
    if ($custom['pagination'] && $custom['pages'] > 1) {
        ?>
    <ul class="page-numbers">
        <li><span class="prev page-numbers clickable">Prev</span></li>
        <li><span class="page-numbers page-number current">1</span></li>