]> iEval git - plack-app-gruntmaster.git/commitdiff
Add sponsor sidebar
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 7 Feb 2014 08:54:31 +0000 (10:54 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 7 Feb 2014 08:54:31 +0000 (10:54 +0200)
js/90-custom.js
lib/Gruntmaster/Page/Base.pm

index 3759c1b4cfdb14fb75a74426e94ad4b981eaaa91..923ebaf324b8dc02ab62fe64e67658df7753c566 100644 (file)
                $('#theme_cerulean').on('click', function () { set_style("cerulean"); });
                $('#theme_cyborg'  ).on('click', function () { set_style("cyborg"); });
                $('#theme_cosmo'   ).on('click', function () { set_style("cosmo"); });
+
+               if(!$('#sidebar').size()) {
+                       var content = $('#content');
+                       content.wrapInner('<div class="col-md-9">').append('<div id="sidebar" class="col-md-3">').addClass('row');
+               }
+               $('#sponsors').detach().appendTo($('#sidebar'));
        });
 
        var theme = localStorage.getItem("theme");
index cf29eacc3c56962148f012739c16bc36b0260aee..9622d2ae621849d2f7be00e8c673953f2e09cd6c 100644 (file)
@@ -85,12 +85,19 @@ my %orig_header_templates = (
 
 <h1 id="title">TITLE_GOES_HERE</h1>
 <div id="result"></div>
+
+<div id="content">
 HTML
 );
 
 my %orig_footer_templates = (
   en => <<'HTML',
 
+</div>
+</div>
+
+<div id="sponsors"> </div>
+
 <footer>
 Dilmom: Why don't you call your product the Gruntmaster 6000?
 Dilbert: What kind of product do you see when you imagine a Gruntmaster 6000?
This page took 0.020801 seconds and 4 git commands to generate.