Skip to content

Instantly share code, notes, and snippets.

View markocupic's full-sized avatar
🏳️‍🌈
#StandWithUkraine

Marko Cupic markocupic

🏳️‍🌈
#StandWithUkraine
View GitHub Profile
<?php
/**
* Contao Open Source CMS
*
* Copyright (C) 2005-2012 Leo Feyer
*
* Core translations are managed using Transifex. To create a new translation
* or to help to maintain an existing one, please register at transifex.com.
*
@markocupic
markocupic / gallery_slider_default
Last active January 1, 2016 00:49
Template for the gallery content element. Enables the use of the content slider.
@markocupic
markocupic / ce_gc_mediabox.html5
Last active January 1, 2016 01:09
The mediabox template for contao gallery_creator
<?php
/* CSS for the frontend-output */
$GLOBALS['TL_CSS'][] = 'system/modules/gallery_creator/assets/css/gallery_creator_fe.css';
/* javascript for the frontend-output */
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/gallery_creator/assets/js/gallery_creator_fe.js';
?>
<?php if (!\Input::get('items')): ?>
<!-- gallery_creator - album list -->
@markocupic
markocupic / gc_default_extended.html5
Last active January 3, 2016 07:49
gallery_creator template for contao 3.2
<?php
/* CSS for the frontend-output */
$GLOBALS['TL_CSS'][] = 'system/modules/gallery_creator/assets/css/gallery_creator_fe.css';
/* javascript for the frontend-output */
$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/gallery_creator/assets/js/gallery_creator_fe.js';
?>
<?php if (!\Input::get('items')): ?>
<!-- gallery_creator - album list -->
@markocupic
markocupic / gc_default_extended_c211.html5
Last active January 3, 2016 19:19
gallery_creator template for contao 2.11
<!-- indexer::continue -->
<?php $GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/gallery_creator/html/gallery_creator_fe.js'; ?>
<?php if (!$this->Input->get('vars')): ?>
<!--start album-overview-->
<div class="<?php echo $this->class; ?> gallery_creator block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
<?php endif; ?>
<?php
/* CSS for the frontend-output */
//$GLOBALS['TL_CSS'][] = 'system/modules/gallery_creator/assets/css/gallery_creator_fe.css';
/* javascript for the frontend-output */
//$GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/gallery_creator/assets/js/gallery_creator_fe.js';
?>
<?php if (!\Input::get('items')): ?>
<!-- gallery_creator - album list -->
<!-- gallery_creator - album list -->
<div class="<?= $this->class ?> gallery_creator block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?= $this->hl ?>><?= $this->headline ?></<?= $this->hl ?>>
<?php endif; ?>
<?= $this->pagination ?>
<?php if (count($this->arrAlbums)>0): ?>
<ul class="list_albums">
@markocupic
markocupic / sidebar_navigation.css
Last active February 22, 2017 13:07
Generated by SassMeister.com.
.sidebar-navigation {
padding: 15px 0;
margin: 40px 0 0 0;
text-align: left;
}
.sidebar-navigation * {
text-decoration: none !important;
}
.sidebar-navigation ul {
list-style: none;
@markocupic
markocupic / add_fontawesome5_icon_at_runtime.js
Created March 10, 2018 09:12
Add fontawesome 5 icon at runtime
// See https://fontawesome.com/how-to-use/font-awesome-api#icon
var iconDefinition = FontAwesome.findIconDefinition({
prefix: 'fal',
iconName: 'circle-notch'
});
var icon = FontAwesome.icon(iconDefinition, {
classes: 'preloader-icon'
}).html;
@markocupic
markocupic / ce_gc_default_colorbox_multipage.html5
Last active March 16, 2019 19:33
ce_gc_default_colorbox_multipage.html5 for gallery_creator_bundle 1.2.0 tested on contao 4.7
<?php
/* CSS for the frontend-output */
//$GLOBALS['TL_CSS'][] = 'bundles/markocupicgallerycreator/css/gallery_creator_fe.css';
?>
<?php if (!\Input::get('items')): ?>
<!-- gallery_creator - album list -->
<div class="<?= $this->class ?> gallery_creator block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?= $this->hl ?>><?= $this->headline ?></<?= $this->hl ?>>