2017-01-18 4 views
0

私はXAMPPのFlexテンプレート(Joomlaの)をインストールし、私は、サイトを開くと、いくつかのエラーが表示されている:注意:未定義の変数boxed_layout_width

注意:未定義の変数:Cでboxed_layout_width:\ xamppの\ htdocsに\をフレックス\テンプレート\フレックス\ index.phpをライン164 クラス= "ボディinnerwrapper" 上>


ここに私のindex.phpです:

<?php 
/** 
* Flex @package Helix3 Framework 
* Template Name - Flex 
* @author Aplikko http://www.aplikko.com 
* @copyright Copyright (c) 2016 Aplikko 
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later 
*/ 
//no direct access 
defined ('_JEXEC') or die ('restricted access'); 

$doc = JFactory::getDocument(); 

JHtml::_('jquery.framework'); 
JHtml::_('bootstrap.framework'); //Force load Bootstrap 
unset($doc->_scripts[$this->baseurl . '/media/jui/js/bootstrap.min.js']); // Remove joomla core bootstrap 


//Load Helix 
$helix3_path = JPATH_PLUGINS.'/system/helix3/core/helix3.php'; 

if (file_exists($helix3_path)) { 
    require_once($helix3_path); 
    $this->helix3 = helix3::getInstance(); 
} else { 
    die('Please install and activate helix plugin'); 
} 

//Coming Soon 
if($this->helix3->getParam('comingsoon_mode')) header("Location: ".$this->baseUrl."?tmpl=comingsoon"); 

//Class Classes 
$body_classes = ''; 

if($this->helix3->getParam('sticky_header')) { 
    $body_classes .= ' sticky-header'; 
} 

$body_classes .= ($this->helix3->getParam('boxed_layout', 0)) ? ' layout-boxed' : ' layout-fluid'; 

//Body Background Image 
if($bg_image = $this->helix3->getParam('body_bg_image')) { 

    $body_style = 'background-image: url(' . JURI::base(true) . '/' . $bg_image . ');'; 
    $body_style .= 'background-repeat: '. $this->helix3->getParam('body_bg_repeat') .';'; 
    $body_style .= 'background-size: '. $this->helix3->getParam('body_bg_size') .';'; 
    $body_style .= 'background-attachment: '. $this->helix3->getParam('body_bg_attachment') .';'; 
    $body_style .= 'background-position: '. $this->helix3->getParam('body_bg_position') .';'; 
    $body_style = 'body.site {' . $body_style . '}'; 

    $doc->addStyledeclaration($body_style); 
} 

//Boxed Layout Width 
$this->params->get('boxed_layout') == 1 ? $boxed_layout_width = ' style="max-width:'.$this->helix3->getParam('boxed_layout_width').'"' : ''; 

//Body Font 
$webfonts = array(); 

if($this->params->get('enable_body_font')) { 
    $webfonts['body'] = $this->params->get('body_font'); 
} 

//Heading1 Font 
if($this->params->get('enable_h1_font')) { 
    $webfonts['h1'] = $this->params->get('h1_font'); 
} 

//Heading2 Font 
if($this->params->get('enable_h2_font')) { 
    $webfonts['h2'] = $this->params->get('h2_font'); 
} 

//Heading3 Font 
if($this->params->get('enable_h3_font')) { 
    $webfonts['h3'] = $this->params->get('h3_font'); 
} 

//Heading4 Font 
if($this->params->get('enable_h4_font')) { 
    $webfonts['h4'] = $this->params->get('h4_font'); 
} 

//Heading5 Font 
if($this->params->get('enable_h5_font')) { 
    $webfonts['h5'] = $this->params->get('h5_font'); 
} 

//Heading6 Font 
if($this->params->get('enable_h6_font')) { 
    $webfonts['h6'] = $this->params->get('h6_font'); 
} 

//Navigation Font 
if($this->params->get('enable_navigation_font')) { 
    $webfonts['.sp-megamenu-parent'] = $this->params->get('navigation_font'); 
} 

