1
|
|
|
<?php |
2
|
|
|
### ============================================================= |
3
|
|
|
### Mastop InfoDigital - Paixão por Internet |
4
|
|
|
### ============================================================= |
5
|
|
|
### Arquivo que retorna os destaques de uma determinada seção |
6
|
|
|
### ============================================================= |
7
|
|
|
### Developer: Fernando Santos (topet05), [email protected] |
8
|
|
|
### Copyright: Mastop InfoDigital © 2003-2007 |
9
|
|
|
### ------------------------------------------------------------- |
10
|
|
|
### www.mastop.com.br |
11
|
|
|
### ============================================================= |
12
|
|
|
### |
13
|
|
|
### ============================================================= |
14
|
|
|
/** |
15
|
|
|
* Valores esperados: |
16
|
|
|
* |
17
|
|
|
* $_GET['sec_id'] = ID da Seção (a ausência deste parâmetro retorna Página em Branco) |
18
|
|
|
* $_GET['w'] = Largura (padrão 100%) |
19
|
|
|
* $_GET['h'] = Altura em pixels (padrão 200) |
20
|
|
|
* $_GET['noarrows'] = 1 para NÃO exibir as setas de navegação (a ausência deste parâmetro faz com que as setas sejam exibidas) |
21
|
|
|
* $_GET['notextbar'] = 1 para NÃO exibir a barra de texto (a ausência deste parâmetro faz com que a barra de texto seja exibida) |
22
|
|
|
* $_GET['delay'] = Tempo de transição entre os destaques - em segundos - (padrão 6) |
23
|
|
|
* $_GET['barcolor'] = Cor da barra de texto em HEXADECIMAL SEM # (padrão 333333) |
24
|
|
|
* $_GET['textcolor'] = Cor do texto em HEXADECIMAL SEM # (padrão FFFFFF) |
25
|
|
|
* $_GET['bartransp'] = Transparência da Barra de Texto SEM O SÍMBOLO % (padrão 50) |
26
|
|
|
*/ |
27
|
|
|
require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
28
|
|
|
$xoopsLogger->activated = false; |
29
|
|
|
require_once __DIR__ . '/header.php'; |
30
|
|
|
if (isset($_GET)) { |
31
|
|
|
foreach ($_GET as $k => $v) { |
32
|
|
|
${$k} = $v; |
33
|
|
|
} |
34
|
|
|
} |
35
|
|
|
$tac = !empty($_GET['sec_id']) ? \Xmf\Request::getInt('sec_id', 0, 'GET') : 0; |
36
|
|
|
//$sec_classe = mgo_getClass(MGO_MOD_TABELA0, $tac); |
37
|
|
|
$sec_classe = new \XoopsModules\Mastopgo2\Section($tac); |
38
|
|
|
if (empty($tac) || '' == $sec_classe->getVar('sec_10_id') || 0 == $sec_classe->contaDestaques()) { |
39
|
|
|
exit(); |
40
|
|
|
} |
41
|
|
|
$w = !empty($w) ? $w : '100%'; |
42
|
|
|
$h = !empty($h) ? (int)$h : 200; |
43
|
|
|
$setas = empty($noarrows) ? 1 : 0; |
44
|
|
|
$barra = empty($notextbar) ? 1 : 0; |
45
|
|
|
$delay = !empty($delay) ? $delay : 6; |
46
|
|
|
$barcolor = !empty($barcolor) ? $barcolor : '333333'; |
47
|
|
|
$textcolor = !empty($textcolor) ? $textcolor : 'FFFFFF'; |
48
|
|
|
$bartransp = !empty($bartransp) ? $bartransp : 50; |
49
|
|
|
echo ' |
50
|
|
|
<style type="text/css"> |
51
|
|
|
div#dstacs_' . $tac . '.jdGallery .slideInfoZone |
52
|
|
|
{ |
53
|
|
|
position: absolute; |
54
|
|
|
z-index: 17; |
55
|
|
|
width: 100%; |
56
|
|
|
margin: 0px; |
57
|
|
|
left: 0; |
58
|
|
|
bottom: 0; |
59
|
|
|
height: 30px; |
60
|
|
|
background: #' . $barcolor . '; |
61
|
|
|
color: #' . $textcolor . '; |
62
|
|
|
text-indent: 0; |
63
|
|
|
overflow: hidden; |
64
|
|
|
} |
65
|
|
|
div#dstacs_' . $tac . '.jdGallery .slideInfoZone div a |
66
|
|
|
{ |
67
|
|
|
padding: 0; |
68
|
|
|
margin: 0; |
69
|
|
|
font-family: Tahoma, Arial, Helvetica, sans-serif; |
70
|
|
|
font-size: 14px; |
71
|
|
|
font-weight: normal !important; |
72
|
|
|
color:#' . $textcolor . ' !important; |
73
|
|
|
text-decoration:none; |
74
|
|
|
} |
75
|
|
|
</style> |
76
|
|
|
'; |
77
|
|
|
echo $sec_classe->montaGaleria($h, $tac, $setas, $barra, $delay, $bartransp, $w); |
|
|
|
|
78
|
|
|
|