Skip to content

Commit

Permalink
few fixes/improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
GodMod committed Nov 12, 2014
1 parent 2780f90 commit adda920
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions articleslider_portal.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ public function output() {
background: rgba(0,0,0, .8);
}
");


$arrCategories = $this->config('categories');
if(empty($arrCategories)) $arrCategories = array();
Expand All @@ -249,7 +248,7 @@ public function output() {
$arrSortedArticles = $this->pdh->limit($arrSortedArticles, 0, $intLimit);

$this->tpl->add_js('
$("#slider4").responsiveSlides({
$("#slider_'.$this->id.'").responsiveSlides({
auto: '.(($blnAuto) ? 'true' : 'false').',
pager: true,
nav: true,
Expand All @@ -260,7 +259,7 @@ public function output() {
});
', 'docready');

$strOut = '<div class="callbacks_container"><ul class="rslides" id="slider4">';
$strOut = '<div class="callbacks_container"><ul class="rslides" id="slider_'.$this->id.'">';

foreach($arrSortedArticles as $intArticleID){
$strOut .= '<li><a href="'.$this->controller_path.$this->pdh->get('articles', 'path', array($intArticleID)).'">';
Expand Down

0 comments on commit adda920

Please sign in to comment.