本文整理汇总了PHP中fs_require_once_template函数的典型用法代码示例。如果您正苦于以下问题:PHP fs_require_once_template函数的具体用法?PHP fs_require_once_template怎么用?PHP fs_require_once_template使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了fs_require_once_template函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: substr
$site_url = substr($site_url, $protocol_pos + 3);
}
$freemius_site_url = $fs->has_paid_plan() ? 'https://freemius.com/wordpress/' : 'https://freemius.com/wordpress/insights/';
?>
<div id="fs_connect" class="wrap<?php
if (!$fs->enable_anonymous() || $is_pending_activation) {
echo ' fs-anonymous-disabled';
}
?>
">
<div class="fs-visual">
<b class="fs-site-icon"><i class="dashicons dashicons-wordpress"></i></b>
<i class="dashicons dashicons-plus fs-first"></i>
<?php
$vars = array('slug' => $slug);
fs_require_once_template('plugin-icon.php', $vars);
?>
<i class="dashicons dashicons-plus fs-second"></i>
<img class="fs-connect-logo" width="80" height="80" src="//img.freemius.com/connect-logo.png"/>
</div>
<div class="fs-content">
<p><?php
if ($is_pending_activation) {
echo $fs->apply_filters('pending_activation_message', sprintf(__fs('thanks-x', $slug) . '<br>' . __fs('pending-activation-message', $slug), $first_name, '<b>' . $fs->get_plugin_name() . '</b>', '<b>' . $current_user->user_email . '</b>'));
} else {
$filter = 'connect_message';
$default_optin_message = 'connect-message';
if ($fs->is_plugin_update()) {
// If Freemius was added on a plugin update, set different
// opt-in message.
$default_optin_message = 'connect-message_on-update';
示例2: _contact_page_render
/**
* Render contact-us page.
*
* @author Vova Feldman (@svovaf)
* @since 1.0.3
*/
function _contact_page_render()
{
$this->_logger->entrance();
$vars = array('slug' => $this->_slug);
fs_require_once_template('contact.php', $vars);
}
示例3: _add_sticky_dismiss_javascript
/**
* Rendered sticky message dismiss JavaScript.
*
* @author Vova Feldman (@svovaf)
* @since 1.0.7
*/
static function _add_sticky_dismiss_javascript()
{
$params = array();
fs_require_once_template('sticky-admin-notice-js.php', $params);
}