Git Product home page Git Product logo

one-mozilla-blog's Introduction

One-Mozilla-blog

A universal WordPress theme for Mozilla blogs.

While this theme's code is open source, released under GPLv3, the distinctive visual design should be reserved for official Mozilla blogs. Certain assets -- especially logos -- included with this theme are protected property of Mozilla.

By all means, take this code, modify it, improve it, learn from it... but please don't install the unaltered theme on your own blog.

one-mozilla-blog's People

Contributors

craigcook avatar debloper avatar flodolo avatar kyoshino avatar loganrosen avatar mikkcz avatar mozilla-github-standards avatar pollti avatar rimas-kudelis avatar sphinxknight 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  avatar  avatar  avatar

one-mozilla-blog's Issues

Edit Post button is hidden for single post view

In the posts list, the "Edit Post" button is placed under the post content in <article>.

But when you display the post standalone, the button is in <header> and overflowed by <address> and <p class="entry-comments">.

IMO placing the button there is OK, but should be better positioned and also definitely fully visible. Moving the button into the <header> in the list might be considered too.

Setting post as featured cannot be undone

The issue is hidden here https://github.com/mozilla/One-Mozilla-blog/blob/master/themes/OneMozilla/functions.php#L462 - the "_fc_featuredpost" post meta is updated only if $_POST["_fc_featuredpost"] is set = only if the "_fc_featuredpost" input was successful and checked. Am I right?

If so, this seems to have a pretty simple fix, but I would like to do some testing before. Possible use case I am afraid of:

  • mark post as featured
  • save the post
  • log in as another user (who does not have the featured widget switched on for editing posts)
  • edit the post
  • save the post
  • is the previous "_fc_featuredpost" value send with the post edit form, or not?

Notice: add_custom_image_header is deprecated since version 3.4!

I tried to fix it but couldn’t
line 50 on funtions.php :( using this:

add_theme_support( 'custom-header', array(
  // Header image default
  'default-image'     => get_template_directory_uri() . '/img/headers/firefox.png',
  // Header text display default
  'header-text'     => false,
  // Header image width (in pixels)
  'width'       => 340,
  // Header image height (in pixels)
  'height'      => 240
) );

http://make.wordpress.org/themes/2012/04/06/updating-custom-backgrounds-and-custom-headers-for-wordpress-3-4/

Responsive (mobile) menu takes too much space

On a smart phone (width 767px and lower) the menu is vertical and takes quite a lot of space, so no content below is visible without "scrolling". Thus when you click on a link in the menu, the visitor will see almost no response - the appropriate page is loaded, but still sees only the menu.

The current page could be somehow highlighted in the menu, or (better) hamburger menu should be for the mobile responsive version.

Maybe some menu re-composition could include also #8.

CODE_OF_CONDUCT.md file missing

As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:

  1. Required Text - All text under the headings Community Participation Guidelines and How to Report, are required, and should not be altered.
  2. Optional Text - The Project Specific Etiquette heading provides a space to speak more specifically about ways people can work effectively and inclusively together. Some examples of those can be found on the Firefox Debugger project, and Common Voice. (The optional part is commented out in the raw template file, and will not be visible until you modify and uncomment that part.)

If you have any questions about this file, or Code of Conduct policies and procedures, please reach out to [email protected].

(Message COC001)

Swap older and newer posts link

The Older posts link should be on the right, not on the left. At least for me it's pretty unusual to have it on the left, as I read from top to bottom and left to right, so I expect the older articles will be on the bottom or on the right.

Adding sub-menu navigation

Hello. Thanks for the great work. I'm having hard time displaying the sub-menu themes on the site after adding them. Please help. Thanks.

"Technology" link in Blog nav leads to unmaintained site

Description

The "Technology" link in the navigation of the Mozilla Blog leads to an unmaintained site.

Steps to reproduce

techlink-unmaintained

Expected result

Link should lead to a maintained site.

Actual result

Link leads to an unmaintained site

Environment

Link does not depend on OS/platform/browser.

Proposed resolution

Link 'Technology" to https://mozilla.dev/, which is maintained (and has a hard launch August 26).
As discussed with MJ Kelly and Justin Crawford via email on 27 July 2020.

OneMozilla theme is not fully localizable

I've installed the theme on Hebrew WordPress. While most of the strings appear to be localized, I've found some hardcoded strings (for example here: https://github.com/mozilla/One-Mozilla-blog/blob/master/themes/OneMozilla/comments.php#L26), and other places that require us to set a gettext domain named onemozilla, while these strings could be fetched from the default branch (so we won't need to translate it at all if the core WordPress is already localized).

Disable comments to guests

As we plan to use OneMozilla theme on our community site, there is something that I wish to change that might interest others. Instead of disabling comments, I wish to disable comments to people who are not logged in to WordPress, which includes search engines and casual visitors while people who have account on the site includes authors as well as active contributors who can suggest changes on the comments.

In case this request would be accepted, we need to add a theme option on functions.php and a condition such as if (not comments_allowed_to_guests and user_logged_in) then show_comments on comments.php.

Use comment_form() for comments

Using this function should be more secure, as now we depend on site_url, which is not great e.g. when you visit a site over HTTPS, when HTTP url is set in the WordPress preferences.

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.