Example #1
0
    /* adding js */
    wp_enqueue_script('bootstrap-js', get_stylesheet_directory_uri() . '/js/bootstrap.min.js', array('jquery'));
    wp_enqueue_script('fancybox-js', get_stylesheet_directory_uri() . '/js/fancybox/jquery.fancybox.js', array('jquery'));
    wp_enqueue_script('script-js', get_stylesheet_directory_uri() . '/js/script.js', array('jquery'));
    //wp_enqueue_script('easy-zoom-js', get_stylesheet_directory_uri() . '/js/jquery.elevatezoom.js', array( 'jquery' ) );
    wp_enqueue_script('easyzoom-js', get_stylesheet_directory_uri() . '/js/easyzoom.js', array('jquery'));
    wp_enqueue_script('owl-js', get_stylesheet_directory_uri() . '/js/owl/owl.carousel.js', array('jquery'));
    wp_enqueue_script('owl-js', get_stylesheet_directory_uri() . '/js/owl/owl.carousel.js', array('jquery'));
}
/* add stylesheets and javascript to child theme [end] */
/* add file for custom post type & sidebar [start] */
require "acf-gallery/acf-gallery.php";
require "custom-post-type.php";
add_sidebar('Footer Block 1', 'footer_block_1');
add_sidebar('Footer Block 2', 'footer_block_2');
add_sidebar('Footer Block 3', 'footer_block_3');
/* add file for custom post type & sidebar [end] */
// thumbnail support
add_action('after_setup_theme', 'setup');
function setup()
{
    add_theme_support('post-thumbnails');
    // This feature enables post-thumbnail support for a theme
    add_image_size('post_thumb_image', 370, 240, true);
    // thumb image
    add_image_size('product_shop_single', 400, 400, true);
    // product shop main image
    add_image_size('ProductThumbImage', 270, 270, true);
    //the_post_thumbnail('ProductThumbImage');
}
// order by filter logic
Example #2
0
<?php

get_header();
#add_custom_page("testa1", "lalall");
?>
    <section>
      <div class="wrapper">
<?php 
if (get_theme_mod('sidebar_on_page')) {
    add_sidebar(get_theme_mod('sidebar_on_page'));
}
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
        <div id="page">
          <!-- Content (Weird Indents)-->
<?php 
        the_content(__('(&#187;)'));
        ?>
          <!-- END -->
        </div>
<?php 
    }
} else {
    _e('Sorry, no posts matched your criteria.');
}
?>
        <div id="page">
<?php 
list_type("subory", "file");
Example #3
0
<?php

get_header();
?>
    <section>
      <div class="wrapper">
<?php 
if (get_theme_mod('sidebar_on_post_list')) {
    add_sidebar(get_theme_mod('sidebar_on_post_list'));
}
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
        <article>
          <h1><a href=/?p=<?php 
        the_ID();
        ?>
><?php 
        the_title();
        ?>
</a></h1>
          <small><?php 
        the_date();
        ?>
, <?php 
        the_author();
        ?>
:</small>
          <!-- Content (Weird Indents)-->
<?php