Git Product home page Git Product logo

theme-tools's People

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

theme-tools's Issues

Jetpack Dependencies: Errors on child themes

The WordPress.org version 1.2.4 of Goran was throwing the following error:

Cannot redeclare class Edin_Theme_Plugin_Enhancements in /srv/www/wordpress-trunk/wp-content/themes/edin/inc/plugin-enhancements.php on line 10

The issue appears to be related to both Goran and Edin including Edin's plugin-enhancement.php file, causing the class Edin_Them_Plugin_Enhancements twice.

We need a way to make sure the script 'knows' a theme is a child theme, and does not cause the class to be declared twice (possibly by adding a check to see if it's already declared, or by using require_once to add the file).

Update Gutenberg Test Data to have more test block instances

It'd be good to update Gutenberg test data. It's been 8 month since the last update, and since then some blocks have been updated such as core/cover that now takes more blocks inside.

It might be best to have a post for each block rather than a post for a group. Each post should have instances of the block with different configurations such as alignment and sizes of inner blocks. For example, Cover with all the headings, with paragraphs with different font sizes and alignments etc.

Jetpack Dependency Script: Throws a PHP warning in admin if no dependencies are found

While testing Hew (which doesn't have dependencies, although we thought it did) I noticed that if there aren't any dependencies in the theme, the script will throw a PHP warning on the admin panel.

Notice: Undefined variable: dependencies in /Users/sarah/Sites/reviewbox/wp-content/themes/hew-gen/inc/plugin-enhancements.php on line 169

Ideally we wouldn't be adding this script to themes that don't need it, but it's probably best to fix that just-in-case.

instructions are unclear: plugin-enhancements.js should be included too

The instructions on how to use this are unclear and it seems that Automattic's very own theme developers have difficulty using it correctly.
They only go as far as to require the PHP script.

The plugin-enhancements.js file however takes care of remembering a user's decision to clicking the warning message away.

As an example, the Pique theme by Automattic for some reason does not include the js file and therefore a user can keep clicking the warning (in a child theme), it will always come back.

org-submitter: PHP fatal error when generating .zip for a theme without Headstart annotations

Here's the error I'm getting:

Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(dyad-wpcom/inc/headstart/): failed to open dir: No such file or directory' in /Users/Ola/Web/theme-tools/org-submitter/make-zip.php:64
Stack trace:
#0 /Users/Ola/Web/theme-tools/org-submitter/make-zip.php(64): RecursiveDirectoryIterator->__construct('dyad-wpcom/inc/...', 4096)
#1 /Users/Ola/Web/theme-tools/org-submitter/make-zip.php(304): delete_directory('dyad-wpcom/inc/...')
#2 {main}
  thrown in /Users/Ola/Web/theme-tools/org-submitter/make-zip.php on line 64

It looks like this is because we're trying to remove the inc/headstart directory, without checking if it exists first, and many themes don't have it yet. PR coming shortly.

Jetpack Dependencies: Combine child and parent theme requirements

This came up while investigating a recent issue (#28): it would be great if the Jetpack Dependancy script could 'figure out' what's required from both the parent and child theme, to be displayed in the message on the child theme.

It looks like the only parent/child theme pair Automattic has that has different Jetpack functionality is Superhero/Sidekick, but that could change down the road. This could help make the message more accurate in those cases.

Jetpack Dependencies: Prefix functions

In plugin-enhancements.php - the enqueue_scripts and dismiss_admin_notice functions aren't prefixed, so users could run into already declared errors.

Both functions should be prefixed.

HT @kraftbj

getselectors.js and csspalette.js CLI tools: Add to Node Package Manager (NPM)

This is an absolutely amazing tool for easily making the Custom Colors setting.

Is there any chance for any of these tools to be available at the NPM repository? I'd like to use it as a dependency in my theme development workflow/process. Currently, I place those getselectors and csspalette in a project subdirectory theme-tools/, reference it with package.json's "script" property and call it with npm run. I'd like to skip the first part to make it cleaner and easier to install/update.

Theme Tags: Change confusing wording

Currently, the script mentions the word "commit to disk" which can cause confusion with an actual SVN commit. Change the wording to be less confusing.

Jetpack Dependencies: Update wording to reflect new Jetpack settings

The current user-facing wording in the notification box needs to be updated to better match the current Jetpack settings screens.

For example, the wording refers to modules, when Jetpack no longer refers to/organizes its settings in that way.

As another example, the wording talks about activating the Custom Content Types module for portfolio projects and testimonials, when testimonials and portfolios are now broken down individually:

jetpack wp test site to end all test sites wordpress

Screenshot from Jetpack > Settings > Writing

A full audit should be done and all the necessary wording tweaked.

.org Submitter: Sketch outputs without tags in style.css

When running Sketch through the script, the tags don't get re-added to style.css header.

This can be tested by running through the script step-by-step to see where it's getting thrown off; there's likely just a formatting issue with the reges, where Sketch is using *s before each line in the style.css header.

I've tested a few other themes that use this style (there are fifteen in total, all older themes) and they all have the same issue. Either the themes should be adjusted to use a consistent style, or the regex used by the script should be adjusted to be more robust. (Will require testing!)

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.