Giter Club home page Giter Club logo

edd-theme-updater's People

Contributors

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

edd-theme-updater's Issues

Move admin functions into a separate file

Ideally the developer should just need to put in the custom settings, and everything else is abstracted.

This end, I'd like to move all the admin page functions into a separate file. I'd also like to wrap all of these in a class and make all the strings filterable.

Variable inside gettext function.

There is variable as a first parameter of a gettext function. <?php esc_attr_e( $strings['deactivate-license'] ); ?>.

No big deal but should we just echo the license string and the variable can be inside esc_attr. Something like this:

<?php echo esc_attr( $strings['deactivate-license'] ); ?>

Works on multisite

I've never been able to get updates in multisite. Not for my own themes or any EDD add-ons.

But this one worked on multisite also in my localhost test! I hope it'll work on live site also. That's a huge bonus in my eyes.

Child Theme

hi, how can i use this for a child theme?

if i load in the style.css the child theme, the tehem crash (will be blank)
have you a idea to fix this?

`<?php
/**

  • This is just a demonstration of how theme licensing works with
  • Easy Digital Downloads.
  • @Package EDD Sample Theme
    */

/**

  • Load theme updater functions.
  • Action is used so that child themes can easily disable.
    */

function prefix_theme_updater() {
require( get_template_directory() . '/updater/theme-updater.php' );
}
add_action( 'after_setup_theme', 'prefix_theme_updater' );

function child_theme_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/style.css' , array('parent-style'));

}
add_action( 'wp_enqueue_scripts', 'child_theme_styles' );`

Admin notice

For basic user adding the theme license can be a challenge. Should we add admin notice if license have not been set?

Something like "Click here to enter your license key for getting auto updates".

There could also be admin notice when license have expired.

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.