//Custom Font 
if($this->params->get('enable_custom_font') && $this->params->get('custom_font_selectors')) { 
    $webfonts[ $this->params->get('custom_font_selectors') ] = $this->params->get('custom_font'); 
} 

$this->helix3->addGoogleFont($webfonts); 

//Custom CSS 
if($custom_css = $this->helix3->getParam('custom_css')) { 
    $doc->addStyledeclaration($custom_css); 
} 

//Custom JS 
if($custom_js = $this->helix3->getParam('custom_js')) { 
    $doc->addScriptdeclaration($custom_js); 
} 

?> 
<!DOCTYPE html> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>"> 
<head> 
    <meta http-equiv="X-UA-Compatible" content="IE=edge"> 
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <?php 
    if($favicon = $this->helix3->getParam('favicon')) { 
     $doc->addFavicon(JURI::base(true) . '/' . $favicon); 
    } else { 
     $doc->addFavicon($this->helix3->getTemplateUri() . '/images/favicon.ico'); 
    } 
    ?> 
    <jdoc:include type="head" /> 
    <?php 

    $this->helix3->addCSS('bootstrap.min.css, font-awesome.min.css') // CSS Files 
     ->addJS('bootstrap.min.js, jquery.sticky.js, modernizr.js, SmoothScroll.js, matchheight.js, jquery.easing.min.js, scrolling-nav.js, jquery.nav.js, vm-cart.js, main.js') // JS Files 
     ->lessInit()->setLessVariables(array(
      'preset'=>$this->helix3->Preset(), 
      'bg_color'=> $this->helix3->PresetParam('_bg'), 
      'text_color'=> $this->helix3->PresetParam('_text'), 
      'major_color'=> $this->helix3->PresetParam('_major') 
      )) 
     ->addLess('legacy/bootstrap', 'legacy') 
     ->addLess('master', 'template'); 

     //RTL 
     if($this->direction=='rtl') { 
      $this->helix3->addCSS('bootstrap-rtl.min.css') 
      ->addLess('rtl', 'rtl'); 
     } 

     $this->helix3->addLess('presets', 'presets/'.$this->helix3->Preset(), array('class'=>'preset')); 

     //Before Head 
     if($before_head = $this->helix3->getParam('before_head')) { 
      echo $before_head . "\n"; 
     } 
    ?> 
</head> 
<body class="<?php echo $this->helix3->bodyClass($body_classes); ?>"> 
    <?php if($this->params->get('page_loader') == 1) { ?> 
     <!-- Preloader --> 
     <div id="preloader"> 
      <div id="status"></div> 
     </div> 
    <?php } ?> 
    <div<?php echo $boxed_layout_width; ?> class="body-innerwrapper"> 
     <?php $this->helix3->generatelayout(); ?> 

     <div class="offcanvas-menu"> 
      <a href="#" class="close-offcanvas"><i class="fa fa-remove"></i></a> 
      <div class="offcanvas-inner"> 
       <?php if ($this->helix3->countModules('offcanvas')) { ?> 
        <jdoc:include type="modules" name="offcanvas" style="sp_xhtml" /> 
       <?php } else { ?> 
        <p class="alert alert-warning"><?php echo JText::_('HELIX_NO_MODULE_OFFCANVAS'); ?></p> 
       <?php } ?> 
      </div> 
     </div> 
    </div> 
    <?php 

    if($this->params->get('compress_css')) { 
     $this->helix3->compressCSS(); 
    } 

    if($this->params->get('compress_js')) { 
     $this->helix3->compressJS($this->params->get('exclude_js')); 
    } 

    if($before_body = $this->helix3->getParam('before_body')) { 
     echo $before_body . "\n"; 
    } 
    ?> 
    <jdoc:include type="modules" name="debug" /> 
</body> 
</html> 

答えて

0

変更ライン

//Boxed Layout Width 
$boxed_layout_width = $this->params->get('boxed_layout') == 1 ? ' style="max-width:'.$this->helix3->getParam('boxed_layout_width').'"' : ''; 
0

//Boxed Layout Width 
$this->params->get('boxed_layout') == 1 ? $boxed_layout_width = ' style="max-width:'.$this->helix3->getParam('boxed_layout_width').'"' : ''; 

