Skip to content

Instantly share code, notes, and snippets.

View ivan-ivanic-cm's full-sized avatar

Ivan Ivanić ivan-ivanic-cm

  • 10up
  • novi sad, serbia
  • 18:01 (UTC +01:00)
View GitHub Profile
<?php
$templates = array();
ob_start();
//*** AUTHOR
?><a class="post_author" href="%author_url%">%author%</a><?php
$templates['author'] = ob_get_contents();
ob_clean();
<?php
$header = upfront_create_region(
array(
"name" => "header",
"title" => "Header",
"type" => "wide",
"scope" => "local"
),
array(
"row" => 24,
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 = "") {
$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
),
| |~upfront-gallery/
| | |+css/
| | |+img/
| | |~js/
| | | |~settings/
| | | | |-layout-panel.js
| | | | `-thumbnail-fields.js
| | | |~templates/
| | | | |-label-editor-template.html
| | | | |-label-selector-template.html
javascript: (function() { var imageMaxWidth = 800; var parseForImages = function(node) { if (node.tagName === 'IMG' && node.width > imageMaxWidth) { node.style.maxWidth = imageMaxWidth + 'px'; return; } if (node.children) { for (var i = 0; i < node.children.length; i++) { parseForImages(node.children[i]); } } }; var messages = document.getElementsByClassName('adn'); for (var i = 0; i < messages.length; i++) { parseForImages(messages[i]); } })();
#!/bin/bash
case "$1" in
"IncsubVagrant") cd ~/IncsubProjects
echo "Bringing Vagrant up... "
vagrant up
fish
;;
"Upfront") cd ~/IncsubProjects/www/wordpress-default/wp-content/themes/upfront
echo "Checking out newest Upfront..."
git pull --rebase
projekat
|-- partials
| |-- header.php
| +-- footer.php
|
|-- index.php
|-- gallery.php
|-- about.php
|-- founders.php
|