Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
themefuse committed Dec 3, 2014
0 parents commit f54cf0c
Show file tree
Hide file tree
Showing 262 changed files with 46,752 additions and 0 deletions.
25 changes: 25 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# How to contribute

## Getting Started

* Make sure you have a [GitHub account](https://github.com/signup/free)
* Submit a ticket for your issue, assuming one does not already exist.
* Clearly describe the issue including steps to reproduce when it is a bug.
* Make sure you fill in the earliest version that you know has the issue.

## Making Changes

* Fork the repository on GitHub.
* Make the changes to your forked repository.
* **Ensure you stick to the [WordPress Coding Standards](http://make.wordpress.org/core/handbook/coding-standards/php/).**
* Ensure you use LF line endings - no crazy windows line endings. :)
* When committing, reference your issue (#1234) and include a note about the fix.
* Push the changes to your fork and submit a pull request on the master branch of the Scratch Theme repository. Existing maintenance branches will be maintained of by Unyson developers.

At this point you're waiting on us to merge your pull request. We'll review all pull requests, and make suggestions and changes if necessary.

# Additional Resources

* [General GitHub documentation](http://help.github.com/)
* [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
* [Unyson Docs](http://unyson-docs.themefuse.com/)
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Unyson Scratch Theme

Starter (Demo) Theme for [Unyson](http://unyson.themefuse.com/).

To get started, check out http://unyson.themefuse.com/!

## Table of contents

* [Installation](#installation)
* [Bug reports](#bug-reports)
* [Documentation](#documentation)
* [Copyright and license](#copyright-and-license)
* [Contributing](#contributing)

## Installation

1. [Download the latest release](https://github.com/ThemeFuse/Scratch-Theme/releases/latest)
2. Extract the archive to the `/wp-content/themes/` directory
3. Activate the Scratch theme through the 'Appearance > Themes' menu in WordPress

## Bug reports

We strive to make Scratch Theme Development to be awesome and user friendly, though sometimes it's impossible to avoid bugs.
A bug means "something is broken" or is not working as it should.

In order to offer you an effective support and fix for an issue, please follow the below guidelines before submitting a bug report:

#### Explore Known Issues

Has your issue already been reported? Check the [Issues page](https://github.com/ThemeFuse/Scratch-Theme/issues).

If your issue has already been reported, great! It will be reviewed in an upcoming release.

#### Submitting a Bug Report

You can report the issue via [Issues page](https://github.com/ThemeFuse/Scratch-Theme/issues).
A good bug report includes full details to easily understand the issue you are having.

## Documentation

Unyson's documentation is available on http://unyson-docs.themefuse.com/.

## Copyright and license

Code and documentation copyright 2014 ThemeFuse LTD. Code released under [the GPL license](https://github.com/ThemeFuse/Scratch-Theme/blob/master/LICENSE). Docs released under [Creative Commons](https://github.com/ThemeFuse/Unyson-Documentation/blob/master/LICENSE).

## Contributing

Developers can contribute to the source code. Please read our [contributor guidelines](https://github.com/ThemeFuse/Scratch-Theme/blob/master/CONTRIBUTING.md) for more information how you can do this.

If you have an idea for Unyson, see the [Trello board](https://trello.com/b/Xm9TxasH/unyson-development).
20 changes: 20 additions & 0 deletions scratch-child/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
/**
* Theme functions file
*/

/**
* Enqueue parent theme styles first
* Replaces previous method using @import
* <http://codex.wordpress.org/Child_Themes>
*/

add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style', 99 );

function enqueue_parent_theme_style() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}

/**
* Add your custom functions below
*/
Binary file added scratch-child/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions scratch-child/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
Theme Name: Scratch Child
Description: Child theme for the Scratch. Child themes are the recommended way of making modifications to a theme. <a href="http://codex.wordpress.org/Child_Themes">Read More</a>
Author: ThemeFuse
Author URI: http://themefuse.com/
Template: scratch-parent
*/


/* =Theme customization starts here
-------------------------------------------------------------- */
2 changes: 2 additions & 0 deletions scratch-parent/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/framework
/auto-install
33 changes: 33 additions & 0 deletions scratch-parent/404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
/**
* The template for displaying 404 pages (Not Found)
*/

get_header(); ?>


<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">

<header class="page-header">
<h1 class="page-title"><?php _e( 'Not Found', 'unyson' ); ?></h1>
<?php
if( function_exists('fw_ext_breadcrumbs') ) {
fw_ext_breadcrumbs();
}
?>
</header>

<div class="page-content">
<p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'unyson' ); ?></p>

<?php get_search_form(); ?>
</div><!-- .page-content -->

</div><!-- #content -->
</div><!-- #primary -->

<?php
get_sidebar( 'content' );
get_sidebar();
get_footer();
164 changes: 164 additions & 0 deletions scratch-parent/TGM-Plugin-Activation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
TGM Plugin Activation
=====================

**Contributors:** Thomas Griffin (@jthomasgriffin / thomasgriffinmedia.com), Gary Jones (Github: @GaryJones / Twitter: GaryJ)
**Version:** 2.4.0
**Requires at least:** 3.0.0
**Tested up to:** 3.9-beta1

## Description ##

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference pre-packaged plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.

## Installation ##

1. Drop the class file somewhere in your theme hierarchy.
2. Add a `require_once` call within `functions.php` (or other theme file) referencing the class file.
3. Create a function, hooked to `tgmpa_register`, that registers the plugin and configurations.

For steps 2 and 3, it is recommended you view, copy and paste the contents of `example.php`
and amend to suit. The `example.php` file is a model for how you should include the class in your theme.

*Some important things to note:*

1. With the `require_once` call, make sure to amend the path to the correct location within your theme.
2. For plugins pulled from the .org repo, the source argument is optional. Otherwise it is required and should point
to the absolute path for the plugin zips within your theme, or to a URL for zips elsewhere online.
3. The `$config` variable holds an array of arguments that can be used to customize aspects of the class.
If you define an absolute default path for packaged plugins, you do not need to specify the directory path
for your pre-packaged plugin within the `'source'` argument. You will only need to specify the zip file name.

## Feedback ##

See https://github.com/thomasgriffin/TGM-Plugin-Activation/issues for current issues and for reporting bugs and enhancements.

## Changelog ##

### 2.4.0 ###

* All textdomain strings now made to `tgmpa` and remove all notices dealing with textdomain and translation issues.
* The `_get_plugin_basename_from_slug` method now checks for exact slug matches to prevent issues with plugins that start with the same slug.
* Commenting style now adjusted so it is easier to comment large chunks of code if necessary.
* Plugins from an external source now properly say `Private Repository` in the list table output.
* `add_submenu_page` has been changed to `add_theme_page` for better theme check compatibility.
* Removed the use for `parent_menu_slug` and `parent_menu_url` for $config options (see above).
* Nag messages can now be forced on via a new `dismissable` config property. When set to false, nag cannot be dismissed.
* New config `dismiss_msg` used in conjunction with `dismissable`. If `dismissable` is false, then if `dismiss_msg` is not empty, it will be output at the top of the nag message.
* Better contextual message for activating plugins - changed to "Activate installed plugin(s)" to "Begin activating plugin(s)".
* Added cache flushing on theme switch to prevent stale entries from remaining in the list table if coming back to a theme with TGMPA.
* TGMPA is now a singleton to prevent extra settings overrides.
* Fixed bug with duplicating plugins if multiple themes/plugins that used TGMPA were active at the same time.
* Added contextual message updates depending on WordPress version.
* Better nag message handling. If the nag has been dimissed, don't even attempt to build message (performance enhancement).
* Ensure class can only be instantiated once (instantion moved inside the `class_exists` check for TGMPA).
* Change instances of `admin_url` to `network_admin_url` to add better support for MultiSite (falls back gracefully for non-MultiSite installs).
* Updated much of the code to match WP Coding Standards (braces, yoda conditionals, etc.).
* Myriads of other bug fixes and enhancements

### 2.3.6 ###

* Fixed API error when clicking on the plugin install row action link for an externally hosted plugin

### 2.3.5 ###

* Fixed nag message not working when nag_type string was not set (props @jeffsebring)

### 2.3.4 ###

* Fixed undefined index notice when checking for required plugins (props @jeffsebring)
* Fixed bug where, during a bulk install, if the plugin was defined in the source as pre-packaged but also existed in the repo, it would erroneously pull the plugin from the repo instead (props @wpsmith)
* Added ability to set nag type for the admin notice via 'nag_type' string (props @wpsmith)

### 2.3.3 ###

* Changed license to reflect GPL v2 or later (to be compatible with the WordPress repo)

### 2.3.2 ###

* Fixed bug (100%) with not loading class properly

### 2.3.1 ###

* Fixed bug with not finding class (reverted back to Plugin_Upgrader)

### 2.3.0 ###

* Improved sorting of plugins by sorting them by required/recommended (while still maintaining alphabetical order within each group)
* Improved output of strings in nag messages
* Added 2 new strings: install_link and activate_link to customize the text for the nag action links
* Added new class: TGM_Plugin_Installer to prepare for must-use plugin support

### 2.2.2 ###

* Fixed bug that allowed users to click on the Install Plugins page when all the plugin installations and activations were already complete

### 2.2.1 ###

* Fixed bug that caused WordPress core upgrades to fail (WordPress doesn't check for including WP_Upgrader on core upgrades)

### 2.2.0 ###

* Fixed erroneous links for plugins linked to the WordPress Repo
* Improved UI of plugins by listing them in WordPress' default table layout
* Improved support for installing plugins if security credentials require FTP information
* Improved support for MultiSite
* Added 3 new classes (all extensions of existing WordPress classes): TGMPA_List_Table for outputting required/recommended plugins in a familiar table format, TGM_Bulk_Installer for bulk installing plugins and TGM_Bulk_Installer_Skin for skinning the bulk install process
* Added extra defensive measures to prevent duplication of classes
* Added ability to bulk install and bulk activate plugins
* Added new config options: 'parent_menu_slug', 'parent_menu_url', 'is_automatic', and 'message'
* Added new string: 'complete' (displayed when all plugins have been successfully installed and activated)
* Added support for singular/plural strings throughout the library
* Added permission checks to action links
* Added new filter tgmpa_default_screen_icon to set the default icon for the plugin table page
* Added new optional plugin parameters: 'version', 'force_activation', 'force_deactivation' and 'external_url'
* Removed 'button' string (deprecated with use of plugins table)

### 2.1.1 ###

* Fixed nag not re-appearing if user switched themes and then re-activated the previous theme (UX improvement)

### 2.1.0 ###

* Fixed duplicate nag message on admin options pages
* Fixed FTP nonce error when FTP credentials aren't defined in wp-config.php
* Improved handling of failed FTP connections with WP_Filesystem
* Improved string labeling for semantics
* Improved nag messages so that they are now consolidated into one message
* Improved plugin sorting by listing them alphabetically
* Improved plugin messages after installation and activation
* Added automatic activation of plugins after installation (users no longer need to click the "Activate this plugin" link)
* Added links to repo plugins for their plugin details and information (done via thickbox)
* Added option to dismiss nag message
* Added tgmpa_notice_action_links filter hook to filter nag message action links
* Added new methods: admin_init(), thickbox(), dismiss(), populate_file_path(), _get_plugin_data_from_name() and is_tgmpa_page()

### 2.0.0 ###

* Improved nag messages by adding a strings argument to filter default messages
* Improved nag message output by using the Settings API
* Improved internals by adding API for developers to use (code in class no longer has to be touched)
* Improved API function name (now tgmpa) for semantics
* Improved example.php with instructions for setup
* Added internal style sheet for styling
* Added ability to define custom text domain for localization
* Added new properties $default_path and $strings
* Added new methods register(), config(), _get_plugin_basename_from_slug() and actions()
* Removed unnecessary is_wp_error() check

### 1.1.0 ###

* Improved property $args to accept arrays of arguments for each plugin needed
* Improved add_submenu_page to add_theme_page
* Improved admin notices to display different messages based on status of plugin (not installed, installed but not activated)
* Improved block-level documentation
* Improved handling of plugin installation and activation with plugins_api, Plugin_Upgrader and Plugin_Skin_Installer
* Added support for multiple plugins of each instance (pre-packaged and repo)
* Added new property $domain to hold textdomain for internationalization
* Added CSS for slight UI enhancements
* Added extra conditional checks current_user_can( 'install_plugins' ) and current_user_can( 'activate_plugins' ) for security
* Removed menu display if all included plugins were successfully installed and activated
* Removed unnecessary conditional check before class is defined

### 1.0.0 ###

* Initial release into the wild
Loading

0 comments on commit f54cf0c

Please sign in to comment.