public function widget($args, $instance) { echo $args['before_widget']; if (!empty($instance['title'])) { echo $args['before_title'] . apply_filters('widget_title', $instance['title']) . $args['after_title']; } // Get options from widget for meteor_slideshow function arguments $slideshow_arg = $instance['slideshow']; $metadata_arg = $instance['metadata']; // Load slideshow meteor_slideshow($slideshow = $slideshow_arg, $metadata = $metadata_arg); echo $args['after_widget']; }
<?php get_header(); get_template_part('content/archive-header'); if (is_front_page()) { ?> <div class="home-top"> <?php if (function_exists('meteor_slideshow') && is_front_page()) { ?> <div class="slider"> <?php meteor_slideshow(); ?> </div> <?php } if (is_active_sidebar('sidebar-top') && is_front_page()) { ?> <aside class="sidebar-top" id="sidebar-top" role="complementary"> <?php dynamic_sidebar('sidebar-top'); ?> </aside> <?php } if (is_active_sidebar('home-page') && is_front_page()) { ?> <aside class="home-page" id="home-page" role="complementary"> <?php dynamic_sidebar('home-page');
function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); $slideshow_arg = $instance['slideshow']; $metadata_arg = $instance['metadata']; echo $before_widget; if ($title) { echo $before_title . $title . $after_title; } meteor_slideshow($slideshow = $slideshow_arg, $metadata = $metadata_arg); echo $after_widget; }
function meteor_slideshow_shortcode($meteor_atts) { extract(shortcode_atts(array('slideshow' => '', 'metadata' => ''), $meteor_atts)); $slideshow_att = $slideshow; $metadata_att = $metadata; ob_start(); meteor_slideshow($slideshow = $slideshow_att, $metadata = $metadata_att); $meteor_slideshow_content = ob_get_clean(); return $meteor_slideshow_content; }
<?php } elseif (is_page('about')) { ?> <div class="post_nav"> <h3>Blogroll</h3> <ul> <?php wp_list_bookmarks('categorize=0&title_li=0&title_after=&title_before='); ?> </ul> </div> <h2 class="widgettitle">Partnerzy Szlaków Małopolski</h2> <?php if (function_exists('meteor_slideshow')) { meteor_slideshow("szlaki-promo", ""); } ?> <ul> <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) { ?> <?php } ?> </ul> <?php } elseif (is_author()) { ?>
* * The template for rendering pages without sidebars. * * @package Standard * @since 3.0 */ get_header(); ?> <div id="wrapper"> <div class="container"> <div class="row"> <div id="main" class="span12 clearfix" role="main"> <?php if (function_exists('meteor_slideshow')) { meteor_slideshow("home"); } ?> <br> <?php get_template_part('breadcrumbs'); ?> <?php if (have_posts()) { ?> <?php while (have_posts()) { the_post(); ?> <div id="post-<?php