Skip to content

Commit

Permalink
Fix for multiple sliders
Browse files Browse the repository at this point in the history
  • Loading branch information
God Mod committed Aug 20, 2015
1 parent 197eff1 commit c82be22
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions articleslider_portal.class.php
Expand Up @@ -27,7 +27,7 @@ class articleslider_portal extends portal_generic {
protected static $path = 'articleslider';
protected static $data = array(
'name' => 'articleslider',
'version' => '0.1.0',
'version' => '0.1.1',
'author' => 'GodMod',
'contact' => EQDKP_PROJECT_URL,
'description' => 'Shows a articleslider for your articles',
Expand Down Expand Up @@ -124,7 +124,7 @@ public function output() {
padding: 0;
margin: 0;
}
.callbacks_container {
.callbacks_container.slider_".$this->id." {
position: relative;
margin: auto;
".(($strWidth != "100%") ? 'max-width: '.$strWidth.';' : '')."
Expand All @@ -143,11 +143,13 @@ public function output() {
height: auto;
width: 100%;
border: 0;
}
.callbacks_imagecontainer {
}
.slider_".$this->id." .callbacks_imagecontainer {
max-height: ".$intHeight."px;
overflow: hidden;
}
.callbacks .caption {
display: block;
position: absolute;
Expand Down Expand Up @@ -260,7 +262,7 @@ public function output() {
});
', 'docready');

$strOut = '<div class="callbacks_container"><ul class="rslides" id="slider_'.$this->id.'">';
$strOut = '<div class="callbacks_container slider_'.$this->id.'"><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 c82be22

Please sign in to comment.