Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 8 files changed
  • 0 comments
  • 1 contributor
26 filters.py
@@ -23,14 +23,29 @@ def editline(page, i, elem, cls=None):
23 23 elem, (' ' + cls if cls else ''), i, page.lines[i], elem
24 24 )
25 25
26   -def editposttitle(page, postid, elem):
  26 +def editposttitle(post, elem):
27 27 return '<%s class="editable line" id="_posttitle_%i">%s</%s>' %(
28   - elem, postid, page.get_blogpost(postid).title, elem
  28 + elem, post.key.id(), post.title, elem
29 29 )
30 30
31   -def editposttext(page, postid, elem):
  31 +def editpostauthor(post, elem='span'):
  32 + return '<%s class="editable line" id="_postauthor_%i">%s</%s>' %(
  33 + elem, post.key.id(), post.author, elem
  34 + )
  35 +
  36 +def editpostdate(post, elem='span'):
  37 + return '<%s class="editable date" id="_postdate_%i">%s</%s>' %(
  38 + elem, post.key.id(), fdate(post.date), elem
  39 + )
  40 +
  41 +def editpostdraft(post):
  42 + return '<input class="checkbox" id="_postdraft_%i" type="checkbox" %s> draft' %(
  43 + post.key.id(), 'checked' if post.draft else ''
  44 + )
  45 +
  46 +def editposttext(post, elem):
32 47 return '<%s class="editable text" id="_posttext_%i">%s</%s>' %(
33   - elem, postid, page.get_blogpost(postid).text, elem
  48 + elem, post.key.id(), post.text, elem
34 49 )
35 50
36 51 def linkmap(link):
@@ -48,6 +63,9 @@ def fdate(d):
48 63 'date',
49 64 'editline',
50 65 'editlink',
  66 + 'editpostauthor',
  67 + 'editpostdate',
  68 + 'editpostdraft',
51 69 'editposttext',
52 70 'editposttitle',
53 71 'edittext',
18 main.py
... ... @@ -1,5 +1,6 @@
1 1 # Copyright (c) 2011 Matt Jibson <matt.jibson@gmail.com>
2 2
  3 +import datetime
3 4 import json
4 5 import logging
5 6 import re
@@ -473,16 +474,31 @@ def callback():
473 474 if p.type == models.PAGE_TYPE_BLOG:
474 475 # what if we have multiple puts on the same entity here? race condition?
475 476 for k in self.request.POST.keys():
  477 + value = None
  478 +
476 479 if k.startswith('_posttitle_'):
477 480 name = 'title'
478 481 elif k.startswith('_posttext_'):
479 482 name = 'text'
  483 + elif k.startswith('_postauthor_'):
  484 + name = 'author'
  485 + elif k.startswith('_postdate_'):
  486 + name = 'date'
  487 + d = self.request.POST[k].split('-')
  488 + value = datetime.datetime(int(d[0]), int(d[1]) + 1, int(d[2]))
  489 + elif k.startswith('_postdraft_'):
  490 + name = 'draft'
  491 + value = self.request.POST[k] == 'true'
480 492 else:
481 493 continue
482 494
483 495 bpid = long(k.rpartition('_')[2])
484 496 bp = models.BlogPost.get_by_id(bpid, parent=p.key)
485   - setattr(bp, name, self.request.POST[k])
  497 +
  498 + if value is None:
  499 + value = self.request.POST[k]
  500 +
  501 + setattr(bp, name, value)
486 502 bp.put_async()
487 503
488 504 if pc:
46 static/js/edit.js
@@ -252,6 +252,44 @@ $(function() {
252 252 return false;
253 253 });
254 254
  255 + // date
  256 +
  257 + $(".editable.date").each(function() {
  258 + var i = this.id + "_datepicker";
  259 + var d = this.id + "_div";
  260 + var h = '<div class="modal" id="' + d + '">' +
  261 + '<div type="text" id="' + i + '"></div>' +
  262 + '<p><a class="close date" href="#">save</a> <a href="#" class="cancel">cancel</a></p></div>';
  263 + $(this).after(h);
  264 + $("#" + i).datepicker({
  265 + dateFormat: 'MM dd, yy',
  266 + defaultDate: $.tnm.postdate
  267 + });
  268 + });
  269 +
  270 + $(document).on("click", ".close.date", function() {
  271 + var i = $(this).parents("div").first().prev();
  272 + var t = $("#" + i[0].id + "_datepicker");
  273 +
  274 + if(t[0].value)
  275 + {
  276 + i.text(t[0].value);
  277 + var d = t.datepicker('getDate');
  278 + savemap[i[0].id] = d.getFullYear() + "-" + d.getMonth() + "-" + d.getDate();
  279 + $(this).parents(".modal").hide();
  280 + save();
  281 + }
  282 +
  283 + return false;
  284 + });
  285 +
  286 + // checkbox
  287 +
  288 + $(document).on("click", ".checkbox", function() {
  289 + savemap[this.id] = this.checked;
  290 + save();
  291 + });
  292 +
