Skip to content

Commit

Permalink
updated readme, changes and faqs files; added uservoice link; updated…
Browse files Browse the repository at this point in the history
… install and upgrade welcome pages; updated vendor libs
  • Loading branch information
pemaxim committed Jul 17, 2015
1 parent c13d7ca commit 1fa350f
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 6 deletions.
8 changes: 8 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#### 4.0.0
* Changed plugin initialization functionality.
* Added Composer ( dependency manager ) modules and moved some functionality to composer modules ( vendors ).
* Moved premium features to separate plugins.
* Cleaned up functionality of plugin.
* Refactored file structure of plugin.
* Refactored 'View All' page.
* Fixed Warnings and Notices.
17 changes: 17 additions & 0 deletions faqs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#### [wp-invoice] shortcode
http://feedback.usabilitydynamics.com/knowledgebase/articles/471938--wp-invoice-shortcode

#### Empty Invoice page or just [wp-invoice] instead of invoice.
http://feedback.usabilitydynamics.com/knowledgebase/articles/623133-empty-invoice-page-or-just-wp-invoice-instead-of

#### Setting up WP-Invoice Recurring Billing
http://feedback.usabilitydynamics.com/knowledgebase/articles/246292-setting-up-wp-invoice-recurring-billing

#### Plugin throws 404/403/500 error after save settings or first time setup page. What to do?
http://feedback.usabilitydynamics.com/knowledgebase/articles/291213-plugin-throws-404-403-500-error-after-save-setting

#### PayPal Username and Sandbox error.
http://feedback.usabilitydynamics.com/knowledgebase/articles/291214-paypal-username-and-sandbox-error

#### Quotes Premium Feature – Response form
http://feedback.usabilitydynamics.com/knowledgebase/articles/291216-quotes-premium-feature-response-form
9 changes: 9 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,15 @@ Please see the [wp-invoice plugin home page](https://www.usabilitydynamics.com/p

== Change Log ==

= 4.0.0 =
* Changed plugin initialization functionality.
* Added Composer ( dependency manager ) modules and moved some functionality to composer modules ( vendors ).
* Moved premium features to separate plugins.
* Cleaned up functionality of plugin.
* Refactored file structure of plugin.
* Refactored 'View All' page.
* Fixed Warnings and Notices.

= Version 3.09.5 =
* WordPress 4.0 compatible.
* General code improvements.
Expand Down
6 changes: 6 additions & 0 deletions static/splashes/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<p><i><?php _e( 'WP-Invoice lets WordPress blog owners send itemized invoices to their clients. Ideal for web developers, SEO consultants, general contractors, or anyone with a WordPress blog and clients to bill.', ud_get_wp_invoice()->domain ); ?></i></p>

<p><i><?php printf( __( 'In addition to the default invoicing function WP-Invoice can be extended with a <a href="%s">set of add-ons</a>. They may help you manage your business more effectively.', ud_get_wp_invoice()->domain ), 'https://www.usabilitydynamics.com/products' ); ?></i></p>

<?php $s = ud_get_wp_invoice(); if( isset( $s->uservoice_url ) ) : ?>
<hr />
<p><?php printf( __( 'Do you want to help us to improve %s? Or do you have any idea? We are waiting <a href="%s" target="_blank">feedback</a> from you!', ud_get_wp_invoice()->domain ), ud_get_wp_invoice()->name, $s->uservoice_url ); ?></p>
<?php endif; ?>

</div>

<hr />
Expand Down
6 changes: 6 additions & 0 deletions static/splashes/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<p><i><?php _e( 'WP-Invoice lets WordPress blog owners send itemized invoices to their clients. Ideal for web developers, SEO consultants, general contractors, or anyone with a WordPress blog and clients to bill.', ud_get_wp_invoice()->domain ); ?></i></p>

<p><i><?php printf( __( 'In addition to the default invoicing function WP-Invoice can be extended with a <a href="%s">set of add-ons</a>. They may help you manage your business more effectively.', ud_get_wp_invoice()->domain ), 'https://www.usabilitydynamics.com/products' ); ?></i></p>

<?php $s = ud_get_wp_invoice(); if( isset( $s->uservoice_url ) ) : ?>
<hr />
<p><?php printf( __( 'Do you want to help us to improve %s? Or do you have any idea? We are waiting <a href="%s" target="_blank">feedback</a> from you!', ud_get_wp_invoice()->domain ), ud_get_wp_invoice()->name, $s->uservoice_url ); ?></p>
<?php endif; ?>

</div>

<hr />
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

require_once __DIR__ . '/composer' . '/autoload_real.php';

return ComposerAutoloaderInitf5c06e74a9010765c43cb04f6f74ef65::getLoader();
return ComposerAutoloaderInit78f5fe4787da366a893a00f787419eb8::getLoader();
8 changes: 4 additions & 4 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInitf5c06e74a9010765c43cb04f6f74ef65
class ComposerAutoloaderInit78f5fe4787da366a893a00f787419eb8
{
private static $loader;

Expand All @@ -19,9 +19,9 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInitf5c06e74a9010765c43cb04f6f74ef65', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit78f5fe4787da366a893a00f787419eb8', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInitf5c06e74a9010765c43cb04f6f74ef65', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit78f5fe4787da366a893a00f787419eb8', 'loadClassLoader'));

