-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbloq-b.php
68 lines (61 loc) · 2.49 KB
/
bloq-b.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<div class="bloq-b">
<div class="contt">
<?php
if ($dataAppPublic->app_advertising_type == 2) { // social
?>
<div class="fb-like-box"
data-href="<?php echo $dataAppPublic->app_facebook;?>"
data-width="305"
data-show-faces="true"
data-stream="true"
data-show-border="false"
data-header="true">
</div>
<?php }
if ($dataAppPublic->app_advertising_type == 1) { // banner
require ("includes/class/banner.class.php");
$banner = new Banner();
$imagePathBanner = "file_upload/banner/520x880/";
$imagePathBannerSmall = "file_upload/banner/118x200/";
$images = $banner->getBannerImages($_SESSION["lang"]);
$countImages = $banner->countBannerImages();
?>
<div class="ms-gallery-template" id="ms-gallery-1">
<!-- masterslider -->
<div class="master-slider ms-skin-black-2 round-skin" id="masterslider">
<?php
for ($i = 0; $i < $countImages; $i++) {
$pathImage = $imagePathBanner . $images[$i]->imgb_rename;
$pathImageSmall = $imagePathBannerSmall . $images[$i]->imgb_rename;
if (!file_exists ($pathImage) || !file_exists ($pathImageSmall)) {
continue;
}
?>
<div class="ms-slide">
<img src="/masterslider/blank.gif" data-src="<?php echo $pathImage;?>" alt="<?php echo $images[$i]->imgb_name;?>"/>
<img src="<?php echo $pathImageSmall;?>" alt="thumb-<?php echo ($i + 1);?>" class="ms-thumb"/>
<div class="ms-info">
<?php echo $images[$i]->imgb_name;?>
</div>
</div>
<?php } ?>
</div>
<!-- end of masterslider -->
</div>
<script type="text/javascript">
var slider = new MasterSlider();
slider.setup('masterslider' , {
width:520,
height:880,
space:10,
preload:3,
view:'basic',
autoplay:true
});
slider.control('arrows');
var gallery = new MSGallery('ms-gallery-1' , slider);
gallery.setup();
</script>
<?php }?>
</div>
</div>