Skip to content

Instantly share code, notes, and snippets.

View Spoygg's full-sized avatar

Ivan Ivanić Spoygg

View GitHub Profile
<?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
|
Straightforward shit
8.Čovek koji živi u srednjoj kući pije mleko.
9.U prvoj kući zivi Norvežanin.
14.Norvežanin živi pored plave kuće.
4.Levo od bele kuce se nalazi zelena. - jedina dva mesta gde mogu ove dve da se stave a da ispod bude i kafa kao piće je skroz desno
5.Covek koji je u zelenoj kući pije kafu.
1.Britanac živi u crvenoj kući. - ostala je samo jedna kombinacija kuća/vlasnik prazna
@Spoygg
Spoygg / IE7 inline-block block
Created April 26, 2012 06:30
IE7 hack to mimic inline-block on block elements
/* IE7 hack to mimic inline-block on block elements */
*display: inline;
*zoom: 1;