-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·390 lines (316 loc) · 18.1 KB
/
index.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
<?php
/**
* @package Joomla.Site
* @subpackage Templates.sica
* @copyright Copyright (C) 2005 - 2012 SICÁ (tm).
* @license GNU General Public License version 2; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
// check modules
$showRightColumn = ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8'));
$showbottom = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
$showleft = ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5'));
if ($showRightColumn==0 and $showleft==0) {
$showno = 0;
}
JHtml::_('behavior.framework', true);
// get params
$color = $this->params->get('templatecolor');
$logo = $this->params->get('logo');
$navposition = $this->params->get('navposition');
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$templateparams = $app->getTemplate(true)->params;
$doc->addScript($this->baseurl.'/templates/'.$this->template.'/javascript/md_stylechanger.js', 'text/javascript', true);
#slide
$doc->addScript($this->baseurl.'/templates/'.$this->template.'/javascript/floom.js', 'text/javascript', true);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/floom.css" type="text/css"/>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/position.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/layout.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/print.css" type="text/css" media="print" />
<?php
$files = JHtml::_('stylesheet', 'templates/'.$this->template.'/css/general.css', null, false, true);
if ($files):
if (!is_array($files)):
$files = array($files);
endif;
foreach($files as $file):
?>
<link rel="stylesheet" href="<?php echo $file;?>" type="text/css" />
<?php
endforeach;
endif;
?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/<?php echo htmlspecialchars($color); ?>.css" type="text/css" />
<?php if ($this->direction == 'rtl') : ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template_rtl.css" type="text/css" />
<?php if (file_exists(JPATH_SITE . '/templates/sica/css/' . $color . '_rtl.css')) :?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/<?php echo $color ?>_rtl.css" type="text/css" />
<?php endif; ?>
<?php endif; ?>
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<?php if ($color=="personal") : ?>
<style type="text/css">
#line
{ width:98% ;
}
.logoheader
{
height:200px;
}
#header ul.menu
{
display:block !important;
width:98.2% ;
}
</style>
<?php endif; ?>
<![endif]-->
<!--[if IE 7]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ie7only.css" rel="stylesheet" type="text/css" />
<![endif]-->
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/javascript/hide.js"></script>
<script type="text/javascript">
var big ='<?php echo (int)$this->params->get('wrapperLarge');?>%';
var small='<?php echo (int)$this->params->get('wrapperSmall'); ?>%';
var altopen='<?php echo JText::_('TPL_SICA_ALTOPEN', true); ?>';
var altclose='<?php echo JText::_('TPL_SICA_ALTCLOSE', true); ?>';
var bildauf='<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/plus.png';
var bildzu='<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/minus.png';
var rightopen='<?php echo JText::_('TPL_SICA_TEXTRIGHTOPEN', true); ?>';
var rightclose='<?php echo JText::_('TPL_SICA_TEXTRIGHTCLOSE'); ?>';
var fontSizeTitle='<?php echo JText::_('TPL_SICA_FONTSIZE'); ?>';
var bigger='<?php echo JText::_('TPL_SICA_BIGGER'); ?>';
var reset='<?php echo JText::_('TPL_SICA_RESET'); ?>';
var smaller='<?php echo JText::_('TPL_SICA_SMALLER'); ?>';
var biggerTitle='<?php echo JText::_('TPL_SICA_INCREASE_SIZE'); ?>';
var resetTitle='<?php echo JText::_('TPL_SICA_REVERT_STYLES_TO_DEFAULT'); ?>';
var smallerTitle='<?php echo JText::_('TPL_SICA_DECREASE_SIZE'); ?>';
</script>
<?php
#default imgs 4 the slider
$default_slide_imgs = array(
1 => 'banner_pagina_principal.png',
2 => 'el-cacho-ninja-katana.png',
3 => 'libertad.png'
);
$images_slides = array();
foreach( $default_slide_imgs as $id=>$default_img){
$data=array(
'image' => $this->params->get('slide_img'.$id),
'caption' => $this->params->get('slide_title'.$id)
);
if($data['image'] == "")
$data['image'] = "templates" . DS . $this->template . DS . "images" . DS . "slide" . DS . $default_img;
$images_slides[] = $data;
}
?>
<script language="Javascript" type="text/javascript">
window.addEvent('domready', function() {
//slide section.
var slides = <?php echo json_encode($images_slides). ";\n"; ?>
$('blinds').floom(slides, {
slidesBase: '<?php echo $this->baseurl . DS; ?>',
sliceFxIn: {
left: [10, 0]
}
});
//end slide section.
var status = {
'true': 'open',
'false': 'close'
};
// -- vertical
var myVerticalSlide = new Fx.Slide('vertical_slide');
$('v_slidein').addEvent('click', function(event){
event.stop();
myVerticalSlide.slideIn();
});
$('v_slideout').addEvent('click', function(event){
event.stop();
myVerticalSlide.slideOut();
});
$('v_toggle').addEvent('click', function(event){
event.stop();
myVerticalSlide.toggle();
});
$('v_hide').addEvent('click', function(event){
event.stop();
myVerticalSlide.hide();
$('vertical_status').set('text', status[myVerticalSlide.open]);
});
$('v_show').addEvent('click', function(event){
event.stop();
myVerticalSlide.show();
$('vertical_status').set('text', status[myVerticalSlide.open]);
});
// When Vertical Slide ends its transition, we check for its status
// note that complete will not affect 'hide' and 'show' methods
myVerticalSlide.addEvent('complete', function() {
$('vertical_status').set('text', status[myVerticalSlide.open]);
});
// -- horizontal
var myHorizontalSlide = new Fx.Slide('horizontal_slide', {mode: 'horizontal'});
$('h_slidein').addEvent('click', function(event){
event.stop();
myHorizontalSlide.slideIn();
});
$('h_slideout').addEvent('click', function(event){
event.stop();
myHorizontalSlide.slideOut();
});
$('h_toggle').addEvent('click', function(event){
event.stop();
myHorizontalSlide.toggle();
});
$('h_hide').addEvent('click', function(event){
event.stop();
myHorizontalSlide.hide();
$('horizontal_status').set('text', status[myHorizontalSlide.open]);
});
$('h_show').addEvent('click', function(event){
event.stop();
myHorizontalSlide.show();
$('horizontal_status').set('text', status[myHorizontalSlide.open]);
});
// When Horizontal Slide ends its transition, we check for its status
// note that complete will not affect 'hide' and 'show' methods
myHorizontalSlide.addEvent('complete', function() {
$('horizontal_status').set('text', status[myHorizontalSlide.open]);
});
});
</script>
</head>
<body>
<div id="all">
<div id="back">
<div id="header">
<a href="<?php echo $this->baseurl ?>" title='<?php echo htmlspecialchars($templateparams->get('sitetitle'));?>' id='logoSica'></a>
<h1 id="logo">
<?php if ($logo): ?>
<?php endif;?>
<?php if (!$logo ): ?>
<?php echo htmlspecialchars($templateparams->get('sitetitle'));?>
<?php endif; ?>
<span class="header1">
<?php echo htmlspecialchars($templateparams->get('sitedescription'));?>
</span></h1>
<div id="blinds-cont">
<div id="blinds">
</div>
</div>
<div class="comentarios_clientes">
<h3>Nuestros clientes dicen</h3>
<table class="contentpaneopen">
<tbody><tr>
<td width="100%" class="contentheading">
<a class="contentpagetitle" href="#">
Miguel Angel Ramos Jarquín</a>
</td>
</tr>
</tbody></table>
<table class="contentpaneopen">
<tbody><tr>
<td valign="top"><p><span style="font-size: 10pt;"><span style="color: rgb(51, 51, 153);"><span style="font-family: book antiqua,palatino;">Comentarios.: Excelente empresa, profesionales y especialistas en su materia. La calidad humana los caracteriza en su proyectos y en su atención al cliente. La facilidad para atender las demandas de los clientes.</span></span></span></p>
<p><span style="font-size: 10pt;"><span style="color: rgb(51, 51, 153);"><span style="font-family: book antiqua,palatino;">Empresa : Universidad Anáhuac Oaxaca<br/> Cargo en la organización: catedrático y Auxiliar en los Laboratorios de Radio y TV</span></span></span></p></td>
</tr>
<tr>
<td valign="top">
</td>
</tr>
</tbody></table>
</div> <!-- end comentarios_clientes -->
<ul class="skiplinks">
<li><a href="#main" class="u2"><?php echo JText::_('TPL_SICA_SKIP_TO_CONTENT'); ?></a></li>
<li><a href="#nav" class="u2"><?php echo JText::_('TPL_SICA_JUMP_TO_NAV'); ?></a></li>
<?php if($showRightColumn ):?>
<li><a href="#additional" class="u2"><?php echo JText::_('TPL_SICA_JUMP_TO_INFO'); ?></a></li>
<?php endif; ?>
</ul>
<h2 class="unseen"><?php echo JText::_('TPL_SICA_NAV_VIEW_SEARCH'); ?></h2>
<h3 class="unseen"><?php echo JText::_('TPL_SICA_NAVIGATION'); ?></h3>
<jdoc:include type="modules" name="position-1" />
<div id="line">
<div id="fontsize"></div>
<h3 class="unseen"><?php echo JText::_('TPL_SICA_SEARCH'); ?></h3>
<jdoc:include type="modules" name="position-0" />
</div> <!-- end line -->
</div><!-- end header -->
<div id="<?php echo $showRightColumn ? 'contentarea2' : 'contentarea'; ?>">
<div id="breadcrumbs">
<jdoc:include type="modules" name="position-2" />
</div>
<?php if ($navposition=='left' and $showleft) : ?>
<div class="left1 <?php if ($showRightColumn==NULL){ echo 'leftbigger';} ?>" id="nav">
<jdoc:include type="modules" name="position-7" style="beezDivision" headerLevel="3" />
<jdoc:include type="modules" name="position-4" style="beezHide" headerLevel="3" state="0 " />
<jdoc:include type="modules" name="position-5" style="beezTabs" headerLevel="2" id="3" />
</div><!-- end navi -->
<?php endif; ?>
<div id="<?php echo $showRightColumn ? 'wrapper' : 'wrapper2'; ?>" <?php if (isset($showno)){echo 'class="shownocolumns"';}?>>
<div id="main">
<?php if ($this->countModules('position-12')): ?>
<div id="top"><jdoc:include type="modules" name="position-12" />
</div>
<?php endif; ?>
<jdoc:include type="message" />
<jdoc:include type="component" />
</div><!-- end main -->
</div><!-- end wrapper -->
<?php if ($showRightColumn) : ?>
<h2 class="unseen">
<?php echo JText::_('TPL_SICA_ADDITIONAL_INFORMATION'); ?>
</h2>
<div id="close">
<a href="#" onclick="auf('right')">
<span id="bild">
<?php echo JText::_('TPL_SICA_TEXTRIGHTCLOSE'); ?></span></a>
</div>
<div id="right">
<a id="additional"></a>
<jdoc:include type="modules" name="position-6" style="beezDivision" headerLevel="3"/>
<jdoc:include type="modules" name="position-8" style="beezDivision" headerLevel="3" />
<jdoc:include type="modules" name="position-3" style="beezDivision" headerLevel="3" />
</div><!-- end right -->
<?php endif; ?>
<?php if ($navposition=='center' and $showleft) : ?>
<div class="left <?php if ($showRightColumn==NULL){ echo 'leftbigger';} ?>" id="nav" >
<jdoc:include type="modules" name="position-7" style="beezDivision" headerLevel="3" />
<jdoc:include type="modules" name="position-4" style="beezHide" headerLevel="3" state="0 " />
<jdoc:include type="modules" name="position-5" style="beezTabs" headerLevel="2" id="3" />
</div><!-- end navi -->
<?php endif; ?>
<div class="wrap"></div>
</div> <!-- end contentarea -->
</div><!-- back -->
</div><!-- all -->
<div id="footer-outer">
<?php if ($showbottom) : ?>
<div id="footer-inner">
<div id="bottom">
<div class="box box1"> <jdoc:include type="modules" name="position-9" style="beezDivision" headerlevel="3" /></div>
<div class="box box2"> <jdoc:include type="modules" name="position-10" style="beezDivision" headerlevel="3" /></div>
<div class="box box3"> <jdoc:include type="modules" name="position-11" style="beezDivision" headerlevel="3" /></div>
</div>
</div>
<?php endif ; ?>
<div id="footer-sub">
<div id="footer">
<jdoc:include type="modules" name="position-14" />
<p>
<?php echo JText::_('TPL_SICA_POWERED_BY');?> <a href="http://www.joomla.org/">Joomla!®</a>
</p>
</div><!-- end footer -->
</div>
</div>
<jdoc:include type="modules" name="debug" />
</body>
</html>