Commit Graph

47 Commits

Author SHA1 Message Date
Morten Rand-Hendriksen 31df4716c8 Refactor the css layout to use grid and flex
Remove #primary

Remove #primary, take 2

Change primary layout module to CSS grid.

Remove ::before / ::after based clearfixes. When using flex and grid, pseudo-elements are considered flex/grid elements and cause unexpected behavior. Clearfix is a tool to resolve clearing when using float-based layouts. Modern flex/grid-based layouts do not need them.

Main menu: Use flex as layout module.

Main menu cleanup.

Comments, Posts, and Post Navigation: Use flex for layout. Automatic RTL.

Remove errant test data.

- Fixed skip to content link to point to main content (#primary).
- Changed ID for <main> to #primary to preserve original separation between main and sidebar (#secondary).
- Removed superfluous ID reference to #secondary in CSS.
- Cleaned up whitespace triggering Travis errors.

Fix wpcs issues

Cleaning the rebase

Compile CSS

Remove primary div from WooCommerce too

grid-template-columns property doesn't support negative values
2020-04-18 19:26:11 +01:00
David A. Kennedy 72e34ef6bc
Merge pull request #1267 from jrfnl/feature/cs-update
Bring code style up to the latest standards
- This PR addresses code-style issues identified when testing the code against the WordPress Coding Standards.
2018-03-02 18:45:51 -05:00
Laurel Fulford 47829ce9cd Replace the get_post_format() calls in get_template_part() to complete the post format removal that was started in #1017. Fixes #1148. 2018-02-27 17:07:58 -08:00
Ulrich Pogson b26b6ebfa4 Move PHP tags on it’s own line & correct indention
This fixes a few of the errors from the news sniffs in WPCS 0.12.0 and also standardizes the indention between the PHP and HTML
2018-02-27 14:34:53 +01:00
Bappi 6bc640792a Update template hierarchy link 2017-10-29 14:51:29 +06:00
David A. Kennedy f56a070c2b Remove landmark roles
* With better browser support, these roles aren't needed now.
* Most newer browsers imply them via HTML5 semantics. See: http://html5doctor.com/on-html-belts-and-aria-braces/

Fixes #1132
2017-06-23 12:41:05 -04:00
Bappi d37990a278 Remove period from file header 2016-09-27 12:17:45 +06:00
mrwweb 2b6133508b change .taxonomy-description to more accurate .archive-description 2016-04-19 13:24:39 -07:00
jrfnl 8470f55f92 Avoid going in and out of PHP unnecessarily.
Closes #854

Includes minor alignment changes for easier readability/detection of start/end of conditions.
2015-11-11 22:59:40 +01:00
PJ de9c9888b7 Updated documentation in comments at the top of files.
I tried to standardize and expand the documentation and links to
codex.wordpress.org in the comments at the top of most files.
2015-07-12 12:38:18 -04:00
Fränk Klein 175524922c Fix Codesniffer errors. 2015-05-27 22:19:14 +02:00
Philip Arthur Moore 71d4231cbe Move template parts into their own dedicated folder and update Infinite Scroll to reflect this change. See #642. Props @leopuleo. 2015-04-29 08:42:12 +07:00
Kazue Igarashi 894bd6b5d3 Use core navigation template tags.
* Remove custom arguments from `the_posts_navigation()` and `the_post_navigation()`.
* Adjust fallbacks for `the_posts_navigation()` and `the_post_navigation()`.
* update pot file.
* merge master for style.css and style.scss.
2015-01-07 09:23:28 -08:00
Konstantin Obenland bb867c0fcb _s: Introduce 4.1 archive template tags.
Now uses the new archive template tags and makes archive template
titling way simpler!

Added shims for backwards compatibility, which can be removed once
WordPress 4.3 was released.

See https://core.trac.wordpress.org/changeset/30223
Closes #556.
2014-11-12 15:52:31 -05:00
Jason Clarke 52b11510b8 Update archive.php
Revising the "primary" element to use a "div" vs. "section" to bring it into sync with index.php and single.php
2014-08-17 13:02:35 -04:00
Jack Lenox 776eaf6e94 Correcting some irregular capitalisation and coding standards issues 2014-06-25 00:13:36 +01:00
obenland a156f2cbab _s: Simplify author template.
Set up author data for the author template immediately, rather than
waiting for the first the_post() call.
This removes the need to call the_post() and rewind_posts() in an
author template to print information about the author.

Fixes #346.
2013-12-21 00:00:25 -08:00
sixhours 220d682ab3 Merge pull request #344 from Automattic/add-all-post-format-headings
Improve Post Format Archive Headings. Props @philiparthurmoore
2013-12-16 06:26:37 -08:00
obenland f88204d0a4 _s: Add closing brackets to avoid fatal error. Props @gatespace for
intial patch. Fixes #355.
2013-12-03 19:44:56 -08:00
Amy Hendrix 3ba177c9ee Make date formats translatable
Following up on a similar change to 2014, make the date formats for monthly and yearly archives translatable.
2013-12-03 13:42:40 -05:00
obenland 3f4effb5f0 _s: Split navigation template tag in context-specific tags. 2013-11-24 18:28:15 +00:00
Philip Arthur Moore f5dee981be Improve Post Format Archive heads. Follows up on #95 and e3b4907946 (diff-ff638db82c6ac72a05781ba3e086fdf0L48). 2013-11-14 20:00:00 +07:00
Aahan Krish 148818220e Use content-none.php instead of no-results.php
Renamed no-results.php to content-none.php for consistency (as done in core: https://core.trac.wordpress.org/ticket/25181); so let's make sure it's used.
2013-10-13 16:37:14 +05:30
Brad Parbs bf6ecae7c4 minor code comment comma grammar fixes 2013-08-21 12:04:29 -05:00
Patrick Rauland 3d98e794d3 also changing overload to override in comments.php & archive.php 2013-08-20 07:27:46 -05:00
obenland 810e499b93 _s: Use `<main>` element for main content.
See: http://www.w3.org/TR/html51/grouping-content.html#the-main-element

Props @BFTrick for initial patch.
Fixes #222.
2013-07-30 12:12:45 -07:00
sixhours 9f866cde82 Remove author link from archive.php 2013-07-26 11:59:25 -04:00
Ian Stewart c09c02081a Simplified archive titles
The current archive titles are verbose and fusty. This commit
simplifies them to the bare minimum needed (and wanted by actual users)
for description, orientation, and navigation.
2013-06-27 15:15:58 -05:00
obenland 3a5afef198 _s: Add custom taxonomy support for term descriptions in taxonomy
archives.

We don't even have to check for a context before printing the
description, `term_description()` does all the heavy lifting for us.

Props @jasondpx. Fixes #128.
2013-06-27 06:24:26 -07:00
Takashi Irie 7be757759c Minor code style clean-up 2013-04-20 01:26:43 +01:00
obenland e3b4907946 _s: Add a Post Format Archives heading to archive.php. Props @sixhours,
@philiparthurmoore. Fixes #95.
2013-03-26 11:41:51 -07:00
Philip Arthur Moore fe19f5433b Ditch all @since DocBlocks from theme. 2013-03-18 14:53:23 -05:00
obenland c4f2aa32ce _s: Formatting changes:
- Reduce element comments to either the element id or the first element
class.
- Tabs > Spaces.
- Improve adherence to formatting guidelines.
2013-03-04 16:41:38 -08:00
Michael Fields e04732c5a3 Remove _s_content_nav( 'nav-above' ); from the top of all templates. Fixes #148 2013-02-27 15:08:26 -08:00
Michael Fields 9f58e3f6e2 Escape the return value of get_author_posts_url() with esc_url(). 2013-02-06 20:48:04 -08:00
Konstantin Kovshenin 461976d48c Revert "Merge pull request #36 from kovshenin/patch-5"
This reverts commit 800b9ebcd1, reversing
changes made to ce4bef6129.
2012-08-31 08:54:22 +04:00
Michael Fields 800b9ebcd1 Merge pull request #36 from kovshenin/patch-5
Use get_queried_object(); to retrieve author data in archive.php. This removes the need for the_post() and rewind_posts(). props @kovshenin fixes #36
2012-08-27 13:06:30 -07:00
Konstantin Kovshenin 103ae2cdf6 Correct use of get_queried_object() for author archives.
The ->data object (used previously) stores the author data, but the WP_User class has the __get magic method that grants access to that data, so using get_queried_object() without ->data is correct, and compatible with 3.2, which does not use magic methods. Also url-escapes get_author_posts_url.
2012-08-27 10:56:36 +04:00
Matias 752d08afd7 Update the HTML "class" system
Improving on the naming convention of our classes with consistency
adjustments. Also creates a better hierarchy (matched pairs) for them.
2012-08-25 14:06:33 -03:00
Josh Betz a792ded32c No need to rewind posts if nothing has been queued up yet 2012-08-24 12:29:41 -05:00
Konstantin Kovshenin dec5c61928 No need for the_post and rewind_posts in author archives.
We can get all the information we need about the author by using get_queried_object within is_author.
2012-08-14 10:49:27 +04:00
kobenland b9fa5c0dd2 Add missing 'class' comments 2012-05-23 21:01:41 +02:00
Ian Stewart 43ea44cb44 _s: Simplifying search, index, and archive, with a common no posts found template part, no-results.php; Closes #1187
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9340 d957f892-c61d-0410-b221-f235e6eecf30
2012-03-29 15:55:33 +00:00
Ian Stewart d5b33742db _s: incorporating the author template into the archive template to reduce template bloat
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@8835 d957f892-c61d-0410-b221-f235e6eecf30
2012-02-01 20:21:14 +00:00
Ian Stewart afe244fe68 _s: More consistency with class names in the structural markup 2012-02-01 16:55:36 +00:00
Ian Stewart 73ffdba03c _s: With so little variation among date archive, category arhive, and tag archive, we can safely combine those templates without overcomplicating things. 2012-01-12 17:12:04 +00:00
Ian Stewart edfeccc255 _s: initial fork of Toolbox 2012-01-07 03:25:13 +00:00