私は2つの以上のエラーが今だ持っている:

注意:未定義の変数:Cでblog_style:\ xamppの\ htdocsに\フレックス\テンプレート\ flex \ sppagebuilder \ addons \ latest_posts \ site.php on line 100

注意:未定義のプロパティ:stdClass :: $ params in C:\ xampp \ htdocs \ flex \ライン上のテンプレート\フレックス\ sppagebuilder \アドオン\ latest_posts \ site.php 129

はここsite.phpです:

<?php 
 
/** 
 
* Flex 1.0 @package SP Page Builder 
 
* Template Name - Flex 
 
* @author Aplikko http://www.aplikko.com 
 
* @copyright Copyright (c) 2015 Aplikko 
 
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later 
 
*/ 
 
// no direct access 
 
defined('_JEXEC') or die; 
 

 
JLoader::register('JHtmlString', JPATH_LIBRARIES.'/joomla/html/html/string.php'); 
 

 
AddonParser::addAddon('sp_latest_posts','sp_latest_posts_addon'); 
 

 
function get_categories($parent=1) { 
 
\t $db = JFactory::getDbo(); 
 
\t $query = $db->getQuery(true); 
 

 
\t $query 
 
\t ->select('*') 
 
\t ->from($db->quoteName('#__categories')) 
 
\t ->where($db->quoteName('extension') . ' = ' . $db->quote('com_content')) 
 
\t ->where($db->quoteName('published') . ' = ' . $db->quote(1)) 
 
\t ->where($db->quoteName('parent_id') . ' = ' . $db->quote($parent)) 
 
\t ->order($db->quoteName('created_time') . ' DESC'); 
 

 
\t $db->setQuery($query); 
 

 
\t $cats = $db->loadObjectList(); 
 

 
\t $categories = array($parent); 
 

 
\t foreach ($cats as $key => $cat) { 
 
\t \t $categories[] = $cat->id; 
 
\t } 
 

 
\t return $categories; 
 
} 
 

 
function sp_latest_posts_addon($atts){ 
 

 
\t extract(spAddonAtts(array(
 
\t \t "title" \t \t \t \t  => '', 
 
\t \t "heading_selector" \t \t => 'h3', 
 
\t \t "title_fontsize" \t \t => '', 
 
\t \t "title_text_color" \t \t => '', 
 
\t \t "title_margin_top" \t \t => '', 
 
\t \t "title_margin_bottom" \t => '', 
 
\t \t "show_image" \t \t \t => '', 
 
\t \t "show_date" \t \t \t  => '', 
 
\t \t "show_category" \t \t \t => '', 
 
\t \t "show_intro_text" \t \t => '', 
 
\t \t "show_author" \t \t  => '', 
 
\t \t "item_limit" \t \t \t => '', 
 
\t \t "intro_text_limit" \t \t => '100', 
 
\t \t "column_no" \t \t \t \t => '3', 
 
\t \t "image_alignment" \t \t => '', 
 
\t \t "category" \t \t \t \t => '', 
 
\t \t "style" \t \t  \t \t => '', 
 
\t \t "class" \t \t \t \t \t => '', 
 
\t \t), $atts)); 
 

 
\t \t $app = JFactory::getApplication(); 
 
\t $doc = JFactory::getDocument(); 
 

 
\t // Database Query 
 
\t require_once JPATH_SITE . '/components/com_content/helpers/route.php'; 
 

 
\t // Access filter 
 
\t $access  = !JComponentHelper::getParams('com_content')->get('show_noauth'); 
 
\t $authorised = JAccess::getAuthorisedViewLevels(JFactory::getUser()->get('id')); 
 

 
\t 
 
\t $db = JFactory::getDbo(); 
 
\t $query = $db->getQuery(true); 
 

 
\t $query 
 
\t ->select('a.*') 
 
\t ->from($db->quoteName('#__content', 'a')) 
 
\t ->select($db->quoteName('b.alias', 'category_alias')) 
 
\t ->select($db->quoteName('b.title', 'category')) 
 
\t ->join('LEFT', $db->quoteName('#__categories', 'b') . ' ON (' . $db->quoteName('a.catid') . ' = ' . $db->quoteName('b.id') . ')') 
 
\t ->where($db->quoteName('b.extension') . ' = ' . $db->quote('com_content')) 
 
\t ->where($db->quoteName('a.state') . ' = ' . $db->quote(1)) 
 
\t ->where($db->quoteName('a.catid')." IN (" . implode(',', get_categories($category)) . ")") 
 
\t ->where($db->quoteName('a.access')." IN (" . implode(',', $authorised) . ")") \t 
 
\t ->order($db->quoteName('a.created') . ' DESC') 
 
\t ->setLimit($item_limit); 
 

 
\t $db->setQuery($query); 
 

 
\t $items = $db->loadObjectList(); 
 
\t 
 
\t // End Database Query 
 

 
\t $style == 'flex' ? $flex_style = ' flex' : ''; 
 
\t $style == 'blog' ? $blog_style = ' blog' : ''; 
 

 
\t $blog_style = $output = '<div class="sppb-addon sppb-addon-latest-posts'.$flex_style.$blog_style.' sppb-row ' . $class . '">'; 
 

 
\t if ($title) { 
 
\t \t $output .= '<div class="sppb-section-title">'; 
 
\t \t \t $output .= '<'.$heading_selector.' class="sppb-addon-title" style="' . $title_style . '"> ' . $title . '</' . $heading_selector . '>'; 
 
\t \t $output .= '</div>'; // END :: title 
 
\t } 
 

 
\t $output .= '<div class="sppb-addon-content">'; 
 
\t $output .= '<div class="latest-posts clearfix">'; 
 

 
\t foreach(array_chunk($items, $column_no) as $items) { 
 
\t \t $output .= '<div>'; 
 
\t \t foreach ($items as $item) { 
 

 
\t \t \t $item->slug = $item->id . ':' . $item->alias; 
 
\t \t \t $item->catslug = $item->catid . ':' . $item->category_alias; 
 
\t \t \t $item->user = JFactory::getUser($item->created_by)->name; 
 

 
\t \t \t if ($access || in_array($item->access, $authorised)) { 
 
\t \t \t \t // We know that user has the privilege to view the article 
 
\t \t \t \t $item->link = JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catid, $item->language)); 
 
\t \t \t \t $item->catlink = JRoute::_(ContentHelperRoute::getCategoryRoute($item->catslug, $item->catid, $item->language)); 
 
\t \t \t } else { 
 
\t \t \t \t $item->link = JRoute::_('index.php?option=com_users&view=login'); 
 
\t \t \t \t $item->catlink = JRoute::_('index.php?option=com_users&view=login'); 
 
\t \t \t } 
 
\t \t \t 
 
\t \t \t $tplParams \t \t = JFactory::getApplication()->getTemplate(true)->params; 
 
\t \t \t $params \t \t = $item->params; 
 
\t \t \t $attribs \t \t = json_decode($item->attribs); 
 
\t \t \t $images \t \t \t = json_decode($item->images); 
 
\t \t \t $imgsize \t \t = $tplParams->get('blog_list_image', 'default'); 
 
\t \t \t $intro_image \t = ''; 
 

 
\t \t \t if(isset($attribs->spfeatured_image) && $attribs->spfeatured_image != '') { 
 
\t \t \t 
 
\t \t \t \t if($imgsize == 'default') { 
 
\t \t \t \t \t $intro_image = $attribs->spfeatured_image; 
 
\t \t \t \t } else { 
 
\t \t \t \t \t $intro_image = $attribs->spfeatured_image; 
 
\t \t \t \t \t $basename = basename($intro_image); 
 
\t \t \t \t \t $list_image = JPATH_ROOT . '/' . dirname($intro_image) . '/' . JFile::stripExt($basename) . '_'. $imgsize .'.' . JFile::getExt($basename); 
 
\t \t \t \t \t if(file_exists($list_image)) { 
 
\t \t \t \t \t \t $intro_image = JURI::root(true) . '/' . dirname($intro_image) . '/' . JFile::stripExt($basename) . '_'. $imgsize .'.' . JFile::getExt($basename); 
 
\t \t \t \t \t } 
 
\t \t \t \t } 
 
\t \t \t } elseif(isset($images->image_intro) && !empty($images->image_intro)) { 
 
\t \t \t \t $intro_image = $images->image_intro; 
 
\t \t \t } 
 
\t \t 
 
\t 
 
\t \t if($column_no == '1') { 
 
\t \t \t if ($show_image) { 
 
\t \t \t $image_alignment == 'left' ? $img_column = 'sppb-col-sm-4 column-1 pull-left match-height' : $img_column = 'sppb-col-sm-4 column-1 pull-right match-height'; 
 
\t \t \t } 
 
\t \t \t if ($show_image) { 
 
\t \t \t \t $image_alignment == 'right' ? $content_column = 'sppb-col-sm-8 column-1 pull-left match-height' : $content_column = 'sppb-col-sm-8 column-1 pull-right match-height'; 
 
\t \t \t } else { \t \t 
 
\t \t \t \t $image_alignment == 'right' ? $content_column = 'sppb-col-sm-12 column-1' : $content_column = 'sppb-col-sm-12 column-1'; 
 
\t \t \t } 
 
\t \t \t $h2style = ' style="font-size:180%;line-height:1.4;"'; 
 
\t \t \t $img_wrapper_margin = ' style="margin:0;"'; 
 
\t \t \t 
 
\t \t \t if ($image_alignment == 'left') { 
 
\t \t \t \t $inner_padding = ' style="padding:0 0 0 30px;"'; 
 
\t \t \t } else { 
 
\t \t \t \t $inner_padding = ' style="padding:0 30px 0 0;"'; 
 
\t \t \t } 
 
\t \t } 
 
\t \t 
 
\t \t // match-height 
 
\t \t $column_no > '1' ? $match_height = ' match-height' : ''; 
 
\t \t 
 
\t \t // Flex Style 
 
\t \t if($style == 'flex') { 
 
\t \t \t $output .= '<div class="latest-post sppb-col-sm-' . round(12/$column_no) . ' columns-'.$column_no.'">'; 
 
\t \t \t $output .= '<div class="latest-post-item">'; 
 
\t \t 
 
\t \t \t if($column_no == '1') { 
 
\t \t \t \t $output .= '<div class="row-fluid">'; 
 
\t \t \t } 
 
\t \t \t 
 
\t \t \t if(!empty($intro_image) || (isset($images->image_intro) && !empty($images->image_intro))) { 
 
\t \t \t \t if ($show_image) { 
 
\t \t \t \t \t 
 
\t \t \t \t \t if($column_no == '1') { 
 
\t \t \t \t \t \t $output .= '<div style="padding:0" class="'.$img_column.'">'; 
 
\t \t \t \t \t } 
 
\t \t \t \t \t $output .= '<div class="img-wrapper">'; 
 
\t \t \t \t \t $output .= '<a href="' . $item->link . '"><img class="post-img" src="' . $intro_image . '" alt="' . $item->title . '" /><div class="caption-content">' . $item->title . '<em class="caption-category"><span class="posted-in">'. JText::_('COM_SPPAGEBUILDER_ADDON_POSTED_IN') .'</span>'. $item->category . '</em></div></a>'; 
 
\t \t \t \t \t $output .= '</div>'; 
 
\t \t \t \t \t 
 
\t \t \t \t \t if($column_no == '1') { 
 
\t \t \t \t \t \t $output .= '</div>'; 
 
\t \t \t \t \t } 
 
\t \t \t \t } 
 
\t \t \t } 
 
\t \t \t \t if($column_no == '1') { 
 
\t \t \t \t \t $output .= '<div'.$inner_padding.' class="'.$content_column.'">'; 
 
\t \t \t \t } 
 
\t \t \t \t $output .= '<div class="latest-post-inner match-height">'; 
 
\t \t \t \t 
 

 
\t \t \t \t if (($show_date || $show_intro_text || $show_author) != 1) { 
 
\t \t \t \t $output .= '<h2 style="margin:0" class="entry-title"><a href="' . $item->link . '">' . $item->title . '</a></h2>'; 
 
\t \t \t \t } else { 
 
\t \t \t \t $output .= '<h2'.$h2style.' class="entry-title"><a href="' . $item->link . '">' . $item->title . '</a></h2>'; 
 
\t \t \t \t } 
 
\t \t \t \t if ($show_date) { 
 
\t \t \t \t \t $output .= '<div class="entry-meta"><span class="entry-date">' . JHtml::_('date', $item->created, 'DATE_FORMAT_LC1') . '</span></div>'; 
 
\t \t \t \t } 
 
\t \t \t \t if ($show_intro_text) { 
 
\t \t \t \t \t $output .= '<p class="intro-text" >' . JHtml::_('string.truncate', strip_tags($item->introtext), $intro_text_limit) . '</p>'; 
 
\t \t \t \t } 
 
\t \t \t \t 
 
\t \t \t \t $show_author || $show_category ? $output .= '<hr />' : ''; 
 
\t \t \t \t if ($show_author) { \t 
 
\t \t \t \t \t $output .= '<span class="post-author"><span class="entry-author">' . JText::_('COM_SPPAGEBUILDER_ADDON_POSTED_BY'). '</span> ' . $item->user . '</span>'; 
 
\t \t \t \t } 
 
\t \t \t \t if ($show_category) { \t 
 
\t \t \t \t  $show_author ? $posted_in_category = ' cat-inline' : ''; 
 
\t \t \t \t \t $output .= '<span class="category'.$posted_in_category.'"><span class="posted-in">'. JText::_('COM_SPPAGEBUILDER_ADDON_CATEGORY') .'</span><a href="' . $item->catlink . '">'. $item->category . '</a></span>'; 
 
\t \t \t \t } 
 
\t \t \t \t 
 
\t \t \t \t if($column_no == '1') { 
 
\t \t \t \t \t $output .= '</div>'; 
 
\t \t \t \t \t $output .= '</div>'; 
 
\t \t \t \t } 
 
\t \t \t \t 
 
\t \t \t $output .= '</div>'; 
 
\t \t \t if($column_no == '1') { 
 
\t \t \t \t $output .= '<div class="post-divider"></div>'; 
 
\t \t \t } 
 
\t \t \t $output .= '</div>'; 
 
\t \t 
 
\t \t // Default & Blog styles \t 
 
\t \t } else { 
 
\t \t \t \t 
 
\t \t \t $output .= '<div class="latest-post sppb-col-sm-' . round(12/$column_no) . ' columns-'.$column_no.'">'; 
 
\t \t \t $output .= '<div class="latest-post-inner' . $match_height . '">'; 
 
\t \t \t \t 
 
\t \t \t if($column_no == '1') { 
 
\t \t \t \t $output .= '<div class="row-fluid">'; 
 
\t \t \t } 
 
\t \t \t \t if ($show_image) { 
 
\t \t \t \t \t if($column_no == '1') { 
 
\t \t \t \t \t \t $output .= '<div class="'.$img_column.'">'; 
 
\t \t \t \t \t } 
 
\t \t \t \t \t $output .= '<div'.$img_wrapper_margin.' class="img-wrapper">'; 
 
\t \t \t \t \t $output .= '<a href="' . $item->link . '"><img class="post-img" src="' . $intro_image . '" alt="' . $item->title . '" /></a>'; 
 
\t \t \t \t \t $output .= '</div>'; 
 
\t \t \t \t \t 
 
\t \t \t \t \t if($column_no == '1') { 
 
\t \t \t \t \t \t $output .= '</div>'; 
 
\t \t \t \t \t } 
 
\t \t \t \t } 
 
\t \t \t \t 
 
\t \t \t if($column_no == '1') { 
 
\t \t \t \t $output .= '<div class="'.$content_column.'">'; 
 
\t \t \t } 
 
\t \t \t \t if ($show_date) { 
 
\t \t \t \t \t $output .= '<div class="entry-meta"><span class="entry-date"> ' . JHtml::_('date', $item->created, 'DATE_FORMAT_LC1') . '</span></div>'; 
 
\t \t \t \t } 
 
\t \t \t \t $output .= '<h2'.$h2style.' class="entry-title"><a href="' . $item->link . '">' . $item->title . '</a></h2>'; 
 
\t \t \t \t if ($show_intro_text) { 
 
\t \t \t \t \t $output .= '<p class="intro-text" >' . JHtml::_('string.truncate', strip_tags($item->introtext), $intro_text_limit) . '</p>'; 
 
\t \t \t \t } 
 
\t \t \t \t $show_author || $show_category ? $output .= '<hr />' : ''; 
 
\t \t \t \t if ($show_author) { \t 
 
\t \t \t \t \t $output .= '<span class="post-author"><span class="entry-author">' . JText::_('COM_SPPAGEBUILDER_ADDON_POSTED_BY'). ' ' . $item->user . '</span></span>'; 
 
\t \t \t \t } 
 
\t \t \t \t if ($show_category) { \t 
 
\t \t \t \t $show_author ? $posted_in_category = ' cat-inline' : ''; 
 
\t \t \t \t \t $output .= '<span class="category'.$posted_in_category.'"><span class="posted-in">'. JText::_('COM_SPPAGEBUILDER_ADDON_CATEGORY') .'</span><a href="' . $item->catlink . '">'. $item->category . '</a></span>'; 
 
\t \t \t \t } 
 
\t \t \t \t if($column_no == '1') { 
 
\t \t \t \t \t $output .= '</div>'; 
 
\t \t \t \t \t $output .= '</div>'; 
 
\t \t \t \t } 
 
\t \t \t \t $output .= '</div>'; \t 
 
\t \t \t } 
 
\t 
 
\t \t \t $output .= '</div>'; 
 
\t \t } 
 
