public static function submission_settings_description()
 {
     echo '<div class="upgrade_message clearfix"><p><span class="icon-sproutapps-flat"></span>';
     printf(self::__('<strong>Upgrade Available:</strong> Enable Estimate Submission integrations and support the future of Sprout Invoices by <a href="%s">upgrading</a>.'), si_get_purchase_link());
     echo '</p></div>';
     printf(self::__('<p>Estimate submissions is the start of the <a href="%s">Sprout Invoices workflow</a>.</p>'), self::PLUGIN_URL . '/sprout-invoices/');
 }
<div id="si_dashboard" class="wrap about-wrap">

	<h1><?php 
printf(self::__('Thanks for using <a href="%s">Sprout Invoices</a>!'), self::PLUGIN_URL, self::SI_VERSION);
?>
</h1>

	<div class="about-text"><?php 
printf(self::__('The future of <a href="%s">Sprout Invoices</a> relies on happy customers supporting Sprout Apps by purchasing upgraded versions. If you like this free version of Sprout Invoices please consider <a href="%s">purchasing an upgrade</a>.'), self::PLUGIN_URL, si_get_purchase_link());
?>
</div>

	<h2 class="nav-tab-wrapper">
		<?php 
do_action('sprout_settings_tabs');
?>
	</h2>

	<div class="welcome_content clearfix">
		<div class="license-overview">

			<?php 
if (SI_Free_License::license_status() == false) {
    ?>
				<div class="activate_message clearfix">
					<div class="activation_msg clearfix">
						 <h4><?php 
    self::_e('Get a free Sprout Apps license instantly...');
    ?>
</h4>
					</div>
Exemplo n.º 3
0
 public static function show_upgrade_notice()
 {
     if (apply_filters('show_upgrade_messaging', true)) {
         printf('<p><strong>Upgrade Available:</strong> Add time tracking and support the future of Sprout Invoices by <a href="%s">upgrading</a>.</p>', si_get_purchase_link());
     }
 }
 function extra_tablenav($which)
 {
     if ($which == 'top' && apply_filters('show_upgrade_messaging', true)) {
         printf('<div class="upgrade_message clearfix"><p><span class="icon-sproutapps-flat"></span><strong>Upgrade Available:</strong> Add more notifications and support the future of Sprout Invoices by <a href="%s">upgrading</a>.</p></div>', si_get_purchase_link());
     }
 }
" <?php 
    if (isset($_GET['marketplace'])) {
        echo 'class="current"';
    }
    ?>
><?php 
    _e('Marketplace', 'sprout-invoices');
    ?>
</a></li>
				</ul>
			</div>
		<?php 
}
?>
		<?php 
printf('<div class="upgrade_message clearfix"><p><strong>DISCOUNTS NOT SHOWN:</strong> Sprout Invoices <a href="%s">license holders</a> receive up to 50&percnt; off the price of any marketplace add-on.</p></div>', si_get_purchase_link());
?>
		<?php 
do_action('si_settings_page_sub_heading_' . $page);
?>
	</div>

	<div id="marketplace_view">
		<main id="main" class="container site-main" role="main">
			<div class="row">
				<div class="products_grid">
					<?php 
foreach ($addons as $addon_id => $addon) {
    error_log('log' . print_r($addon, TRUE));
    ?>
						<article class="type-download <?php 
 public static function settings_description()
 {
     $processors = self::get_registered_processors('offsite');
     if (!in_array('SI_Paypal_EC', array_keys($processors))) {
         printf('<div class="upgrade_message clearfix"><p><span class="icon-sproutapps-flat"></span><strong>Missing Paypal Express Checkout?</strong> The add-on is available for <b>free</b> on the <a href="%s">Sprout Apps marketplace</a>.</p></div>', si_get_purchase_link(self::PLUGIN_URL . '/marketplace/paypal-payments-express-checkout/'));
     } else {
         printf('<div class="upgrade_message clearfix"><p><span class="icon-sproutapps-flat"></span><strong>More Payment Gateways Available:</strong> Checkout the Sprout Apps <a href="%s">marketplace</a>.</p></div>', self::PLUGIN_URL . '/marketplace/');
     }
 }
Exemplo n.º 7
0
		<?php 
}
?>
	</div>


	<div id="edit-slug-box" class="clearfix">
		<b><?php 
si_e('Permalink');
?>
</b>
		<span id="permalink-select" tabindex="-1"><?php 
echo get_permalink($id);
?>
</span>
		<span id="view-post-btn"><a href="<?php 
echo get_permalink($id);
?>
" class="button button-small"><?php 
si_e('View Estimate');
?>
</a></span>
		<?php 
if (apply_filters('show_upgrade_messaging', true)) {
    printf(si__('<span class="helptip" title="Upgrade for Private URLs"></span>'), si_get_purchase_link());
}
?>
	</div>


</div>
Exemplo n.º 8
0
					<?php 
        echo esc_html($data['update_title']);
        ?>
				</p>
			<?php 
    } else {
        ?>
				<?php 
        echo wpautop($data['content']);
        ?>
			<?php 
    }
    ?>
			
		</dd>
	<?php 
}
?>
		
</dl>

<div id="private_note_wrap">
	<p>
		<textarea id="private_note" name="private_note" class="clearfix" disabled="disabled" style="height:40px;"></textarea>
		<?php 
if (apply_filters('show_upgrade_messaging', true)) {
    printf(__('<span class="helptip" title="Upgrade for Private Notes"></span>', 'sprout-invoices'), si_get_purchase_link());
}
?>
	</p>
</div>
Exemplo n.º 9
0
	<h2 class="nav-tab-wrapper">
		<?php 
do_action('sprout_settings_tabs');
?>
	</h2>
	<div class="clearfix">
		<?php 
$page = isset($_GET['page']) ? $_GET['page'] : '';
do_action('si_settings_page_sub_heading_' . $page);
?>
	</div>
	
	<?php 
if (apply_filters('show_upgrade_messaging', true)) {
    ?>
		<?php 
    printf('<div class="upgrade_message clearfix"><p><span class="icon-sproutapps-flat"></span><strong>Upgrade Available:</strong> Add awesome reporting and support the future of Sprout Invoices by <a href="%s">upgrading</a>.</p></div>', si_get_purchase_link());
    ?>
	<?php 
}
?>

	<div class="wrap">
		<div id="dashboard-widgets-wrap">
		<?php 
wp_dashboard();
?>
		</div><!-- dashboard-widgets-wrap -->
	</div><!-- wrap -->

</div>
Exemplo n.º 10
0
/**
 * URL to purchase this app
 * @return string
 */
function si_purchase_link($url = '', $campaign = 'free')
{
    echo si_get_purchase_link($url, $campaign);
}