コード例 #1
0
 public static function language_detector_admin_notices()
 {
     // Check if the nag screen has been disabled for this language
     if (self::has_language_detector_dismissed()) {
         return;
     }
     // Get the current language locale
     $language = get_locale();
     require_once ABSPATH . 'wp-admin/includes/translation-install.php';
     $translations = wp_get_available_translations();
     printf('<div id="si_language_detect_nag_dismiss" class="notice notice-info is-dismissible"><p>%s</p></div>', sprintf(__('<span class="dashicons dashicons-megaphone"></span> <b>%1$s</b> does not have a translation for <b>%2$s</b>, please help the community translate at <a href="%3$s" target="_blank">%3$s</a>. Supporting translators receive major discounts on <a href="%4$s" target="_blank">pro licenses</a> and <a href="%5$s" target="_blank">add-ons</a>.', 'sprout-invoices'), esc_html(self::PLUGIN_NAME), esc_html($translations[$language]['native_name']), esc_url('https://translate.wordpress.org/projects/wp-plugins/sprout-invoices/'), si_get_sa_link('https://sproutapps.co/sprout-invoices/purchase/', 'translation'), si_get_sa_link('https://sproutapps.co/marketplace/', 'translation')));
 }
コード例 #2
0
									<?php 
    }
    ?>
								</div>
								<div class="info">
									<strong><?php 
    echo wp_kses($addon->post_title, wp_kses_allowed_html('post'));
    ?>
</strong>							
									<div class="product-info">
										<?php 
    echo wp_kses($addon->excerpt, wp_kses_allowed_html('post'));
    ?>
									</div>
									<a class="view-details" href="<?php 
    echo si_get_sa_link($addon->url, 'add-ons');
    ?>
"><?php 
    _e('View Details', 'sprout-invoices');
    ?>
</a>
								</div>
							</div>
						</article>
					<?php 
}
?>
				</div>
			</div>
		</main>
	</div>
コード例 #3
0
    echo wp_kses($addon->excerpt, wp_kses_allowed_html('post'));
    ?>
									</div>
									<a class="view-details" href="<?php 
    echo si_get_sa_link($addon->url, 'add-ons');
    ?>
"><?php 
    _e('View Details', 'sprout-invoices');
    ?>
</a>
								</div>
							</div>
						</article>
					<?php 
}
?>
				</div>
			<a href="<?php 
echo si_get_sa_link('https://sproutapps.co/marketplace/', 'add-ons');
?>
" class="button"><span class="edd-add-to-cart-label"><?php 
_e('View More Add-ons', 'sprout-invoices');
?>
</span></a>
			</div>
		</main>
	</div>

</div>

コード例 #4
0
						<div id="license_message" class="clearfix"></div>
					</div>

					<div class="activation_msg clearfix">
						<?php 
    printf(__('Generating a free license key is not required but takes seconds! Your email will be used to create a unique Sprout Apps license key that will enable future features (i.e. easy add-on installs from <a href="%s">https://sproutapps.co</a>).', 'sprout-invoices'), si_get_sa_link());
    ?>
</p>
					</div>
				</div>
			<?php 
}
?>

			<div class="upgrade_message clearfix"><p><strong>Upgrade Discount Available:</strong> Write a <a href="https://wordpress.org/support/view/plugin-reviews/sprout-invoices">plugin review</a> about this free version and <a href="<?php 
echo si_get_sa_link('https://sproutapps.co/sprout-invoices/sprout-invoices-discount-code/', 'plugin-review');
?>
">send us the link</a>.</p></div>

			<h2 class="headline_callout"><?php 
_e('The Sprout Invoices Flow', 'sprout-invoices');
?>
</h2>

			<div class="feature-section col three-col clearfix">
				<div class="col-1">
					<span class="flow_icon icon-handshake"></span>
					<h4><?php 
_e('Lead Generation', 'sprout-invoices');
?>
</h4>