Ejemplo n.º 1
0
 /**
  * initialize theme on error page
  */
 static function init_error()
 {
     // load app with chassets attached
     $app = CHAssets::getApp();
     // load template
     $template = JFactory::getApplication()->getTemplate();
     // get template options
     $tpl_options = (object) array_merge(['template' => $template], JFactory::getApplication()->getTemplate($template)->params->toArray());
     // get layout
     $tpl_options->layout = self::getLayout($tpl_options, 'error.php');
     // get favicons
     list($tpl_options->icon_favicon, $tpl_options->icon_touch) = self::getFavicons($tpl_options);
     // load uikit and theme styles
     $tpl_options->styles = [];
     $tpl_options->styles['uikit'] = "/templates/{$tpl_options->template}/assets/theme/css/uikit.min.css";
     $tpl_options->styles['theme'] = "/templates/{$tpl_options->template}/assets/theme/css/theme.min.css";
     // check for style overrides
     $style_path = JPATH_ROOT . "/templates/{$tpl_options->template}/styles/{$tpl_options->style}/css";
     foreach ($tpl_options->styles as $file => $url) {
         if (JFile::exists("{$style_path}/{$file}.min.css")) {
             $tpl_options->styles[$file] = "/templates/{$tpl_options->template}/styles/{$tpl_options->style}/css/{$file}.min.css";
         }
     }
     // attach tpl_options to chassets global object
     $app->chassets->tpl_options = $tpl_options;
     return $tpl_options;
 }
Ejemplo n.º 2
0
<?php

/**
 * @package		JKit
 * @copyright	Copyright (C) CloudHotelier. All rights reserved.
 * @license		GNU GPLv2 <http://www.gnu.org/licenses/gpl.html>
 * @author		Xavier Pallicer <*****@*****.**>
 */
defined('_JEXEC') or die;
// load assets
CHAssets::uikit_component('grid');
CHAssets::uikit_component('lightbox');
CHAssets::uikit_component('slidenav');
CHAssets::script('jkit', 'jkit.min.js');
CHAssets::style('jkit', 'jkit.min.css');
// images
$path_images = JURI::root() . 'images/jkit/images/';
// subheading
$subheading = $this->params->get('subheading') ? ' <small>' . $this->escape($this->params->get('subheading')) . '</small>' : '';
?>

<!-- view -->
<div class="jkit-view-gallery" data-jkit="gallery">

	<!-- title -->
	<?php 
if ($this->data->title_show) {
    ?>
		<h1 class="uk-heading-large"><?php 
    echo $this->data->title . $subheading;
    ?>
Ejemplo n.º 3
0
<?php

/**
 * @package		TplJuikit
 * @copyright	Copyright (C) CloudHotelier. All rights reserved.
 * @license		GNU GPLv2 <http://www.gnu.org/licenses/gpl.html>
 * @author		Xavier Pallicer <*****@*****.**>
 */
defined('_JEXEC') or die;
CHAssets::uikit_component('lightbox');
$path = JURI::root() . 'images/jkit/items/';
?>
<div class="tm-video">
	<div class="ch-ratio ch-ratio-16-9" style="background-image: url(<?php 
echo $path . $item->id . '-med.jpg';
?>
);">
		<a class="ch-ratio-content uk-text-center ch-image-overlay" href="<?php 
echo $item->link;
?>
" data-uk-lightbox>
			<div class="ch-vertical-align">
				<div class="ch-vertical-align"><i class="uk-icon-play"></i></div>
			</div>
		</a>
	</div>
</div>
<?php 
echo $item->info;
Ejemplo n.º 4
0
/**
 * @package		TplJuikit
 * @copyright	Copyright (C) CloudHotelier. All rights reserved.
 * @license		GNU GPLv2 <http://www.gnu.org/licenses/gpl.html>
 * @author		Xavier Pallicer <*****@*****.**>
 */
defined('_JEXEC') or die;
// required uikit components
CHAssets::uikit_component('slidenav');
CHAssets::uikit_component('slideset');
CHAssets::uikit_component('slideshow');
CHAssets::script(false, 'https://maps.google.com/maps/api/js');
// aditional js options
$map_marker = (object) ['url' => JUri::root() . "images/flat/map-marker.png", 'width' => 30, 'height' => 45];
$js = (object) ['map_marker' => $map_marker];
CHAssets::script_declaration('window.chtheme_options = ' . json_encode($js) . ';');
?>

