Skip to content

Commit

Permalink
Sticky footer.
Browse files Browse the repository at this point in the history
  • Loading branch information
devinsays committed Oct 19, 2014
1 parent 1619374 commit ec98418
Show file tree
Hide file tree
Showing 11 changed files with 248 additions and 255 deletions.
2 changes: 1 addition & 1 deletion .csscomb.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"space-before-selector-delimiter": "",
"space-before-closing-brace": "\n",
"unitless-zero": true,
"vendor-prefix-align": true,
"vendor-prefix-align": false,
"sort-order": [
"$variable",
"$include",
Expand Down
55 changes: 28 additions & 27 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,44 @@
</div>
</div><!-- #main -->

<footer id="colophon">
<div class="col-width">
</div><!-- #page -->

<?php if ( is_active_sidebar('footer-1') ||
is_active_sidebar('footer-2') ||
is_active_sidebar('footer-3') ||
is_active_sidebar('footer-4') ) : ?>
<footer id="colophon">
<div class="col-width">

<div id="footer-widgets">
<?php if ( is_active_sidebar('footer-1') ||
is_active_sidebar('footer-2') ||
is_active_sidebar('footer-3') ||
is_active_sidebar('footer-4') ) : ?>

<?php $i = 0; while ( $i <= 4 ) : $i++; ?>
<?php if ( is_active_sidebar('footer-'.$i) ) { ?>
<div id="footer-widgets">

<div class="block footer-widget-<?php echo $i; ?>">
<?php dynamic_sidebar('footer-'.$i); ?>
</div>
<?php $i = 0; while ( $i <= 4 ) : $i++; ?>
<?php if ( is_active_sidebar('footer-'.$i) ) { ?>

<?php } ?>
<?php endwhile; ?>
<div class="block footer-widget-<?php echo $i; ?>">
<?php dynamic_sidebar('footer-'.$i); ?>
</div>

<div class="clear"></div>
<?php } ?>
<?php endwhile; ?>

</div><!-- /#footer-widgets -->
<div class="clear"></div>

<?php endif; ?>
</div><!-- /#footer-widgets -->

<div id="site-generator">
<p><?php if (!$footer = of_get_option('footer_text', false) ) { ?>
<?php _e('Powered by', 'portfolio-press'); ?> <a href="http://wordpress.org/" title="<?php esc_attr_e( 'A Semantic Personal Publishing Platform', 'portfolio-press' ); ?>" rel="generator"><?php printf( __( 'WordPress', 'portfolio-press' ) ); ?></a> &amp; <a href="http://wptheming.com/2010/07/portfolio-theme/"><?php _e('Portfolio', 'portfolio-press'); ?></a>.
<?php } else {
echo stripslashes($footer);
} ?>
</p>
</div>
<?php endif; ?>

<div id="site-generator">
<p><?php if (!$footer = of_get_option('footer_text', false) ) { ?>
<?php _e('Powered by', 'portfolio-press'); ?> <a href="http://wordpress.org/" title="<?php esc_attr_e( 'A Semantic Personal Publishing Platform', 'portfolio-press' ); ?>" rel="generator"><?php printf( __( 'WordPress', 'portfolio-press' ) ); ?></a> &amp; <a href="http://wptheming.com/2010/07/portfolio-theme/"><?php _e('Portfolio', 'portfolio-press'); ?></a>.
<?php } else {
echo stripslashes($footer);
} ?>
</p>
</div>
</footer><!-- #colophon -->
</div><!-- #page -->
</div>
</footer><!-- #colophon -->

<?php wp_footer(); ?>

Expand Down
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</head>

<body <?php body_class(); ?>>
<div id="wrapper">
<div id="page">

<header id="branding">
<div class="col-width">
Expand Down
Binary file modified languages/fr_FR.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion languages/fr_FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: portfolio-press\n"
"Report-Msgid-Bugs-To: http://wptheming.com/\n"
"POT-Creation-Date: 2014-10-14 17:55:35+00:00\n"
"PO-Revision-Date: 2014-10-13 17:32+0000\n"
"PO-Revision-Date: 2014-10-18 09:21+0000\n"
"Last-Translator: FxB <[email protected]>\n"
"Language-Team: French (France) (http://www.transifex.com/projects/p/portfolio-press/language/fr_FR/)\n"
"MIME-Version: 1.0\n"
Expand Down
6 changes: 3 additions & 3 deletions languages/portfolio-press.pot
Original file line number Diff line number Diff line change
Expand Up @@ -455,15 +455,15 @@ msgstr ""
msgid "Next &rarr;"
msgstr ""

#: footer.php:39
#: footer.php:41
msgid "Powered by"
msgstr ""

#: footer.php:39
#: footer.php:41
msgid "A Semantic Personal Publishing Platform"
msgstr ""

#: footer.php:39
#: footer.php:41
msgid "WordPress"
msgstr ""

Expand Down
Binary file modified languages/pt_BR.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion languages/pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: portfolio-press\n"
"Report-Msgid-Bugs-To: http://wptheming.com/\n"
"POT-Creation-Date: 2014-10-14 17:55:35+00:00\n"
"PO-Revision-Date: 2014-10-13 17:32+0000\n"
"PO-Revision-Date: 2014-10-18 09:21+0000\n"
"Last-Translator: FxB <[email protected]>\n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/portfolio-press/language/pt_BR/)\n"
"MIME-Version: 1.0\n"
Expand Down
7 changes: 4 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,20 @@ Additional testing and code audits were done by [Michael Fields](http://wordpres

A huge thanks to everyone who has contributed translations.

* Français (French (France)) - @fxbenard
* Português (Portuguese (Portugal)) - Pedro Mendonca
* Français (fr_FR) - @fxbenard
* Português (pt_PT) - Pedro Mendonca

See how you can get involved at [http://wp-translations.org/](http://wp-translations.org/).

Translations are manged on [Transifex](https://www.transifex.com/projects/p/portfolio-press/), but GitHub pull requests are also accepted.
Translations are managed on [Transifex](https://www.transifex.com/projects/p/portfolio-press/), but GitHub pull requests are also accepted.

Development
---

* Fix spelling error on options page (props @fxbenard)
* Remove update routine for page templates
* Better translations workflow (props @fxbenard)
* Sticky footer

Version 2.5.0
---
Expand Down
Loading

0 comments on commit ec98418

Please sign in to comment.