GithubHelp home page GithubHelp logo

pfefferle / sempress Goto Github PK

View Code? Open in Web Editor NEW
138.0 26.0 30.0 2.78 MB

A highly semantic WordPress Theme with HTML5 templates, responsive and seo optimized. SemPress supports most of the new HTML5 tags, the new HTML5 input-types, microformats, microformats v2 and microdata (Schema.org).

Home Page: http://wordpress.org/themes/sempress

License: GNU General Public License v3.0

CSS 2.31% PHP 65.46% JavaScript 2.13% Shell 0.03% SCSS 30.07%
microformats microdata html5 wordpress wordpress-theme theme posh semantic microformat microformats2

sempress's Introduction

SemPress

A WordPress theme, highly semantic, HTML5 templates, responsive and SEO optimized.

SenPress

SemPress supports most of the new HTML5 tags, the new HTML5 input-types, microformats, microformats v2 and microdata (Schema.org).

POSH - Plain old Semantic HTML

From the micrormats wiki:

The term semantic-html is a mouthful, and belies both how simple it is, how well established it is among modern web designers, and the fact that it has benefits far beyond the obvious doing the right thing for the Web by using semantic markup. We need a simple short mnemonic term that captures the essence of the concept, and is easily verbed (to posh, poshify, poshed up).

SemPress is fully HTML5 compatible and uses a lot of the new tags, semantics and input-types.

Web Semantics

SemPress' code is marked-up with microformats and microdata:

Planned formats:

WordPress Features

SemPress supports:

Translations

Child themes

See http://cmx.org.uk for an example

SemPress Lite

SenPress by me

SenPress

sempress's People

Contributors

barnabywalters avatar carlitoblog avatar christopheranderton avatar dependabot[bot] avatar dylan-k avatar jneiluj avatar kristofferr avatar luthfianto avatar milindmore22 avatar pfefferle avatar scottkillen avatar tigefa4u avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sempress's Issues

hcard class is unnecessary?

There is class hcard in your theme, but I can't find that class in Microformats wiki (they have h-card and vcard which you already set) . Is it a mistake? Should you remove it?

IndieWeb forward thinking comments.php output

Given that this theme is one of the exceedingly few that supports microformats 2 and that it stands as the (only?) definitive theme in the IndieWeb echosystem for WordPress, might I suggest that updating the "typical" comments.php be modified to better reflect integration for use with webmentions could help catapult uptake of the idea of the indieweb movement? By this I mean customizing the "typical" WordPress comments.php output to sort webmentions, pingbacks, and "traditional" comments to display in something like the following suggested order:

  1. a facepile of "likes" (potentially even separated by silos)
  2. a facepile of "reposts" (potentially separated by supported silo)
  3. the traditional list of comments
  4. the list of pingbacks/trackbacks (potentially showing the actual content rather than the usual "Joe mentioned this post" output)

but doing so in a way that doesn't cause issues (potentially?) for those not living in the IndieWeb echosystem. From a UI perspective something like this is far superior to scrolling through possibly hundreds of "likes" and "repost" comments to get to more substantive discussions in comments.

