Spade

Mini Shell

Directory:~$ /home/lmsyaran/public_html/joomla5/templates/cassiopeia/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/public_html/joomla5/templates/cassiopeia/index.php

<link href='/joomla5/templates/cassiopeia/fullcalendar.css'
rel='stylesheet' />
<link
href='/joomla5/templates/cassiopeia/fullcalendar.print.css'
rel='stylesheet' media='print' />
<script
src='/joomla5/templates/cassiopeia/moment.min.js'></script>
<script
src='/joomla5/templates/cassiopeia/moment-jalaali.js'></script>
<script
src='/joomla5/templates/cassiopeia/jquery.min.js'></script>
<!--<script
src='../lib/jquery/jquery-2.2.0.min.js'></script>-->
<script
src='/joomla5/templates/cassiopeia/fullcalendar.min.js'></script>
<script
src='/joomla5/templates/cassiopeia/locale-all.js'></script>
<?php

/**
 * @package     Joomla.Site
 * @subpackage  Templates.cassiopeia
 *
 * @copyright   (C) 2017 Open Source Matters, Inc.
<https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;

/** @var Joomla\CMS\Document\HtmlDocument $this */

$app   = Factory::getApplication();
$input = $app->getInput();
$wa    = $this->getWebAssetManager();

// Browsers support SVG favicons
$this->addHeadLink(HTMLHelper::_('image',
'joomla-favicon.svg', '', [], true, 1),
'icon', 'rel', ['type' =>
'image/svg+xml']);
$this->addHeadLink(HTMLHelper::_('image',
'favicon.ico', '', [], true, 1), 'alternate
icon', 'rel', ['type' =>
'image/vnd.microsoft.icon']);
$this->addHeadLink(HTMLHelper::_('image',
'joomla-favicon-pinned.svg', '', [], true, 1),
'mask-icon', 'rel', ['color' =>
'#000']);

// Detecting Active Variables
$option   = $input->getCmd('option', '');
$view     = $input->getCmd('view', '');
$layout   = $input->getCmd('layout', '');
$task     = $input->getCmd('task', '');
$itemid   = $input->getCmd('Itemid', '');
$sitename = htmlspecialchars($app->get('sitename'),
ENT_QUOTES, 'UTF-8');
$menu     = $app->getMenu()->getActive();
$pageclass = $menu !== null ?
$menu->getParams()->get('pageclass_sfx', '') :
'';

// Color Theme
$paramsColorName = $this->params->get('colorName',
'colors_standard');
$assetColorName  = 'theme.' . $paramsColorName;

// Use a font scheme if set in the template style options
$paramsFontScheme = $this->params->get('useFontScheme',
false);
$fontStyles       = '';

if ($paramsFontScheme) {
    if (stripos($paramsFontScheme, 'https://') === 0) {
       
$this->getPreloadManager()->preconnect('https://fonts.googleapis.com/',
['crossorigin' => 'anonymous']);
       
$this->getPreloadManager()->preconnect('https://fonts.gstatic.com/',
['crossorigin' => 'anonymous']);
        $this->getPreloadManager()->preload($paramsFontScheme,
['as' => 'style', 'crossorigin' =>
'anonymous']);
        $wa->registerAndUseStyle('fontscheme.current',
$paramsFontScheme, [], ['rel' => 'lazy-stylesheet',
'crossorigin' => 'anonymous']);

        if (preg_match_all('/family=([^?:]*):/i',
$paramsFontScheme, $matches) > 0) {
            $fontStyles = '--cassiopeia-font-family-body: "'
. str_replace('+', ' ', $matches[1][0]) . '",
sans-serif;
			--cassiopeia-font-family-headings: "' .
str_replace('+', ' ', $matches[1][1] ?? $matches[1][0])
. '", sans-serif;
			--cassiopeia-font-weight-normal: 400;
			--cassiopeia-font-weight-headings: 700;';
        }
    } elseif ($paramsFontScheme === 'system') {
        $fontStylesBody    =
$this->params->get('systemFontBody', '');
        $fontStylesHeading =
$this->params->get('systemFontHeading', '');

        if ($fontStylesBody) {
            $fontStyles = '--cassiopeia-font-family-body: ' .
$fontStylesBody . ';
            --cassiopeia-font-weight-normal: 400;';
        }
        if ($fontStylesHeading) {
            $fontStyles .= '--cassiopeia-font-family-headings: '
. $fontStylesHeading . ';
    		--cassiopeia-font-weight-headings: 700;';
        }
    } else {
        $wa->registerAndUseStyle('fontscheme.current',
$paramsFontScheme, ['version' => 'auto'],
['rel' => 'lazy-stylesheet']);
       
$this->getPreloadManager()->preload($wa->getAsset('style',
'fontscheme.current')->getUri() . '?' .
$this->getMediaVersion(), ['as' => 'style']);
    }
}

