Skip to content

Instantly share code, notes, and snippets.

View Spoygg's full-sized avatar

Ivan Ivanić Spoygg

View GitHub Profile
$main->add_element('ThisPage', array(
'id' => 'default-page-title',
'columns' => 24,
'rows' => 3,
'margin_top' => 3,
'options' => array(
'display' => 'title',
'disable_resize' => false,
'disable_drag' => false
),
diff --git a/library/class_upfront_theme.php b/library/class_upfront_theme.php
index d3559e0..188d532 100644
--- a/library/class_upfront_theme.php
+++ b/library/class_upfront_theme.php
@@ -80,19 +80,19 @@ class Upfront_Theme {
return $this->regions;
}
- public function get_default_layout($cascade, $layout_slug = "", $add_global_regions = false) {
+ public function get_default_layout($cascade, $layout_slug = "") {
<?php
$header = upfront_create_region(
array(
"name" => "header",
"title" => "Header",
"type" => "wide",
"scope" => "local"
),
array(
"row" => 24,
<?php
$templates = array();
ob_start();
//*** AUTHOR
?><a class="post_author" href="%author_url%">%author%</a><?php
$templates['author'] = ob_get_contents();
ob_clean();
<?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')))
),
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
/*
Layout File, at least one main region must be added;
*/
// include 'header.php';
$main = upfront_create_region(array(
'name' => "main",
'title' => __("Main Area"),
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 [
.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;