Archived
KB branch
This commit is contained in:
1 parent
68dbcba745
commit
57aeb4a30e
29 files changed
+273
-1392
No files matched your search
@@ -1,143 +0,0 @@
|
||||
--Do not remove this if you are using--
|
||||
Original Author: Remiz Rahnas
|
||||
Original Author URL: http://www.htmlremix.com
|
||||
Published date: 2008/09/24
|
||||
|
||||
Changes by Nick Fetchak:
|
||||
- IE8 standards mode compatibility
|
||||
- VML elements now positioned behind original box rather than inside of it - should be less prone to breakage
|
||||
Published date : 2009/11/18
|
||||
|
||||
|
||||
<public:attach event="oncontentready" onevent="oncontentready('v08vnSVo78t4JfjH')" />
|
||||
<script type="text/javascript">
|
||||
|
||||
// findPos() borrowed from http://www.quirksmode.org/js/findpos.html
|
||||
function findPos(obj) {
|
||||
var curleft = curtop = 0;
|
||||
|
||||
if (obj.offsetParent) {
|
||||
do {
|
||||
curleft += obj.offsetLeft;
|
||||
curtop += obj.offsetTop;
|
||||
} while (obj = obj.offsetParent);
|
||||
}
|
||||
|
||||
return({
|
||||
'x': curleft,
|
||||
'y': curtop
|
||||
});
|
||||
}
|
||||
|
||||
function oncontentready(classID) {
|
||||
if (this.className.match(classID)) { return(false); }
|
||||
|
||||
if (!document.namespaces.v) { document.namespaces.add("v", "urn:schemas-microsoft-com:vml"); }
|
||||
|
||||
this.className = this.className.concat(' ', classID);
|
||||
var arcSize = Math.min(parseInt(this.currentStyle['-moz-border-radius'] ||
|
||||
this.currentStyle['-webkit-border-radius'] ||
|
||||
this.currentStyle['border-radius'] ||
|
||||
this.currentStyle['-khtml-border-radius']) /
|
||||
Math.min(this.offsetWidth, this.offsetHeight), 1);
|
||||
var fillColor = this.currentStyle.backgroundColor;
|
||||
var fillSrc = this.currentStyle.backgroundImage.replace(/^url\("(.+)"\)$/, '$1');
|
||||
var strokeColor = this.currentStyle.borderColor;
|
||||
var strokeWeight = parseInt(this.currentStyle.borderWidth);
|
||||
var stroked = 'true';
|
||||
if (isNaN(strokeWeight)) {
|
||||
strokeWeight = 0;
|
||||
strokeColor = fillColor;
|
||||
stroked = 'false';
|
||||
}
|
||||
|
||||
this.style.background = 'transparent';
|
||||
this.style.borderColor = 'transparent';
|
||||
|
||||
// Find which element provides position:relative for the target element (default to BODY)
|
||||
var el = this;
|
||||
var limit = 100, i = 0;
|
||||
while ((typeof(el) != 'unknown') && (el.currentStyle.position != 'relative') && (el.tagName != 'BODY')) {
|
||||
el = el.parentElement;
|
||||
i++;
|
||||
if (i >= limit) { return(false); }
|
||||
}
|
||||
var el_zindex = parseInt(el.currentStyle.zIndex);
|
||||
if (isNaN(el_zindex)) { el_zindex = 0; }
|
||||
//alert('got tag '+ el.tagName +' with pos '+ el.currentStyle.position);
|
||||
|
||||
var rect_size = {
|
||||
'width': this.offsetWidth - strokeWeight,
|
||||
'height': this.offsetHeight - strokeWeight
|
||||
};
|
||||
var el_pos = findPos(el);
|
||||
var this_pos = findPos(this);
|
||||
this_pos.y = this_pos.y + (0.5 * strokeWeight) - el_pos.y;
|
||||
this_pos.x = this_pos.x + (0.5 * strokeWeight) - el_pos.x;
|
||||
|
||||
var rect = document.createElement('v:roundrect');
|
||||
rect.arcsize = arcSize +'px';
|
||||
rect.strokecolor = strokeColor;
|
||||
rect.strokeWeight = strokeWeight +'px';
|
||||
rect.stroked = stroked;
|
||||
rect.style.display = 'block';
|
||||
rect.style.position = 'absolute';
|
||||
rect.style.top = this_pos.y +'px';
|
||||
rect.style.left = this_pos.x +'px';
|
||||
rect.style.width = rect_size.width +'px';
|
||||
rect.style.height = rect_size.height +'px';
|
||||
rect.style.antialias = true;
|
||||
rect.style.zIndex = el_zindex - 1;
|
||||
|
||||
var fill = document.createElement('v:fill');
|
||||
fill.color = fillColor;
|
||||
fill.src = fillSrc;
|
||||
fill.type = 'tile';
|
||||
|
||||
rect.appendChild(fill);
|
||||
el.appendChild(rect);
|
||||
|
||||
var css = el.document.createStyleSheet();
|
||||
css.addRule("v\\:roundrect", "behavior: url(#default#VML)");
|
||||
css.addRule("v\\:fill", "behavior: url(#default#VML)");
|
||||
|
||||
isIE6 = /msie|MSIE 6/.test(navigator.userAgent);
|
||||
// IE6 doesn't support transparent borders, use padding to offset original element
|
||||
if (isIE6 && (strokeWeight > 0)) {
|
||||
this.style.borderStyle = 'none';
|
||||
this.style.paddingTop = parseInt(this.currentStyle.paddingTop || 0) + strokeWeight;
|
||||
this.style.paddingBottom = parseInt(this.currentStyle.paddingBottom || 0) + strokeWeight;
|
||||
}
|
||||
|
||||
if (typeof(window.rounded_elements) == 'undefined') {
|
||||
window.rounded_elements = new Array();
|
||||
|
||||
if (typeof(window.onresize) == 'function') { window.previous_onresize = window.onresize; }
|
||||
window.onresize = window_resize;
|
||||
}
|
||||
this.element.vml = rect;
|
||||
window.rounded_elements.push(this.element);
|
||||
}
|
||||
|
||||
function window_resize() {
|
||||
if (typeof(window.rounded_elements) == 'undefined') { return(false); }
|
||||
|
||||
for (var i in window.rounded_elements) {
|
||||
var el = window.rounded_elements[i];
|
||||
|
||||
var strokeWeight = parseInt(el.currentStyle.borderWidth);
|
||||
if (isNaN(strokeWeight)) { strokeWeight = 0; }
|
||||
|
||||
var parent_pos = findPos(el.vml.parentNode);
|
||||
var pos = findPos(el);
|
||||
pos.y = pos.y + (0.5 * strokeWeight) - parent_pos.y;
|
||||
pos.x = pos.x + (0.5 * strokeWeight) - parent_pos.x;
|
||||
|
||||
el.vml.style.top = pos.y +'px';
|
||||
el.vml.style.left = pos.x +'px';
|
||||
}
|
||||
|
||||
if (typeof(window.previous_onresize) == 'function') { window.previous_onresize(); }
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -1,388 +0,0 @@
|
||||
/*
|
||||
Variable Grid System.
|
||||
Learn more ~ http://www.spry-soft.com/grids/
|
||||
Based on 960 Grid System - http://960.gs/
|
||||
|
||||
Licensed under GPL and MIT.
|
||||
|
||||
Looking for a preview of the grid? Check out http://grids.heroku.com/grid?column_width=70&column_amount=12&gutter_width=30
|
||||
*/
|
||||
|
||||
/*
|
||||
Forces backgrounds to span full width,
|
||||
even if there is horizontal scrolling.
|
||||
Increase this if your layout is wider.
|
||||
|
||||
Note: IE6 works fine without this fix.
|
||||
*/
|
||||
|
||||
body {
|
||||
min-width: 1200px;
|
||||
}
|
||||
|
||||
/* Containers
|
||||
----------------------------------------------------------------------------------------------------*/
|
||||
.container_12 {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 1200px;
|
||||
}
|
||||
|
||||
/* Grid >> Global
|
||||
----------------------------------------------------------------------------------------------------*/
|
||||
|
||||
.column,
|
||||
.sidebar .event,
|
||||
.grid_1,
|
||||
.grid_2,
|
||||
.grid_3,
|
||||
.grid_4,
|
||||
.grid_5,
|
||||
.grid_6,
|
||||
.grid_7,
|
||||
.grid_8,
|
||||
.grid_9,
|
||||
.grid_10,
|
||||
.grid_11,
|
||||
.grid_12 {
|
||||
display:inline;
|
||||
float: left;
|
||||
position: relative;
|
||||
margin-left: 15px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.push_1, .pull_1,
|
||||
.push_2, .pull_2,
|
||||
.push_3, .pull_3,
|
||||
.push_4, .pull_4,
|
||||
.push_5, .pull_5,
|
||||
.push_6, .pull_6,
|
||||
.push_7, .pull_7,
|
||||
.push_8, .pull_8,
|
||||
.push_9, .pull_9,
|
||||
.push_10, .pull_10,
|
||||
.push_11, .pull_11,
|
||||
.push_12, .pull_12 {
|
||||
position:relative;
|
||||
}
|
||||
|
||||
|
||||
/* Grid >> Children (Alpha ~ First, Omega ~ Last)
|
||||
----------------------------------------------------------------------------------------------------*/
|
||||
|
||||
.alpha {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.omega {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
/* Grid >> 12 Columns
|
||||
----------------------------------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
.container_12 .grid_1 {
|
||||
width:70px;
|
||||
}
|
||||
|
||||
.container_12 .grid_2 {
|
||||
width:170px;
|
||||
}
|
||||
|
||||
.sidebar .event,
|
||||
.container_12 .grid_3 {
|
||||
width:270px;
|
||||
}
|
||||
|
||||
.container_12 .grid_4 {
|
||||
width:370px;
|
||||
}
|
||||
|
||||
.container_12 .grid_5 {
|
||||
width:470px;
|
||||
}
|
||||
|
||||
.column,
|
||||
.container_12 .grid_6 {
|
||||
width:570px;
|
||||
}
|
||||
|
||||
.container_12 .grid_7 {
|
||||
width:670px;
|
||||
}
|
||||
|
||||
.container_12 .grid_8 {
|
||||
width:770px;
|
||||
}
|
||||
|
||||
.container_12 .grid_9 {
|
||||
width:870px;
|
||||
}
|
||||
|
||||
.container_12 .grid_10 {
|
||||
width:970px;
|
||||
}
|
||||
|
||||
.container_12 .grid_11 {
|
||||
width:1070px;
|
||||
}
|
||||
|
||||
.container_12 .grid_12 {
|
||||
width:1170px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* Prefix Extra Space >> 12 Columns
|
||||
----------------------------------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
.container_12 .prefix_1 {
|
||||
padding-left:100px;
|
||||
}
|
||||
|
||||
.container_12 .prefix_2 {
|
||||
padding-left:200px;
|
||||
}
|
||||
|
||||
.container_12 .prefix_3 {
|
||||
padding-left:300px;
|
||||
}
|
||||
|
||||
.container_12 .prefix_4 {
|
||||
padding-left:400px;
|
||||
}
|
||||
|
||||
.container_12 .prefix_5 {
|
||||
padding-left:500px;
|
||||
}
|
||||
|
||||
.container_12 .prefix_6 {
|
||||
padding-left:600px;
|
||||
}
|
||||
|
||||
.container_12 .prefix_7 {
|
||||
padding-left:700px;
|
||||
}
|
||||
|
||||
.container_12 .prefix_8 {
|
||||
padding-left:800px;
|
||||
}
|
||||
|
||||
.container_12 .prefix_9 {
|
||||
padding-left:900px;
|
||||
}
|
||||
|
||||
.container_12 .prefix_10 {
|
||||
padding-left:1000px;
|
||||
}
|
||||
|
||||
.container_12 .prefix_11 {
|
||||
padding-left:1100px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Suffix Extra Space >> 12 Columns
|
||||
----------------------------------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
.container_12 .suffix_1 {
|
||||
padding-right:100px;
|
||||
}
|
||||
|
||||
.container_12 .suffix_2 {
|
||||
padding-right:200px;
|
||||
}
|
||||
|
||||
.container_12 .suffix_3 {
|
||||
padding-right:300px;
|
||||
}
|
||||
|
||||
.container_12 .suffix_4 {
|
||||
padding-right:400px;
|
||||
}
|
||||
|
||||
.container_12 .suffix_5 {
|
||||
padding-right:500px;
|
||||
}
|
||||
|
||||
.container_12 .suffix_6 {
|
||||
padding-right:600px;
|
||||
}
|
||||
|
||||
.container_12 .suffix_7 {
|
||||
padding-right:700px;
|
||||
}
|
||||
|
||||
.container_12 .suffix_8 {
|
||||
padding-right:800px;
|
||||
}
|
||||
|
||||
.container_12 .suffix_9 {
|
||||
padding-right:900px;
|
||||
}
|
||||
|
||||
.container_12 .suffix_10 {
|
||||
padding-right:1000px;
|
||||
}
|
||||
|
||||
.container_12 .suffix_11 {
|
||||
padding-right:1100px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Push Space >> 12 Columns
|
||||
----------------------------------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
.container_12 .push_1 {
|
||||
left:100px;
|
||||
}
|
||||
|
||||
.container_12 .push_2 {
|
||||
left:200px;
|
||||
}
|
||||
|
||||
.container_12 .push_3 {
|
||||
left:300px;
|
||||
}
|
||||
|
||||
.container_12 .push_4 {
|
||||
left:400px;
|
||||
}
|
||||
|
||||
.container_12 .push_5 {
|
||||
left:500px;
|
||||
}
|
||||
|
||||
.container_12 .push_6 {
|
||||
left:600px;
|
||||
}
|
||||
|
||||
.container_12 .push_7 {
|
||||
left:700px;
|
||||
}
|
||||
|
||||
.container_12 .push_8 {
|
||||
left:800px;
|
||||
}
|
||||
|
||||
.container_12 .push_9 {
|
||||
left:900px;
|
||||
}
|
||||
|
||||
.container_12 .push_10 {
|
||||
left:1000px;
|
||||
}
|
||||
|
||||
.container_12 .push_11 {
|
||||
left:1100px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Pull Space >> 12 Columns
|
||||
----------------------------------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
.container_12 .pull_1 {
|
||||
left:-100px;
|
||||
}
|
||||
|
||||
.container_12 .pull_2 {
|
||||
left:-200px;
|
||||
}
|
||||
|
||||
.container_12 .pull_3 {
|
||||
left:-300px;
|
||||
}
|
||||
|
||||
.container_12 .pull_4 {
|
||||
left:-400px;
|
||||
}
|
||||
|
||||
.container_12 .pull_5 {
|
||||
left:-500px;
|
||||
}
|
||||
|
||||
.container_12 .pull_6 {
|
||||
left:-600px;
|
||||
}
|
||||
|
||||
.container_12 .pull_7 {
|
||||
left:-700px;
|
||||
}
|
||||
|
||||
.container_12 .pull_8 {
|
||||
left:-800px;
|
||||
}
|
||||
|
||||
.container_12 .pull_9 {
|
||||
left:-900px;
|
||||
}
|
||||
|
||||
.container_12 .pull_10 {
|
||||
left:-1000px;
|
||||
}
|
||||
|
||||
.container_12 .pull_11 {
|
||||
left:-1100px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* `Clear Floated Elements
|
||||
----------------------------------------------------------------------------------------------------*/
|
||||
|
||||
/* http://sonspring.com/journal/clearing-floats */
|
||||
|
||||
.clear {
|
||||
clear: both;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
visibility: hidden;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/* http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified */
|
||||
|
||||
.hentry:before,
|
||||
.hentry:after,
|
||||
#program-3days:before,
|
||||
#program-3days:after,
|
||||
#program-6days:before,
|
||||
#program-6days:after,
|
||||
.clearfix:before,
|
||||
.clearfix:after {
|
||||
content: '\0020';
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
visibility: hidden;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.hentry:after,
|
||||
#program-3days:after,
|
||||
#program-6days:after,
|
||||
.clearfix:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/*
|
||||
The following zoom:1 rule is specifically for IE6 + IE7.
|
||||
Move to separate stylesheet if invalid CSS is a problem.
|
||||
*/
|
||||
|
||||
.clearfix {
|
||||
zoom: 1;
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
/* Border radius hack:
|
||||
TODO: does not work
|
||||
*/
|
||||
.single-event .event-type:before,
|
||||
#featured article .event-type:before,
|
||||
#featured article.type-post h1:before,
|
||||
#featured #slidernav a span.circle,
|
||||
.home #digest_news .post a.permalink:before,
|
||||
.big_bullet,
|
||||
.btn {
|
||||
behavior: url(css/border-radius.htc);
|
||||
}
|
||||
|
||||
@@ -1,111 +0,0 @@
|
||||
#lightbox{ position: absolute; left: 0; width: 100%; z-index: 100; text-align: center; line-height: 0;}
|
||||
#lightbox img{ width: auto; height: auto;}
|
||||
#lightbox a img{ border: none; }
|
||||
|
||||
#outerImageContainer{ position: relative; background-color: #000; width: 250px; height: 250px; margin: 0 auto; }
|
||||
#imageContainer{ padding: 10px; }
|
||||
|
||||
#loading{ position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; }
|
||||
#hoverNav{ position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; }
|
||||
#imageContainer>#hoverNav{ left: 0;}
|
||||
#hoverNav a{ outline: none;}
|
||||
|
||||
#prevLink, #nextLink{ width: 49%; height: 100%; background-image: url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */ display: block; }
|
||||
#prevLink { left: 0; float: left;}
|
||||
#nextLink { right: 0; float: right;}
|
||||
#prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 15% no-repeat; }
|
||||
#nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 15% no-repeat; }
|
||||
|
||||
#imageDataContainer{ font: 10px Verdana, Helvetica, sans-serif; background-color: #000; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100% ; }
|
||||
|
||||
#imageData{ padding:0 10px; color: #666; }
|
||||
#imageData #imageDetails{ width: 70%; float: left; text-align: left; }
|
||||
#imageData #caption{ font-weight: bold; }
|
||||
#imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em; }
|
||||
#imageData #bottomNavClose{ width: 66px; float: right; padding-bottom: 0.7em; outline: none;}
|
||||
|
||||
#overlay{ position: absolute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; background-color: #000; }
|
||||
|
||||
/* Dark Theme starts here */
|
||||
/*
|
||||
#stimuli_lightbox {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 100;
|
||||
text-align: center;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
#stimuli_lightbox a img { border: none; }
|
||||
|
||||
#stimuli_outerImageContainer {
|
||||
position: relative;
|
||||
background-color: #000;
|
||||
width: 250px;
|
||||
height: 250px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
#stimuli_imageContainer {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
#stimuli_loading {
|
||||
position: absolute;
|
||||
top: 40%;
|
||||
left: 0%;
|
||||
height: 25%;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
line-height: 0;
|
||||
background: transparent center url(img/loading.gif) no-repeat;
|
||||
}
|
||||
#stimuli_hoverNav {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
}
|
||||
#stimuli_imageContainer>#stimuli_hoverNav { left: 0;}
|
||||
#stimuli_hoverNav a { outline: none;}
|
||||
|
||||
#stimuli_prevLink, #stimuli_nextLink {
|
||||
width: 49%;
|
||||
height: 100%;
|
||||
background: transparent url(img/blank.gif) no-repeat; /* Trick IE into showing hover * /
|
||||
display: block;
|
||||
}
|
||||
#stimuli_prevLink { left: 0; float: left;}
|
||||
#stimuli_nextLink { right: 0; float: right;}
|
||||
#stimuli_prevLink:hover, #stimuli_prevLink:visited:hover { background: url(img/prev.gif) left 55% no-repeat; }
|
||||
#stimuli_nextLink:hover, #stimuli_nextLink:visited:hover { background: url(img/next.gif) right 55% no-repeat; }
|
||||
|
||||
|
||||
#stimuli_imageDataContainer {
|
||||
font: 10px Verdana, Helvetica, sans-serif;
|
||||
background-color: #000;
|
||||
margin: 0 auto;
|
||||
line-height: 1.4em;
|
||||
overflow: auto;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
#stimuli_imageData { padding:0 10px; color: #666; }
|
||||
#stimuli_imageData #stimuli_imageDetails { width: 70%; float: left; text-align: left; }
|
||||
#stimuli_imageData #stimuli_caption { font-weight: bold;}
|
||||
#stimuli_imageData #stimuli_numberDisplay { display: block; clear: left; padding-bottom: 1.0em;}
|
||||
#stimuli_imageData #stimuli_bottomNavClose { width: 66px; float: right; padding-bottom: 0.7em; background: url(img/closelabel.gif) right 55% no-repeat; padding-top: 1.0em; margin-bottom: 1.0em;}
|
||||
|
||||
#stimuli_overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 90;
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
background-color: #000;
|
||||
}
|
||||
*/
|
||||
@@ -1,137 +0,0 @@
|
||||
/* --------------------------------------------------------------
|
||||
|
||||
Rebuild the default browser styles
|
||||
|
||||
Based on work by Blueprint CSS
|
||||
http://code.google.com/p/blueprintcss/
|
||||
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
|
||||
body {
|
||||
background: #fff;
|
||||
}
|
||||
body, input, textarea {
|
||||
color: #111;
|
||||
font: 12px Arial,sans-serif;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
|
||||
/* Headings
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
h1,h2,h3,h4,h5,h6 {
|
||||
font-weight: normal;
|
||||
clear: both;
|
||||
}
|
||||
hr {
|
||||
background-color: #999;
|
||||
border:0;
|
||||
height: 1px;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
|
||||
/* Text elements
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
p {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
ul {
|
||||
margin: 0 0 1.5em 2.5em;
|
||||
}
|
||||
ol {
|
||||
margin: 0 0 1.5em 2.5em;
|
||||
}
|
||||
ul {
|
||||
list-style:disc;
|
||||
}
|
||||
ol {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
ol ol {
|
||||
list-style:upper-alpha;
|
||||
}
|
||||
ol ol ol {
|
||||
list-style:lower-roman;
|
||||
}
|
||||
ol ol ol ol {
|
||||
list-style:lower-alpha;
|
||||
}
|
||||
ul ul, ol ol, ul ol, ol ul {
|
||||
margin-bottom:0;
|
||||
}
|
||||
dl {
|
||||
margin:0 1.5em;
|
||||
}
|
||||
dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
dd {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
cite, em, i {
|
||||
font-style: italic;
|
||||
}
|
||||
blockquote {
|
||||
margin: 0 3em;
|
||||
}
|
||||
blockquote em, blockquote i, blockquote cite {
|
||||
font-style: normal;
|
||||
}
|
||||
pre {
|
||||
font: 11px Monaco, monospace;
|
||||
line-height: 1.5;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
code {
|
||||
font: 11px Monaco, monospace;
|
||||
}
|
||||
abbr, acronym {
|
||||
border-bottom: 1px dotted #666;
|
||||
cursor: help;
|
||||
}
|
||||
ins {
|
||||
text-decoration: none;
|
||||
}
|
||||
sup,
|
||||
sub {
|
||||
height: 0;
|
||||
line-height: 1;
|
||||
vertical-align: baseline;
|
||||
position: relative;
|
||||
|
||||
}
|
||||
sup {
|
||||
bottom: 1ex;
|
||||
}
|
||||
sub {
|
||||
top: .5ex;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Adapt the following for use in your Child Themes when using
|
||||
different font-sizes and line-heights
|
||||
|
||||
body, input, textarea {
|
||||
font: --px Arial,sans-serif;
|
||||
line-height:--;
|
||||
}
|
||||
p, ul, ol, dd, pre {
|
||||
margin-bottom:--em;
|
||||
}
|
||||
pre, code {
|
||||
font:--px Monaco, monospace;
|
||||
line-height:--;
|
||||
}
|
||||
|
||||
All other styles can be overridden--or ignored!--in Child Theme stylesheets
|
||||
|
||||
*/
|
||||
@@ -1,63 +0,0 @@
|
||||
/* --------------------------------------------------------------
|
||||
|
||||
Reset default browser CSS.
|
||||
|
||||
Based on work by Eric Meyer:
|
||||
http://meyerweb.com/eric/tools/css/reset/index.html
|
||||
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
/* v1.0 | 20080212 */
|
||||
|
||||
html, body, div, span, applet, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, big, cite, code,
|
||||
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var,
|
||||
b, u, i, center,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
font-size: 100%;
|
||||
vertical-align: baseline;
|
||||
background: transparent;
|
||||
}
|
||||
body {
|
||||
line-height: 1;
|
||||
}
|
||||
ol, ul {
|
||||
list-style: none;
|
||||
}
|
||||
blockquote, q {
|
||||
quotes: none;
|
||||
}
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
content: none;
|
||||
}
|
||||
|
||||
/* remember to define focus styles! */
|
||||
:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* remember to highlight inserts somehow! */
|
||||
ins {
|
||||
text-decoration: none;
|
||||
}
|
||||
del {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
/* tables still need 'cellspacing="0"' in the markup */
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
a img { border: none; }
|
||||
@@ -1,74 +0,0 @@
|
||||
/* --------------------------------------------------------------
|
||||
|
||||
Basic WordPress Blog Styles
|
||||
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
|
||||
/* Images
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
.entry-content img {
|
||||
margin: 0 0 1.5em 0;
|
||||
}
|
||||
.alignleft,
|
||||
img.alignleft {
|
||||
display: inline;
|
||||
float: left;
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
.alignright,
|
||||
img.alignright {
|
||||
display: inline;
|
||||
float: right;
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
.aligncenter,
|
||||
img.aligncenter {
|
||||
clear: both;
|
||||
display: block;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
}
|
||||
.wp-caption {
|
||||
text-align: center;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
.wp-caption img {
|
||||
border: 0 none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.wp-caption p.wp-caption-text {
|
||||
margin: 0;
|
||||
}
|
||||
.wp-smiley {
|
||||
max-height: 1em;
|
||||
margin:0 !important;
|
||||
}
|
||||
.gallery dl {
|
||||
margin: 0;
|
||||
}
|
||||
.gallery-caption {
|
||||
margin:0;
|
||||
font-size:0.8em;
|
||||
}
|
||||
|
||||
|
||||
/* Pullquotes
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
blockquote.left {
|
||||
float: left;
|
||||
margin-left: 0;
|
||||
margin-right: 20px;
|
||||
text-align: right;
|
||||
width: 33%;
|
||||
}
|
||||
blockquote.right {
|
||||
float: right;
|
||||
margin-left: 20px;
|
||||
margin-right: 0;
|
||||
text-align: left;
|
||||
width: 33%;
|
||||
}
|
||||
@@ -1,62 +1,26 @@
|
||||
<div id="digest_news" class="grid_8 hfeed">
|
||||
<div id="digest_news" class="grid_12 hfeed">
|
||||
|
||||
<h2 id="digest_news_headline">Aktuelt</h2>
|
||||
<h2>Aktuelt</h2>
|
||||
|
||||
<div class="grid_4 alpha">
|
||||
<?php // The LOOP
|
||||
$digest_news = new WP_Query( 'posts_per_page=6' );
|
||||
$digest_news_counter = 1;
|
||||
$digest_news = new WP_Query( 'posts_per_page=3' );
|
||||
$counter = 1;
|
||||
if ( $digest_news->have_posts() ) : while ( $digest_news->have_posts() ) : $digest_news->the_post();
|
||||
?>
|
||||
|
||||
<div class="grid_4<?php
|
||||
if($counter == 1) { echo " alpha"; }
|
||||
elseif($counter == 3) { echo" omega"; }
|
||||
?>">
|
||||
<article id="post-<?php the_ID(); ?>" <?php neuf_post_class(); ?>>
|
||||
<a class="permalink" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
|
||||
<div class="when"><?php the_date()?> <?php the_time(); ?></div>
|
||||
<div class="entry-summary"><?php echo linkify(trim_excerpt(get_the_excerpt(), 28), '/\[\.\.\.\]/', get_permalink()); ?></div>
|
||||
</article>
|
||||
<a class="permalink" href="<?php the_permalink(); ?>" title="Permalenke til <?php the_title(); ?>"><?php the_title(); ?></a>
|
||||
<div class="entry-summary"><?php echo linkify(trim_excerpt(get_the_excerpt(), 30), '/\[\.\.\.\]/', get_permalink()); ?></div>
|
||||
</article>
|
||||
</div>
|
||||
<?php
|
||||
if($digest_news_counter == 3) {
|
||||
?>
|
||||
</div>
|
||||
<div class="grid_4 omega">
|
||||
<?php
|
||||
}
|
||||
$digest_news_counter++;
|
||||
$counter++;
|
||||
endwhile;
|
||||
?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div> <!-- #articles -->
|
||||
|
||||
<div id="digest_events" class="grid_4">
|
||||
<h2 id="digest_events_headline"><a href="<?php bloginfo('url'); ?>/program/">Program</a></h2>
|
||||
<table class="table">
|
||||
<?php
|
||||
$meta_query = array(
|
||||
'key' => '_neuf_events_starttime',
|
||||
'value' => date( 'U' , strtotime( '-8 hours' ) ),
|
||||
'compare' => '>',
|
||||
'type' => 'numeric'
|
||||
);
|
||||
|
||||
$args = array(
|
||||
'post_type' => 'event',
|
||||
'meta_query' => array( $meta_query ),
|
||||
'posts_per_page' => 10,
|
||||
'orderby' => 'meta_value_num',
|
||||
'meta_key' => '_neuf_events_starttime',
|
||||
'order' => 'ASC'
|
||||
);
|
||||
|
||||
$digest_events = new WP_Query( $args );
|
||||
if ( $digest_events->have_posts() ) : while ( $digest_events->have_posts() ) : $digest_events->the_post();
|
||||
?>
|
||||
<tr>
|
||||
<td id="post-<?php the_ID(); ?>" <?php neuf_post_class(); ?>>
|
||||
<?php $date = get_post_meta(get_the_ID(), '_neuf_events_starttime'); echo neuf_event_format_date($date[0]); ?> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></td>
|
||||
</tr>
|
||||
<?php endwhile; endif; ?>
|
||||
</table>
|
||||
</div> <!-- #events -->
|
||||
|
||||
@@ -7,22 +7,16 @@ if ( 'Annet' != $post->neuf_event_venue ) {
|
||||
<?php } ?>
|
||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
||||
|
||||
<div class="entry-meta-info">
|
||||
|
||||
<div>
|
||||
<span class="event-date"><?php echo ucfirst( date_i18n( 'l j. F' , get_post_meta(get_the_ID() , '_neuf_events_starttime' , true ) ) ); ?></span>
|
||||
</div>
|
||||
<div>
|
||||
<span class="meta-prep meta-prep-event-time"><?php _e( 'Kl:' , 'neuf' ); ?></span>
|
||||
<span class="event-time"><?php echo date_i18n( 'G.i' , get_post_meta( get_the_ID() , '_neuf_events_starttime' , true ) ); ?></span>
|
||||
<span class="meta-sep meta-sep-event-price"> - </span>
|
||||
<span class="meta-prep meta-prep-price">CC: </span>
|
||||
<span class="price"><?php echo ($price = neuf_get_price( $post )) ? $price : "Gratis"; ?></span>
|
||||
<span class="meta-prep meta-prep-price"><?php echo $ticket ? ' <a href="'.$ticket.'">Kjøp billett</a>' : ""; ?></span>
|
||||
</div>
|
||||
<div>
|
||||
<span class="venue"><?php echo $post->neuf_event_venue; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<span class="event-date"><?php echo ucfirst( date_i18n( 'l j. F' , get_post_meta(get_the_ID() , '_neuf_events_starttime' , true ) ) ); ?></span>
|
||||
<br />
|
||||
<span class="meta-prep meta-prep-event-time"><?php _e( 'Kl:' , 'neuf' ); ?></span>
|
||||
<span class="event-time"><?php echo date_i18n( 'G.i' , get_post_meta( get_the_ID() , '_neuf_events_starttime' , true ) ); ?></span>
|
||||
<span class="meta-sep meta-sep-event-price"> - </span>
|
||||
<span class="meta-prep meta-prep-price">CC: </span>
|
||||
<span class="price"><?php echo ($price = neuf_get_price( $post )) ? $price : "Gratis"; ?></span>
|
||||
<span class="meta-prep meta-prep-price"><?php echo $ticket ? ' <a href="'.$ticket.'">Kjøp billett</a>' : ""; ?></span>
|
||||
<br />
|
||||
<span class="venue"><?php echo $post->neuf_event_venue; ?></span>
|
||||
</header> <!-- .entry-meta-->
|
||||
|
||||
@@ -4,43 +4,23 @@
|
||||
<div class="grid_12">
|
||||
|
||||
<div id="footer-about" class="grid_4 alpha">
|
||||
<h2>Det Norske Studentersamfund</h2>
|
||||
<h2>Konsertforeningen Betong</h2>
|
||||
<p>
|
||||
Studentene i Oslo har sitt naturlige tilholdssted på Det Norske Studentersamfund, i hyggelige lokaler på Chateau Neuf øverst på Majorstuen. Her er det åpent alle dager unntatt søndag, og enten man ønsker en tur i baren, på kafé, på debatt, på konsert, teater eller kino, har man muligheten på Det Norske Studentersamfund.
|
||||
Konsertforeningen Betong er ansvarlige for konsertdriften på Det Norske Studentersamfund i Oslo, også kjent som Chateau Neuf. Vi disponerer konsertscenene Betong og Klubbscenen, to av byens største og beste av sitt slag. Tidligere har blant annet White Stripes, Ramones, Pearl Jam, Frank Zappa, Xzibit og Sigur Rós gjestet Det Norske Studentersamfund.
|
||||
</p>
|
||||
<span class="links"><a href="<?php bloginfo('url'); ?>/kart/">Kart</a> | <a href="<?php bloginfo('url'); ?>/kontakt/">Kontakt</a></span>
|
||||
|
||||
</div> <!-- #footer-about -->
|
||||
|
||||
<div id="fb-like-box" class="grid_4">
|
||||
<div class="fb-like-box" data-href="https://www.facebook.com/studentersamfundet" data-width="315" data-height="285" data-show-faces="true" data-stream="false" data-header="false" data-border-color="#e89735"></div>
|
||||
<div class="fb-like-box" data-href="https://www.facebook.com/betongoslo" data-width="315" data-height="350" data-show-faces="true" data-stream="false" data-header="false" data-colorscheme="dark" data-border-color="#ffffff"></div>
|
||||
</div>
|
||||
<div id="flickr-box" class="grid_4 omega">
|
||||
<h2><a href='http://www.flickr.com/groups/neuf/pool/'>Bilder fra flickr</a></h2>
|
||||
<h2><a href='http://www.flickr.com/photos/studentenesfotoklubb/tags/betong' target="_blank">Bilder fra flickr</a></h2>
|
||||
<div id="flickr-images">
|
||||
<ul id="flickr_feed"></ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid_12">
|
||||
<div id="sponsors">
|
||||
|
||||
<div id="sponsor-uio" class="sponsor">
|
||||
<a href="http://www.uio.no/" rel="nofollow"><img alt="Universitetet i Oslo eier Chateau Neuf" src="<?php bloginfo('stylesheet_directory'); ?>/img/sponsors/logo_black_uio.png" /></a>
|
||||
</div>
|
||||
|
||||
<div id="sposor-nrf" class="sponsor">
|
||||
<a href="http://www.norskrockforbund.no/" rel="nofollow"><img alt="Norsk Rockforbund sponser Studentersamfundet" src="<?php bloginfo('stylesheet_directory'); ?>/img/sponsors/logo_black_nrf.png" /></a>
|
||||
</div>
|
||||
|
||||
<div id="sponsor-akademika" class="sponsor">
|
||||
<a href="http://www.akademika.no/" rel="nofollow"><img alt="Akademika sponser Studentersamfundet" src="<?php bloginfo('stylesheet_directory'); ?>/img/sponsors/logo_black_akademika.png" /></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="kolofon" class="grid_12">
|
||||
|
||||
<span>Det Norske Studentersamfund | Slemdalsveien 15, 0369 Oslo | Webdesign av <a href="http://edb.neuf.no">EDB-gjengen</a> og Designerne i <a href="http://studentersamfundet.no/association/kommunikasjonsavdelingen/">KAK</a>.</span>
|
||||
|
||||
@@ -13,9 +13,7 @@ get_header();
|
||||
<?php //get_template_part( 'program' , '6days' ); ?>
|
||||
<?php get_template_part( 'program' , '6days' ); ?>
|
||||
|
||||
<?php get_template_part ( 'digest' ); ?>
|
||||
|
||||
<?php get_template_part( 'studentmedia' ); ?>
|
||||
<?php get_template_part( 'digest' ); ?>
|
||||
|
||||
</div> <!-- .container_12 -->
|
||||
|
||||
|
||||
@@ -7,12 +7,9 @@ $content_width = 770;
|
||||
|
||||
add_image_size( 'two-column-thumb' , 170 , 69 , true );
|
||||
add_image_size( 'four-column-thumb' , 370 , 150 , true );
|
||||
add_image_size( 'four-column-promo' , 370 , 322 , true );
|
||||
add_image_size( 'six-column-promo' , 570 , 322 , true );
|
||||
add_image_size( 'six-column-slim' , 570 , 161 , true );
|
||||
add_image_size( 'association-thumb' , 270 , 250, false );
|
||||
add_image_size( 'extra-large' , 1600 , 1600 , false);
|
||||
add_image_size( 'newsletter-wide' , 620, 80, false);
|
||||
|
||||
/**
|
||||
* Register navigation menus.
|
||||
@@ -34,14 +31,12 @@ function neuf_enqueue_scripts() {
|
||||
wp_register_script( 'jquery' , 'http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js' );
|
||||
wp_register_script( 'program' , get_template_directory_uri() . '/js/program.js', array( 'jquery' ) );
|
||||
wp_register_script( 'cycle' , get_template_directory_uri() . '/js/jquery.cycle.all.js', array( 'jquery' ), '0.9.8' );
|
||||
wp_register_script( 'front-page', get_template_directory_uri() . '/js/front-page.js', array('cycle','moment-lang') );
|
||||
wp_register_script( 'front-page', get_template_directory_uri() . '/js/front-page.js', array('cycle') );
|
||||
wp_register_script( 'application', get_template_directory_uri() . '/js/application.js', array('jquery') );
|
||||
wp_register_script( 'underscore', get_template_directory_uri() . '/js/underscore.js');
|
||||
wp_register_script( 'knockout', get_template_directory_uri() . '/js/knockout-2.0.0.js');
|
||||
wp_register_script( 'util', get_template_directory_uri() . '/js/neuf/util/util.js' );
|
||||
wp_register_script( 'date.js', get_template_directory_uri() . '/js/neuf/util/date-nb-NO.js');
|
||||
wp_register_script( 'moment', get_template_directory_uri() . '/js/moment.min.js');
|
||||
wp_register_script( 'moment-lang', get_template_directory_uri() . '/js/lang/nb.js', array('moment'));
|
||||
wp_register_script( 'eventProgram', get_template_directory_uri() . '/js/neuf/eventProgram.js', array('jquery', 'underscore', 'knockout', 'date.js', 'util') );
|
||||
wp_register_script( 'footer', get_template_directory_uri() . '/js/footer.js', array('jquery') );
|
||||
|
||||
@@ -60,18 +55,19 @@ add_action( 'wp_enqueue_scripts' , 'neuf_enqueue_scripts' );
|
||||
* Denies uploads of images smaller (in pixels) than given width and height values.
|
||||
*/
|
||||
function neuf_handle_upload_prefilter( $file ) {
|
||||
|
||||
$minimum = array( 'width' => 640, 'height' => 480);
|
||||
$width = 640;
|
||||
$height = 480;
|
||||
|
||||
$img = getimagesize( $file['tmp_name'] );
|
||||
$minimum = array( 'width' => $width , 'height' => $height );
|
||||
$width = $img[0];
|
||||
$height = $img[1];
|
||||
$height =$img[1];
|
||||
|
||||
if ( $width < $minimum['width'] )
|
||||
return array( "error" => "Image dimensions are too small. Minimum width is {$minimum['width']}px. Uploaded image width is $width px" );
|
||||
|
||||
elseif ($height < $minimum['height'])
|
||||
return array( "error" => "Image dimensions are too small. Minimum height is {$minimum['height']}px. Uploaded image height is $height px" );
|
||||
return array( "error" => "Image dimensions are too small. Minimum height is {$minimum['height']}px. Uploaded image width is $width px" );
|
||||
else
|
||||
return $file;
|
||||
}
|
||||
@@ -289,7 +285,7 @@ function neuf_get_attachment_count() {
|
||||
*/
|
||||
function neuf_maybe_display_gallery() {
|
||||
if ( 2 < neuf_get_attachment_count() )
|
||||
echo do_shortcode( '[gallery link="file" size="four-column-promo"]' );
|
||||
echo do_shortcode( '[gallery]' );
|
||||
}
|
||||
|
||||
function neuf_event_format_date($timestamp) {
|
||||
|
||||
@@ -21,20 +21,22 @@
|
||||
|
||||
<body <?php neuf_body_class(); ?>>
|
||||
<div id="fb-root"></div>
|
||||
<script>(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/nb_NO/all.js#xfbml=1&appId=220213643760";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));</script>
|
||||
<script>(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/nb_NO/all.js#xfbml=1&appId=220213643760";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));</script>
|
||||
<div id="site-topbar"><a href="http://studentersamfundet.no/" title="Det Norske Studentersamfund" class="topbar-logo">Det Norske Studentersamfund</a></div>
|
||||
<header id="site-header">
|
||||
<div class="container_12" style="margin-left:auto;margin-right:auto">
|
||||
|
||||
<div id="access"><a href="#content">Gå direkte til innholdet</a></div>
|
||||
|
||||
<div class="site-title grid_6">
|
||||
<span><a href="<?php bloginfo('url') ?>/" title="<?php bloginfo('name') ?>" rel="home"><?php bloginfo('name') ?></a></span>
|
||||
<div class="site-title grid_7">
|
||||
<a href="<?php bloginfo('url') ?>/" title="<?php bloginfo('name') ?>" rel="home" class="betong"><?php bloginfo('name') ?></a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<?php get_template_part( 'menu' ); ?>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
@@ -19,7 +19,7 @@ $(document).ready( function() {
|
||||
* $url = "http://api.flickr.com/services/feeds/groups_pool.gne?format=json&id=" . $groupid;
|
||||
* $url = "http://api.flickr.com/services/feeds/groups_pool.gne?id=1292860@N21&lang=en-us&format=json";
|
||||
*/
|
||||
var flickr_feed_url = 'http://api.flickr.com/services/feeds/groups_pool.gne?format=json&id=1292860@N21&jsoncallback=?';
|
||||
var flickr_feed_url = 'http://api.flickr.com/services/feeds/photos_public.gne?id=48351899@N07&tags=betong&format=json&jsoncallback=?';
|
||||
$.getJSON(flickr_feed_url, function(result) {
|
||||
var html = "";
|
||||
|
||||
|
||||
@@ -10,14 +10,9 @@ function addTwitter() {
|
||||
jQuery.each(results, function(i) {
|
||||
if (count-- > 0) {
|
||||
var id = results[i].id_str;
|
||||
var time = results[i].created_at.slice(4) /* without weekday */
|
||||
/* relative tweet time */
|
||||
moment.lang('en'); // parse english month name
|
||||
var when = moment(time, "MMM DD HH:mm:ss Z YYYY");
|
||||
moment.lang('nb'); // format in norwegian locale
|
||||
var rel_when = when.fromNow();
|
||||
/* relative tweet time */
|
||||
/* Format tweet */
|
||||
jQuery('#twitter_feed').append('<p><span class="tweet_text">' + results[i].text + '</span><br /><a href="' + tweet_url + id + '">' + rel_when +'</a> • <a href="'+ reply_url + id +'">svar</a> • <a href="'+ retweet_url + id +'">retweet</a></p>');
|
||||
jQuery('#twitter_feed').append('<p><span class="tweet_text">' + results[i].text + '</span><br /><a href="' + tweet_url + id + '">*</a> • <a href="'+ reply_url + id +'">svar</a> • <a href="'+ retweet_url + id +'">retweet</a></p>');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -63,9 +63,6 @@ $(document).ready(function () {
|
||||
});
|
||||
programModel.eventTypes.push(eventType);
|
||||
});
|
||||
|
||||
|
||||
ko.applyBindings(programModel);
|
||||
$('#load-spinner').hide();
|
||||
$('#content').fadeIn();
|
||||
}
|
||||
@@ -75,28 +72,18 @@ $(document).ready(function () {
|
||||
this.title = rawEvent.title;
|
||||
this.author = rawEvent.author;
|
||||
this.content = rawEvent.content;
|
||||
this.url = rawEvent.url;
|
||||
this.uri = rawEvent.uri;
|
||||
this.startTime = new Date(parseInt(rawEvent.custom_fields._neuf_events_starttime[0]) * 1000);
|
||||
this.time = this.startTime.toString("HH:mm");
|
||||
this.endTime = new Date(parseInt(rawEvent.custom_fields._neuf_events_endtime[0]) * 1000);
|
||||
this.venue = rawEvent.custom_fields._neuf_events_venue[0];
|
||||
this.thumbnailURI = rawEvent.attachments.length > 0 ? rawEvent.attachments[0].images["two-column-thumb"].url : undefined;
|
||||
this.eventType = rawEvent.event;
|
||||
|
||||
this.visible = ko.computed(function () {
|
||||
var checkedEvents = programModel.checkedEvents();
|
||||
|
||||
if (checkedEvents.length === 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return _.contains(checkedEvents, this.eventType);
|
||||
}, this);
|
||||
}
|
||||
|
||||
var Week = function(id, days) {
|
||||
this.id = id;
|
||||
this.days = days;
|
||||
this.days = days
|
||||
}
|
||||
|
||||
var Day = function (id, dateAsHeader, events, programModel) {
|
||||
@@ -105,60 +92,33 @@ $(document).ready(function () {
|
||||
this.events = ko.observableArray(events);
|
||||
this.programModel = programModel;
|
||||
|
||||
this.hasNoDisplayableEvents = ko.computed(function () {
|
||||
var checkedEvents = this.programModel.checkedEvents();
|
||||
var that = this;
|
||||
this.filteredEvents = ko.computed(function () {
|
||||
var checkedEvents = that.programModel.checkedEvents();
|
||||
|
||||
if (checkedEvents.length == 0) {
|
||||
return this.events().length == 0;
|
||||
return that.events();
|
||||
}
|
||||
|
||||
var filtered = ko.utils.arrayFilter(this.events(), function (event) {
|
||||
|
||||
return ko.utils.arrayFilter(that.events(), function (event) {
|
||||
return _.contains(checkedEvents, event.eventType);
|
||||
});
|
||||
|
||||
return filtered.length == 0;
|
||||
}, this);
|
||||
|
||||
this.hideElement = function(elem) {
|
||||
if (elem.nodeType === 1) $(elem).slideUp(function() { $(elem).remove(); })
|
||||
}
|
||||
}
|
||||
|
||||
var EventType = function(name) {
|
||||
this.name = name;
|
||||
this.checked = ko.observable(false);
|
||||
this.icon = imagePath(name);
|
||||
this.id = "event_type_" + name;
|
||||
this.shouldDisplayAsChecked = ko.computed(function () {
|
||||
if (programModel.checkedEvents().length === 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return this.checked();
|
||||
}, this);
|
||||
}
|
||||
|
||||
function imagePath(eventTypeName) {
|
||||
var imageDir = "../wp/wp-content/themes/neuf-old-style/img/";
|
||||
var imageMap = {
|
||||
"default": imageDir+'tilesvisning.png',
|
||||
"debatt": imageDir+'ikon_debatt-50x50.png',
|
||||
"fest": imageDir+'ikon_fest-50x50.png',
|
||||
"film": imageDir+'ikon_film-50x50.png',
|
||||
"foredrag": imageDir+'ikon_foredrag-50x50.png',
|
||||
"konsert": imageDir+'ikon_konsert-50x50.png',
|
||||
"quiz": imageDir+'ikon_quiz-50x50.png',
|
||||
"teater": imageDir+'ikon_teater-50x50.png'
|
||||
}
|
||||
|
||||
if (_.has(imageMap, eventTypeName.toLowerCase())) {
|
||||
return imageMap[eventTypeName.toLowerCase()];
|
||||
}
|
||||
|
||||
return imageMap["default"];
|
||||
}
|
||||
|
||||
//Fill view model with empty days that will be filled as events are fetched from the server
|
||||
var programModel = {};
|
||||
|
||||
var days = {};
|
||||
|
||||
//Next five weeks
|
||||
var nextWeeks = ko.observableArray();
|
||||
|
||||
@@ -166,17 +126,11 @@ $(document).ready(function () {
|
||||
|
||||
programModel.events = ko.observableArray();
|
||||
programModel.checkedEvents = ko.observableArray();
|
||||
programModel.eventTypes = eventTypes;
|
||||
|
||||
if (Date.today().is().sunday()) {
|
||||
startDate = Date.today().add(1).day();
|
||||
}
|
||||
else {
|
||||
startDate = Date.today();
|
||||
}
|
||||
for (var i = 0; i < 5; i = i + 1) {
|
||||
var week = new Date(startDate).add(i).weeks();
|
||||
var week = Date.today().add(i).weeks();
|
||||
|
||||
//Make sure the week Date object is set to the monday of the current week
|
||||
if (!week.is().monday()) {
|
||||
week = week.previous().monday();
|
||||
}
|
||||
@@ -184,11 +138,11 @@ $(document).ready(function () {
|
||||
var weekDays = ko.observableArray();
|
||||
for (var j = 0; j < 6; j = j + 1) { //Ignore sundays
|
||||
var thisDay;
|
||||
if (new Date(startDate).is().monday()) {
|
||||
thisDay = new Date(startDate).add(i).weeks().add(j).days();
|
||||
if (Date.today().is().monday()) {
|
||||
thisDay = Date.today().add(i).weeks().add(j).days();
|
||||
}
|
||||
else {
|
||||
thisDay = new Date(startDate).previous().monday().add(i).weeks().add(j).days()
|
||||
thisDay = Date.today().previous().monday().add(i).weeks().add(j).days()
|
||||
}
|
||||
var dayId = dateToId(thisDay);
|
||||
var day = new Day(dayId, neuf.util.capitalize(thisDay.toString("dddd d/M")), [], programModel);
|
||||
@@ -200,18 +154,24 @@ $(document).ready(function () {
|
||||
}
|
||||
|
||||
programModel.weeks = nextWeeks;
|
||||
programModel.eventTypes = eventTypes;
|
||||
programModel.days = days;
|
||||
|
||||
ko.bindingHandlers.fadeElement = {
|
||||
init: function(element, valueAccessor) {
|
||||
ko.bindingHandlers.fadeVisible = {
|
||||
init: function (element, valueAccessor) {
|
||||
// Initially set the element to be instantly visible/hidden depending on the value
|
||||
console.log("init");
|
||||
var value = valueAccessor();
|
||||
$(element).toggle(ko.utils.unwrapObservable(value));
|
||||
$(element).toggle(ko.utils.unwrapObservable(value)); // Use "unwrapObservable" so we can handle values that may or may not be observable
|
||||
},
|
||||
update: function(element, valueAccessor) {
|
||||
update: function (element, valueAccessor) {
|
||||
// Whenever the value subsequently changes, slowly fade the element in or out
|
||||
var value = valueAccessor();
|
||||
ko.utils.unwrapObservable(value) ? $(element).slideDown() : $(element).slideUp();
|
||||
ko.utils.unwrapObservable(value) ? $(element).fadeIn() : $(element).fadeOut();
|
||||
console.log("teh");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
ko.applyBindings(programModel);
|
||||
getEvents(programModel);
|
||||
});
|
||||
@@ -40,7 +40,7 @@ function toggleActive(mode) {
|
||||
}
|
||||
|
||||
function showTiles() {
|
||||
tiles = $("#program-calendar");
|
||||
tiles = $("#program_tiles");
|
||||
list = $("#program_list");
|
||||
|
||||
tiles.removeClass("hidden");
|
||||
@@ -48,7 +48,7 @@ function showTiles() {
|
||||
}
|
||||
|
||||
function showList() {
|
||||
tiles = $("#program-calendar");
|
||||
tiles = $("#program_tiles");
|
||||
list = $("#program_list");
|
||||
|
||||
tiles.addClass("hidden");
|
||||
@@ -262,8 +262,8 @@ $(window).load(function(){
|
||||
}
|
||||
|
||||
/* Only now can we really show them*/
|
||||
$("#program-style-selector").removeClass('hidden');
|
||||
$("#program-calendar").removeAttr('style');
|
||||
/*$("#program-style-selector").removeClass('hidden');*/
|
||||
$("#program_tiles").removeAttr('style');
|
||||
$("#program_list").removeAttr('style');
|
||||
|
||||
$("#load-spinner").addClass('hidden');
|
||||
@@ -289,7 +289,7 @@ $(window).unload(function() {
|
||||
}
|
||||
|
||||
/* Find what view the user was using last (tiles/list): */
|
||||
var tiles = $("#program-calendar");
|
||||
var tiles = $("#program_tiles");
|
||||
var hasUsedList = tiles.hasClass('hidden');
|
||||
sessionStorage.setItem('useList', hasUsedList);
|
||||
sessionStorage.setItem('useTiles', !hasUsedList);
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
echo $homepage ? '<div class="entry-meta byline">Nettside: <a href="'.$homepage.'">'.$homepage.'</a></div>' : '';
|
||||
?>
|
||||
<?php else: ?>
|
||||
<div class="entry-meta byline"><span class="meta-prep meta-prep-author">av </span><span class="author vcard"><?php the_author_link(); ?></span>, <span class="entry-date"><?php the_date('l d. M Y'); ?> kl <?php the_time('G.i'); ?></span></div>
|
||||
<div class="entry-meta byline"><span class="meta-prep meta-prep-author">Av </span><span class="author vcard"><?php the_author_link(); ?></span><span class="meta-sep meta-sep-entry-date"> | </span><span class="meta-prep meta-prep-entry-date">Publisert: </span><span class="entry-date"><?php the_time('Y-m-d G:i l'); ?></span></div>
|
||||
<?php endif; ?>
|
||||
<div class="entry-content"><?php the_content(); ?></div> <!-- .entry-content -->
|
||||
|
||||
@@ -22,9 +22,6 @@
|
||||
<div class="grid_6">
|
||||
|
||||
<?php the_post_thumbnail( 'large' , array( 'style' => 'display:block;margin:auto;' ) ); ?>
|
||||
<?php if(has_post_thumbnail()) { ?>
|
||||
<div class="wp-post-image-caption"><?php echo get_post( get_post_thumbnail_id() )->post_excerpt; ?>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,29 +1,7 @@
|
||||
<nav id="menu" class="grid_6">
|
||||
<ul class="aapningstider">
|
||||
<li><a href="/aapningstider/">Åpningstider ▾</a>
|
||||
<ul>
|
||||
<li>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Man - ons</td>
|
||||
<td class="right">11.00 - 01.00</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tors - fre</td>
|
||||
<td class="right">11.00 - 03.00</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Lørdag</td>
|
||||
<td class="right">16.00 - 03.00</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul> <!-- .aapningstider -->
|
||||
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'main-menu', 'container' => 'false' ) ); ?>
|
||||
|
||||
<nav id="menu" class="grid_5">
|
||||
<ul class="social-icons">
|
||||
<li><a id="facebook-icon" href="http://facebook.com/betongoslo" target="_blank"><img src="<?php bloginfo( 'stylesheet_directory' ); ?>/img/facebook.png" /></a></li>
|
||||
<li><a id="twitter-icon" href="http://twitter.com/betongoslo" target="_blank"><img src="<?php bloginfo( 'stylesheet_directory' ); ?>/img/twitter.png" /></a></li>
|
||||
</ul>
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'main-menu', 'container' => 'false' ) ); ?>
|
||||
</nav> <!-- #menu -->
|
||||
@@ -2,118 +2,113 @@
|
||||
require( '../../../wp-load.php' );
|
||||
|
||||
$meta_query = array(
|
||||
'relation' => 'AND',
|
||||
array(
|
||||
'key' => '_neuf_events_starttime',
|
||||
'value' => date( 'U' , strtotime( '-8 hours' ) ),
|
||||
'compare' => '>',
|
||||
'type' => 'numeric'
|
||||
),
|
||||
array(
|
||||
'key' => '_neuf_events_promo_period',
|
||||
'value' => array( 'Month' , 'semester' ),
|
||||
'compare' => 'IN',
|
||||
)
|
||||
'key' => '_neuf_events_starttime',
|
||||
'value' => date( 'U' , strtotime( '-8 hours' ) ),
|
||||
'compare' => '>',
|
||||
'type' => 'numeric'
|
||||
);
|
||||
|
||||
$args = array(
|
||||
'post_type' => 'event',
|
||||
'meta_query' => $meta_query,
|
||||
'posts_per_page' => 4
|
||||
'post_type' => 'event',
|
||||
'meta_query' => array( $meta_query ),
|
||||
'posts_per_page' => 4
|
||||
);
|
||||
|
||||
$top_events = new WP_Query( $args );
|
||||
|
||||
$meta_query = array(
|
||||
'key' => '_neuf_events_starttime',
|
||||
'value' => array(date( 'U' , strtotime( '-8 hours' )), date( 'U' , strtotime( '+1 week' ))),
|
||||
'type' => 'numeric',
|
||||
'compare' => 'BETWEEN'
|
||||
);
|
||||
|
||||
$args = array(
|
||||
'post_type' => 'event',
|
||||
'meta_query' => array($meta_query),
|
||||
'posts_per_page' => 150,
|
||||
'orderby' => 'meta_value_num',
|
||||
'meta_key' => '_neuf_events_starttime',
|
||||
'order' => 'ASC'
|
||||
);
|
||||
|
||||
$events = new WP_Query( $args );
|
||||
|
||||
$news = new WP_Query( 'type=post' );
|
||||
/* */
|
||||
define('SITE_ROOT', 'http://studentersamfunnet.no/');
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://ww=
|
||||
w.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="no" lang="no">
|
||||
|
||||
<head>
|
||||
<title>Det Norske Studentersamfund - Nyhetsbrev</title>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||
<style type="text/css">
|
||||
</style>
|
||||
<title>Ukesprogram for Det Norske Studentersamfund</title>
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
<link href="<?php echo SITE_ROOT;?>css/weekprogrammail.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body rightmargin="0" topmargin="0" bottommargin="0" style="margin:0;" bgcolor="#ffffff" leftmargin="0">
|
||||
<table width="100%" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
|
||||
<tr>
|
||||
<td width="50%">
|
||||
<table width="640" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
|
||||
<tr>
|
||||
<td style="background-color:#e99835;"><img src="<?php bloginfo('template_directory'); ?>/img/logo-web.png" alt="Det Norske Studentersamfund" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php if ($news->have_posts()) : $news->the_post(); ?>
|
||||
<td id="post-<?php the_ID(); ?>" <?php neuf_post_class(); ?>>
|
||||
<a class="permalink blocklink" href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
|
||||
<b><?php the_title(); ?></b><br />
|
||||
<?php the_date(); ?>
|
||||
<?php the_excerpt(); ?>
|
||||
<?php the_post_thumbnail( 'newsletter-wide' ); ?>
|
||||
</a>
|
||||
</td>
|
||||
<?php endif; // $news->have_posts() ?>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="640" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
|
||||
<tr>
|
||||
<?php while ($top_events->have_posts()) : $top_events->the_post(); ?>
|
||||
<td width="33%" id="post-<?php the_ID(); ?>" <?php neuf_post_class(); ?>>
|
||||
<a class="permalink blocklink" href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
|
||||
<?php the_post_thumbnail('two-column-thumb'); ?><br />
|
||||
<b><?php the_title(); ?></b>
|
||||
</a>
|
||||
</td>
|
||||
<?php endwhile; // $top_events->have_posts() ?>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="640" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
|
||||
<tr>
|
||||
<td colspan="6"><h2>Program denne uken</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php // TODO dynamic <b>mandag</b>, <b>tirsdag</b> ?>
|
||||
<td colspan="6"><h3>mandag</h3></td>
|
||||
</tr>
|
||||
<?php while ($events->have_posts()) : $events->the_post(); ?>
|
||||
<tr id="post-<?php the_ID(); ?>" <?php neuf_post_class(); ?>>
|
||||
<td>20.00</td>
|
||||
<td>
|
||||
<a class="permalink blocklink" href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
|
||||
</td>
|
||||
<td>60/60</td>
|
||||
<td>Konsert</td>
|
||||
<td>Betong</td>
|
||||
<td><a href="#">Kjøp billett</a></td>
|
||||
</tr>
|
||||
<?php endwhile; // $events->have_posts() ?>
|
||||
</table>
|
||||
<table width="640" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
|
||||
<tr style="text-align:center;">
|
||||
<td><img src="<?php bloginfo('template_directory'); ?>/img/sponsors/logo_black_akademika.png" alt="Akademika" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<body style="font-family: verdana, sans-serif; font-size: 11px; border: none; letter-spacing: 1px; border: none;">
|
||||
<div id="all" style="width: 600px; border: none; margin: 0 auto;">
|
||||
|
||||
<?php
|
||||
/* TODO : add edit mode with js */
|
||||
?>
|
||||
<p>
|
||||
<img src="<?php echo SITE_ROOT;?>bilder/bannermail.png" alt="Det Norske Studentersamfund" border="0" />
|
||||
</p>
|
||||
|
||||
<?php
|
||||
/* three top stories */
|
||||
?>
|
||||
<table class="top">
|
||||
<tr style="background: #fff;">
|
||||
<?php $counter = 0;
|
||||
while ($events->have_posts() && $counter < 3) : $events->the_post(); ?>
|
||||
|
||||
<td id="<?php the_ID(); ?>" style="vertical-align: center;">
|
||||
<div>
|
||||
<h2 style="margin: 0px 3px; font-size: 14px;"><?php //echo $gig->name; ?></h2>
|
||||
<p style="margin: 0px 3px; font-style: italic;">
|
||||
<?php //echo strftime("%A %d. %B, %H:%M", strtotime($gig->time)); ?>
|
||||
</p>
|
||||
</div>
|
||||
<div style="margin-top: 5px; text-align: center; vertical-align: center; heigth: 250px;">
|
||||
<?php //if ($gig->picture): ?>
|
||||
<img src="<?php echo SITE_ROOT;?>imageResize.php?pic=bilder/program/DELETEME<?php //echo $gig->picture;?>&maxwidth=170" alt="" />
|
||||
<?php //endif; ?>
|
||||
</div>
|
||||
<div>
|
||||
<p style="margin: 5px 3px 0;">
|
||||
<?php //echo $gig->intro; ?>
|
||||
</p>
|
||||
<p style="margin: 5px 3px;">
|
||||
<a href="<?php the_permalink(); ?>">Les mer»</a>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<?php $counter++; ?>
|
||||
<?php endwhile; ?>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="clear"> </div>
|
||||
<div id="middle-section">
|
||||
<p id="middle-text">
|
||||
<?php //echo $prog->pretext; ?>
|
||||
</p>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div id="concert-list">
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
<?php
|
||||
/* TODO snipped week table with
|
||||
- day as header
|
||||
- 3 columns:
|
||||
- event picture
|
||||
- title with description and read more link.
|
||||
- event type, venue, time, price
|
||||
*/
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="end-section">
|
||||
<br />
|
||||
<p id="end-text"><?php //echo $prog->posttext; ?></p>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div id="sponsors" style="text-align: center; border-top: 1px solid black;">
|
||||
<p>Vår samarbeidspartner:</p>
|
||||
<a href="http://www.akademika.no"><img style="margin: 12px; border: none;" src="<?php echo SITE_ROOT; ?>bilder/sponsorer/akademika.png" alt="Akademika" /></a>
|
||||
</div>
|
||||
<div id="about" style="text-align: center; border-top: 1px solid black;">
|
||||
<p>Det Norske Studentersamfund</p>
|
||||
<p><a href="<?php echo SITE_ROOT; ?>">www.studentersamfundet.no</a></p>
|
||||
<p>Chateau Neuf, Slemdalsveien 15, 0369 Oslo, tlf: 22 84 45 11</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
get_header();
|
||||
wp_enqueue_script('program');
|
||||
wp_enqueue_script('eventProgram');
|
||||
?>
|
||||
|
||||
<!-- Category chooser: -->
|
||||
@@ -20,33 +19,24 @@ wp_enqueue_script('eventProgram');
|
||||
.table-image {
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
.event:not(:first-child) > img {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.event-program-6days {
|
||||
padding-top:15px;
|
||||
border-top:1px solid #ff9e29;
|
||||
}
|
||||
|
||||
.float-right {
|
||||
float: right;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div align="center" id="load-spinner">
|
||||
<img style="margin: 10px 0px 10px 0px;"align="center" src="../wp/wp-content/themes/neuf-old-style/img/ajax-loader.gif">
|
||||
<img style="margin: 10px 0px 10px 0px;"align="center" src="<?php bloginfo('stylesheet_directory'); ?>/img/ajax-loader.gif">
|
||||
</div>
|
||||
|
||||
<section id="content" class="container_12 hidden" role="main">
|
||||
<div class="grid_12">
|
||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
||||
|
||||
<?php if( have_posts() ) : while( have_posts() ) : the_post(); ?>
|
||||
<div><?php the_content(); ?></div>
|
||||
<?php endwhile; endif; ?>
|
||||
</div>
|
||||
|
||||
<a id='image-dir' style="display:none;" href="<?php bloginfo('template_directory'); ?>/img/">You will hopefully not see this.</a>
|
||||
<div id="program-style-selector" class="grid_2 push_10">
|
||||
<form id="program-category-chooser" class="grid_10"></form>
|
||||
<div id="program-style-selector" class="grid_2 hidden">
|
||||
<div class="program-style-selector-item">
|
||||
<img class="view-mode tiles" src="<?php bloginfo('template_directory');?>/img/tilesvisning.png" onclick='showTiles();toggleActive("tiles");' title="Vis program i et rutenett"/>
|
||||
<span>Rutenett</span>
|
||||
@@ -56,41 +46,6 @@ wp_enqueue_script('eventProgram');
|
||||
<span>Liste</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="program-calendar" style="display:none;">
|
||||
<form class="event-picker grid_10 pull_2" data-bind="foreach: eventTypes">
|
||||
<div class="category-chooser-item">
|
||||
<input class="program-category-chooser hidden" type="checkbox" data-bind="value: name, checked: checked, attr: { id: id }">
|
||||
<label data-bind="attr: { for: id }">
|
||||
<img class="category-chooser-item-img"
|
||||
data-bind="attr: { src: icon, id: id + '_img' }, css: { checked: shouldDisplayAsChecked }">
|
||||
<span class="category-chooser-item-label" data-bind="text: name"></span>
|
||||
</label>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<table class="grid_12">
|
||||
<tbody data-bind="foreach: weeks">
|
||||
<tr class="event-program-6days" data-bind="foreach: days">
|
||||
<td class="cell day grid_2">
|
||||
<div>
|
||||
<h2 data-bind="text: dateAsHeader"></h2>
|
||||
<div data-bind="foreach: events">
|
||||
<div class="event" data-bind="fadeElement: visible">
|
||||
<img data-bind="attr: { src: thumbnailURI }">
|
||||
<span data-bind="text: time"></span>
|
||||
<a data-bind="attr: { href: url, title: title }, text: title"></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div data-bind="fadeElement: hasNoDisplayableEvents">
|
||||
<img data-bind="attr: { src: '../wp/wp-content/themes/neuf-old-style/img/pig.png' }" class="table-image">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
/* Events with starttime including 8 hours up until 30 days from now. */
|
||||
//$meta_query = array(
|
||||
@@ -134,7 +89,6 @@ if ( $events->have_posts() ) :
|
||||
/* All posts */
|
||||
?>
|
||||
<div id="program_tiles" class="grid_12" style="display:none;">
|
||||
|
||||
<div class="program-6days">
|
||||
<?php while ( $events->have_posts() ) : $events->the_post();
|
||||
/* set previous day */
|
||||
@@ -195,7 +149,7 @@ if ( $events->have_posts() ) :
|
||||
the_post_thumbnail ('two-column-thumb' );
|
||||
}
|
||||
?>
|
||||
<p <?php echo $event_type_class;?>><?php echo date_i18n( 'H.i:' , get_post_meta( $post->ID , '_neuf_events_starttime' , true ) ); ?> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" <?php neuf_post_class(); ?>><?php echo the_title(); ?></a></p>
|
||||
<p <?php echo $event_type_class;?>><?php echo date_i18n( 'H.i:' , get_post_meta( $post->ID , '_neuf_events_starttime' , true ) ); ?> <a href="<?php the_permalink(); ?>" title="Permanent lenke til <?php the_title(); ?>" <?php neuf_post_class(); ?>><?php echo the_title(); ?></a></p>
|
||||
<?php
|
||||
$first_event = false;
|
||||
continue;
|
||||
@@ -220,7 +174,7 @@ if ( $events->have_posts() ) :
|
||||
} ?>
|
||||
<?php } else { ?>
|
||||
<?php } ?>
|
||||
<p <?php echo $event_type_class;?>><?php echo date_i18n( 'H.i:' , get_post_meta( $post->ID , '_neuf_events_starttime' , true ) ); ?> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" <?php neuf_post_class(); ?>><?php echo the_title(); ?></a></p>
|
||||
<p <?php echo $event_type_class;?>><?php echo date_i18n( 'H.i:' , get_post_meta( $post->ID , '_neuf_events_starttime' , true ) ); ?> <a href="<?php the_permalink(); ?>" title="Permanent lenke til <?php the_title(); ?>" <?php neuf_post_class(); ?>><?php echo the_title(); ?></a></p>
|
||||
<?php
|
||||
$first_week = false;
|
||||
?>
|
||||
@@ -232,9 +186,9 @@ if ( $events->have_posts() ) :
|
||||
<?php
|
||||
$meta_query = array(
|
||||
'key' => '_neuf_events_starttime',
|
||||
'value' => array(date( 'U' , strtotime( '-8 hours' )), date( 'U' , strtotime( '+1 year' ))),
|
||||
'value' => date( 'U' , strtotime( '-8 hours' )), // start
|
||||
'type' => 'numeric',
|
||||
'compare' => 'BETWEEN'
|
||||
'compare' => '>'
|
||||
);
|
||||
|
||||
$args = array(
|
||||
@@ -256,74 +210,70 @@ if ( $events->have_posts() ) :
|
||||
/* All posts */
|
||||
|
||||
?>
|
||||
<div id="program_list" class="program" style="display:none;">
|
||||
<form id="program-category-chooser" class="grid_10 pull_2"></form>
|
||||
<div id="program_list" class="program grid_12" style="display:none;">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<?php while ( $events->have_posts() ) : $events->the_post();
|
||||
$date = get_post_meta( $post->ID , '_neuf_events_starttime' , true );
|
||||
|
||||
<div class="grid_12">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<?php while ( $events->have_posts() ) : $events->the_post();
|
||||
$date = get_post_meta( $post->ID , '_neuf_events_starttime' , true );
|
||||
$previous_month = $current_month;
|
||||
$current_month = date_i18n( 'F' , $date);
|
||||
$newmonth = $previous_month != $current_month;
|
||||
|
||||
$previous_month = $current_month;
|
||||
$current_month = date_i18n( 'F' , $date);
|
||||
$newmonth = $previous_month != $current_month;
|
||||
$datel = date_i18n( 'l j/n' , $date);
|
||||
($price = neuf_get_price( $post )) ? : $price = '-';
|
||||
$venue = get_post_meta( $post->ID , '_neuf_events_venue' , true );
|
||||
$ticket = get_post_meta( $post->ID , '_neuf_events_bs_url' , true );
|
||||
$ticket = $ticket ? '<a href="'.$ticket.'">Kjøp billett</a>' : '';
|
||||
/* event type class */
|
||||
$event_array = get_the_terms( $post->ID , 'event_type' );
|
||||
$event_types = array();
|
||||
$event_types_real = array();
|
||||
foreach ( $event_array as $event_type ) {
|
||||
if ($event_type->parent === "0") {
|
||||
$event_types[] = $event_type->name;
|
||||
} else {
|
||||
$id = (int)$event_type->parent;
|
||||
$parent = get_term( $id, 'event_type' );
|
||||
$event_types[] = $parent->name;
|
||||
}
|
||||
$event_types_real[] = $event_type->name;
|
||||
}
|
||||
$event_type_real = $event_types_real ? "".implode(", ", $event_types_real) : "";
|
||||
$event_type_class = $event_types ? "class=\"".implode(" ", $event_types)."\"" : "";
|
||||
|
||||
/* set current day */
|
||||
$previous_day = $current_day;
|
||||
$current_day = date_i18n( 'Y-m-d' , $date);
|
||||
$newday = $previous_day != $current_day;
|
||||
|
||||
$datel = date_i18n( 'l j/n' , $date);
|
||||
($price = neuf_get_price( $post )) ? : $price = '-';
|
||||
$venue = get_post_meta( $post->ID , '_neuf_events_venue' , true );
|
||||
$ticket = get_post_meta( $post->ID , '_neuf_events_bs_url' , true );
|
||||
$ticket = $ticket ? '<a href="'.$ticket.'">Kjøp billett</a>' : '';
|
||||
/* event type class */
|
||||
$event_array = get_the_terms( $post->ID , 'event_type' );
|
||||
$event_types = array();
|
||||
$event_types_real = array();
|
||||
foreach ( $event_array as $event_type ) {
|
||||
if ($event_type->parent === "0") {
|
||||
$event_types[] = $event_type->name;
|
||||
} else {
|
||||
$id = (int)$event_type->parent;
|
||||
$parent = get_term( $id, 'event_type' );
|
||||
$event_types[] = $parent->name;
|
||||
}
|
||||
$event_types_real[] = $event_type->name;
|
||||
}
|
||||
$event_type_real = $event_types_real ? "".implode(", ", $event_types_real) : "";
|
||||
$event_type_class = $event_types ? "class=\"".implode(" ", $event_types)."\"" : "";
|
||||
/* everything is everything is not everything if everything is nothing */
|
||||
$alt = $alt == " alt" ? "" : " alt";
|
||||
|
||||
/* set current day */
|
||||
$previous_day = $current_day;
|
||||
$current_day = date_i18n( 'Y-m-d' , $date);
|
||||
$newday = $previous_day != $current_day;
|
||||
|
||||
/* everything is everything is not everything if everything is nothing */
|
||||
$alt = $alt == " alt" ? "" : " alt";
|
||||
|
||||
if($newmonth) { ?>
|
||||
<tr class="month">
|
||||
<td colspan="5"><h3><?php echo $current_month; ?></h3></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="date">Dato</th>
|
||||
<th>Arrangement</th>
|
||||
<th>CC</th>
|
||||
<th>Type</th>
|
||||
<th>Sted</th>
|
||||
<th>Billett</th>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr class="day<?php echo $alt; ?>">
|
||||
<td><?php echo $datel; ?></td>
|
||||
<td><a href="<?php the_permalink(); ?>" title="Permanent lenke til <?php the_title(); ?>"><?php echo the_title(); ?></a></td>
|
||||
<td><?php echo $price; ?></td>
|
||||
<td <?php echo $event_type_class; ?>><?php echo $event_type_real; ?></td>
|
||||
<td><?php echo $venue; ?></td>
|
||||
<td><?php echo $ticket; ?></td>
|
||||
</tr>
|
||||
<?php endwhile; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
if($newmonth) { ?>
|
||||
<tr class="month">
|
||||
<td colspan="5"><h3><?php echo $current_month; ?></h3></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="date">Dato</th>
|
||||
<th>Arrangement</th>
|
||||
<th>CC</th>
|
||||
<th>Type</th>
|
||||
<th>Sted</th>
|
||||
<th>Billett</th>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr class="day<?php echo $alt; ?>">
|
||||
<td><?php echo $datel; ?></td>
|
||||
<td><a href="<?php the_permalink(); ?>" title="Permanent lenke til <?php the_title(); ?>"><?php echo the_title(); ?></a></td>
|
||||
<td><?php echo $price; ?></td>
|
||||
<td <?php echo $event_type_class; ?>><?php echo $event_type_real; ?></td>
|
||||
<td><?php echo $venue; ?></td>
|
||||
<td><?php echo $ticket; ?></td>
|
||||
</tr>
|
||||
<?php endwhile; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -62,13 +62,13 @@ if ( $events->have_posts() ) :
|
||||
|
||||
<?php
|
||||
if( $newday && has_post_thumbnail() ) { ?>
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail( 'four-column-thumb' ); ?></a>
|
||||
<a href="<?php the_permalink(); ?>" title="permanent lenke til <?php the_title(); ?>"><?php the_post_thumbnail( 'four-column-thumb' ); ?></a>
|
||||
<?php
|
||||
$newday = false;
|
||||
}
|
||||
} ?>
|
||||
|
||||
<p><?php echo date_i18n( 'H.i:' , get_post_meta( $post->ID , '_neuf_events_starttime' , true ) ); ?> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php echo the_title(); ?></a></p>
|
||||
<p><?php echo date_i18n( 'H.i:' , get_post_meta( $post->ID , '_neuf_events_starttime' , true ) ); ?> <a href="<?php the_permalink(); ?>" title="permanent lenke til <?php the_title(); ?>"><?php echo the_title(); ?></a></p>
|
||||
|
||||
|
||||
<?php endwhile; // $events->have_posts(); ?>
|
||||
|
||||
@@ -67,7 +67,7 @@ if ( $events->have_posts() ) :
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<p><?php echo date_i18n( 'H.i:' , get_post_meta( $post->ID , '_neuf_events_starttime' , true ) ); ?> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php echo the_title(); ?></a></p>
|
||||
<p><?php echo date_i18n( 'H.i:' , get_post_meta( $post->ID , '_neuf_events_starttime' , true ) ); ?> <a href="<?php the_permalink(); ?>" title="Permanent lenke til <?php the_title(); ?>"><?php echo the_title(); ?></a></p>
|
||||
|
||||
|
||||
<?php endwhile; // $events->have_posts(); ?>
|
||||
|
||||
@@ -5,10 +5,11 @@
|
||||
<?php if( have_posts() ) : while( have_posts() ) : the_post(); ?>
|
||||
|
||||
<article <?php neuf_post_class(); ?>>
|
||||
<div class="grid_5">
|
||||
|
||||
<div class="grid_6">
|
||||
|
||||
<h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
|
||||
<div class="entry-byline">Av <?php the_author_posts_link(); ?> | Publisert <?php the_date(); ?></div>
|
||||
|
||||
<div class="entry-content"><?php the_excerpt(); ?></div> <!-- .entry-content -->
|
||||
|
||||
</div> <!-- .grid_6 -->
|
||||
@@ -33,7 +34,6 @@
|
||||
<?php } // end if attachments ?>
|
||||
|
||||
</article> <!-- .post -->
|
||||
<hr />
|
||||
|
||||
<?php endwhile; endif; ?>
|
||||
|
||||
|
||||
@@ -6,6 +6,11 @@
|
||||
</div> <!-- #ostv-latest -->
|
||||
|
||||
<div class="grid_4 omega">
|
||||
<div id="nova-player">
|
||||
<h2><a href="http://radionova.no/">Radio Nova</a></h2>
|
||||
<a id="nova-player-link" href="http://radionova.no/lytt!" onclick="window.open('http://spiller.radionova.no/lytt','novastream','height=460,width=460'); return false;">Lytt til Radio Nova (FM 99,3)</a>
|
||||
</div>
|
||||
<hr>
|
||||
<div id="twitter_feed_title">
|
||||
<a href="https://twitter.com/#!/dns1813"><img src="<?php bloginfo('template_directory'); ?>/img/bird_twitter.png"></img></a>
|
||||
<div id="twitter_feed_title_name">
|
||||
@@ -14,10 +19,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="twitter_feed"></div>
|
||||
<div id="nova-player">
|
||||
<h2><a href="http://radionova.no/">Radio Nova</a></h2>
|
||||
<a id="nova-player-link" href="http://radionova.no/lytt!" onclick="window.open('http://spiller.radionova.no/lytt','novastream','height=460,width=460'); return false;" title="Lytt til Radio Nova (FM 99,3)">Lytt til Radio Nova (FM 99,3)</a>
|
||||
</div>
|
||||
</div> <!-- .grid_4 -->
|
||||
|
||||
</div> <!-- #student-media -->
|
||||
@@ -4,7 +4,7 @@ Theme URI: http://wordpress.org/extend/themes/twentyeleven
|
||||
Author: Nikolai Kristiansen
|
||||
Author URI: http://edb.neuf.no/
|
||||
Description: Teater Neuf 2012
|
||||
Version: 0.1
|
||||
Version: 0.2
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: teaterneuf
|
||||
|
||||
Reference in new issue
Block a user