<div class="modal-body"> <div class="progress progress-striped active"> <div class="progress-bar" style="width: 100%"></div> </div> </div> </div> </div> </div> </div> </div> <?php if (count(Widgets::render('publish_new')) > 0) { ?> <div class="col-md-3 col-sm-12 col-xs-12"> <?php foreach (Widgets::render('publish_new') as $widget) { ?> <div class="panel panel-sidebar <?php echo get_class($widget->widget); ?> "> <?php echo $widget; ?> </div> <?php } ?> </div> <?php }
<?php defined('SYSPATH') or die('No direct script access.'); ?> <div class="col-xs-3"> <?php foreach (Widgets::render('sidebar') as $widget) { ?> <div class="panel panel-sidebar <?php echo get_class($widget->widget); ?> "> <?php echo $widget; ?> </div> <?php } ?> </div>
<?php defined('SYSPATH') or die('No direct script access.'); ?> <hr> <footer> <div class="row"> <?$i=0; foreach ( Widgets::render('footer') as $widget):?> <div class="col-md-3"> <?php echo $widget; ?> </div> <? $i++; if ($i%4 == 0) echo '<div class="clearfix"></div>';?> <?endforeach?> </div> <!--This is the license for Open Classifieds, do not remove --> <div class="center-block"> <p>© <?if (Theme::get('premium')!=1):?> Web Powered by <a href="http://open-classifieds.com?utm_source=<?php echo URL::base(); ?> &utm_medium=oc_footer&utm_campaign=<?php echo date('Y-m-d'); ?> " title="Best PHP Script Classifieds Software">Open Classifieds</a> 2009 - <?php echo date('Y'); ?> <?else:?>
/** * Outputs the widget * * @param array $args * @param array $instance * @return void */ public function widget($args, $instance) { $template = get_current_template(); // If not a page stop rendering if (!$template) { return false; } // Get template dir $dir = Sidebars::$sidebars[$template][$args['id']]['dir']; // If no fields exist stop rendering $fields = get_fields($instance['widget_id']); if (!$fields || !isset($fields['widget'])) { return false; } // Render the widgets foreach ($fields['widget'] as $widget) { echo Widgets::render($args, $widget, $dir); } }
<?php echo Theme::get('header_ad') != '' ? Theme::get('header_ad') : ''; ?> <?php echo $content; ?> </section> <?php echo Theme::get('sidebar_position') == 'right' ? View::fragment('sidebar_front', 'sidebar') : ''; ?> <div class="container"> <?php foreach (Widgets::render('footer') as $widget) { ?> <div class="col-lg-3"> <?php echo $widget; ?> </div> <?php } ?> </div> <?php echo $footer; ?>