I suspect that @dshanske is attempting to modularize this type of functionality in a plugin with semantic comments (which doesn't seem to work at the moment), but having at least one example theme with a straightforward version of a better handling of comments (also including microformats) might assist in the uptake of theme developers doing a more modern version of WordPress comments using webmention. (And naturally even better if it can be done canonically enough that WordPress subsumes it into core thereby infecting a multitude of sites to be IndieWeb and microformat compatible in one go.) I might also suggest that standardization in core results in broader and quicker uptake than the need to find and install a plugin.

As an example, I'll note that the Independent Publisher theme has shown interest in being more IndieWeb compatible, but some of the custom code for comments is preventing showing likes and reposts (see raamdev/independent-publisher#201).

Show slug (empty title) for OwnYourGram PESOS posts

When using OwnYourGram to PESOS my pictures, they automatically get the Post Kind Photo and the Post Type Image.

The Image template for Sempress (content-image.php) shows the post title, but OwnYourGram does not add one, so the title currently shows the slug (e.g. #1234).

I don't want to change the post kind or post type, and have no suggestion (yet) what to do with the template. Perhaps hide the title when it is empty?

Heading now populated with post number

Hi.

I've just updated to the latest version and it seems posts with a empty heading are now being populated with the post number. Is this right? It wasn't doing this before.

screenshot 2017-05-10 20 20 36

The code being inserted is...
<a href="http://davidjohnmead.com/blog/2017/05/09/16088/" class="u-url url" title="Permalink to #16088" rel="bookmark" itemprop="url">#16088</a>
...but when I go to edit the post the heading field is empty in Wordpress.

I don't remember a setting on the old version that stopped this. Am I missing something?

Push E-Content Inside The_Content

I've been giving this some thought. By adding the
div class="entry-content e-content" itemprop="description articleBody" dynamically into the_content filter at a priority level of one and using a separate div outside merely for the styling, you ensure anything dynamically added to the_content filter by any plugin doesn't appear as content.

The majority of plugins adding into the_content are not adding content, but usually associated metadata, sharing links, etc.

Youtube default passend machen

Der default Embedd Player von YouTube passt nicht ins Theme.
Das ist schade. Kannst du das ändern? Das Problem habe ja nicht nur ich, sonder alle, die mal ein YouTube Video einbinden.

IST:
.entry-header .entry-title, .entry-header .entry-title a {
-moz-hyphens: auto;
font-size: 40px;
}

SOLL:
.entry-header .entry-title, .entry-header .entry-title a {
-moz-hyphens: auto;
font-size: 15px;
}

Image in gallery not respecting size

Hi @pfefferle, Me again.

I've noticed that all posts using the [gallery size=full columns=1] to display images, show them as very small. Swapping over to a random theme (Twenty Seventeen) the images now show at the proper size...full size and one column.

screenshot 2017-05-25 22 05 21

screenshot 2017-05-25 22 08 48

Is this something you're setting in SemPress? This is the way that OwnYourGram has been inserting images into the post, so all images are now affected.

Error

Hi
I have used on your theme on my test blog and google is showing many errors on google developer insight as well as google structured data tool,can you tell me how tofix these errors

entry header: single page has custom header

The content-single.php script uses an additional test for post type == 'post'. Each of the other content-xxx scripts (except -page) will be of the type post.

So my suggestion would be to modify the entry-header script to include the test for post type and have the content-single.php script call that.

This way, any post template will call the same function, so any update to the header code for posts/entries can be made in one single place.


As per the get_post_type() documentation, post type can be one of

  • post
  • page
  • attachment
  • revision
  • nav_menu_item

sempress_enhanced_image_navigation breaks media library

The section with sempress_enhanced_image_navigation( $url ) (Line 555 to 565 functions.php) breaks the media uploader in WordPress 3.6-beta1-24041 (no plugins).

Uploading images will return "An Error Occurred In The Upload. Please Try Again Later". The media library will also not show any media.

Commenting out the section will get media library and media upload working.

The issue does not occur when Twenty Thirteen is activated.

Gutenberg compliancy

I don't know the details of what's changing. But I'm curious if SemPress is Gutenberg compliant?

entry header: gallery not using function

The content-gallery.php file uses an inline header that is exactly the same as the result of the entry-header.php template part.

For consistency it is better to call the entry-header script.

PHP Warning: Missing argument 2 for sempress_the_title()

Hi! Some days ago I recognised the error message in my Apache error logs
PHP Warning: Missing argument 2 for sempress_the_title() in <MY_PRIVATE_PATH>/wp-content/themes/sempress/functions.php on line 488

Today I fixed it with the following hint from SO

This warning may be caused by the post id not being set in some instances of the usage of this filter in some versions of WordPress.

So please change line 488 in functions.php from
function sempress_the_title($title, $id) {
into
function sempress_the_title($title, $id = null) {

Thanks (for fixing and that great theme) a lot and best regards!

Update Swedish-Language

@Deluxive I added some new fields... do you have some time to update the swedish translation? I updated the files, you only have to add the missing translations.

Avatar Classes

Remove use of preg_replace in favor of new class argument permitted for get_avatar_data

Limit categories on home page?

I have 3 categories of articles on my blog but I only want one to show on the home page. It isn't clear how to do this w/ SemPress. Is this somehow built into the theme and I'm just missing it? Or is there a simple way to tweak the code to get this to happen?

Thanks! Scott

Some suggestions

is it good for SEO using more than one <h1> tag? and how about we replace itemprop="name" with itemprop="headline" in blog post title, and add itemprop="keywords" for tags.

home_url vs site_url for better security

Hi, I'm implementing your new function to add schema.org for seach forms and I had this thought, wouldn't be better to use home_url vs site_url? Because you can wrap home_url in esc_url filter and get better security, but you cannot do this with site_url:

https://core.trac.wordpress.org/ticket/13051#comment:29

And I know, there is a difference betwean the site_url and home_url, but does it matter in the context of adding Schema.org support?

https://wordpress.stackexchange.com/questions/20294/whats-the-difference-between-home-url-and-site-url

Thank you!

Update Indonesian-Language

@tigefa4u I added some new fields... do you have some time to update the Indonesian translation? I updated the files, you only have to add the missing translations.

Update French-Language

I added some new fields... does anyone have some time to update the French translation? I updated the files, you only have to add the missing translations.

Reference to Missing File

On line 25 of search.php there is <?php get_template_part( 'content', 'search' ); ?>
however, there is no content-search.php file. Wordpress sensibly ignores this and displays content as expected, but it could be confusing. Perhaps the file should be created or else avoided?

Add a no sidebar option

Currently with single column the sidebar moves to the bottom. It is possible to have no sidebars if you do not put in any widgets?

OwnYourGram posts not pulling in photos

Since updating my syndicated posts from Instagram, via OwnYourGram, are not including the photo when being being created.

What I'm getting is the WP post being created with all the content pulled across, but, the image is in the media library and the normal code isn't being generated to show it.

Post with the old version of SemPress...

<div class="e-content">
First fill of my @growlerwerks uKeg is @goldhornbrew's EVIL SPIRITS SCHWARZBIER! &#x1f37b;
#vscocam #drink #beer #instagram
</div>
[gallery size=full columns=1]

Post with the new SemPress

Beer o'clock &#x1f37b; @jdramirez2
'Evil Spirits' from @goldhornbrew
#drink #vscocam #instagram

As you can see the <div> and [gallery] aren't being created.

Any ideas?

Title of blog post and Image post doesn't have the same font size

http://jihais.se/2013/11/21/premiere-neige-a-chambery/
http://jihais.se/2013/11/19/mes-deux-plugins-indieweb-pour-wordpress/

It's because of the
.format-quote .entry-header .entry-title, .format-video .entry-header .entry-title, .format-audio .entry-header .entry-title, .format-image .entry-header .entry-title, .format-quote .entry-header .entry-title a, .format-video .entry-header .entry-title a, .format-audio .entry-header .entry-title a, .format-image .entry-header .entry-title a {
font-size: 22px;
padding-top: 30px;
}

Line 595

Update Russian-Language

I added some new fields... does anyone have some time to update the Russian translation? I updated the files, you only have to add the missing translations.

hentry and h-entry classes on separate elements

on pages for asides an possibly other post types (but not standard posts it seems?) the body tag is marked up with the h-entry class but the hentry class is on a div further in at the call to post_class(). This is causing issues with parsing for webmention reply streams

Update Korean-Language

I added some new fields... does anyone have some time to update the Korean translation? I updated the files, you only have to add the missing translations.

Update Norwegian-Language

@kristofferR I added some new fields... do you have some time to update the Norwegian translation? I updated the files, you only have to add the missing translations.

sempress_pre_get_avatar_data array errors

Good day!

one user reported to me that:

PHP Warning: array_unique() expects parameter 1 to be array, null given
in /inc/semantics.php

Pointing to the line with sempress_pre_get_avatar_data function.

Thank you!

entry-footer.php without matching *-header.php

It looks like the <header class="entry-header"> is coded up about 16 times, although the header is really only being used in two basic ways: one to start each entry's article, and one to precede other loops.

This could probably be reduced or simplified a bit with the use of <?php get_template_part( 'entry', 'header' ); ?> and <?php get_template_part( 'loop', 'header' ); ?>. This would refer to a file similar to the existing entry-footer.php and would perhaps make for more consistency.

I'm happy to sketch something up and do a pull request, if anybody is interested in this idea.

Support Syndication Links and Post Kinds

Both Syndication Links and Post Kinds add their markup to inside the_content block, by necessity. Asking for SemPress to support an alternative position. We discussed a possible hook some time ago.

Syndicatiion Views

When syndicating to Twitter you only get the post # and the url as it looks like p-name gets assigned to the url, and the content doesn't display in a Tweet.

Something wrong in the byline section I think...

If I install the theme the byline at the top of a post looks like this:

Posted on 30/06/2017 by Bill Bennett

You can see this better on page at my staging site: https://billnz.mystagingwebsite.com

but I don't plan to keep that live for more than a week or so.

I've hacked about inside the PHP and can't see why this would happen, but then I have beginner level PHP skills.

replace :target with JS

The :target version of the menu isn't working that good and should be replaced with javascript

Fixed $content_width

The variable $content_width is set at the top of functions.php, but is set fixed later on in function sempress_content_width().

As as result, there is no (easy) way to set a different width in a child theme, by simply adding

$content_width = 800; /* pixels */

to the functions.php of the child theme.

My suggestion would be to modify the sempress_content_width() function to respect (so related to / computed based on) the value that is set at the top of the functions file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.