\t \t $output .= '</div>'; 
 
\t } 
 

 
\t $output .= '</div>'; 
 
\t $output .= '</div>'; 
 
\t $output .= '</div>'; 
 
\t 
 
\t 
 
\t $column_no == '1' ? $column_no_1 = '.column-1 {margin:10px auto;padding:0!important;}' : ''; 
 
\t 
 
\t // Add styles @media rulepost-img 
 
\t if($style == 'flex') { 
 
\t \t $custom_style = '' 
 
\t \t \t \t . '@media screen and (max-width: 768px) {' 
 
\t \t \t \t . $column_no_1 
 
\t \t \t \t . '.img-wrapper a {font-size:150%;line-height:1.5;}' 
 
\t \t \t \t . '}'; 
 
\t \t $doc->addStyleDeclaration($custom_style); 
 
\t } 
 
\t 
 
\t if ($column_no>='3') { 
 
\t $custom_style_3 = '' 
 
\t \t \t . '@media screen and (min-width: 992px) and (max-width: 1199px){' 
 
\t \t \t . '.columns-'.$column_no.'{width:33.3333%;}' 
 
\t \t \t . '}' 
 
\t \t \t . '@media screen and (min-width: 768px) and (max-width: 991px){' 
 
\t \t \t . '.columns-'.$column_no.'{width:50%}' 
 
\t \t \t . '}'; 
 
\t $doc->addStyleDeclaration($custom_style_3); 
 
\t } 
 
\t if($column_no=='5') { 
 
\t $custom_style_5 = '' 
 
\t \t \t . '.columns-'.$column_no.' {width:20%}' 
 
\t \t \t . '@media screen and (min-width: 992px) and (max-width: 1199px){' 
 
\t \t \t . '.columns-'.$column_no.'{width:33.3333%;}' 
 
\t \t \t . '}' 
 
\t \t \t . '@media screen and (min-width: 768px) and (max-width: 991px){' 
 
\t \t \t . '.columns-'.$column_no.'{width:50%}' 
 
\t \t \t . '}' 
 
\t \t \t . '@media screen and (max-width: 767px){' 
 
\t \t \t . '.columns-'.$column_no.'{width:100%}' 
 
\t \t \t . '}'; 
 
\t $doc->addStyleDeclaration($custom_style_5); 
 
\t 
 
\t } 
 

 
\t return $output; 
 
\t 
 

 
}