<!DOCTYPE html>
<html lang="<?php 
echo $this->language;
?>
" dir="ltr">

    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
		<?php 
echo '<jdoc:include type="head"/>';
?>
		<link rel="shortcut icon" href="<?php 
Ejemplo n.º 5
0
 /**
  * Load required assets
  */
 static function chassets()
 {
     // check if already loaded
     $app = self::getApp();
     if (isset($app->chclient->assets)) {
         return;
     }
     // config
     $config = self::getConfig();
     // chclient assets
     CHAssets::script('chclient', 'chclient.min.js');
     CHAssets::style('chclient', 'chclient.min.css');
     // credit card validator
     CHAssets::script('chclient/jquery-creditcardvalidator', 'jquery.creditCardValidator.min.js');
     // required uikit components
     CHAssets::uikit_component('accordion');
     CHAssets::uikit_component('datepicker');
     CHAssets::uikit_component('form-select');
     CHAssets::uikit_component('notify');
     CHAssets::uikit_component('sticky');
     CHAssets::uikit_component('tooltip');
     // optional components
     if ($config->settings_uikit_form_advanced) {
         CHAssets::uikit_component('form-advanced');
     }
     // javascript options
     $localeconv = CHLibDisplay::getLocaleconv();
     $js = (object) [];
     $js->string_error = self::string('error_occurred');
     $js->string_check_form = self::string('error_check_form');
     $js->string_people = self::string('people');
     $js->money_decimal = $localeconv['mon_decimal_point'];
     $js->money_thousands = $localeconv['mon_thousands_sep'];
     $js->datepicker_i18n = self::datePickerLocale();
     $js->datepicker_min_date = CHLibDate::getDate()->format(CHLibDate::dateLocale());
     $js->datepicker_format = str_replace('Y', 'YYYY', str_replace('m', 'MM', str_replace('d', 'DD', CHLibDate::dateLocale())));
     $js->datepicker_weekstart = CHLibDate::weekStart();
     $js->bootstrap_adapter = (int) $config->settings_bootstrap_adapter;
     CHAssets::script_declaration('window.chclient_options = ' . json_encode($js) . ';');
     $app->chclient->assets = true;
 }
Ejemplo n.º 6
0
<?php

/**
 * @package		TplJuikit
 * @copyright	Copyright (C) CloudHotelier. All rights reserved.
 * @license		GNU GPLv2 <http://www.gnu.org/licenses/gpl.html>
 * @author		Xavier Pallicer <*****@*****.**>
 */
defined('_JEXEC') or die;
// load uikit assets
CHAssets::uikit_component('slideshow');
// CHAssets::uikit_component('slidenav');
CHAssets::uikit_component('dotnav');
// images path
$path = JURI::root() . 'images/jkit/images/';
?>

<div class="tm-reviews">

	<div class="uk-grid">

		<div class="uk-width-medium-8-10 uk-push-1-10">

			<div class="uk-slidenav-position" data-uk-slideshow="{animation: 'scroll'}">

				<ul class="uk-slideshow uk-text-center tm-reviews-slideshow">

					<?php 
foreach ($item->images as $image) {
    ?>
Ejemplo n.º 7
0
<?php

/**
 * @package		CHClient
 * @copyright	Copyright (C) CloudHotelier. All rights reserved.
 * @license		GNU GPLv2 <http://www.gnu.org/licenses/gpl.html>
 * @author		Xavier Pallicer <*****@*****.**>
 */
defined('_JEXEC') or die;
// load assets
CHAssets::uikit_component('grid');
CHClient::chassets();
// subheading
$subheading = $this->params->get('subheading') ? ' <small>' . $this->escape($this->params->get('subheading')) . '</small>' : '';
?>

<!-- view -->
<div class="ch-view-promos">


	<!-- title -->
	<?php 
if ($this->data->title_show) {
    ?>
		<h1 class="uk-heading-large"><?php 
    echo $this->data->title . $subheading;
    ?>
</h1>
	<?php 
}
?>