Esempio n. 1
0
function cp_customizer()
{
    $primary_font = cp_options('primary_font');
    $heading_font = cp_options('heading_font');
    $primary_color = cp_options('primary_color');
    $custom_css = cp_options('custom_css');
    $output = '<style type="text/css">';
    if ($primary_font && $primary_font['font-family'] != 'Roboto') {
        $font_elements = 'body, .btn-main, h6, blockquote p, .navbar-default .navbar-brand, .navbar-default .navbar-nav > li > a, .slides-navigation a, #sync2 .service-item h1, .box-count h1, #contact-form input[type=text], #contact-form input[type=email], #contact-form textarea, #footer .footer-social, #submit-btn';
        $output .= $font_elements . '{font-family: "' . esc_html($primary_font['font-family']) . '";}';
        if (isset($primary_font['font-weight']) && $primary_font['font-weight']) {
            $output .= $font_elements . '{font-weight: ' . esc_html($primary_font['font-weight']) . ';}';
        }
    }
    if ($heading_font && $heading_font['font-family'] != 'Roboto Condensed') {
        $output .= 'h1, h2, h3, h4, h5, #slides .slide-caption h1{font-family: "' . esc_html($heading_font['font-family']) . '";}';
    }
    if ($primary_color && $primary_color != '#9E9B7E') {
        $output .= cp_get_custom_css($primary_color);
    }
    if ($custom_css) {
        $output .= $custom_css;
    }
    $output .= "</style>\r\n";
    echo $output;
}
Esempio n. 2
0
get_header();
?>
<section id="news-list" class="section">
  <div class="container">
    <div class="row m-bottom-100">
      <div class="col-md-6">
        <h3><?php 
echo esc_html(cp_options('blog_title'));
?>
</h3>
        <div class="divider"></div>
      </div>
      <div class="col-md-6">
        <h6><?php 
echo esc_html(cp_options('blog_subtitle'));
?>
</h6>
      </div>
    </div>
    <div class="row">
      <?php 
if (get_query_var('s')) {
    $searchquery = new WP_Query(array('s' => get_query_var('s'), 'paged' => get_query_var('paged') ? get_query_var('paged') : 1, 'post_type' => 'post'));
}
if (!have_posts()) {
    echo '<div class="no-posts"><h2>' . __('No posts has been found!', 'concept') . '</h2></div>';
}
while (have_posts()) {
    the_post();
    get_template_part('partials/blog-post');
Esempio n. 3
0
</a></li>
          <?php 
}
?>
          <?php 
if (cp_options('500px')) {
    ?>
          <li><a href="<?php 
    echo esc_url(cp_options('500px'));
    ?>
"><?php 
    _e('500px', 'concept');
    ?>
</a></li>
          <?php 
}
?>
        </ul>
      </div>
    </div>
    <div class="row m-top-20">
      <div class="col-md-12 text-center">
        <?php 
echo esc_html(cp_options('footer_text'));
?>
      </div>
    </div>
  </div>
</footer>
<?php 
wp_footer();
Esempio n. 4
0
?>
            <?php 
if (cp_options('dribbble') && in_array('dribbble', cp_options('top-menu-icons'))) {
    ?>
            <li><a href="<?php 
    echo esc_url(cp_options('dribbble'));
    ?>
"><i class="ion-social-dribbble"></i></a></li>
            <?php 
}
?>
            <?php 
if (cp_options('tumblr') && in_array('tumblr', cp_options('top-menu-icons'))) {
    ?>
            <li><a href="<?php 
    echo esc_url(cp_options('tumblr'));
    ?>
"><i class="ion-social-tumblr"></i></a></li>
            <?php 
}
?>
          </ul>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-right" id="navbar-collapse">
          <?php 
if (has_nav_menu('primary')) {
    ?>
            <?php 
    wp_nav_menu(array('theme_location' => 'primary', 'container' => false, 'menu_id' => 'main-menu', 'menu_class' => 'nav navbar-nav'));
    ?>