Skip to content

Instantly share code, notes, and snippets.

View Spoygg's full-sized avatar

Ivan Ivanić Spoygg

View GitHub Profile
include_once get_template_directory() . '/library/class_upfront_debug.php';
include_once get_template_directory() . '/library/class_upfront_server.php';
include_once get_template_directory() . '/library/class_upfront_theme.php';
class Issue_Theme extends Upfront_ChildTheme
{
public function initialize() {
// $this->add_actions_filters();
// $this->populate_pages();
$this->add_required_page(
'about',
${{ region }}->add_element('{{ elementType }}', array(
'columns' => {{ columns }},
'id' => '{{ region }}-module{{ index }}-{{ elementType }}',
'rows' => {{ rows }},
'margin_top' => {{ margin_top }},
'margin_left' => {{ margin_left }},
'margin_bottom' => {{ margin_bottom }},
'margin_right' => {{ margin_right }},
{[ if (leaveWrapperOpen) { ]}
'close_wrapper' => false,
$main->add_element('PlainTxt', array(
'columns' => 15,
'id' => 'faq-main-module0-PlainTxt',
'rows' => 4,
'margin_top' => 5,
'margin_left' => 2,
'margin_bottom' => 0,
'margin_right' => 0,
'close_wrapper' => false,
.upfront-edit-layout, .upfront-edit-layout body,
.upfront-edit-theme, .upfront-edit-theme body {
height: 100%;
}
.upfront-edit-layout #page,
.upfront-edit-theme #page,
.upfront-edit-responsive #page,
.upfront-edit-postlayout #page {
position: relative;
Collision: #263A4D, #2C3E50
- #263A4D [line: 60, 302, 533, 548, 557, 828, 898, 1249, 1283, 1414, 1435, 1443, 1446, 1447, 1693, 1703, 4932, 4955, 5074, 5527, 5543, 5784, 6104, 6620, 6751, 6979, 7571, 7572, 7573, 7684, 7685, 7686, 8470, 10370, 10381, 10913, 11014] is too close (1.471716564557268) to #2C3E50 [line: 246, 2212, 10237]
Collision: #263A4D, #25394D
- #263A4D [line: 60, 302, 533, 548, 557, 828, 898, 1249, 1283, 1414, 1435, 1443, 1446, 1447, 1693, 1703, 4932, 4955, 5074, 5527, 5543, 5784, 6104, 6620, 6751, 6979, 7571, 7572, 7573, 7684, 7685, 7686, 8470, 10370, 10381, 10913, 11014] is too close (0.6412425805954729) to #25394D [line: 345, 405]
Collision: #263A4D, #273B4E
- #263A4D [line: 60, 302, 533, 548, 557, 828, 898, 1249, 1283, 1414, 1435, 1443, 1446, 1447, 1693, 1703, 4932, 4955, 5074, 5527, 5543, 5784, 6104, 6620, 6751, 6979, 7571, 7572, 7573, 7684, 7685, 7686, 8470, 10370, 10381, 10913, 11014] is too close (0.3224847793026831) to #273B4E [line: 438]
Collision: #263A4D, #324253
- #263A4D [
<?php
/*
Layout File, at least one main region must be added;
*/
// include 'header.php';
$main = upfront_create_region(array(
'name' => "main",
'title' => __("Main Area"),
diff --git a/elements/upfront-gallery/lib/ugallery.php b/elements/upfront-gallery/lib/ugallery.php
index 299098c..988638f 100644
--- a/elements/upfront-gallery/lib/ugallery.php
+++ b/elements/upfront-gallery/lib/ugallery.php
@@ -41,7 +41,7 @@ class Upfront_UgalleryView extends Upfront_Object {
labels: ' . json_encode($data['labels']) . ',
labels_length: ' . json_encode($data['labels_length']) . ',
image_labels: ' . json_encode($data['image_labels']) . ',
- grid: ' . $data['labelFilters']['length'] . ',
<?php
return array(
'postLayout' => array(
array('classes' => 'c12 clr', 'objects'=> array(array('slug' => 'title', 'classes' => 'post-part c24'))),
array('classes' => 'c12 clr', 'objects'=> array(array('slug' => 'date', 'classes' => ' post-part c24'))),
array('classes' => 'c12 clr', 'objects'=> array(array('slug' => 'featured_image', 'classes' => ' post-part c24'))),
array('classes' => 'c12 clr', 'objects'=> array(array('slug' => 'contents', 'classes' => ' post-part c24'))),
array('classes' => 'c12 clr', 'objects'=> array(array('slug' => 'excerpt', 'classes' => ' post-part c24')))
),
<?php
$templates = array();
ob_start();
//*** AUTHOR
?><a class="post_author" href="%author_url%">%author%</a><?php
$templates['author'] = ob_get_contents();
ob_clean();