File manager - Edit - /home/jardides/www/Jardi-design/sitetest/components/com_hotspots/views/hotspot/tmpl/default.php
Back
<?php /** * @package Com_Hotspots * @author DanielDimitrov <daniel@compojoom.com> * @date 27.01.14 * * @copyright Copyright (C) 2008 - 2013 compojoom.com . All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('_JEXEC') or die('Restricted access'); CompojoomHtmlBehavior::jquery(); if (HotspotsHelperSettings::get('emulate_bootstrap', 1)) { JHTML::_('stylesheet', 'media/lib_compojoom/css/bootstrap-232.css'); } JHTML::_('stylesheet', 'media/com_hotspots/css/hotspot.css'); JHTML::_('script', HotspotsHelperUtils::getGmapsUrl()); JHTML::stylesheet('media/lib_compojoom/third/font-awesome/css/font-awesome.min.css'); $marker = array( 'id' => $this->hotspot->id, 'lat' => (float) $this->hotspot->gmlat, 'lng' => (float) $this->hotspot->gmlng, 'title' => $this->hotspot->name, 'description' => $this->loadTemplate('description'), 'icon' => $this->category->cat_icon ); CompojoomHtml::addScriptsToQueue( 'hotspots', array( HotspotsHelperUtils::createJsonMarker($marker), HotspotsHelperUtils::createJSConfig() ) ); CompojoomHtml::addScriptsToQueue( 'hotspots', array( 'media/com_hotspots/js/v4/vendor/handlebars-v2.0.0.js', 'media/lib_compojoom/js/jquery.ui.custom.js', 'media/com_hotspots/js/v4/vendor/jquery.cookie.js', 'media/com_hotspots/js/v4/vendor/underscore.js', 'media/com_hotspots/js/v4/vendor/backbone.js', 'media/com_hotspots/js/v4/vendor/backbone.marionette.js', 'media/com_hotspots/js/v4/vendor/backbone.picky.js', 'media/com_hotspots/js/v4/vendor/backbone.stickit.js', 'media/com_hotspots/js/v4/vendor/backbone.validator.js', 'media/com_hotspots/js/v4/vendor/backbone.googlemaps.js', 'media/com_hotspots/js/v4/vendor/backbone.paginator.js', 'media/com_hotspots/js/v4/overrides/backbone.marionette.js', 'media/com_hotspots/js/v4/app.js', 'media/com_hotspots/js/v4/entities/map.js', 'media/com_hotspots/js/v4/entities/direction.js', 'media/com_hotspots/js/v4/entities/marker.js', 'media/com_hotspots/js/v4/common/views.js', 'media/com_hotspots/js/v4/common/map/show/show_view.js', ) ); CompojoomHtml::addScriptsToQueue( 'hotspots', array( 'media/com_hotspots/js/v4/subapps/hotspot/map/map_app.js', 'media/com_hotspots/js/v4/subapps/hotspot/map/show/show_controller.js', 'media/com_hotspots/js/v4/subapps/hotspot/map/show/show_view.js', 'media/com_hotspots/js/v4/subapps/hotspot/map/marker/marker_controller.js', 'media/com_hotspots/js/v4/subapps/hotspot/map/marker/marker_view.js' ) ); if(HotspotsHelperSettings::get('show_marker_directions', 1)) { CompojoomHtml::addScriptsToQueue( 'hotspots', array( 'media/com_hotspots/js/v4/subapps/hotspot/directions/directions_app.js', 'media/com_hotspots/js/v4/subapps/hotspot/directions/show/show_controller.js', 'media/com_hotspots/js/v4/subapps/hotspot/directions/show/show_view.js' ) ); } $layout = new CompojoomLayoutFile('galleria.galleria'); ?> <script type="text/template" id="js-hs-main-region"> <div id="js-map-region" class="hs-map-region"></div> </script> <script type="text/template" id="main-map-template"> <div id="map-container"></div> </script> <script type="text/template" id="js-hs-item-direction"> <div class="js-hs-get-directions hs-get-directions text-rigth"> <div class="input-prepend input-append control-group"> <span class="add-on hs-quick-dir" data-id="to"><?php echo JText::_('COM_HOTSPOTS_TO'); ?></span> <span class="add-on hs-quick-dir active" data-id="from"><?php echo JText::_('COM_HOTSPOTS_FROM'); ?></span> <input type="text" value="" class="input-small" placeholder="<?php echo JText::_('COM_HOTSPOTS_ADDRESS_OR_LANDMARK'); ?>" title="<?php echo JText::_('COM_HOTSPOTS_ADDRESS_OR_LANDMARK'); ?>"> <button class="btn js-hs-search"><span class="fa fa-search"></span></button> <button class="btn js-hs-close"><span class="fa fa-times"></span></button> </div> </div> <div class="hs-directions-results"></div> </script> <script type="text/template" id="hs-fullscreen-template"> <div class="hs-buttons-map"> <?php if(HotspotsHelperSettings::get('resize_map', 1)): ?> <div class="js-hs-fullscreen-toggle" title="<?php echo JText::_('COM_HOTSPOTS_CENTER_TOGGLE_FULLSCREEN'); ?>"> <span class="fa fa-expand"></span> </div> <?php endif; ?> </div> </script> <div id="hotspots" class="hotspots"> <?php if($this->galleria) : ?> <div class="row-fluid"> <div class="span12"> <?php echo $layout->render(array('data' => $this->galleria)); ?> </div> </div> <?php endif; ?> <div class="row-fluid"> <h2 class="componentheading"><?php echo $this->hotspot->name; ?></h2> <div class="pull-right span6"> <div id="" class="hs-map-card-container single-view" style="width: 100%;position: relative;"> <div id="js-hs-main-app" class="hotspots hs-main-region"></div> <?php echo $this->loadTemplate('one_line_address'); ?> <div id="js-hs-item-direction-region" class="text-right"></div> </div> </div> <div class="hotspots-description"> <?php echo $this->hotspot->description_small; ?> <?php echo $this->hotspot->description; ?> </div> <?php if($this->hotspot->customfields && $this->customFields) : ?> <div class="hotspots-customfields"> <h6><?php echo JText::_('COM_HOTSPOTS_CUSTOM_FIELDS'); ?></h6> <?php foreach($this->hotspot->customfields as $key => $customFields): ?> <?php if(isset($this->customFields[$key])) : ?> <?php if($customFields): ?> <dl class="dl-horizontal"> <dt><?php echo JText::_($this->customFields[$key]->title); ?></dt> <dd><?php echo CompojoomFormCustom::render($this->customFields[$key], $customFields); ?></dd> </dl> <?php endif; ?> <?php endif; ?> <?php endforeach; ?> </div> <?php endif; ?> <?php if (HotspotsHelperSettings::get('social_media', 0)) : ?> <?php $fb = new CompojoomLayoutFile('social.share.facebook'); $twitter = new CompojoomLayoutFile('social.share.twitter'); $gplus = new CompojoomLayoutFile('social.share.gplus'); ?> <div class="hs-social"> <?php echo $fb->render(array()); ?> <?php echo $twitter->render(array()); ?> <?php echo $gplus->render(array()); ?> </div> <?php endif; ?> </div> <div class="hs-creation-info text-right muted"> <?php if ($this->settings->get('show_author')) : ?> <?php echo JTEXT::_('COM_HOTSPOTS_POSTED_BY'); ?> <?php if ($this->profile) : ?> <a href="<?php echo $this->profile; ?>"> <?php endif; ?> <?php if($this->hotspot->created_by) { $user = JFactory::getUser($this->hotspot->created_by); $userName = $user->name; } else { $userName = $this->hotspot->created_by_alias; } echo $userName; ?> <?php if ($this->profile) : ?> </a> <?php endif; ?> <?php endif; ?> <?php if ($this->settings->get('show_date')) : ?> <?php echo JText::_('COM_HOTSPOTS_ON'); ?> <?php echo $this->hotspot->created; ?> <?php endif; ?> </div> <div class="clearfix"></div> <?php if (HotspotsHelperSettings::get('josc_support', '0') == 1) : ?> <?php $file=JPATH_BASE .'/administrator/components/com_comment/plugins/com_hotspots/hotspots.php'; if(file_exists($file)) : ?> <div class="hotspots-comments"> <?php JLoader::discover('ccommentHelper', JPATH_ROOT . '/components/com_comment/helpers'); echo ccommentHelperUtils::commentInit('com_hotspots', $this->hotspot, $this->hotspot->params); ?> </div> <?php else : ?> <div class="alert alert-error"> <?php echo JText::_('COM_HOTSPOTS_CCOMMENT_ENABLED_BUT_NO_CCOMMENT_INSTALLED'); ?> </div> <?php endif; ?> <?php endif; ?> <?php require_once(JPATH_COMPONENT . '/views/hotspots/tmpl/default_footer.php'); ?> </div> <?php // Now add all js files to the head CompojoomHtml::script( CompojoomHtml::getScriptQueue('hotspots'), 'media/com_hotspots/cache', HotspotsHelperSettings::get('minify', true) );
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings