<file_sep><?php

/**
 * @copyright	JDuo responsive template © 2014 adhocgraFX / <NAME> - All Rights Reserved.
 * @license		GNU/GPL
 **/
/**
 * joomskeleton, joomfluid, joomflex, jduo, pasodoble, carcass module chrome
 **/


// No direct access.
defined('_JEXEC') or die;

$module  = $displayData['module'];
$params  = $displayData['params'];
$attribs = $displayData['attribs'];

$modulePos   = $module->position;
$moduleTag   = $params->get('module_tag', 'div');
$headerTag   = htmlspecialchars($params->get('header_tag', 'h4'));
$headerClass = htmlspecialchars($params->get('header_class', 'module-title'));
?>

<?php if ($module->content) : ?>
    <<?php echo $moduleTag; ?> class="<?php echo $modulePos; ?> module <?php echo htmlspecialchars($params->get('moduleclass_sfx')); ?>">
	    <?php if ($module->showtitle && $headerClass !== 'module-title') : ?>
            <div class="<?php echo $headerClass; ?>">
                <<?php echo $headerTag; ?> class="title"><?php echo $module->title; ?></<?php echo $headerTag; ?>>
            </div>
	    <?php endif; ?>
        <?php if ($module->showtitle && $headerClass === 'module-title') : ?>
            <div class="<?php echo $headerClass; ?>">
                <<?php echo $headerTag; ?> class="title"><?php echo $module->title; ?></<?php echo $headerTag; ?>>
            </div>
        <?php endif; ?>
        <div class="module-body">
	        <?php echo $module->content; ?>
        </div>
    </<?php echo $moduleTag; ?>>
<?php endif; ?>
<file_sep><?php
// get template params
// analytics
$analytics    = $this->params->get('analytics');
// cookies
$c_accept     = $this->params->get('acceptcookie');
$c_infotext   = $this->params->get('cookieinfotext');
$c_buttontext = $this->params->get('cookiebuttontext');
$c_linktext   = $this->params->get('cookielinktext');
$c_link       = $this->params->get('cookielink');
// slideshow slider
$slider       = $this->params->get('slideshow');
// code display
$prism       = $this->params->get('js-prism');
?>

<!-- cookie info -->
<?php if ($c_accept == 1) : ?>

	<?php if(isset($_POST['set_cookie'])):
		if($_POST['set_cookie']==1)
			setcookie("acceptcookie", "yes", time()+3600*24*365, "/");
		?>
	<?php endif; ?>

	<div id="accept-cookie-container" class="box clouds" style="display:none;position:fixed;bottom:-1em;font-size:.75em;width:100%;text-align:center;z-index:99999">
		<p><?php echo htmlspecialchars($c_infotext); ?>
			<?php if (($c_linktext != "Cookie link caption") and ($c_link != "http://my_site.de")): ?>
				<a href="<?php echo htmlspecialchars($c_link); ?>">
					<?php echo htmlspecialchars($c_linktext); ?></a>
			<?php endif; ?></p>
		<button id="accept" class="btn btn-primary"><?php echo htmlspecialchars($c_buttontext); ?></button>
	</div>

	<script type="text/javascript">
        jQuery(document).ready(function () {

            function setCookie(c_name,value,exdays)
            {
                var exdate=new Date();
                exdate.setDate(exdate.getDate() + exdays);
                var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()) + "; path=/";
                document.cookie=c_name + "=" + c_value;
            }

            function readCookie(name) {
                var nameEQ = name + "=";
                var ca = document.cookie.split(';');
                for(var i=0;i < ca.length;i++) {
                    var c = ca[i];
                    while (c.charAt(0)==' ') c = c.substring(1,c.length);
                    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
                }
                return null;
            }

            var $ca_container = jQuery('#accept-cookie-container');
            var $ca_accept = jQuery('#accept');
            var acceptcookie = readCookie('acceptcookie');
            if(!(acceptcookie == "yes")){

                $ca_container.delay(1000).slideDown('slow');

                $ca_accept.click(function(){
                    setCookie("acceptcookie","yes",365);
                    jQuery.post('<?php echo JURI::current(); ?>', 'set_cookie=1', function(){});
                    $ca_container.slideUp('slow');
                });
            }
        });
	</script>
<?php endif; ?>

<!-- script für nav -->
<?php if ($this->countModules('nav')): ?>
	<script type="text/javascript" src="<?php echo $tpath . '/scripts/nav.js'; ?>"></script>
<?php endif; ?>

<!-- script für aside -->
<?php if ($this->countModules('sidebar')): ?>
	<script type="text/javascript" src="<?php echo $tpath . '/scripts/sidebar.js'; ?>"></script>
<?php endif; ?>

<!-- go to top plus sticky nav plus double tap to go-->
<script type="text/javascript" src="<?php echo $tpath . '/scripts/plugins.js'; ?>"></script>

<!-- google analytics code asynchron + anonym -->
<?php if ($analytics != "UA-XXXXX-X"): ?>
	<script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', '<?php echo htmlspecialchars($analytics); ?>']);
        _gaq.push(['_gat._anonymizeIp']);
        _gaq.push(['_trackPageview']);

        (function() {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
	</script>
<?php endif; ?>

<!-- script für flickity -->
<?php if ($slider): ?>
	<script type="text/javascript" src="<?php echo $tpath . '/scripts/flickity.js'; ?>"></script>
<?php endif; ?>

<!-- script für prism -->
<?php if ($prism): ?>
	<script type="text/javascript" src="<?php echo $tpath . '/scripts/prism.js'; ?>"></script>
<?php endif; ?><file_sep><?php
// no direct access
defined('_JEXEC') or die('Restricted access');
/** @var JDocumentError $this */

if (!isset($this->error))
{
	$this->error = JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
	$this->debug = false;
}

$app = JFactory::getApplication();
$tpath  = $this->baseurl . '/templates/' . $this->template;

// get template params
$sitename  = htmlspecialchars($app->get('sitename'), ENT_QUOTES, 'UTF-8');

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

<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Carcass RWD Joomla! template</title>

    <!-- Custom styles for this template -->
    <link href="<?php echo $tpath; ?>/css/template.css" rel="stylesheet">

    <title><?php echo $this->error->getCode(); ?>
        - <?php echo htmlspecialchars($this->error->getMessage(), ENT_QUOTES, 'UTF-8'); ?></title>

	<?php if ($app->get('debug_lang', '0') == '1' || $app->get('debug', '0') == '1') : ?>
        <link href="<?php echo JUri::root(true); ?>/media/cms/css/debug.css" rel="stylesheet"/>
	<?php endif; ?>
    <!--[if lt IE 9]>
    <script src="<?php echo JUri::root(true); ?>/media/jui/js/html5.js"></script><![endif]-->
</head>

<body>
<header class="app-bar promote-layer" role="banner">
    <section class="app-bar-container">
        <h1 class="logo-text">
            <a href="<?php echo $this->baseurl ?>"><?php echo htmlspecialchars($sitename); ?></a>
        </h1>
    </section>
</header>

<section class="layout block-group">
    <section class="main-container">
        <main role="main">
            <section class="content">
            <article>
                <h1>
                    <?php echo $this->error->getCode(); ?> <?php echo htmlspecialchars($this->error->getMessage(), ENT_QUOTES, 'UTF-8'); ?>
                </h1>
                <h2>
                    <?php if ($this->error->getCode() == '404'): ?>
                        Leider haben wir diese Seite nicht gefunden.
		            <?php endif; ?>
                    Am Besten gehen wir zurück zur:
                    <a href="<?php echo JUri::root(true); ?>/index.php"
                        title="<?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?>"><?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?>
                    </a>
                </h2>

                <br>
                <p><?php echo JText::_('JERROR_LAYOUT_PLEASE_CONTACT_THE_SYSTEM_ADMINISTRATOR'); ?></p>

            </article>
            </section>
        </main>
    </section>
</section>

</body>
</html>
<file_sep><?php
/**
 * @package     Joomla.Site
 * @subpackage  Templates.carcass
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @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 JDocumentHtml $this */

$app  = Factory::getApplication();
$lang = $app->getLanguage();
$wa   = $this->getWebAssetManager();

// Detecting Active Variables
$option    = $app->input->getCmd('option', '');
$view      = $app->input->getCmd('view', '');
$layout    = $app->input->getCmd('layout', '');
$task      = $app->input->getCmd('task', '');
$itemid    = $app->input->getCmd('Itemid', '');
$sitename  = htmlspecialchars($app->get('sitename'), ENT_QUOTES, 'UTF-8');
$menu      = $app->getMenu()->getActive();
$pageclass = $menu->params->get('pageclass_sfx');
$tpath     = $this->baseurl . '/templates/' . $this->template;

// get template params
// logo
$logo         = $this->params->get('logo');

// Enable assets
$wa->enableAsset('template.carcass.base');

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

<!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"/>

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- icons -->
    <link rel="apple-touch-icon" sizes="180x180" href="images/icons/apple-touch-icon.png">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <link rel="icon" href="favicon.ico" type="image/x-icon">

</head>

<body class=" <?php echo $pageclass?>
              <?php echo $option . ' view-' . $view . ($layout ? ' layout-' . $layout : ' no-layout') . ($task ? ' task-' . $task : ' no-task'); ?>
              <?php echo ($itemid ? ' itemid-' . $itemid : '' ); ?>" role="document">

<header class="app-bar promote-layer" role="banner">
    <section class="app-bar-container">
	    <?php if ($this->countModules('nav')): ?>
            <button class="menu" aria-label="Navigation"></button>
	    <?php endif; ?>
        <h1 class="logo-text">
            <a href="<?php echo $this->baseurl ?>"><?php echo htmlspecialchars($sitename); ?></a>
        </h1>
	    <?php if ($this->countModules('sidebar')): ?>
            <button class="sidebar-menu" aria-label="Sidebar"></button>
	    <?php endif; ?>
    </section>
</header>

<nav class="navdrawer-container promote-layer" id="navdrawer" role="navigation">
	<?php if ($logo): ?>
        <div class="logo-image">
            <a href="<?php echo $this->baseurl ?>">
                <img src="<?php echo $this->baseurl ?>/<?php echo htmlspecialchars($logo); ?>"
                     alt="<?php echo htmlspecialchars($sitename); ?>"/>
            </a>
        </div>
	<?php else: ?>
        <h4>Navigation</h4>
	<?php endif; ?>
	<?php if ($this->countModules('nav')): ?>
        <jdoc:include type="modules" name="nav"/>
	<?php endif; ?>
	<?php if ($this->countModules('search')): ?>
        <div class="search-container">
            <jdoc:include type="modules" name="search" style=" none"/>
        </div>
	<?php endif; ?>
</nav>

<section class="layout block-group">
	<?php if ($this->countModules('slideshow')): ?>
        <section class="slider-container" role="complementary">
            <jdoc:include type="modules" name="slideshow" style="flickity"/>
        </section>
	<?php endif; ?>

    <?php if ($this->countModules('top_row')): ?>
        <section class="top" role="complementary">
            <jdoc:include type="modules" name="top_row" style="jduo"/>
        </section>
	<?php endif; ?>

    <section class="main-container">
        <main role="main">
            <section class="content">
                <jdoc:include type="message"/>
                <jdoc:include type="component"/>
            </section>
        </main>
        <?php if ($this->countModules('sidebar')): ?>
            <aside class="sidebar-container" role="complementary">
                <h4 class="sidebar-text">Sidebar</h4>
                <jdoc:include type="modules" name="sidebar" style="jduo"/>
            </aside>
		<?php endif; ?>
    </section>

	<?php if ($this->countModules('bottom_row')): ?>
        <section class="bottom" role="complementary">
            <jdoc:include type="modules" name="bottom_row" style="jduo"/>
        </section>
	<?php endif; ?>
</section>

<section class="footer-wrapper block-group">
	<?php if ($this->countModules('breadcrumbs')): ?>
        <section class="breadcrumbs-container block-group" role="navigation">
            <jdoc:include type="modules" name="breadcrumbs"style="none" />
        </section>
	<?php endif; ?>

	<?php if ($this->countModules('footer')): ?>
        <footer class="block-group" role="contentinfo">
            <jdoc:include type="modules" name="footer" style="footer"/>
        </footer>
	<?php endif; ?>
</section>

<!-- to top -->
<a href="#" class="go-top"><span class="icon-chevron-up"></span><p hidden>Top</p></a>

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

<!-- load scripts -->
<?php include_once('scripts/scripts.php'); ?>

<!-- double Tap to go by <NAME> -->
<script type="text/javascript">
    jQuery('nav li:has(ul)').doubleTapToGo();
</script>

</body>
</html>
<file_sep># Carcass
## responsive Joomla! 4 alpha 12 template
### work in progress
###Features:
* adhocgrafx template styleguide:
    * pasodoble > scss 
    * bootstrap > scss 
* skeleton made with Pasodoble RWD Joomla! 3.x template:
    * lightweight off-canvas nav
    * aside 
    * flexbox layout
* Options:
    * responsive touchable slides: flickity
    * code display: prism
    * analytics
    * accept cookies info
* instagram-like css img filter-classes
* category blog with cards styling; page-class-suffix