// Enable assets
$wa->usePreset('template.cassiopeia.' . ($this->direction
=== 'rtl' ? 'rtl' : 'ltr'))
    ->useStyle('template.active.language')
    ->registerAndUseStyle($assetColorName, 'global/' .
$paramsColorName . '.css')
    ->useStyle('template.user')
    ->useScript('template.user')
    ->addInlineStyle(":root {
		--hue: 214;
		--template-bg-light: #f0f4fb;
		--template-text-dark: #495057;
		--template-text-light: #ffffff;
		--template-link-color: var(--link-color);
		--template-special-color: #001B4C;
		$fontStyles
	}");

// Override 'template.active' asset to set correct ltr/rtl
dependency
$wa->registerStyle('template.active', '', [], [],
['template.cassiopeia.' . ($this->direction ===
'rtl' ? 'rtl' : 'ltr')]);

// Logo file or site title param
if ($this->params->get('logoFile')) {
    $logo = HTMLHelper::_('image', Uri::root(false) .
htmlspecialchars($this->params->get('logoFile'),
ENT_QUOTES), $sitename, ['loading' => 'eager',
'decoding' => 'async'], false, 0);
} elseif ($this->params->get('siteTitle')) {
    $logo = '<span title="' . $sitename .
'">' .
htmlspecialchars($this->params->get('siteTitle'),
ENT_COMPAT, 'UTF-8') . '</span>';
} else {
    $logo = HTMLHelper::_('image', 'logo.svg',
$sitename, ['class' => 'logo d-inline-block',
'loading' => 'eager', 'decoding' =>
'async'], true, 0);
}

$hasClass = '';

if ($this->countModules('sidebar-left', true)) {
    $hasClass .= ' has-sidebar-left';
}

if ($this->countModules('sidebar-right', true)) {
    $hasClass .= ' has-sidebar-right';
}

// Container
$wrapper = $this->params->get('fluidContainer') ?
'wrapper-fluid' : 'wrapper-static';

