Skip to content

Instantly share code, notes, and snippets.

@cturra
Created December 10, 2014 23:05
Show Gist options
  • Save cturra/a3f551a6797826643473 to your computer and use it in GitHub Desktop.
Save cturra/a3f551a6797826643473 to your computer and use it in GitHub Desktop.
$ svn diff
Index: footer.php
===================================================================
--- footer.php (revision 135538)
+++ footer.php (working copy)
@@ -3,13 +3,13 @@
<footer id="site-info">
<nav id="nav-legal">
<ul>
- <li><a href="http://www.mozilla.org/privacy/websites/" rel="external">Privacy Policy</a></li>
- <li><a href="http://www.mozilla.org/about/legal.html" rel="external">Legal Notices</a></li>
- <li><a href="http://www.mozilla.org/legal/fraud-report/" rel="external">Report Trademark Abuse</a></li>
+ <li><a href="https://www.mozilla.org/privacy/websites/" rel="external">Privacy Policy</a></li>
+ <li><a href="https://www.mozilla.org/about/legal.html" rel="external">Legal Notices</a></li>
+ <li><a href="https://www.mozilla.org/legal/fraud-report/" rel="external">Report Trademark Abuse</a></li>
</ul>
</nav>
- <p id="copyright">Except where otherwise noted, content on this site is licensed under the <br /><a href="http://creativecommons.org/licenses/by-sa/3.0/" rel="license external">Creative Commons Attribution Share-Alike License v3.0</a> or any later version.</p>
+ <p id="copyright">Except where otherwise noted, content on this site is licensed under the <br /><a href="https://creativecommons.org/licenses/by-sa/3.0/" rel="license external">Creative Commons Attribution Share-Alike License v3.0</a> or any later version.</p>
<nav id="nav-footer">
<h5>hacks.mozilla.org:</h5>
Index: functions.php
===================================================================
--- functions.php (revision 135538)
+++ functions.php (working copy)
@@ -535,12 +535,13 @@
*/
function tmh_flush_rules() {
global $wp_rewrite;
- $wp_rewrite->flush_rules();
+ $wp_rewrite->flush_rules(false);
}
add_filter('rewrite_rules_array','tmh_page_order_rewrite_rules');
add_filter('query_vars','tmh_page_order_query_vars');
-add_filter('init','tmh_flush_rules');
+add_action('after_switch_theme', 'tmh_flush_rules');
+
/*********
* Returns the modified list of fields to return for the get posts query
*/
Index: header.php
===================================================================
--- header.php (revision 135538)
+++ header.php (working copy)
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html <?php language_attributes(); ?> id="hacks-mozilla-org">
<head>
- <meta name="viewport" content="width=1024">
+ <meta name="viewport" content="width=device-width">
<meta charset="<?php bloginfo( 'charset' ); ?>">
<!-- OpenGraph metadata -->
@@ -14,7 +14,7 @@
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
- <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="shortcut icon" type="image/ico" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico">
@@ -70,11 +70,12 @@
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-35433268-8'],
['_setAllowAnchor', true]);
+ _gaq.push (['_gat._anonymizeIp']);
_gaq.push(['_trackPageview']);
_gaq.push( removeUtms );
(function(d, k) {
var ga = d.createElement(k); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == d.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ ga.src = 'https://ssl.google-analytics.com/ga.js';
var s = d.getElementsByTagName(k)[0]; s.parentNode.insertBefore(ga, s);
})(document, 'script');
</script>
@@ -105,7 +106,7 @@
<li <?php if ( is_page('about') ) {?>class="selected"<?php } ?>><a href="<?php echo get_permalink(get_page_by_path('about')->ID); ?>">About</a></li>
</ul>
</nav>
- <a href="http://www.mozilla.org/" id="tabzilla">Mozilla</a>
+ <a href="#" id="tabzilla">Mozilla</a>
</header><!-- /#branding -->
<div id="content">
Index: style.css
===================================================================
--- style.css (revision 135538)
+++ style.css (working copy)
@@ -119,7 +119,7 @@
#content-bar.single { padding: .85em 2em .8em 4em; }
#content-bar.single .entry-posted, #content-bar.single .entry-cat { font-size: 1.2em; margin-bottom: 2px; float: left; }
#content-bar.single li { display: inline; font-size: 1.2em; margin: 0; }
-#content-bar.single .entry-meta { width: 50em; float: left; line-height: 1.6; }
+#content-bar.single .entry-meta { float: left; line-height: 1.6; }
#content-bar.single .entry-meta abbr { color: #000; }
#content-bar.single p.entry-posted { margin-right: 2em; }
#content-bar.single p.entry-cat a { display: inline-block; background: #d0796b; background: rgba(164, 1, 6, .5); color: #fff; padding: 0 4px; margin: 0 0 2px 4px; text-decoration: none; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
@@ -276,7 +276,7 @@
#nav-main .selected a:hover, #nav-main .selected a:focus, #nav-main .selected a:active { text-decoration: underline; }
/* =Breadcrumbs *********/
-ul.nav-crumbs { font-size: 1.2em; width: 42em; float: left; clear: both; margin-bottom: 1em; }
+ul.nav-crumbs { font-size: 1.2em; float: left; clear: both; margin-bottom: 1em; }
ul.nav-crumbs li { display: inline; }
ul.nav-crumbs li:after { content: "\00A0\00BB\00A0"; font-size: 1.2em; line-height: 1; } /* nbsp raquo nbsp */
@@ -476,10 +476,27 @@
#nav-footer li:first-child { border-left: 0; }
/*---Make it Responsive---*/
+img, video, iframe { max-width: 100%; }
+
@media all and (max-width: 900px){
#outer-wrapper{
background-size: 120%;
}
+ header#branding {
+ padding-left: 0;
+ }
+ #content-head .nav-paging, #content-head .nav-crumbs {
+ width: auto;
+ position: relative;
+ top: auto;
+ right: auto;
+ }
+ #content-head .nav-paging {
+ margin-top: 1em;
+ }
+ #nav-main li {
+ margin-left: 0.25em;
+ }
header#branding,footer#site-info,div#content{
width: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment