Example #1
0
 public function widget($args, $instance)
 {
     extract($args);
     $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
     $orderby = strip_tags($instance['orderby']);
     $category = $instance['category'];
     $style = strip_tags($instance['style']);
     $interface = strip_tags($instance['interface']);
     $activeurl = $instance['activeurl'];
     $tooltip = $instance['tooltip'];
     $description = $instance['description'];
     $limit = $instance['limit'];
     $slidersettings = "";
     $img = 0;
     $ids = '0';
     $filter = $instance['filter'];
     $class = $instance['class'];
     echo $before_widget;
     if (!empty($title)) {
         echo $before_title . $title . $after_title;
     }
     echo build_lshowcase($orderby, $category, $activeurl, $style, $interface, $tooltip, $description, $limit, $slidersettings, $img, $ids, $filter, $class);
     echo $after_widget;
     if ($filter == 'hide') {
         lshowcase_filter_code();
     }
     if ($filter == 'enhance') {
         lshowcase_enhance_filter_code();
     }
 }
function lshowcase_run_preview()
{
    $orderby = $_POST['porder'];
    $category = $_POST['pcategory'];
    $activeurl = $_POST['purl'];
    $style = $_POST['pstyle'];
    $interface = $_POST['pinterface'];
    $tooltip = $_POST['ptooltip'];
    $limit = $_POST['plimit'];
    $slidersettings = "";
    $img = $_POST['pimg'];
    $html = build_lshowcase($orderby, $category, $activeurl, $style, $interface, $tooltip, $limit, $slidersettings, $img);
    echo $html;
    die;
    // this is required to return a proper result
}
Example #3
0
 public function widget($args, $instance)
 {
     extract($args);
     $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
     $orderby = strip_tags($instance['orderby']);
     $category = $instance['category'];
     $style = strip_tags($instance['style']);
     $interface = strip_tags($instance['interface']);
     $activeurl = $instance['activeurl'];
     $tooltip = $instance['tooltip'];
     $limit = $instance['limit'];
     $slidersettings = "";
     $img = 0;
     echo $before_widget;
     if (!empty($title)) {
         echo $before_title . $title . $after_title;
     }
     echo build_lshowcase($orderby, $category, $activeurl, $style, $interface, $tooltip, $limit, $slidersettings, $img);
     echo $after_widget;
 }
Example #4
0
function shortcode_lshowcase($atts)
{
    $orderby = array_key_exists('orderby', $atts) ? $atts['orderby'] : "menu_order";
    $category = array_key_exists('category', $atts) ? $atts['category'] : "0";
    $style = array_key_exists('style', $atts) ? $atts['style'] : "normal";
    $interface = array_key_exists('interface', $atts) ? $atts['interface'] : "grid";
    $activeurl = array_key_exists('activeurl', $atts) ? $atts['activeurl'] : "inactive";
    $tooltip = array_key_exists('tooltip', $atts) ? $atts['tooltip'] : "false";
    $limit = array_key_exists('limit', $atts) ? $atts['limit'] : 0;
    $slidersettings = array_key_exists('carousel', $atts) ? $atts['carousel'] : "";
    $img = array_key_exists('img', $atts) ? $atts['img'] : 0;
    //not part of the shortcode generator, but can be used to filter ids:
    $ids = array_key_exists('ids', $atts) ? $atts['ids'] : "0";
    $html = build_lshowcase($orderby, $category, $activeurl, $style, $interface, $tooltip, $limit, $slidersettings, $img, $ids);
    return $html;
}
<div class="section" id="manufacturers">

		<div class="row" id="manufacturerHeader">
			<div class="content small-12 columns" role="main">
				<h3>Our Manufacturers</h3>
			</div>
		</div>
		<div class="row" id="manufacturerLink">
			<div class="content small-12 columns" role="main">
				<a id="manufacturerLearnMore" href="#">Learn More <i class="fa fa-caret-right"></i></a>
			</div>
		</div>

	<div class="logocarousel">
		<div class="row">
			<div class="small-12 columns">
				<?php 
echo build_lshowcase('none', '0', 'inactive', 'hgrayscale', 'hcarousel', 'false', '0', '', '0');
?>
			</div><!-- #content -->
		</div>
	</div>
</div>


Example #6
0
//istart
/** * The template for displaying the footer. * */
?>
<style>
   #brand {
   margin-top: 10px;
   }
</style>
<div class="bran-wrap">
   <div class="ribbon">
      <div class="ribbon-stitches-top"></div>
      <strong class="ribbon-content"></strong>
      <div class="ribbon-stitches-bottom">
         <?php 
echo build_lshowcase('none', '0', 'new', 'normal', 'hcarousel', 'false', '0', '', '0');
?>
      </div>
   </div>
</div>
</div>
<!-- containerInner -->
</div>
<!-- container -->
<!-- FOOTER -->
<link rel="stylesheet" type="text/css" href="<?php 
bloginfo('template_directory');
?>
/css/fonts-icon/css/font-awesome.min.css" />
<div id="footer">
   <!--NAV-FOOTER-->