Projekt

Allgemein

Profil

GX-Bug #46734 » slider.php

Torben Wark, 02.06.2016 11:02

 
1
<?php
2
/* --------------------------------------------------------------
3
  slider.php 2014-03-26 gm
4
  Gambio GmbH
5
  http://www.gambio.de
6
  Copyright (c) 2014 Gambio GmbH
7
  Released under the GNU General Public License (Version 2)
8
  [http://www.gnu.org/licenses/gpl-2.0.html]
9
  --------------------------------------------------------------
10
 */
11

    
12
$t_slider_set_id = 0;
13

    
14
$coo_sliders = MainFactory::create_object('SliderBoxContentView');
15
$t_slider_set_id = $coo_sliders->box_content;
16
// slider available?
17
if($t_slider_set_id != 0)
18
{
19
	$coo_slider_content_view = MainFactory::create_object('ImageSliderContentView');
20

    
21
	$coo_slider_content_view->set_('slider_set_id', $t_slider_set_id);
22
	$coo_slider_content_view->set_('language_id', (int)$_SESSION['languages_id']);
23
	$t_html = $coo_slider_content_view->get_html();
24
	$this->set_content_data('IMGSLIDER', $t_html);
25
}
(1-1/2)