$this->setMetaData('viewport', 'width=device-width,
initial-scale=1');

$stickyHeader = $this->params->get('stickyHeader') ?
'position-sticky sticky-top' : '';

// Defer fontawesome for increased performance. Once the page is loaded
javascript changes it to a stylesheet.
$wa->getAsset('style',
'fontawesome')->setAttribute('rel',
'lazy-stylesheet');
?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>"
dir="<?php echo $this->direction; ?>">

<head>
    <jdoc:include type="metas" />
    <jdoc:include type="styles" />
    <jdoc:include type="scripts" />
</head>

<body class="site <?php echo $option
    . ' ' . $wrapper
    . ' view-' . $view
    . ($layout ? ' layout-' . $layout : ' no-layout')
    . ($task ? ' task-' . $task : ' no-task')
    . ($itemid ? ' itemid-' . $itemid : '')
    . ($pageclass ? ' ' . $pageclass : '')
    . $hasClass
    . ($this->direction == 'rtl' ? ' rtl' :
'');
?>">
    <header class="header container-header full-width<?php echo
$stickyHeader ? ' ' . $stickyHeader : '';
?>">

        <?php if ($this->countModules('topbar')) : ?>
            <div class="container-topbar">
                <jdoc:include type="modules"
name="topbar" style="none" />
            </div>
        <?php endif; ?>

        <?php if ($this->countModules('below-top')) : ?>
            <div class="grid-child container-below-top">
                <jdoc:include type="modules"
name="below-top" style="none" />
            </div>
        <?php endif; ?>

        <?php if ($this->params->get('brand', 1)) :
?>
            <div class="grid-child">
                <div class="navbar-brand">
                    <a class="brand-logo" href="<?php
echo $this->baseurl; ?>/">
                        <?php echo $logo; ?>
                    </a>
                    <?php if
($this->params->get('siteDescription')) : ?>
                        <div
class="site-description"><?php echo
htmlspecialchars($this->params->get('siteDescription'));
?></div>
                    <?php endif; ?>
                </div>
            </div>
        <?php endif; ?>

        <?php if ($this->countModules('menu', true) ||
$this->countModules('search', true)) : ?>
            <div class="grid-child container-nav">
                <?php if ($this->countModules('menu',
true)) : ?>
                    <jdoc:include type="modules"
name="menu" style="none" />
                <?php endif; ?>
                <?php if ($this->countModules('search',
true)) : ?>
                    <div class="container-search">
                        <jdoc:include type="modules"
name="search" style="none" />
                    </div>
                <?php endif; ?>
            </div>
        <?php endif; ?>
    </header>

    <div class="site-grid">
        <?php if ($this->countModules('banner', true)) :
?>
            <div class="container-banner full-width">
                <jdoc:include type="modules"
name="banner" style="none" />
            </div>
        <?php endif; ?>

        <?php if ($this->countModules('top-a', true)) :
?>
            <div class="grid-child container-top-a">
                <jdoc:include type="modules"
name="top-a" style="card" />
            </div>
        <?php endif; ?>

        <?php if ($this->countModules('top-b', true)) :
?>
            <div class="grid-child container-top-b">
                <jdoc:include type="modules"
name="top-b" style="card" />
            </div>
        <?php endif; ?>

        <?php if ($this->countModules('sidebar-left',
true)) : ?>
            <div class="grid-child container-sidebar-left">
                <jdoc:include type="modules"
name="sidebar-left" style="card" />
            </div>
        <?php endif; ?>

        <div class="grid-child container-component">
            <jdoc:include type="modules"
name="breadcrumbs" style="none" />
            <jdoc:include type="modules"
name="main-top" style="card" />
            <jdoc:include type="message" />
            <main>
                <jdoc:include type="component" />
            </main>
            <jdoc:include type="modules"
name="main-bottom" style="card" />
        </div>

        <?php if ($this->countModules('sidebar-right',
true)) : ?>
            <div class="grid-child
container-sidebar-right">
                <jdoc:include type="modules"
name="sidebar-right" style="card" />
            </div>
        <?php endif; ?>

        <?php if ($this->countModules('bottom-a', true)) :
?>
            <div class="grid-child container-bottom-a">
                <jdoc:include type="modules"
name="bottom-a" style="card" />
            </div>
        <?php endif; ?>

        <?php if ($this->countModules('bottom-b', true)) :
?>
            <div class="grid-child container-bottom-b">
                <jdoc:include type="modules"
name="bottom-b" style="card" />
            </div>
        <?php endif; ?>
    </div>

    <?php if ($this->countModules('footer', true)) : ?>
        <footer class="container-footer footer full-width">
            <div class="grid-child">
                <jdoc:include type="modules"
name="footer" style="none" />
            </div>
        </footer>
    <?php endif; ?>

    <?php if ($this->params->get('backTop') == 1) :
?>
        <a href="#top" id="back-top"
class="back-to-top-link" aria-label="<?php echo
Text::_('TPL_CASSIOPEIA_BACKTOTOP'); ?>">
            <span class="icon-arrow-up icon-fw"
aria-hidden="true"></span>
        </a>
    <?php endif; ?>

    <jdoc:include type="modules" name="debug"
style="none" />
</body>

</html>





<script>

	$(document).ready(function() {
		var initialLocaleCode = 'en';

		$('#calendar').fullCalendar({
			header: {
				left: 'prev,next today',
				center: 'title',
				right: 'month,agendaWeek,agendaDay,listMonth'
			},
			isJalaali : false,
			defaultDate: '2016-09-12',
			locale: initialLocaleCode,
			buttonIcons: false, // show the prev/next text
			weekNumbers: true,
			navLinks: true, // can click day/week names to navigate views
			editable: true,
			eventLimit: true, // allow "more" link when too many events
			events: [
				{
					title: 'All Day Event',
					start: '2016-09-01'
				},
				{
					title: 'Long Event',
					start: '2016-09-07',
					end: '2016-09-10'
				},
				{
					id: 999,
					title: 'Repeating Event',
					start: '2016-09-09T16:00:00'
				},
				{
					id: 999,
					title: 'Repeating Event',
					start: '2016-09-16T16:00:00'
				},
				{
					title: 'Conference',
					start: '2016-09-11',
					end: '2016-09-13'
				},
				{
					title: 'Meeting',
					start: '2016-09-12T10:30:00',
					end: '2016-09-12T12:30:00'
				},
				{
					title: 'Lunch',
					start: '2016-09-12T12:00:00'
				},
				{
					title: 'Meeting',
					start: '2016-09-12T14:30:00'
				},
				{
					title: 'Happy Hour',
					start: '2016-09-12T17:30:00'
				},
				{
					title: 'Dinner',
					start: '2016-09-12T20:00:00'
				},
				{
					title: 'Birthday Party',
					start: '2016-09-13T07:00:00'
				},
				{
					title: 'Click for Google',
					url: 'http://google.com/',
					start: '2016-09-28'
				}
			]
		});

		// build the locale selector's options
		$.each($.fullCalendar.locales, function(localeCode) {
			$('#locale-selector').append(
				$('<option/>')
					.attr('value', localeCode)
					.prop('selected', localeCode == initialLocaleCode)
					.text(localeCode)
			);
		});

		// when the selected option changes, dynamically change the calendar
option
		$('#locale-selector').on('change', function() {
			if (this.value) {
				$('#calendar').fullCalendar('option',
'locale', this.value);
				$('#calendar').fullCalendar('option',
'isJalaali', (this.value == 'fa' ? true : false));
			}
		});
	});

</script>
<style>

	body {
		margin: 0;
		padding: 0;
		font-family: "Lucida
Grande",Helvetica,Arial,Verdana,sans-serif;
		font-size: 14px;
	}

	#top {
		background: #eee;
		border-bottom: 1px solid #ddd;
		padding: 0 10px;
		line-height: 40px;
		font-size: 12px;
	}

	#calendar {
		max-width: 900px;
		margin: 40px auto;
		padding: 0 10px;
	}

</style>



	<div id='top'>

		Locales:
		<select id='locale-selector'></select>

	</div>

	<div id='calendar'></div>