$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
Expand All @@ -44,7 +44,7 @@ public static function getLoader()
}
}

function composerRequiref5c06e74a9010765c43cb04f6f74ef65($file)
function composerRequire78f5fe4787da366a893a00f787419eb8($file)
{
require $file;
}
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public static function get_instance( $args = array() ) {
'name' => 'Plugin Name',
'version' => 'Version',
'domain' => 'Text Domain',
'uservoice_url' => 'UserVoice',
), 'plugin' );
$args = array_merge( (array)$pd, (array)$args, array(
'root_path' => dirname( $dbt[0]['file'] ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,22 @@ public static function get_instance( $args = array() ) {
exit( "Property \$instance must be <b>static</b> for {$class}" );
}
if( null === $class::$instance ) {

//** Get custom ( undefined ) Headers from style.css */
global $wp_theme_directories;
$stylesheet = get_stylesheet();
$theme_root = get_raw_theme_root($stylesheet);
if (false === $theme_root) {
$theme_root = WP_CONTENT_DIR . '/themes';
} elseif (!in_array($theme_root, (array)$wp_theme_directories)) {
$theme_root = WP_CONTENT_DIR . $theme_root;
}
$data = get_file_data( $theme_root . '/' . get_stylesheet() . '/style.css', array(
'uservoice_url' => 'UserVoice',
) );

$t = wp_get_theme();
$args = array_merge( (array)$args, array(
$args = array_merge( (array)$args, $data, array(
'name' => $t->get( 'Name' ),
'version' => $t->get( 'Version' ),
'template' => $t->get( 'Template' ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ abstract class Scaffold {
* @var string
*/
public $root_url = false;

/**
* UserVoice URL
*
* @public
* @property uservoice_url
* @var string
*/
public $uservoice_url = false;

/**
* Storage for dynamic properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@
<?php if( !empty( $home_link ) ) : ?>
| <?php printf( __( '<a href="%s" target="_blank" class="">%s\'s Home page</a>' ), $home_link, ucfirst( $type ) ); ?>
<?php endif; ?>
<?php if( !empty( $this->uservoice_url ) ) : ?>
| <a href="<?php echo $this->uservoice_url ?>" target="_blank" ><?php _e( 'Post your idea' ) ?></a>
<?php endif; ?>
</div>
</div>
<div class="ud-install-notice-clear"></div>
Expand Down
1 change: 1 addition & 0 deletions wp-invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Author URI: http://www.usabilitydynamics.com
* GitHub Plugin URI: wp-invoice/wp-invoice
* GitHub Branch: v4.0
* UserVoice: http://feedback.usabilitydynamics.com/forums/9692-wp-invoice
*
* Copyright 2012 - 2015 Usability Dynamics, Inc. ( email : [email protected] )
*
Expand Down

0 comments on commit 1fa350f

Please sign in to comment.