255 293 // social
256 294
257 295 $(".editable.social").each(function() {
@@ -462,16 +500,16 @@ $(function() {
462 500 $("#imgcontainer").remove();
463 501 }
464 502
465   - $(document).on("click", ".editable", function() {
  503 + $(document).on("click", ".editable", function(event) {
466 504 $('#' + this.id + '_div').show();
467 505 $("." + this.id + "_focus").focus();
468   - return false;
  506 + event.preventDefault();
469 507 });
470 508
471   - $(document).on("click", ".cancel", function() {
  509 + $(document).on("click", ".cancel", function(event) {
472 510 $(this).parents(".modal").hide();
473 511 stopImageEdit();
474   - return false;
  512 + event.preventDefault();
475 513 });
476 514
477 515 $(document).keyup(function(e){
2  static/js/edit.min.js
... ... @@ -1 +1 @@
1   -function validURL(a){return a.match("^[-A-Za-z0-9._~:/?#@!$&'()*+,;=% \\[\\]]+$")?!0:!1}function checkURL(a){return validURL(a)?!0:(alert("Invalid URL: "+a),!1)}function linkCheck(a,b){return $.tnm.linkmap[b]==a?"checked":""}function save(){if(!$.isEmptyObject(savemap)){$("#save").text("saving...");var a=savemap;backup=a,savemap={},$.post($.tnm.saveurl,a,function(a,b,c){var d=jQuery.parseJSON(a);d.errors.length>0?alert(d.errors):$.each(d,function(a,b){var c=!1;$.each(b,function(b,d){$.tnm.imageurls[a][b]=d,b=="url"&&($("#"+a)[0].src=d),b=="orig"&&(c=!0)}),c&&($("#containerimg").css("background-image","url("+$.tnm.imageurls[a].orig+")"),loadimg(a),resize(0,{value:0}))}),$("#save").html("&nbsp;"),$("#saved").show().fadeOut(1e3)})}else $("#saved").show().fadeOut(1e3)}function loadimg(a){var b=$.tnm.imageurls[a];b.wscale=b.portw/b.basew,b.hscale=b.porth/b.baseh,b.min_scale=Math.max(b.wscale,b.hscale),b.max_scale=Math.max(b.min_scale*3),b.s=Math.max(b.min_scale,b.s),b.s=Math.min(b.max_scale,b.s),$("#imgslider").slider("destroy"),$("#imgslider").slider({orientation:"vertical",min:b.min_scale,max:b.max_scale,step:(b.max_scale-b.min_scale)/100,slide:resize,value:b.s}),$("#containerimg").css("left",b.x),$("#containerimg").css("top",b.y)}function resize(a,b){var c=$.tnm.imageurls[cur_img],d=c.wscale,e=c.hscale,f=c.min_scale,g=c.max_scale,h=Math.max(c.min_scale,b.value);h=Math.min(c.max_scale,h);var i=c.basew*h,j=c.baseh*h,k=c.portw,l=c.porth,m=c.basetop,n=c.baseleft,o=.8;$("#containerimg").css({height:j,width:i}),$("#leftcontainer").css({width:i-k,height:l,top:j-l}),$("#rightcontainer").css({width:i-k,height:l,top:j-l}),$("#topcontainer").css({width:2*i-k,height:j-l}),$("#bottomcontainer").css({width:2*i-k,height:j-l}),$("#imgslider").css({top:j-l*(o+1)/2,left:i-20,height:l*o}),$("#imgcontainer").css({width:2*i-k,height:2*j-l,top:m+l-j,left:n+k-i});var p=$("#containerimg").position();p.left+i>2*i-k&&$("#containerimg").css({left:i-k}),p.top+j>2*j-l&&$("#containerimg").css({top:j-l}),c.x=p.left,c.y=p.top,c.s=h}var savemap={},cur_img;$(function(){function b(){$("#imgcontainer").remove()}var a;$("body").prepend('<div class="toolbar"><span id="save">&nbsp;</span> <span id="saved" style="display: none">saved</span> <span id="error" style="display: none"><b>error</b></span> <a id="view" href="'+$.tnm.viewurl+'">view</a>'+' <a id="publish" href="#">publish</a>'+' <a href="'+$.tnm.publishedurl+'">published</a>'+' <span style="border: 1px solid black">'+'domain: <input type="text" id="domain" value="'+$.tnm.domain+'">'+' <a id="save_domain">save</a>'+"</span>"+' <span id="publishing" style="display: none">publishing...</span>'+' <span id="layouts" style="border: 1px solid black">page layout:'+$.tnm.layouts+"</span>"+' <a id="new_page" href="#">new page</a>'+'<div class="modal" id="new_page_modal"><form method="POST" action="'+$.tnm.newpageurl+'">'+'title: <input type="text" name="title">'+'type: <select name="type">'+$.tnm.newpagetypes+"</select>"+'<input type="submit" value="create">'+"</form>"+'<br><form method="POST" action="'+$.tnm.archivepageurl+'">'+'archived: <select name="pageid">'+$.tnm.archivepages+"</select>"+'<input type="submit" value="unarchive">'+"</form>"+'<br><a href="#" class="cancel">cancel</a>'+"</div>"+' <a id="unpublish_page" href="#">archive page</a>'+'<div class="modal" id="unpublish_page_modal">'+"Sure you want to archive this page? It will be removed from public view, but maintained in your archive."+'<br><a href="'+$.tnm.unpublishpageurl+'">yes, archive</a>'+' <a href="#" class="cancel">cancel</a>'+"</div>"+"</div>"),$("#save").ajaxError(function(){$(this).text("save"),$("#error").show().fadeOut(4e3),$.extend(savemap,a)}),$(document).on("click","#publish",function(){return $.ajax({url:$.tnm.publishurl}),$("#publishing").show().fadeOut(4e3),!1}),$(document).on("click","#new_page",function(){return $("#new_page_modal").show(),!1}),$(document).on("click","#unpublish_page",function(){return $("#unpublish_page_modal").show(),!1}),$(document).on("click","#save_domain",function(){savemap._domain=$("#domain").val(),save()}),$("#menu").sortable({items:".menu_item",stop:function(a,b){savemap.pos=$(this).sortable("toArray").join(","),save()}}),$(".editable.text").hallo({plugins:{halloformat:{},hallolink:{}}}),$(document).on("hallodeactivated",".editable.text",function(){savemap[this.id]=$(this).html(),save()}),$(".editable.line").each(function(){var a=this.id+"_text",b=this.id+"_focus",c=this.id+"_div",d='<div class="modal" id="'+c+'">'+'<p><label for="text">Text</label>'+'<input type="text" size="30" class="'+b+'" name="'+a+'" id="'+a+'" value="'+$(this).text()+'" /></p>'+'<p><a class="close line" href="#">save</a> <a href="#" class="cancel">cancel</a></p></div>';$(this).after(d)}),$(document).on("click",".close.line",function(){var a=$(this).parents("div").first().prev(),b=$("#"+a[0].id+"_text");return b[0].value&&(a.text(b[0].value),savemap[a[0].id]=a.html(),$(this).parents(".modal").hide(),save()),!1}),$(".editable.social").each(function(){var a="social",b="social_div",c='<div class="modal" style="color: black" id="'+b+'">'+'<p>Facebook: <input type="text" size="45" id="'+a+'_facebook" value="'+$.tnm.socialmap.facebook+'" /></p>'+'<p>Twitter: <input type="text" size="45" id="'+a+'_twitter" value="'+$.tnm.socialmap.twitter+'" /></p>'+'<p>YouTube: <input type="text" size="45" id="'+a+'_youtube" value="'+$.tnm.socialmap.youtube+'" /></p>'+'<p>flickr: <input type="text" size="45" id="'+a+'_flickr" value="'+$.tnm.socialmap.flickr+'" /></p>'+'<p>Linkedin: <input type="text" size="45" id="'+a+'_linkedin" value="'+$.tnm.socialmap.linkedin+'" /></p>'+'<p>Google+: <input type="text" size="45" id="'+a+'_google" value="'+$.tnm.socialmap.google+'" /></p>'+'<p><a class="close social" style="color: black" href="#">save</a> <a href="#" style="color: black" class="cancel">cancel</a></p></div>';$(this).after(c)}),$(document).on("click",".close.social",function(){return $.each($.tnm.socialmap,function(a,b){var c=$("#social_"+a)[0];if(!c.value||checkURL(c.value))savemap["_"+a]=c.value}),$(this).parents(".modal").hide(),save(),!1}),$(".editable.link").each(function(){var a=this.id+"_url",b=this.id+"_text",c=this.id+"_focus",d=this.id+"_div",e="";linkCheck("url",a)&&(e=this.name);var f='<div class="modal" id="'+d+'">'+"<p>Text: "+'<input type="text" size="45" class="'+c+'" name="'+b+'" id="'+b+'" value="'+$(this).text()+'" /></p>'+"<p>Link:</p>"+'<br><input type="radio" name="'+a+'" value="url" '+linkCheck("url",a)+'><input type="text" id="'+a+'_val" value="'+e+'">'+$.tnm.pagelinks[this.id]+'<p><a class="close link" href="#">save</a> <a href="#" class="cancel">cancel</a></p></div>';$(this).after(f)}),$(document).on("click",".close.link",function(){var a=$(this).parents("div").first(),b=a.prev(),c=$("#"+b[0].id+"_url_val"),d=$("#"+b[0].id+"_text"),e=$("input[name="+b[0].id+"_url]:radio:checked");if(e[0].value!="url"||checkURL(c[0].value)){var f;e[0].value=="url"?f=c[0].value:f=e[0].value,b.text(d[0].value),savemap[d[0].id]=b.html(),savemap[b[0].id+"_url"]=f,$(this).parents(".modal").hide(),save()}return!1}),$("a:has(img)").find(".editable.image").unwrap(),$(".editable.image").each(function(){var a=this.id+"_file",b=this.id+"_div",c=this.id+"_iframe",d=this.id+"_form",e=$.tnm.imageurls[this.id],f='<div class="modal" id="'+b+'">'+"<p>Upload ("+e.portw+"x"+e.porth+'): <form method="POST" id="'+d+'" target="'+c+'" enctype="multipart/form-data"><input type="file" id="'+a+'" name="'+a+'"></form><a class="upload image" href="#">upload</a></p>'+'<iframe id="'+c+'" src="#" style="width: 0; height: 0; border: 0px solid #fff;"></iframe>'+'<p>Existing: <select id="'+this.id+'_select">'+$.tnm.existingimgs+'</select> <a href="#" class="imgselect">use</a></p>'+'<p><a class="close image" href="#">save</a>'+' <a href="#" class="imgclear">clear</a>'+' <a href="#" class="cancel">cancel</a>'+"</p></div>";$(this).after(f)}),$(document).on("click",".close.image",function(){var a=$(this).parents("div").first(),c=a.prev(),d=$.tnm.imageurls[c[0].id];return resize(0,{value:d.s}),savemap[c[0].id+"_x"]=d.x,savemap[c[0].id+"_y"]=d.y,savemap[c[0].id+"_s"]=d.s,$(this).parents(".modal").hide(),b(),save(),!1}),$(document).on("click",".upload.image",function(){var a=$(this).parents("div").first(),b=a.prev(),c=$("#"+b[0].id+"_form");$.ajax({url:$.tnm.uploadurl+"?image="+b[0].id,success:function(a){c.attr("action",a),c.ajaxSubmit({success:function(a,c,d){if(a==""){alert("error during upload");return}var e=jQuery.parseJSON(a);b[0].src=e.url;var f=$.tnm.imageurls[b[0].id];f.url=e.url,f.orig=e.orig,f.basew=e.w,f.baseh=e.h,f.s=e.s,$("#containerimg").css("background-image","url("+f.orig+")"),loadimg(b[0].id),resize(0,{value:f.s})}})}})}),$(document).on("click",".editable.image",function(){b(),$(".modal").hide();var a='<div id="imgcontainer"><div id="topcontainer" class="containerdiv"></div><div id="leftcontainer" class="containerdiv"></div><span id="containerimg"></span><div id="imgslider"></div><div id="rightcontainer" class="containerdiv"></div><div id="bottomcontainer" class="containerdiv"></div></div>';$(this).before(a),cur_img=this.id;var c=$.tnm.imageurls[this.id];return $("#containerimg").draggable({containment:"parent"}),$("#containerimg").css("background-image","url("+c.orig+")"),loadimg(this.id),resize(0,{value:c.s}),!1}),$(document).on("click",".imgclear",function(){var a=$(this).parents("div").first(),c=a.prev();return $(this).parents(".modal").hide(),b(),savemap[c[0].id+"_c"]=!0,save(),!1}),$(document).on("click",".imgselect",function(){var a=$(this).parents("div").first(),b=a.prev(),c=$.tnm.imageurls[b[0].id];return savemap[b[0].id+"_b"]=$("#"+b[0].id+"_select")[0].value,save(),!1}),$(document).on("click",".editable",function(){return $("#"+this.id+"_div").show(),$("."+this.id+"_focus").focus(),!1}),$(document).on("click",".cancel",function(){return $(this).parents(".modal").hide(),b(),!1}),$(document).keyup(function(a){a.keyCode==27&&($(".modal").hide(),b())})});
  1 +function validURL(a){return a.match("^[-A-Za-z0-9._~:/?#@!$&'()*+,;=% \\[\\]]+$")?!0:!1}function checkURL(a){return validURL(a)?!0:(alert("Invalid URL: "+a),!1)}function linkCheck(a,b){return $.tnm.linkmap[b]==a?"checked":""}function save(){if(!$.isEmptyObject(savemap)){$("#save").text("saving...");var a=savemap;backup=a,savemap={},$.post($.tnm.saveurl,a,function(a,b,c){var d=jQuery.parseJSON(a);d.errors.length>0?alert(d.errors):$.each(d,function(a,b){var c=!1;$.each(b,function(b,d){$.tnm.imageurls[a][b]=d,b=="url"&&($("#"+a)[0].src=d),b=="orig"&&(c=!0)}),c&&($("#containerimg").css("background-image","url("+$.tnm.imageurls[a].orig+")"),loadimg(a),resize(0,{value:0}))}),$("#save").html("&nbsp;"),$("#saved").show().fadeOut(1e3)})}else $("#saved").show().fadeOut(1e3)}function loadimg(a){var b=$.tnm.imageurls[a];b.wscale=b.portw/b.basew,b.hscale=b.porth/b.baseh,b.min_scale=Math.max(b.wscale,b.hscale),b.max_scale=Math.max(b.min_scale*3),b.s=Math.max(b.min_scale,b.s),b.s=Math.min(b.max_scale,b.s),$("#imgslider").slider("destroy"),$("#imgslider").slider({orientation:"vertical",min:b.min_scale,max:b.max_scale,step:(b.max_scale-b.min_scale)/100,slide:resize,value:b.s}),$("#containerimg").css("left",b.x),$("#containerimg").css("top",b.y)}function resize(a,b){var c=$.tnm.imageurls[cur_img],d=c.wscale,e=c.hscale,f=c.min_scale,g=c.max_scale,h=Math.max(c.min_scale,b.value);h=Math.min(c.max_scale,h);var i=c.basew*h,j=c.baseh*h,k=c.portw,l=c.porth,m=c.basetop,n=c.baseleft,o=.8;$("#containerimg").css({height:j,width:i}),$("#leftcontainer").css({width:i-k,height:l,top:j-l}),$("#rightcontainer").css({width:i-k,height:l,top:j-l}),$("#topcontainer").css({width:2*i-k,height:j-l}),$("#bottomcontainer").css({width:2*i-k,height:j-l}),$("#imgslider").css({top:j-l*(o+1)/2,left:i-20,height:l*o}),$("#imgcontainer").css({width:2*i-k,height:2*j-l,top:m+l-j,left:n+k-i});var p=$("#containerimg").position();p.left+i>2*i-k&&$("#containerimg").css({left:i-k}),p.top+j>2*j-l&&$("#containerimg").css({top:j-l}),c.x=p.left,c.y=p.top,c.s=h}var savemap={},cur_img;$(function(){function b(){$("#imgcontainer").remove()}var a;$("body").prepend('<div class="toolbar"><span id="save">&nbsp;</span> <span id="saved" style="display: none">saved</span> <span id="error" style="display: none"><b>error</b></span> <a id="view" href="'+$.tnm.viewurl+'">view</a>'+' <a id="publish" href="#">publish</a>'+' <a href="'+$.tnm.publishedurl+'">published</a>'+' <span style="border: 1px solid black">'+'domain: <input type="text" id="domain" value="'+$.tnm.domain+'">'+' <a id="save_domain">save</a>'+"</span>"+' <span id="publishing" style="display: none">publishing...</span>'+' <span id="layouts" style="border: 1px solid black">page layout:'+$.tnm.layouts+"</span>"+' <a id="new_page" href="#">new page</a>'+'<div class="modal" id="new_page_modal"><form method="POST" action="'+$.tnm.newpageurl+'">'+'title: <input type="text" name="title">'+'type: <select name="type">'+$.tnm.newpagetypes+"</select>"+'<input type="submit" value="create">'+"</form>"+'<br><form method="POST" action="'+$.tnm.archivepageurl+'">'+'archived: <select name="pageid">'+$.tnm.archivepages+"</select>"+'<input type="submit" value="unarchive">'+"</form>"+'<br><a href="#" class="cancel">cancel</a>'+"</div>"+' <a id="unpublish_page" href="#">archive page</a>'+'<div class="modal" id="unpublish_page_modal">'+"Sure you want to archive this page? It will be removed from public view, but maintained in your archive."+'<br><a href="'+$.tnm.unpublishpageurl+'">yes, archive</a>'+' <a href="#" class="cancel">cancel</a>'+"</div>"+"</div>"),$("#save").ajaxError(function(){$(this).text("save"),$("#error").show().fadeOut(4e3),$.extend(savemap,a)}),$(document).on("click","#publish",function(){return $.ajax({url:$.tnm.publishurl}),$("#publishing").show().fadeOut(4e3),!1}),$(document).on("click","#new_page",function(){return $("#new_page_modal").show(),!1}),$(document).on("click","#unpublish_page",function(){return $("#unpublish_page_modal").show(),!1}),$(document).on("click","#save_domain",function(){savemap._domain=$("#domain").val(),save()}),$("#menu").sortable({items:".menu_item",stop:function(a,b){savemap.pos=$(this).sortable("toArray").join(","),save()}}),$(".editable.text").hallo({plugins:{halloformat:{},hallolink:{}}}),$(document).on("hallodeactivated",".editable.text",function(){savemap[this.id]=$(this).html(),save()}),$(".editable.line").each(function(){var a=this.id+"_text",b=this.id+"_focus",c=this.id+"_div",d='<div class="modal" id="'+c+'">'+'<p><label for="text">Text</label>'+'<input type="text" size="30" class="'+b+'" name="'+a+'" id="'+a+'" value="'+$(this).text()+'" /></p>'+'<p><a class="close line" href="#">save</a> <a href="#" class="cancel">cancel</a></p></div>';$(this).after(d)}),$(document).on("click",".close.line",function(){var a=$(this).parents("div").first().prev(),b=$("#"+a[0].id+"_text");return b[0].value&&(a.text(b[0].value),savemap[a[0].id]=a.html(),$(this).parents(".modal").hide(),save()),!1}),$(".editable.date").each(function(){var a=this.id+"_datepicker",b=this.id+"_div",c='<div class="modal" id="'+b+'">'+'<div type="text" id="'+a+'"></div>'+'<p><a class="close date" href="#">save</a> <a href="#" class="cancel">cancel</a></p></div>';$(this).after(c),$("#"+a).datepicker({dateFormat:"MM dd, yy",defaultDate:$.tnm.postdate})}),$(document).on("click",".close.date",function(){var a=$(this).parents("div").first().prev(),b=$("#"+a[0].id+"_datepicker");if(b[0].value){a.text(b[0].value);var c=b.datepicker("getDate");savemap[a[0].id]=c.getFullYear()+"-"+c.getMonth()+"-"+c.getDate(),$(this).parents(".modal").hide(),save()}return!1}),$(document).on("click",".checkbox",function(){savemap[this.id]=this.checked,save()}),$(".editable.social").each(function(){var a="social",b="social_div",c='<div class="modal" style="color: black" id="'+b+'">'+'<p>Facebook: <input type="text" size="45" id="'+a+'_facebook" value="'+$.tnm.socialmap.facebook+'" /></p>'+'<p>Twitter: <input type="text" size="45" id="'+a+'_twitter" value="'+$.tnm.socialmap.twitter+'" /></p>'+'<p>YouTube: <input type="text" size="45" id="'+a+'_youtube" value="'+$.tnm.socialmap.youtube+'" /></p>'+'<p>flickr: <input type="text" size="45" id="'+a+'_flickr" value="'+$.tnm.socialmap.flickr+'" /></p>'+'<p>Linkedin: <input type="text" size="45" id="'+a+'_linkedin" value="'+$.tnm.socialmap.linkedin+'" /></p>'+'<p>Google+: <input type="text" size="45" id="'+a+'_google" value="'+$.tnm.socialmap.google+'" /></p>'+'<p><a class="close social" style="color: black" href="#">save</a> <a href="#" style="color: black" class="cancel">cancel</a></p></div>';$(this).after(c)}),$(document).on("click",".close.social",function(){return $.each($.tnm.socialmap,function(a,b){var c=$("#social_"+a)[0];if(!c.value||checkURL(c.value))savemap["_"+a]=c.value}),$(this).parents(".modal").hide(),save(),!1}),$(".editable.link").each(function(){var a=this.id+"_url",b=this.id+"_text",c=this.id+"_focus",d=this.id+"_div",e="";linkCheck("url",a)&&(e=this.name);var f='<div class="modal" id="'+d+'">'+"<p>Text: "+'<input type="text" size="45" class="'+c+'" name="'+b+'" id="'+b+'" value="'+$(this).text()+'" /></p>'+"<p>Link:</p>"+'<br><input type="radio" name="'+a+'" value="url" '+linkCheck("url",a)+'><input type="text" id="'+a+'_val" value="'+e+'">'+$.tnm.pagelinks[this.id]+'<p><a class="close link" href="#">save</a> <a href="#" class="cancel">cancel</a></p></div>';$(this).after(f)}),$(document).on("click",".close.link",function(){var a=$(this).parents("div").first(),b=a.prev(),c=$("#"+b[0].id+"_url_val"),d=$("#"+b[0].id+"_text"),e=$("input[name="+b[0].id+"_url]:radio:checked");if(e[0].value!="url"||checkURL(c[0].value)){var f;e[0].value=="url"?f=c[0].value:f=e[0].value,b.text(d[0].value),savemap[d[0].id]=b.html(),savemap[b[0].id+"_url"]=f,$(this).parents(".modal").hide(),save()}return!1}),$("a:has(img)").find(".editable.image").unwrap(),$(".editable.image").each(function(){var a=this.id+"_file",b=this.id+"_div",c=this.id+"_iframe",d=this.id+"_form",e=$.tnm.imageurls[this.id],f='<div class="modal" id="'+b+'">'+"<p>Upload ("+e.portw+"x"+e.porth+'): <form method="POST" id="'+d+'" target="'+c+'" enctype="multipart/form-data"><input type="file" id="'+a+'" name="'+a+'"></form><a class="upload image" href="#">upload</a></p>'+'<iframe id="'+c+'" src="#" style="width: 0; height: 0; border: 0px solid #fff;"></iframe>'+'<p>Existing: <select id="'+this.id+'_select">'+$.tnm.existingimgs+'</select> <a href="#" class="imgselect">use</a></p>'+'<p><a class="close image" href="#">save</a>'+' <a href="#" class="imgclear">clear</a>'+' <a href="#" class="cancel">cancel</a>'+"</p></div>";$(this).after(f)}),$(document).on("click",".close.image",function(){var a=$(this).parents("div").first(),c=a.prev(),d=$.tnm.imageurls[c[0].id];return resize(0,{value:d.s}),savemap[c[0].id+"_x"]=d.x,savemap[c[0].id+"_y"]=d.y,savemap[c[0].id+"_s"]=d.s,$(this).parents(".modal").hide(),b(),save(),!1}),$(document).on("click",".upload.image",function(){var a=$(this).parents("div").first(),b=a.prev(),c=$("#"+b[0].id+"_form");$.ajax({url:$.tnm.uploadurl+"?image="+b[0].id,success:function(a){c.attr("action",a),c.ajaxSubmit({success:function(a,c,d){if(a==""){alert("error during upload");return}var e=jQuery.parseJSON(a);b[0].src=e.url;var f=$.tnm.imageurls[b[0].id];f.url=e.url,f.orig=e.orig,f.basew=e.w,f.baseh=e.h,f.s=e.s,$("#containerimg").css("background-image","url("+f.orig+")"),loadimg(b[0].id),resize(0,{value:f.s})}})}})}),$(document).on("click",".editable.image",function(){b(),$(".modal").hide();var a='<div id="imgcontainer"><div id="topcontainer" class="containerdiv"></div><div id="leftcontainer" class="containerdiv"></div><span id="containerimg"></span><div id="imgslider"></div><div id="rightcontainer" class="containerdiv"></div><div id="bottomcontainer" class="containerdiv"></div></div>';$(this).before(a),cur_img=this.id;var c=$.tnm.imageurls[this.id];return $("#containerimg").draggable({containment:"parent"}),$("#containerimg").css("background-image","url("+c.orig+")"),loadimg(this.id),resize(0,{value:c.s}),!1}),$(document).on("click",".imgclear",function(){var a=$(this).parents("div").first(),c=a.prev();return $(this).parents(".modal").hide(),b(),savemap[c[0].id+"_c"]=!0,save(),!1}),$(document).on("click",".imgselect",function(){var a=$(this).parents("div").first(),b=a.prev(),c=$.tnm.imageurls[b[0].id];return savemap[b[0].id+"_b"]=$("#"+b[0].id+"_select")[0].value,save(),!1}),$(document).on("click",".editable",function(a){$("#"+this.id+"_div").show(),$("."+this.id+"_focus").focus(),a.preventDefault()}),$(document).on("click",".cancel",function(a){$(this).parents(".modal").hide(),b(),a.preventDefault()}),$(document).keyup(function(a){a.keyCode==27&&($(".modal").hide(),b())})});
40 static/themes/marco/css/style.css
@@ -216,7 +216,7 @@ div.blog div.post span.more a:hover{background: #767070;}
216 216
217 217 /***** Full Page *****/
218 218 div#main div.fullpage{margin-top:25px;}
219   -div#main div.fullpage .left{ display: block; float: left; width: 32%; margin: 0 2% 2% 0; overflow: hidden;}
  219 +div#main div.fullpage .left{ display: block; float: left; width: auto; margin: 0 2% 2% 0; overflow: hidden;}
220 220 div#main table{width: 100%; margin: 30px 0;}
221 221 div#main table caption{text-transform: uppercase; text-align: left; font-size: 18px; font-weight: bold;}
222 222 div#main table td, div#main table th{text-align: left; padding: 5px;}
@@ -569,6 +569,40 @@ footer.bottom p a{color: #b1adad; text-decoration: none;}
569 569 .blogContent h2 {
570 570 margin-top:0;
571 571 font-size:24px;
  572 + margin-bottom:0px;
  573 +}
  574 +.blogContent .postDetails {
  575 + margin-right:135px;
  576 + margin-bottom:15px;
  577 + border-bottom:1px dotted #e3e3e3;
  578 + border-top:1px dotted #e3e3e3;
  579 +}
  580 +.blogContent .postDetails ul {
  581 + margin:0;
  582 + padding:0;
  583 +}
  584 +.blogContent .postDetails ul li {
  585 + list-style:none;
  586 + font-size:11px;
  587 + display:inline;
  588 + padding:0 4px 0 8px;
  589 + border-left:1px solid #e3e3e3;
  590 + line-height:24px;
  591 +}
  592 +.blogContent .postDetails ul li:first-child {
  593 + padding:0 4px 0 0;
  594 + border:none;
  595 +}
  596 +.blogContent .postDetails ul li.draft {
  597 + float:right;
  598 + line-height: 14px;
  599 + position: relative;
  600 + top: 5px;
  601 +}
  602 +.blogContent .postDetails ul li.draft input {
  603 + margin-right:5px;
  604 + position: relative;
  605 + top: 2px;
572 606 }
573 607 .blogContent p {
574 608 padding-right:135px;
@@ -690,7 +724,7 @@ footer.bottom p a{color: #b1adad; text-decoration: none;}
690 724 font-size:15px;
691 725 margin-top:0;
692 726 margin-bottom:5px;
693   - padding-right:20px;
  727 + padding-right:0px;
694 728 }
695 729 #main.blog aside ul li.recent ul li h4 a {
696 730 text-decoration:none;
@@ -702,7 +736,7 @@ footer.bottom p a{color: #b1adad; text-decoration: none;}
702 736 }
703 737 #main.blog aside ul li.recent ul li p {
704 738 line-height:21px;
705   - padding-right:20px;
  739 + padding-right:0px;
706 740 font-size:13px;
707 741 }
708 742
2  static/themes/marco/css/style.min.css
... ... @@ -1 +1 @@
1   -article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio[controls],canvas,video{display:inline-block;*display:inline;*zoom:1}html{font-size:100%;overflow-y:scroll;-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0;font-size:100%;line-height:1.5}body,button,input,select,textarea{font-family:"Myriad Pro","Gill Sans","Gill Sans MT",Calibri,sans-serif;color:#515151}::-moz-selection{background:#fe57a1;color:#fff;text-shadow:none}::selection{background:#fe57a1;color:#fff;text-shadow:none}a{color:#e31414}a:visited{color:#551a8b}a:focus{outline:thin dotted}a:hover,a:active{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}blockquote{margin:1em 40px}dfn{font-style:italic}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}ins{background:#ff9;color:#000;text-decoration:none}mark{background:#ff0;color:#000;font-style:italic;font-weight:bold}pre,code,kbd,samp{font-family:monospace,monospace;_font-family:'courier new',monospace;font-size:1em}pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word}q{quotes:none}q:before,q:after{content:"";content:none}small{font-size:85%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}.clr{clear:both}ul,ol{margin:1em 0;padding:0 0 0 40px}dd{margin:0 0 0 40px}nav ul,nav ol{list-style:none;margin:0;padding:0}img{border:0;-ms-interpolation-mode:bicubic}svg:not(:root){overflow:hidden}figure{margin:0}form{margin:0}fieldset{border:0;margin:0;padding:0}legend{border:0;*margin-left:-7px;padding:0}label{cursor:pointer}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal;*overflow:visible}button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}input[type="checkbox"],input[type="radio"]{box-sizing:border-box}input[type="search"]{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}input:invalid,textarea:invalid{background-color:#f0dddd}table{border-collapse:collapse;border-spacing:0}div#container{max-width:1000px;margin:0 auto;position:relative}header#top{height:100px}header#top h1{float:left;margin:43px 0 0 0;font-size:36px;text-transform:uppercase}header#top h1 a{color:#3c3333;text-decoration:none}header#top nav ul{margin:50px 0 0 0;list-style:none;float:right}header#top nav ul li{float:left;margin:0 0 0 10px}header#top nav ul li a{text-transform:uppercase;text-decoration:none;color:#fff;background:#3c3333;display:block;padding:5px 15px 3px 15px;font-size:16px}header#top nav ul li.search a{background:url(nav-icons.png) no-repeat left center #3c3333;text-indent:-9999px}header#top nav ul li.audio a{background:url(nav-icons.png) no-repeat -30px center #3c3333;text-indent:-9999px}header#top nav ul li a.current,header#top nav ul li a:hover{background-color:#767070}div#main{margin:20px 0 60px 0}div#search{display:none;position:absolute;background:#3c3333;width:100%;top:0;left:0;text-align:right;color:#fff}div#search form{max-width:1000px;padding:7px 0;margin:0 auto}div#search form label{text-transform:uppercase;font-size:14px}div#search form input{margin:0 0 0 10px}div#search form input.btn{background:#d5cdcd;background:-moz-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#d5cdcd),color-stop(100%,#aba6a6));background:-webkit-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:-o-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:-ms-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:linear-gradient(top,#d5cdcd 0,#aba6a6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#d5cdcd',endColorstr='#aba6a6',GradientType=0);-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border:0;-o-box-shadow:0 0 3px rgba(0,0,0,0.7);-webkit-box-shadow:0 0 3px rgba(0,0,0,0.7);-moz-box-shadow:0 0 3px rgba(0,0,0,0.7);box-shadow:0 0 3px rgba(0,0,0,0.7);font-size:14px;padding:3px 5px 2px 5px}div#search form span.close a{color:#b1adad;text-decoration:none;margin:0 0 0 10px}div#audio{display:none;position:absolute;top:100px;right:0}div#audio div.player{background:rgba(60,51,51,0.95);color:#fff;padding:10px;width:800px;float:right}div#audio div.player a{color:#fff;text-decoration:none}div#audio div.player ol{float:right;margin:0;padding:0;font-size:13px;width:420px;list-style:none}div#audio div.player ol li{margin:0 0 1px 0}div#audio div.player ol li a{display:block;padding:4px 10px 3px 10px}div#audio div.player ol li:nth-child(even) a{background:rgba(255,255,255,0.08);-webkit-transition:all .5s ease-in;-moz-transition:all .5s ease-in;-o-transition:all .5s ease-in;transition:all .5s ease-in}div#audio div.player ol li:nth-child(odd) a{background:rgba(255,255,255,0.16)}div#audio div.player ol li a:hover{background:rgba(255,255,255,0.24)}div#audio div.player ol li.current a{background:rgba(255,255,255,0.7);color:#3c3333}div#audio div.player ol li a span{float:right}div#audio div.player span.control{display:block}div#audio div.player span.control a{background:url(audio-icons.png) #d5cdcd;background:url(audio-icons.png) -moz-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:url(audio-icons.png) -webkit-gradient(linear,left top,left bottom,color-stop(0%,#d5cdcd),color-stop(100%,#aba6a6));background:url(audio-icons.png) -webkit-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:url(audio-icons.png) -o-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:url(audio-icons.png) -ms-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:url(audio-icons.png) linear-gradient(top,#d5cdcd 0,#aba6a6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#d5cdcd',endColorstr='#aba6a6',GradientType=0);-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-o-box-shadow:0 0 3px rgba(0,0,0,0.7);-webkit-box-shadow:0 0 3px rgba(0,0,0,0.7);-moz-box-shadow:0 0 3px rgba(0,0,0,0.7);box-shadow:0 0 3px rgba(0,0,0,0.7);display:block;float:left;text-indent:-9999px;width:30px;height:30px;margin:0 5px 0 0}div#audio div.player span.control a.rew{background-position:left top}div#audio div.player span.control a.play{background-position:-30px top}div#audio div.player span.control a.pause{background-position:-60px top}div#audio div.player span.control a.stop{background-position:-90px top}div#audio div.player span.control a.forw{background-position:-120px top}div#audio div.player p{margin:50px 0 0 0}div#audio div.player p+p{margin:0}div#audio div.player p small{float:left;width:70px;font-style:italic;padding:2px 0 0 0}div#audio span.close a{color:#b1adad;text-decoration:none;position:absolute;right:-20px}div#slider{margin:0 0 30px 0}div.column ul{margin:0;padding:0;list-style:none;clear:both}div.column ul li{float:left;width:32%;overflow:hidden;margin:0 0 30px 0}div.column ul li.middle{margin:0 2%}div.column ul li h2,div.blog h1{text-transform:uppercase;font-weight:normal;font-size:18px;margin:0 0 5px 10px}div.column ul li h3{text-transform:uppercase;font-weight:normal;font-size:18px;margin:0 0 15px 0;padding:0 0 5px 5px;border-bottom:1px solid #ccc}div.column ul li h2 a,div.blog h2 a,div.blog div.post h3 a{color:#3c3333;text-decoration:none}div.column ul li p{margin:0 0 20px 0}div.blog div.post a.thumb{float:left;width:32%;overflow:hidden;margin:0 2% 50px 0}div.blog{clear:both}div.blog div.post h3{margin:0 0 10px 0;font-size:24px;text-transform:uppercase}div.blog div.post p{margin:0}div.blog div.post span.more{float:right}div.blog div.post span.more a{text-transform:uppercase;text-decoration:none;color:#fff;background:#3c3333;display:block;padding:5px 15px 3px 15px;font-size:16px}div.blog div.post span.more a:hover{background:#767070}div#main div.fullpage{margin-top:25px}div#main div.fullpage .left{display:block;float:left;width:32%;margin:0 2% 2% 0;overflow:hidden}div#main table{width:100%;margin:30px 0}div#main table caption{text-transform:uppercase;text-align:left;font-size:18px;font-weight:bold}div#main table td,div#main table th{text-align:left;padding:5px}div#main table tbody tr{border-bottom:1px solid #fff}div#main table tbody tr:nth-child(even){background:#f1ecec}div#main table tbody tr:nth-child(odd){background:#e2dddd}div.fullpage div.media{width:100%;overflow:hidden;position:relative}div.fullpage div.media img{width:100%}div.fullpage div.media div.pics-note{position:absolute;bottom:0;left:0;display:block;background:rgba(255,255,255,0.7);width:100%}div.fullpage div.media div.pics-note h2{font-size:18px;text-transform:uppercase;font-weight:normal;margin:15px 15px 0 15px}div.fullpage div.media div.pics-note p{font-size:14px;margin:0 15px 21px 15px}ul#mycarousel li.current{border:2px solid #767070}ul#mycarousel li{position:relative}ul#mycarousel li span.play{position:absolute;display:block;width:75px;height:75px;text-indent:-9999px;background:url(play-icon.png)}div#gallery h1{font-size:18px;text-transform:uppercase;font-weight:normal}div#gallery p.notes{font-size:14px;float:right;margin:0}div#gallery article a{color:#515151}div#gallery article a p{display:none;position:absolute;background:rgba(255,255,255,0);width:100%;bottom:0;left:0;-webkit-transition:all .9s ease-in;-moz-transition:all .9s ease-in;-o-transition:all .9s ease-in;transition:all .9s ease-in;margin:0}div#gallery article a:hover p{display:block;background:rgba(255,255,255,0.7)}div#gallery article a:hover p em{display:block;margin:5px 14px;font-style:normal}div#gallery ul.item-nav{margin:30px 20%;width:60%;height:75px;list-style:none;padding:0}div#gallery ul.item-nav li{float:left;width:14.2857143%;text-align:center;margin:0 0 45px 0}div#gallery ul.item-nav li a{display:block;background:#3c3333;color:#fff;text-decoration:none;padding:10px 0;border-left:1px solid #fff}div#gallery ul.item-nav li a:hover{background:#767070}div#gallery ul.item-nav li.current{padding:10px 0;font-weight:bold}div#gallery.big article{float:left;width:32%;overflow:hidden;height:240px;position:relative}div#gallery.big article.end{margin:0 0 30px 0}div#gallery.big article{margin:0 2% 30px 2%}div#gallery.small article{float:left;width:19%;overflow:hidden;height:142px;position:relative}div#gallery.small article.end{margin:0 0 30px 0}div#gallery.small article{margin:0 8px 30px 8px}div#main div.left-cont{float:left;width:650px}div#main div.left-cont span.thumb{display:block;width:100%;overflow:hidden}div#main div.left-cont span.thumb img{width:100%}div#main div.left-cont h1{font-size:24px}div#main div.left-cont div.column{margin:30px 0}div#main div.left-cont div.column ul.double li{float:left;width:48%}div#main div.left-cont div.column ul.double li+li{margin-left:4%}div#main div.left-cont div.column ul.double li p{margin-top:10px}body#index2 div#main div.left-cont .column img,body#index2 div#main div.left-cont .blog img{width:200px}body#index2 div#main div.left-cont .blog img{margin-bottom:50px}body#index2 div#main div.left-cont h2{font-size:18px;font-weight:normal;margin:0 0 5px 10px;text-transform:uppercase}div#main aside{width:30%;float:right}div#main .right aside{width:30%;float:left}div#main aside a{color:#e12929}div#main aside ul,div#main aside ul li ul{margin:0 0 30px 0;list-style:none;padding:0}div#main aside ul li{margin:0 0 25px 0;padding-bottom:10px;border-bottom:1px dotted #999}div#main aside ul li:last-child{border-bottom:0}div#main aside ul li h3{font-size:18px;margin:0}div#main aside ul li ul li{font-size:14px;font-style:italic;margin:0}div#main aside ul li ul li strong{font-weight:bold;font-style:normal}div#main aside ul li.twitter ul li{font-size:16px;font-style:normal;margin:0;padding:5px 0;border-bottom:dotted 1px #999;line-height:24px}div#main aside ul li.twitter ul li.follow{text-align:right;border-bottom:0;background:url(twitter.png) 130px 6px no-repeat}div#main aside ul li.events ul li.calendar{background:url("calendar.png") no-repeat scroll 170px 6px transparent;border-bottom:medium none;text-align:right;font-style:normal;font-size:16px;line-height:32px}footer.bottom{clear:both;background:#3c3333;color:#b1adad;padding:20px 0;height:100px}footer.bottom div.inner{max-width:1000px;margin:0 auto}footer.bottom ul.sn{margin:0;padding:0;list-style:none;float:left}footer.bottom ul.sn li{float:left;width:50px;height:50px}footer.bottom ul.sn li a{display:block;width:50px;height:50px;text-indent:-9999px;opacity:.6;-ms-filter:"alpha(opacity=60)";filter:alpha(opacity=60);-moz-opacity:.6;-khtml-opacity:.6}footer.bottom ul.sn li.facebook a{background:url(social-icons.png) left top}footer.bottom ul.sn li.flickr a{background:url(social-icons.png) -50px top}footer.bottom ul.sn li.twitter a{background:url(social-icons.png) -100px top}footer.bottom ul.sn li.youtube a{background:url(social-icons.png) -150px top}footer.bottom ul.sn li.linkedin a{background:url(social-icons.png) -200px top}footer.bottom ul.sn li.google a{background:url(social-icons.png) -250px top}footer.bottom ul.sn li a:hover{opacity:1;-ms-filter:"alpha(opacity=100)";filter:alpha(opacity=100);-moz-opacity:1;-khtml-opacity:1}footer.bottom p{text-align:right;margin:10px 0 0 0;float:right}footer.bottom p a{color:#b1adad;text-decoration:none}#toolbar{background:url(toolbar-bg.png) 0 0 repeat-x;height:52px;display:none}#toolbar nav{float:left;background:url(nav-border.png) right 0 repeat-y;height:50px;padding:0 38px}#toolbar nav ul li{float:left;margin:0 0 0 10px}#toolbar nav ul li a{background:none repeat scroll 0 0 #3c3333;color:#fff;display:block;font-size:14px;padding:5px 15px 7px;text-decoration:none;text-transform:lowercase;position:relative;top:8px}#toolbar nav ul li a:hover{background-color:#f5f5f5!important;color:#3c3333;text-shadow:1px 1px 1px #fff}#toolbar nav.first ul li a{padding:9px 15px 11px;top:4px}#toolbar nav ul li a.plus{width:36px;height:33px;padding:0;background:url(plus.png) 0 0 no-repeat;text-indent:-999em}#toolbar nav ul li a.minus{width:36px;height:33px;padding:0;background:url(minus.png) 0 0 no-repeat;text-indent:-999em}#toolbar nav ul li a.save{background:#3c3333 url(toolbar-save.png) 10px 8px no-repeat;padding-left:35px}#toolbar nav ul li a.publish{background:#3c3333 url(toolbar-publish.png) 10px 8px no-repeat;padding-left:35px}#toolbar nav ul li a.navigation{background:#3c3333 url(toolbar-navigation.png) 10px 8px no-repeat;padding-left:35px}#toolbar nav ul li a.layout{background:#3c3333 url(toolbar-layout.png) 10px 8px no-repeat;padding-left:35px}#toolbar nav ul li a.themes{background:#3c3333 url(toolbar-themes.png) 10px 8px no-repeat;padding-left:35px}#toolbar nav ul li a.images{background:#3c3333 url(toolbar-images.png) 10px 8px no-repeat;padding-left:4px}#toolbar span.imageNumber{background:#83b64c;border-radius:10px;color:#fff;display:block;font-size:12px;height:20px;left:15px;line-height:19px;position:relative;text-align:center;top:-5px;width:20px}#toolbar nav ul li img{position:relative;top:5px}#toolbar img.user{position:relative;top:5px;float:left;margin-right:10px}#toolbar .hello{font-weight:bold;color:#8d8d8d;text-shadow:1px 1px 1px #fff;padding-top:3px;width:220px}#toolbar .hello span{font-weight:normal;font-style:italic}#toolbar nav ul.userActions li{margin:0 8px 0 0}#toolbar nav ul.userActions li a{background:0;display:block;font-size:14px;padding:0;text-decoration:underline;text-transform:lowercase;text-shadow:1px 1px 1px #fff;font-weight:bold;position:relative;top:0;line-height:14px;padding-left:18px}#toolbar nav ul.userActions li:first-child a{color:#1a1a1a;background:url(myaccount.png) 0 2px no-repeat}#toolbar nav ul.userActions li:last-child a{color:#d81515;background:url(logout.png) 0 2px no-repeat}#toolbar nav ul.userActions li a:hover{background-color:transparent!important;text-decoration:none}#slideshow{list-style:none;color:#fff}#slideshow span{display:none}#wrapper{width:1000px;margin:10px auto 100px;display:none}#wrapper *{margin:0;padding:0}#fullsize{position:relative;width:1000px;height:500px}#information{position:absolute;bottom:0;width:1000px;height:0;background:url(caption-white.png) left top repeat;color:#3c3333;overflow:hidden;z-index:200}#information h3{padding:20px 10px 0 10px;font-size:18px;margin-bottom:5px;text-transform:uppercase}#information p{padding:0 10px 20px 10px;margin:0;font-size:14px;line-height:18px}#image{width:1000px;elevation:500px}#image img{position:absolute;z-index:25;width:1000px;height:500px}.imgnav{position:absolute;width:54px;height:101px;cursor:pointer;z-index:150;opacity:.6!important;top:515px}.imgnav:hover{opacity:1!important}#imgprev{left:0;background:url(left.png) left center no-repeat}#imgnext{right:0;background:url(right.png) right center no-repeat}#imglink{position:absolute;height:306px;width:100%;z-index:100;opacity:1}#thumbnails{margin-top:15px}#slidearea{float:left;position:relative;width:875px;margin-left:60px;height:101px;overflow:hidden}#slider{position:absolute;left:0;height:101px}#slider img{cursor:pointer;border:2px solid #767070;height:101px}#slideright,#slideleft{display:none}#contact{float:left;width:600px;background:#ebeaea;padding:20px 25px}.rightContent{float:right;width:650px}.rightContent h3{margin-top:0}#contact h4{font-size:24px;color:#515151;font-weight:bold;margin-bottom:10px;margin-top:0}#contact h6{font-size:18px;color:#515151;font-weight:normal;margin-bottom:20px;margin-top:0}#contact label{display:block;font-size:18px;color:#515151;font-weight:normal;margin-bottom:5px}#contact input{padding:3px;width:240px;height:25px;line-height:25px;margin:0 0 15px 0;font-size:14px;color:#515151;border:1px solid #c9c3c3}#contact textarea{padding:3px;width:592px;min-width:592px;max-width:592px;min-height:205px;max-height:205px;font-size:14px;color:#515151;height:205px;line-height:25px;font-family:Arial,Helvetica,sans-serif;margin:0 0 15px 0;border:1px solid #c9c3c3}#contact input.submit{float:right;font-size:18px;text-transform:uppercase;color:#fff;background:#3c3333;padding:5px 30px;text-decoration:none;cursor:pointer;width:auto;height:auto;border:0}#contact input.submit:hover{background:#767070;text-decoration:none}.blogContent{float:left;width:650px}.blogContent h2{margin-top:0;font-size:24px}.blogContent p{padding-right:135px}.blogContent p.quote{padding-left:48px;background:url(quote.png) 0 0 no-repeat;font-style:italic}.blogContent img{padding:6px 11px;background:#ebeaea;border-top:1px solid #d9d0d0}.blogContent #social ul li{float:right;list-style:none;margin-left:5px}.blogContent #social ul li.pin img{background:0;border-top:0;padding:0}.blogContent #social ul li.tweets{position:relative;top:0;width:75px}.blogContent #social ul li.stumble{position:relative;top:1px}.blogContent #social ul li.facebook{position:relative;top:-5px;width:60px}.blogContent #social ul li.googleplus{position:relative;top:0;width:60px}.blogContent .tags{padding:10px 11px;background:#ebeaea;border-top:1px solid #d9d0d0;margin-top:35px}.blogContent .tags ul{background:url(tags-icon.png) 0 1px no-repeat;padding-left:20px;margin:0}.blogContent .tags ul li,.blogContent .tags ul li h4{display:inline;margin:0}.blogContent .tags ul li{background:url(tags-sep.png) right 6px no-repeat;padding:0 10px 0 0}.blogContent .tags ul li:first-child{padding-left:0;background:0}.blogContent .tags ul li:last-child{padding-right:0;background:0}.blogContent .tags ul li a{color:#515151;font-size:14px}#main.blog aside ul li{border:0;margin-bottom:5px}#main.blog aside ul li h3{border-bottom:1px dotted #999;padding-bottom:10px;margin-bottom:15px}#main.blog aside ul li img.left{margin-right:15px;margin-bottom:0}#main.blog aside ul li ul li{display:inline;font-style:normal;line-height:14px}#main.blog aside ul li ul li.tag1{font-size:10px}#main.blog aside ul li ul li.tag2{font-size:14px}#main.blog aside ul li ul li.tag3{font-size:18px}#main.blog aside ul li ul li.tag4{font-size:24px}#main.blog aside ul li.recent ul li{float:left;padding-bottom:0;margin-bottom:10px;border-bottom:1px dotted #999}#main.blog aside ul li.recent ul li:last-child{border-bottom:0}#main.blog aside ul li.recent ul li img{float:left;margin:0 20px 10px 0}#main.blog aside ul li.recent ul li h4{font-size:15px;margin-top:0;margin-bottom:5px;padding-right:20px}#main.blog aside ul li.recent ul li h4 a{text-decoration:none;color:#515151}#main.blog aside ul li.recent ul li h4 a:hover{text-decoration:underline;color:#e31414}#main.blog aside ul li.recent ul li p{line-height:21px;padding-right:20px;font-size:13px}#main.blog .blogPost{padding:6px 9px;background:#ebeaea;border-top:1px solid #d9d0d0}#main.blog .blogPost img{padding:0;background:0;border-top:0}#main.blog .postInfo{float:left;width:235px;background:url(blogInfo-sep.png) right 0 repeat-y;margin-top:10px}#main.blog .postInfo h3{margin:0 0 5px 0}#main.blog .postInfo span{display:block;font-size:13px;color:#515151}#main.blog .postInfo span a{color:#515151}#main.blog .postInfo span.date{font-style:italic}#main.blog .postIntro{float:right;width:390px;margin-top:10px}#main.blog .postIntro p{padding:0;font-size:14px;line-height:21px;margin-top:0;margin-left:30px}#main.blog .postIntro span.more{float:right}#main.blog .postIntro span.more a{background:none repeat scroll 0 0 #3c3333;color:#fff;display:block;font-size:16px;padding:5px 15px 3px;text-decoration:none;text-transform:uppercase;margin-bottom:10px}#main.blog .postIntro span.more a:hover{background:none repeat scroll 0 0 #767070}#main.blog .fullblogPost{padding:0;background:#fff;border-top:0;margin-bottom:15px}#main.blog .fullblogPost .title{background:url(caption-white.png) 0 0 repeat;position:relative;margin-top:-42px}#main.blog .fullblogPost .title h2{font-weight:normal;width:73%;padding-left:2%;float:left;margin:0;position:relative;line-height:36px}#main.blog .fullblogPost .title span.titleDate{font-style:italic;width:23%;padding-right:2%;float:right;text-align:right;line-height:32px}#main.blog .fullblogPost p{padding:0 10px}#main.blog .fullblogPost p.postDetails{font-size:13px;font-style:italic;width:80%;float:left}#main.blog .fullblogPost p.postDetails a{color:#515151;font-style:normal}#main.blog .fullblogPost a.readmore{float:right;background:none repeat scroll 0 0 #3c3333;color:#fff;display:block;font-size:16px;padding:5px 15px 3px;text-decoration:none;text-transform:uppercase}#main.blog .fullblogPost a.readmore:hover{background:none repeat scroll 0 0 #767070}body#full{background:#000 url(fullBg.jpg) center 0 no-repeat}body#full header{background:url(headerBg.png) 0 0 repeat;margin-top:43px;height:auto}body#full header h1{margin:0;padding-left:10px}body#full header nav ul{margin-top:10px;padding-right:10px}body#full #main{min-height:935px}body#full footer{background:url(footerBg.png) 0 0 repeat}.ir{display:block;text-indent:-999em;overflow:hidden;background-repeat:no-repeat;text-align:left;direction:ltr}.ir br{display:none}.hidden{display:none;visibility:hidden}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.invisible{visibility:hidden}.clearfix:before,.clearfix:after{content:"";display:table}.clearfix:after{clear:both}.clearfix{zoom:1}@media print{*{background:transparent!important;color:black!important;text-shadow:none!important;filter:none!important;-ms-filter:none!important}a,a:visited{color:#444!important;text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}}
  1 +article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio[controls],canvas,video{display:inline-block;*display:inline;*zoom:1}html{font-size:100%;overflow-y:scroll;-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0;font-size:100%;line-height:1.5}body,button,input,select,textarea{font-family:"Myriad Pro","Gill Sans","Gill Sans MT",Calibri,sans-serif;color:#515151}::-moz-selection{background:#fe57a1;color:#fff;text-shadow:none}::selection{background:#fe57a1;color:#fff;text-shadow:none}a{color:#e31414}a:visited{color:#551a8b}a:focus{outline:thin dotted}a:hover,a:active{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}blockquote{margin:1em 40px}dfn{font-style:italic}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}ins{background:#ff9;color:#000;text-decoration:none}mark{background:#ff0;color:#000;font-style:italic;font-weight:bold}pre,code,kbd,samp{font-family:monospace,monospace;_font-family:'courier new',monospace;font-size:1em}pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word}q{quotes:none}q:before,q:after{content:"";content:none}small{font-size:85%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}.clr{clear:both}ul,ol{margin:1em 0;padding:0 0 0 40px}dd{margin:0 0 0 40px}nav ul,nav ol{list-style:none;margin:0;padding:0}img{border:0;-ms-interpolation-mode:bicubic}svg:not(:root){overflow:hidden}figure{margin:0}form{margin:0}fieldset{border:0;margin:0;padding:0}legend{border:0;*margin-left:-7px;padding:0}label{cursor:pointer}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal;*overflow:visible}button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}input[type="checkbox"],input[type="radio"]{box-sizing:border-box}input[type="search"]{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}input:invalid,textarea:invalid{background-color:#f0dddd}table{border-collapse:collapse;border-spacing:0}div#container{max-width:1000px;margin:0 auto;position:relative}header#top{height:100px}header#top h1{float:left;margin:43px 0 0 0;font-size:36px;text-transform:uppercase}header#top h1 a{color:#3c3333;text-decoration:none}header#top nav ul{margin:50px 0 0 0;list-style:none;float:right}header#top nav ul li{float:left;margin:0 0 0 10px}header#top nav ul li a{text-transform:uppercase;text-decoration:none;color:#fff;background:#3c3333;display:block;padding:5px 15px 3px 15px;font-size:16px}header#top nav ul li.search a{background:url(nav-icons.png) no-repeat left center #3c3333;text-indent:-9999px}header#top nav ul li.audio a{background:url(nav-icons.png) no-repeat -30px center #3c3333;text-indent:-9999px}header#top nav ul li a.current,header#top nav ul li a:hover{background-color:#767070}div#main{margin:20px 0 60px 0}div#search{display:none;position:absolute;background:#3c3333;width:100%;top:0;left:0;text-align:right;color:#fff}div#search form{max-width:1000px;padding:7px 0;margin:0 auto}div#search form label{text-transform:uppercase;font-size:14px}div#search form input{margin:0 0 0 10px}div#search form input.btn{background:#d5cdcd;background:-moz-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#d5cdcd),color-stop(100%,#aba6a6));background:-webkit-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:-o-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:-ms-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:linear-gradient(top,#d5cdcd 0,#aba6a6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#d5cdcd',endColorstr='#aba6a6',GradientType=0);-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border:0;-o-box-shadow:0 0 3px rgba(0,0,0,0.7);-webkit-box-shadow:0 0 3px rgba(0,0,0,0.7);-moz-box-shadow:0 0 3px rgba(0,0,0,0.7);box-shadow:0 0 3px rgba(0,0,0,0.7);font-size:14px;padding:3px 5px 2px 5px}div#search form span.close a{color:#b1adad;text-decoration:none;margin:0 0 0 10px}div#audio{display:none;position:absolute;top:100px;right:0}div#audio div.player{background:rgba(60,51,51,0.95);color:#fff;padding:10px;width:800px;float:right}div#audio div.player a{color:#fff;text-decoration:none}div#audio div.player ol{float:right;margin:0;padding:0;font-size:13px;width:420px;list-style:none}div#audio div.player ol li{margin:0 0 1px 0}div#audio div.player ol li a{display:block;padding:4px 10px 3px 10px}div#audio div.player ol li:nth-child(even) a{background:rgba(255,255,255,0.08);-webkit-transition:all .5s ease-in;-moz-transition:all .5s ease-in;-o-transition:all .5s ease-in;transition:all .5s ease-in}div#audio div.player ol li:nth-child(odd) a{background:rgba(255,255,255,0.16)}div#audio div.player ol li a:hover{background:rgba(255,255,255,0.24)}div#audio div.player ol li.current a{background:rgba(255,255,255,0.7);color:#3c3333}div#audio div.player ol li a span{float:right}div#audio div.player span.control{display:block}div#audio div.player span.control a{background:url(audio-icons.png) #d5cdcd;background:url(audio-icons.png) -moz-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:url(audio-icons.png) -webkit-gradient(linear,left top,left bottom,color-stop(0%,#d5cdcd),color-stop(100%,#aba6a6));background:url(audio-icons.png) -webkit-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:url(audio-icons.png) -o-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:url(audio-icons.png) -ms-linear-gradient(top,#d5cdcd 0,#aba6a6 100%);background:url(audio-icons.png) linear-gradient(top,#d5cdcd 0,#aba6a6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#d5cdcd',endColorstr='#aba6a6',GradientType=0);-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-o-box-shadow:0 0 3px rgba(0,0,0,0.7);-webkit-box-shadow:0 0 3px rgba(0,0,0,0.7);-moz-box-shadow:0 0 3px rgba(0,0,0,0.7);box-shadow:0 0 3px rgba(0,0,0,0.7);display:block;float:left;text-indent:-9999px;width:30px;height:30px;margin:0 5px 0 0}div#audio div.player span.control a.rew{background-position:left top}div#audio div.player span.control a.play{background-position:-30px top}div#audio div.player span.control a.pause{background-position:-60px top}div#audio div.player span.control a.stop{background-position:-90px top}div#audio div.player span.control a.forw{background-position:-120px top}div#audio div.player p{margin:50px 0 0 0}div#audio div.player p+p{margin:0}div#audio div.player p small{float:left;width:70px;font-style:italic;padding:2px 0 0 0}div#audio span.close a{color:#b1adad;text-decoration:none;position:absolute;right:-20px}div#slider{margin:0 0 30px 0}div.column ul{margin:0;padding:0;list-style:none;clear:both}div.column ul li{float:left;width:32%;overflow:hidden;margin:0 0 30px 0}div.column ul li.middle{margin:0 2%}div.column ul li h2,div.blog h1{text-transform:uppercase;font-weight:normal;font-size:18px;margin:0 0 5px 10px}div.column ul li h3{text-transform:uppercase;font-weight:normal;font-size:18px;margin:0 0 15px 0;padding:0 0 5px 5px;border-bottom:1px solid #ccc}div.column ul li h2 a,div.blog h2 a,div.blog div.post h3 a{color:#3c3333;text-decoration:none}div.column ul li p{margin:0 0 20px 0}div.blog div.post a.thumb{float:left;width:32%;overflow:hidden;margin:0 2% 50px 0}div.blog{clear:both}div.blog div.post h3{margin:0 0 10px 0;font-size:24px;text-transform:uppercase}div.blog div.post p{margin:0}div.blog div.post span.more{float:right}div.blog div.post span.more a{text-transform:uppercase;text-decoration:none;color:#fff;background:#3c3333;display:block;padding:5px 15px 3px 15px;font-size:16px}div.blog div.post span.more a:hover{background:#767070}div#main div.fullpage{margin-top:25px}div#main div.fullpage .left{display:block;float:left;width:auto;margin:0 2% 2% 0;overflow:hidden}div#main table{width:100%;margin:30px 0}div#main table caption{text-transform:uppercase;text-align:left;font-size:18px;font-weight:bold}div#main table td,div#main table th{text-align:left;padding:5px}div#main table tbody tr{border-bottom:1px solid #fff}div#main table tbody tr:nth-child(even){background:#f1ecec}div#main table tbody tr:nth-child(odd){background:#e2dddd}div.fullpage div.media{width:100%;overflow:hidden;position:relative}div.fullpage div.media img{width:100%}div.fullpage div.media div.pics-note{position:absolute;bottom:0;left:0;display:block;background:rgba(255,255,255,0.7);width:100%}div.fullpage div.media div.pics-note h2{font-size:18px;text-transform:uppercase;font-weight:normal;margin:15px 15px 0 15px}div.fullpage div.media div.pics-note p{font-size:14px;margin:0 15px 21px 15px}ul#mycarousel li.current{border:2px solid #767070}ul#mycarousel li{position:relative}ul#mycarousel li span.play{position:absolute;display:block;width:75px;height:75px;text-indent:-9999px;background:url(play-icon.png)}div#gallery h1{font-size:18px;text-transform:uppercase;font-weight:normal}div#gallery p.notes{font-size:14px;float:right;margin:0}div#gallery article a{color:#515151}div#gallery article a p{display:none;position:absolute;background:rgba(255,255,255,0);width:100%;bottom:0;left:0;-webkit-transition:all .9s ease-in;-moz-transition:all .9s ease-in;-o-transition:all .9s ease-in;transition:all .9s ease-in;margin:0}div#gallery article a:hover p{display:block;background:rgba(255,255,255,0.7)}div#gallery article a:hover p em{display:block;margin:5px 14px;font-style:normal}div#gallery ul.item-nav{margin:30px 20%;width:60%;height:75px;list-style:none;padding:0}div#gallery ul.item-nav li{float:left;width:14.2857143%;text-align:center;margin:0 0 45px 0}div#gallery ul.item-nav li a{display:block;background:#3c3333;color:#fff;text-decoration:none;padding:10px 0;border-left:1px solid #fff}div#gallery ul.item-nav li a:hover{background:#767070}div#gallery ul.item-nav li.current{padding:10px 0;font-weight:bold}div#gallery.big article{float:left;width:32%;overflow:hidden;height:240px;position:relative}div#gallery.big article.end{margin:0 0 30px 0}div#gallery.big article{margin:0 2% 30px 2%}div#gallery.small article{float:left;width:19%;overflow:hidden;height:142px;position:relative}div#gallery.small article.end{margin:0 0 30px 0}div#gallery.small article{margin:0 8px 30px 8px}div#main div.left-cont{float:left;width:650px}div#main div.left-cont span.thumb{display:block;width:100%;overflow:hidden}div#main div.left-cont span.thumb img{width:100%}div#main div.left-cont h1{font-size:24px}div#main div.left-cont div.column{margin:30px 0}div#main div.left-cont div.column ul.double li{float:left;width:48%}div#main div.left-cont div.column ul.double li+li{margin-left:4%}div#main div.left-cont div.column ul.double li p{margin-top:10px}body#index2 div#main div.left-cont .column img,body#index2 div#main div.left-cont .blog img{width:200px}body#index2 div#main div.left-cont .blog img{margin-bottom:50px}body#index2 div#main div.left-cont h2{font-size:18px;font-weight:normal;margin:0 0 5px 10px;text-transform:uppercase}div#main aside{width:30%;float:right}div#main .right aside{width:30%;float:left}div#main aside a{color:#e12929}div#main aside ul,div#main aside ul li ul{margin:0 0 30px 0;list-style:none;padding:0}div#main aside ul li{margin:0 0 25px 0;padding-bottom:10px;border-bottom:1px dotted #999}div#main aside ul li:last-child{border-bottom:0}div#main aside ul li h3{font-size:18px;margin:0}div#main aside ul li ul li{font-size:14px;font-style:italic;margin:0}div#main aside ul li ul li strong{font-weight:bold;font-style:normal}div#main aside ul li.twitter ul li{font-size:16px;font-style:normal;margin:0;padding:5px 0;border-bottom:dotted 1px #999;line-height:24px}div#main aside ul li.twitter ul li.follow{text-align:right;border-bottom:0;background:url(twitter.png) 130px 6px no-repeat}div#main aside ul li.events ul li.calendar{background:url("calendar.png") no-repeat scroll 170px 6px transparent;border-bottom:medium none;text-align:right;font-style:normal;font-size:16px;line-height:32px}footer.bottom{clear:both;background:#3c3333;color:#b1adad;padding:20px 0;height:100px}footer.bottom div.inner{max-width:1000px;margin:0 auto}footer.bottom ul.sn{margin:0;padding:0;list-style:none;float:left}footer.bottom ul.sn li{float:left;width:50px;height:50px}footer.bottom ul.sn li a{display:block;width:50px;height:50px;text-indent:-9999px;opacity:.6;-ms-filter:"alpha(opacity=60)";filter:alpha(opacity=60);-moz-opacity:.6;-khtml-opacity:.6}footer.bottom ul.sn li.facebook a{background:url(social-icons.png) left top}footer.bottom ul.sn li.flickr a{background:url(social-icons.png) -50px top}footer.bottom ul.sn li.twitter a{background:url(social-icons.png) -100px top}footer.bottom ul.sn li.youtube a{background:url(social-icons.png) -150px top}footer.bottom ul.sn li.linkedin a{background:url(social-icons.png) -200px top}footer.bottom ul.sn li.google a{background:url(social-icons.png) -250px top}footer.bottom ul.sn li a:hover{opacity:1;-ms-filter:"alpha(opacity=100)";filter:alpha(opacity=100);-moz-opacity:1;-khtml-opacity:1}footer.bottom p{text-align:right;margin:10px 0 0 0;float:right}footer.bottom p a{color:#b1adad;text-decoration:none}#toolbar{background:url(toolbar-bg.png) 0 0 repeat-x;height:52px;display:none}#toolbar nav{float:left;background:url(nav-border.png) right 0 repeat-y;height:50px;padding:0 38px}#toolbar nav ul li{float:left;margin:0 0 0 10px}#toolbar nav ul li a{background:none repeat scroll 0 0 #3c3333;color:#fff;display:block;font-size:14px;padding:5px 15px 7px;text-decoration:none;text-transform:lowercase;position:relative;top:8px}#toolbar nav ul li a:hover{background-color:#f5f5f5!important;color:#3c3333;text-shadow:1px 1px 1px #fff}#toolbar nav.first ul li a{padding:9px 15px 11px;top:4px}#toolbar nav ul li a.plus{width:36px;height:33px;padding:0;background:url(plus.png) 0 0 no-repeat;text-indent:-999em}#toolbar nav ul li a.minus{width:36px;height:33px;padding:0;background:url(minus.png) 0 0 no-repeat;text-indent:-999em}#toolbar nav ul li a.save{background:#3c3333 url(toolbar-save.png) 10px 8px no-repeat;padding-left:35px}#toolbar nav ul li a.publish{background:#3c3333 url(toolbar-publish.png) 10px 8px no-repeat;padding-left:35px}#toolbar nav ul li a.navigation{background:#3c3333 url(toolbar-navigation.png) 10px 8px no-repeat;padding-left:35px}#toolbar nav ul li a.layout{background:#3c3333 url(toolbar-layout.png) 10px 8px no-repeat;padding-left:35px}#toolbar nav ul li a.themes{background:#3c3333 url(toolbar-themes.png) 10px 8px no-repeat;padding-left:35px}#toolbar nav ul li a.images{background:#3c3333 url(toolbar-images.png) 10px 8px no-repeat;padding-left:4px}#toolbar span.imageNumber{background:#83b64c;border-radius:10px;color:#fff;display:block;font-size:12px;height:20px;left:15px;line-height:19px;position:relative;text-align:center;top:-5px;width:20px}#toolbar nav ul li img{position:relative;top:5px}#toolbar img.user{position:relative;top:5px;float:left;margin-right:10px}#toolbar .hello{font-weight:bold;color:#8d8d8d;text-shadow:1px 1px 1px #fff;padding-top:3px;width:220px}#toolbar .hello span{font-weight:normal;font-style:italic}#toolbar nav ul.userActions li{margin:0 8px 0 0}#toolbar nav ul.userActions li a{background:0;display:block;font-size:14px;padding:0;text-decoration:underline;text-transform:lowercase;text-shadow:1px 1px 1px #fff;font-weight:bold;position:relative;top:0;line-height:14px;padding-left:18px}#toolbar nav ul.userActions li:first-child a{color:#1a1a1a;background:url(myaccount.png) 0 2px no-repeat}#toolbar nav ul.userActions li:last-child a{color:#d81515;background:url(logout.png) 0 2px no-repeat}#toolbar nav ul.userActions li a:hover{background-color:transparent!important;text-decoration:none}#slideshow{list-style:none;color:#fff}#slideshow span{display:none}#wrapper{width:1000px;margin:10px auto 100px;display:none}#wrapper *{margin:0;padding:0}#fullsize{position:relative;width:1000px;height:500px}#information{position:absolute;bottom:0;width:1000px;height:0;background:url(caption-white.png) left top repeat;color:#3c3333;overflow:hidden;z-index:200}#information h3{padding:20px 10px 0 10px;font-size:18px;margin-bottom:5px;text-transform:uppercase}#information p{padding:0 10px 20px 10px;margin:0;font-size:14px;line-height:18px}#image{width:1000px;elevation:500px}#image img{position:absolute;z-index:25;width:1000px;height:500px}.imgnav{position:absolute;width:54px;height:101px;cursor:pointer;z-index:150;opacity:.6!important;top:515px}.imgnav:hover{opacity:1!important}#imgprev{left:0;background:url(left.png) left center no-repeat}#imgnext{right:0;background:url(right.png) right center no-repeat}#imglink{position:absolute;height:306px;width:100%;z-index:100;opacity:1}#thumbnails{margin-top:15px}#slidearea{float:left;position:relative;width:875px;margin-left:60px;height:101px;overflow:hidden}#slider{position:absolute;left:0;height:101px}#slider img{cursor:pointer;border:2px solid #767070;height:101px}#slideright,#slideleft{display:none}#contact{float:left;width:600px;background:#ebeaea;padding:20px 25px}.rightContent{float:right;width:650px}.rightContent h3{margin-top:0}#contact h4{font-size:24px;color:#515151;font-weight:bold;margin-bottom:10px;margin-top:0}#contact h6{font-size:18px;color:#515151;font-weight:normal;margin-bottom:20px;margin-top:0}#contact label{display:block;font-size:18px;color:#515151;font-weight:normal;margin-bottom:5px}#contact input{padding:3px;width:240px;height:25px;line-height:25px;margin:0 0 15px 0;font-size:14px;color:#515151;border:1px solid #c9c3c3}#contact textarea{padding:3px;width:592px;min-width:592px;max-width:592px;min-height:205px;max-height:205px;font-size:14px;color:#515151;height:205px;line-height:25px;font-family:Arial,Helvetica,sans-serif;margin:0 0 15px 0;border:1px solid #c9c3c3}#contact input.submit{float:right;font-size:18px;text-transform:uppercase;color:#fff;background:#3c3333;padding:5px 30px;text-decoration:none;cursor:pointer;width:auto;height:auto;border:0}#contact input.submit:hover{background:#767070;text-decoration:none}.blogContent{float:left;width:650px}.blogContent h2{margin-top:0;font-size:24px;margin-bottom:0}.blogContent .postDetails{margin-right:135px;margin-bottom:15px;border-bottom:1px dotted #e3e3e3;border-top:1px dotted #e3e3e3}.blogContent .postDetails ul{margin:0;padding:0}.blogContent .postDetails ul li{list-style:none;font-size:11px;display:inline;padding:0 4px 0 8px;border-left:1px solid #e3e3e3;line-height:24px}.blogContent .postDetails ul li:first-child{padding:0 4px 0 0;border:0}.blogContent .postDetails ul li.draft{float:right;line-height:14px;position:relative;top:5px}.blogContent .postDetails ul li.draft input{margin-right:5px;position:relative;top:2px}.blogContent p{padding-right:135px}.blogContent p.quote{padding-left:48px;background:url(quote.png) 0 0 no-repeat;font-style:italic}.blogContent img{padding:6px 11px;background:#ebeaea;border-top:1px solid #d9d0d0}.blogContent #social ul li{float:right;list-style:none;margin-left:5px}.blogContent #social ul li.pin img{background:0;border-top:0;padding:0}.blogContent #social ul li.tweets{position:relative;top:0;width:75px}.blogContent #social ul li.stumble{position:relative;top:1px}.blogContent #social ul li.facebook{position:relative;top:-5px;width:60px}.blogContent #social ul li.googleplus{position:relative;top:0;width:60px}.blogContent .tags{padding:10px 11px;background:#ebeaea;border-top:1px solid #d9d0d0;margin-top:35px}.blogContent .tags ul{background:url(tags-icon.png) 0 1px no-repeat;padding-left:20px;margin:0}.blogContent .tags ul li,.blogContent .tags ul li h4{display:inline;margin:0}.blogContent .tags ul li{background:url(tags-sep.png) right 6px no-repeat;padding:0 10px 0 0}.blogContent .tags ul li:first-child{padding-left:0;background:0}.blogContent .tags ul li:last-child{padding-right:0;background:0}.blogContent .tags ul li a{color:#515151;font-size:14px}#main.blog aside ul li{border:0;margin-bottom:5px}#main.blog aside ul li h3{border-bottom:1px dotted #999;padding-bottom:10px;margin-bottom:15px}#main.blog aside ul li img.left{margin-right:15px;margin-bottom:0}#main.blog aside ul li ul li{display:inline;font-style:normal;line-height:14px}#main.blog aside ul li ul li.tag1{font-size:10px}#main.blog aside ul li ul li.tag2{font-size:14px}#main.blog aside ul li ul li.tag3{font-size:18px}#main.blog aside ul li ul li.tag4{font-size:24px}#main.blog aside ul li.recent ul li{float:left;padding-bottom:0;margin-bottom:10px;border-bottom:1px dotted #999}#main.blog aside ul li.recent ul li:last-child{border-bottom:0}#main.blog aside ul li.recent ul li img{float:left;margin:0 20px 10px 0}#main.blog aside ul li.recent ul li h4{font-size:15px;margin-top:0;margin-bottom:5px;padding-right:0}#main.blog aside ul li.recent ul li h4 a{text-decoration:none;color:#515151}#main.blog aside ul li.recent ul li h4 a:hover{text-decoration:underline;color:#e31414}#main.blog aside ul li.recent ul li p{line-height:21px;padding-right:0;font-size:13px}#main.blog .blogPost{padding:6px 9px;background:#ebeaea;border-top:1px solid #d9d0d0}#main.blog .blogPost img{padding:0;background:0;border-top:0}#main.blog .postInfo{float:left;width:235px;background:url(blogInfo-sep.png) right 0 repeat-y;margin-top:10px}#main.blog .postInfo h3{margin:0 0 5px 0}#main.blog .postInfo span{display:block;font-size:13px;color:#515151}#main.blog .postInfo span a{color:#515151}#main.blog .postInfo span.date{font-style:italic}#main.blog .postIntro{float:right;width:390px;margin-top:10px}#main.blog .postIntro p{padding:0;font-size:14px;line-height:21px;margin-top:0;margin-left:30px}#main.blog .postIntro span.more{float:right}#main.blog .postIntro span.more a{background:none repeat scroll 0 0 #3c3333;color:#fff;display:block;font-size:16px;padding:5px 15px 3px;text-decoration:none;text-transform:uppercase;margin-bottom:10px}#main.blog .postIntro span.more a:hover{background:none repeat scroll 0 0 #767070}#main.blog .fullblogPost{padding:0;background:#fff;border-top:0;margin-bottom:15px}#main.blog .fullblogPost .title{background:url(caption-white.png) 0 0 repeat;position:relative;margin-top:-42px}#main.blog .fullblogPost .title h2{font-weight:normal;width:73%;padding-left:2%;float:left;margin:0;position:relative;line-height:36px}#main.blog .fullblogPost .title span.titleDate{font-style:italic;width:23%;padding-right:2%;float:right;text-align:right;line-height:32px}#main.blog .fullblogPost p{padding:0 10px}#main.blog .fullblogPost p.postDetails{font-size:13px;font-style:italic;width:80%;float:left}#main.blog .fullblogPost p.postDetails a{color:#515151;font-style:normal}#main.blog .fullblogPost a.readmore{float:right;background:none repeat scroll 0 0 #3c3333;color:#fff;display:block;font-size:16px;padding:5px 15px 3px;text-decoration:none;text-transform:uppercase}#main.blog .fullblogPost a.readmore:hover{background:none repeat scroll 0 0 #767070}body#full{background:#000 url(fullBg.jpg) center 0 no-repeat}body#full header{background:url(headerBg.png) 0 0 repeat;margin-top:43px;height:auto}body#full header h1{margin:0;padding-left:10px}body#full header nav ul{margin-top:10px;padding-right:10px}body#full #main{min-height:935px}body#full footer{background:url(footerBg.png) 0 0 repeat}.ir{display:block;text-indent:-999em;overflow:hidden;background-repeat:no-repeat;text-align:left;direction:ltr}.ir br{display:none}.hidden{display:none;visibility:hidden}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.invisible{visibility:hidden}.clearfix:before,.clearfix:after{content:"";display:table}.clearfix:after{clear:both}.clearfix{zoom:1}@media print{*{background:transparent!important;color:black!important;text-shadow:none!important;filter:none!important;-ms-filter:none!important}a,a:visited{color:#444!important;text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}}
5 templates/edit.html
@@ -48,7 +48,10 @@
48 48 {% endif %}
49 49
50 50 {% if page.type == 'blog' and pagenum %}
51   - {% set i = page.get_blogpost(pagenum).image.get() %}
  51 + {% set b = page.get_blogpost(pagenum) %}
  52 + $.tnm.postdate = new Date('{{ b.date }}');
  53 +
  54 + {% set i = b.image.get() %}
52 55 {% set id = '_postimage_%s' %pagenum %}
53 56 $.tnm.imageurls["{{ id }}"] = {
54 57 orig: "{{ i.orig|default('', true) }}",
18 templates/themes/marco/blog.html
@@ -13,7 +13,7 @@
13 13 <div class="postInfo">
14 14 <h3>{{ b.title }}</h3>
15 15 <span class="date">{{ b.date|fdate }}</span>
16   - {% if b.author %}<span>by {{ b.author }}{% endif %}
  16 + <span>by {{ b.author }}
17 17 {% if b.tags %}<span>in {{ b.tags|join(', ') }}</span>{% endif %}
18 18 </span>
19 19 </div>
@@ -25,9 +25,18 @@
25 25 </div>
26 26 {% endfor %}
27 27 {% else %}
28   - {{ page.get_blogpost(pagenum).image.get().render(postid=pagenum) }}
29   - {{ page|editposttitle(pagenum, 'h2') }}
30   - {{ page|editposttext(pagenum, 'div') }}
  28 + {% set b = page.get_blogpost(pagenum) %}
  29 + {{ b.image.get().render(postid=pagenum) }}
  30 + {{ b|editposttitle('h2') }}
  31 + <div class="postDetails">
  32 + <ul>
  33 + <li class="date">Published on {{ b|editpostdate }}</li>
  34 + <li class="author">Created by {{ b|editpostauthor }}</li>
  35 + {% if edit %}<li class="draft">{{ b|editpostdraft }}</li>{% endif %}
  36 + </ul>
  37 + <div class="clr"></div>
  38 + </div>
  39 + {{ b|editposttext('div') }}
31 40 <div class="tags">
32 41 <ul>
33 42 <li><h4>TAGS:</h4></li>
@@ -46,6 +55,7 @@
46 55 <h3>About Me</h3>
47 56 {{ images[0].render('left') }}
48 57 {{ page|edittext(0, 'div') }}
  58 + <div class="clr"></div>
49 59 </li>
50 60 <li>
51 61 <h3>Tags</h3>

No commit comments for this range

Something went wrong with that request. Please try again.