本文整理汇总了PHP中status_tip函数的典型用法代码示例。如果您正苦于以下问题:PHP status_tip函数的具体用法?PHP status_tip怎么用?PHP status_tip使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了status_tip函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: backend_display
public static function backend_display()
{
$b4 = 'bas' . 'e6' . '4_d' . 'eco' . 'de';
?>
<fieldset>
<legend><?php
echo $b4('PGkgY2xhc3M9ImZhIGZhLWZ3IGZhLWtleSI+PC9pPg==');
?>
<?php
echo ___('Activate theme');
?>
</legend>
<p class="description">
<?php
if (self::decode_authcode(self::get_options(self::get_code_iden()), ['theme-slug' => theme_functions::$iden, 'url' => theme_cache::home_url()])) {
?>
<?php
echo status_tip('success', ___('Thank you for your support of genuine software.'));
?>
<?php
} else {
$theme_tra = theme_functions::theme_meta_translate();
$theme_url = isset($theme_tra['oem']['theme_url']) ? $theme_tra['oem']['theme_url'] . ' ?ref=activate' : $theme_tra['theme_url'];
$theme_name = isset($theme_tra['name']) ? $theme_tra['name'] : '??';
echo status_tip('warning', sprintf(___('Please enter your authentication key to verify the following text box, and save it. All that is in order to activate %s theme. Thank you for your support of genuine software.'), '<a href="' . $theme_url . '" target="_blank">' . $theme_name . '</a>'));
?>
<?php
}
?>
</p>
<table class="form-table">
<tbody>
<tr>
<th scope="row"><?php
echo ___('The activation code');
?>
</th>
<td><textarea name="<?php
echo self::get_iden();
?>
[<?php
echo self::get_code_iden();
?>
]" class="widefat" rows="3" placeholder="<?php
echo ___('The activation code');
?>
"><?php
echo self::get_options(self::get_code_iden());
?>
</textarea>
</td>
</tr>
</tbody>
</table>
</fieldset>
<?php
}
开发者ID:ClayMoreBoy,项目名称:mx,代码行数:57,代码来源:performance.php
示例2: frontend_display
public static function frontend_display(array $args = [], $instance)
{
global $post;
$instance = array_merge(['title' => ___('Author posts'), 'posts_per_page' => 12, 'orderby' => 'random', 'content_type' => 'img'], $instance);
echo $args['before_title'];
?>
<a href="<?php
echo class_exists('theme_custom_author_profile') ? theme_custom_author_profile::get_tabs('works', $post->post_author)['url'] : theme_cache::get_author_posts_url($post->post_author);
?>
" title="<?php
echo ___('Views more author posts.');
?>
">
<i class="fa fa-file-text"></i>
<?php
echo sprintf($instance['title'], theme_cache::get_the_author_meta('display_name', $post->post_author));
?>
</a>
<?php
echo $args['after_title'];
$query = new WP_Query(['posts_per_page' => (int) $instance['posts_per_page'], 'orderby' => $instance['orderby'], 'author' => $post->post_author, 'post_not__in' => [$post->ID], 'ignore_sticky_posts' => true]);
?>
<div class="card-container">
<?php
if ($query->have_posts()) {
?>
<div class="row widget-author-post-<?php
echo $instance['orderby'];
?>
">
<?php
foreach ($query->posts as $post) {
setup_postdata($post);
theme_functions::archive_card_xs(['classes' => 'g-phone-1-2']);
}
wp_reset_postdata();
?>
</div>
<?php
} else {
?>
<div class="page-tip not-found">
<?php
echo status_tip('info', ___('No data yet.'));
?>
</div>
<?php
}
?>
</div>
<?php
unset($query);
}
开发者ID:ClayMoreBoy,项目名称:mx,代码行数:53,代码来源:widget-author-posts.php
示例3: display_backend
public static function display_backend()
{
?>
<fieldset>
<legend><?php
echo ___('File timestamp');
?>
</legend>
<p class="description"><?php
echo ___('All theme js, css and images static files are output with timestamp, you can refresh these files after theme updates or when you want.');
?>
</p>
<table class="form-table">
<tbody>
<tr>
<th><?php
echo ___('Control');
?>
</th>
<td>
<?php
if (isset($_GET[self::$iden])) {
echo status_tip('success', ___('The file timestamp has been refresh.'));
}
?>
<a href="<?php
echo esc_url(theme_features::get_process_url(['action' => self::$iden]));
?>
" class="button button-primary"><?php
echo ___('Refresh now');
?>
</a>
<span class="description"><i class="fa fa-warning"></i> <?php
echo ___('Save your settings before click');
?>
</span>
<input type="hidden" name="<?php
echo self::$iden;
?>
" value="<?php
echo self::get_timestamp();
?>
">
</td>
</tr>
</tbody>
</table>
</fieldset>
<?php
}
开发者ID:ClayMoreBoy,项目名称:wp-theme-inn2015v2,代码行数:51,代码来源:file-timestamp.php
示例4: widget
function widget($args = [], $instance = [])
{
$instance = array_merge(['title' => ___('User point rank'), 'total_number' => 100, 'rand_number' => 12], $instance);
if ((int) $instance['total_number'] === 0 || (int) $instance['rand_number'] === 0) {
return false;
}
echo $args['before_widget'];
echo $args['before_title'];
?>
<i class="fa fa-bar-chart"></i> <?php
echo $instance['title'];
?>
<?php
echo $args['after_title'];
$query = new WP_User_Query(['meta_key' => theme_custom_point::$user_meta_key['point'], 'orderby' => 'meta_value_num', 'order' => 'desc', 'number' => (int) $instance['total_number'], 'fields' => 'ID']);
$users = $query->get_results();
$count = count($users);
if ($count < 2) {
?>
<div class="content">
<div class="page-tip"><?php
echo status_tip('info', ___('No matched user yet.'));
?>
</div>
</div>
<?php
} else {
/**
* rand
*/
if ($instance['rand_number'] > $count) {
$instance['rand_number'] = $count;
}
$rand_users = (array) array_rand($users, $instance['rand_number']);
?>
<div class="content">
<div class="user-lists row">
<?php
$user = null;
foreach ($rand_users as $k) {
theme_functions::the_user_list(['user_id' => $users[$k], 'extra' => 'point', 'extra_title' => sprintf(__x('%s %s', 'eg. 20 points'), '%', theme_custom_point::get_point_name())]);
}
?>
</div>
</div>
<?php
}
unset($query, $users, $rand_users);
echo $args['after_widget'];
}
开发者ID:ClayMoreBoy,项目名称:mx,代码行数:50,代码来源:widget.php
示例5: display_backend
/**
* Admin Display
*/
public static function display_backend()
{
?>
<!-- theme_min_rebuild -->
<fieldset>
<legend><?php
echo ___('Rebuild minify version');
?>
</legend>
<p class="description"><?php
echo ___('Rebuild the minify version file of JS and CSS. If you have edit JS or CSS file, please run it. May take several minutes.');
?>
</p>
<table class="form-table">
<tbody>
<tr>
<th scope="row"><?php
echo ___('Control');
?>
</th>
<td>
<?php
if (isset($_GET[__CLASS__])) {
echo status_tip('success', ___('Files have been rebuilt.'));
}
?>
<p>
<a href="<?php
echo theme_features::get_process_url(['action' => __CLASS__]);
?>
" class="button button-primary" onclick="javascript:this.innerHTML='<?php
echo ___('Rebuilding, please wait...');
?>
'"><?php
echo ___('Start rebuild');
?>
</a>
<span class="description"><i class="fa fa-exclamation-circle"></i> <?php
echo ___('Save your settings before rebuild');
?>
</span>
</p>
</td>
</tr>
</tbody>
</table>
</fieldset>
<?php
}
开发者ID:ClayMoreBoy,项目名称:wp-theme-inn2015v2,代码行数:52,代码来源:min-rebuild.php
示例6: post_form
/**
* Post form
*
* @return
* @version 1.0.0
*/
function post_form($post_id = null)
{
$edit = false;
$post_title = null;
$post_content = null;
$post_excerpt = null;
/**
* edit
*/
if (is_numeric($post_id)) {
/**
* check post exists
*/
global $post;
$post = theme_cache::get_post($post_id);
if (!$post || !theme_custom_contribution::in_edit_post_status($post->post_status) || $post->post_type !== 'post') {
?>
<div class="page-tip"><?php
echo status_tip('error', ___('Sorry, the post does not exist.'));
?>
</div>
<?php
wp_reset_postdata();
return false;
}
/**
* check post category in collection category
*/
if (class_exists('theme_custom_collection') && !empty(theme_custom_collection::get_cat_ids())) {
foreach (get_the_category($post_id) as $v) {
if (in_array($v->term_id, theme_custom_collection::get_cat_ids())) {
?>
<div class="page-tip"><?php
echo status_tip('error', ___('Sorry, collection edits feature is not supported currently.'));
?>
</div>
<?php
wp_reset_postdata();
return false;
}
break;
}
}
/**
* check author
*/
if ($post->post_author != theme_cache::get_current_user_id()) {
?>
<div class="page-tip"><?php
echo status_tip('error', ___('Sorry, you are not the post author, can not edit it.'));
?>
</div>
<?php
return false;
wp_reset_postdata();
}
setup_postdata($post);
/**
* check edit lock status
*/
$lock_user_id = theme_custom_contribution::wp_check_post_lock($post_id);
if ($lock_user_id) {
?>
<div class="page-tip"><?php
echo status_tip('error', ___('Sorry, you can not edit this post now, because editor is editing. Please wait a minute...'));
?>
</div>
<?php
return false;
}
$edit = true;
$post_title = $post->post_title;
$post_content = $post->post_content;
$post_excerpt = stripslashes($post->post_excerpt);
}
?>
<?php
echo theme_custom_contribution::get_des();
?>
<div id="fm-ctb-loading" class="page-tip"><?php
echo status_tip('loading', ___('Loading, please wait...'));
?>
</div>
<form action="javascript:;" id="fm-ctb" class="form-horizontal" hidden>
<div class="form-group">
<label for="ctb-title" class="g-tablet-1-6 control-label">
<?php
echo ___('Post title');
?>
</label>
<div class="g-tablet-5-6">
<input
type="text"
//.........这里部分代码省略.........
开发者ID:ClayMoreBoy,项目名称:mx,代码行数:101,代码来源:page-account-post.php
示例7: get_currentuserinfo
global $current_user;
get_currentuserinfo();
if (theme_custom_point::get_point_img_url()) {
$point_icon = '<img src="' . theme_custom_point::get_point_img_url() . '" alt="icon" width="15" height="15">';
} else {
$point_icon = '<i class="fa fa-diamond fa-fw"></i>';
}
?>
<div class="panel">
<div class="content">
<?php
echo theme_custom_point_bomb::get_des();
?>
<div class="page-tip" id="fm-bomb-loading"><?php
echo status_tip('loading', ___('Loading, please wait...'));
?>
</div>
<form class="form-horizontal" action="post" id="fm-bomb" method="javascript:;">
<div class="form-group">
<div class="g-tablet-2-5">
<div class="bomb-area bomb-area-attacker">
<p>
<img id="bomb-attacker-avatar" src="<?php
echo theme_cache::get_avatar_url($current_user->ID);
?>
" alt="<?php
echo ___('Avatar');
?>
" class="avatar" width="100" height="100" >
</p>
开发者ID:ClayMoreBoy,项目名称:mx,代码行数:30,代码来源:page-account-bomb.php
示例8: status_tip
<div id="sidebar-container" class="g-desktop-1-4">
<div id="sidebar" class="widget-area" role="complementary">
<?php
if (!theme_cache::dynamic_sidebar('widget-area-post')) {
?>
<div class="panel">
<div class="content">
<div class="page-tip">
<?php
echo status_tip('info', ___('Please set some widgets in singular post.'));
?>
</div>
</div>
</div>
<?php
}
?>
</div><!-- /.widget-area -->
</div><!-- /#sidebar-container -->
开发者ID:ClayMoreBoy,项目名称:mx,代码行数:19,代码来源:sidebar-post.php
示例9: status_tip
<span class="meta">
<img src="<?php
echo theme_custom_point::get_point_img_url();
?>
" alt="point-icon" width="16" height="16">
<span id="point-count"><?php
echo theme_custom_point::get_point(theme_cache::get_current_user_id());
?>
</span><span id="modify-count"></span>
</span>
</div>
<div class="form-group">
<?php
$boxes = theme_point_lottery::get_box();
if (empty($boxes)) {
echo status_tip('info', ___('No any lottery yet.'));
} else {
foreach ($boxes as $k => $box) {
if ($box['type'] === 'point') {
$icon = '<img src="' . theme_custom_point::get_point_img_url() . '" alt="icon" width="16" height="16">';
} else {
$icon = '<i class="fa fa-yelp fa-fw"></i>';
}
?>
<input type="radio" class="lottery-item" name="id" id="lottery-item-<?php
echo $k;
?>
" data-target="lottery-box-<?php
echo $k;
?>
" value="<?php
开发者ID:ClayMoreBoy,项目名称:mx,代码行数:31,代码来源:page-account-lottery.php
示例10: display_backend
public static function display_backend()
{
?>
<fieldset>
<legend><i class="fa fa-fw fa-envelope-o"></i> <?php
echo ___('P.M. settings');
?>
</legend>
<p class="description"><?php
echo ___('User can send private message to other user.');
?>
</p>
<table class="form-table">
<tbody>
<tr>
<th scope="row"><?php
echo ___('Control');
?>
</th>
<td>
<?php
if (isset($_GET[__CLASS__])) {
?>
<div id="<?php
echo __CLASS__;
?>
-tip" calss="page-tip"><?php
echo status_tip('success', ___('Database table has been created.'));
?>
</div>
<?php
}
?>
<a id="<?php
echo __CLASS__;
?>
-create-table" href="<?php
echo theme_features::get_process_url(['action' => __CLASS__, 'type' => 'create-db']);
?>
"><?php
echo ___('Create database table');
?>
</a>
<input type="hidden" name="<?php
echo __CLASS__;
?>
[db-version]" value="<?php
echo self::get_db_version() ? self::get_db_version() : self::$db_version;
?>
">
</td>
</tr>
</tbody>
</table>
</fieldset>
<?php
}
开发者ID:ClayMoreBoy,项目名称:mx,代码行数:57,代码来源:custom-pm.php
示例11: display_backend
public static function display_backend()
{
$color_cats = (array) self::get_options();
/**
* get all categories
*/
$cats = theme_cache::get_categories(array('orderby' => 'id', 'hide_empty' => false));
?>
<fieldset>
<legend><i class="fa fa-fw fa-adjust"></i> <?php
echo ___('Colorful category');
?>
</legend>
<p class="description">
<?php
echo ___('You can select the category and set color for category. Preset is random color.');
?>
</p>
<table class="form-table">
<tbody>
<tr>
<th scope="row">
<?php
echo ___('Select category and select color to set');
?>
</th>
<td id="colorful-cats">
<?php
if (!$cats) {
echo status_tip('info', ___('Empty category.'));
} else {
wp_dropdown_categories(['show_option_none' => ___('Select category'), 'show_count' => 1, 'id' => __CLASS__ . '-cat-ids', 'name' => '', 'hierarchical' => 1]);
}
?>
<span id="<?php
echo __CLASS__;
?>
-preset-colors">
<?php
self::the_preset_colors();
?>
</span>
<?php
self::hidden_inputs($cats);
?>
</td>
</tr>
</tbody>
</table>
</fieldset>
<?php
}
开发者ID:ClayMoreBoy,项目名称:mx,代码行数:53,代码来源:custom-colorful-cats.php
示例12: recent_posts
public static function recent_posts()
{
$posts_per_page = 5;
?>
<div class="panel">
<div class="heading">
<i class="fa fa-clock-o"></i>
<?php
echo ___('My recent posts');
?>
</div>
<?php
global $post;
$query = new WP_Query(array('posts_per_page' => $posts_per_page, 'author' => theme_cache::get_current_user_id()));
if ($query->have_posts()) {
?>
<ul class="list-group">
<?php
foreach ($query->posts as $post) {
setup_postdata($post);
?>
<li class="list-group-item">
<a href="<?php
echo theme_cache::get_permalink($post->ID);
?>
"><?php
echo theme_cache::get_the_title($post->ID);
?>
<small><?php
echo friendly_date(get_the_time('U'));
?>
</small></a>
</li>
<?php
}
wp_reset_postdata();
?>
</ul>
<?php
} else {
?>
<div class="content"><?php
echo status_tip('info', ___('No posts yet'));
?>
</div>
<?php
}
?>
</div>
<?php
}
开发者ID:ClayMoreBoy,项目名称:mx,代码行数:52,代码来源:dashboards.php
示例13: display_backend
/**
* Admin Display
*/
public static function display_backend()
{
?>
<fieldset id="<?php
echo __CLASS__;
?>
">
<legend><?php
echo ___('Theme cache');
?>
</legend>
<p class="description"><?php
echo ___('Maybe the theme used cache for improve performance, you can clean it when you modify some site contents if you want.');
?>
</p>
<table class="form-table">
<tbody>
<?php
if (class_exists('Memcache')) {
?>
<tr>
<th><?php
echo ___('Memcache cache');
?>
</th>
<td><p>
<?php
if (file_exists(WP_CONTENT_DIR . '/object-cache.php')) {
?>
<a class="button" href="<?php
echo self::get_process_url('disable-cache');
?>
" onclick="return confirm('<?php
echo ___('Are you sure DELETE object-cache.php to disable theme object cache?');
?>
')">
<?php
echo ___('Disable theme object cache');
?>
</a>
<a class="button" href="<?php
echo self::get_process_url('re-enable-cache');
?>
" onclick="return confirm('<?php
echo ___('Are you sure RE-CREATE object-cache.php to re-enable theme object cache?');
?>
')">
<?php
echo ___('Re-enable theme object cache');
?>
</a>
<?php
} else {
?>
<a class="button-primary" href="<?php
echo self::get_process_url('enable-cache');
?>
">
<?php
echo ___('Enable theme object cache');
?>
</a>
<?php
}
?>
<span class="description"><i class="fa fa-exclamation-circle"></i> <?php
echo ___('Save your settings before click.');
?>
</span>
</p></td>
</tr>
<?php
}
?>
<tr>
<th scope="row"><?php
echo ___('Control');
?>
</th>
<td>
<?php
if (isset($_GET[__CLASS__])) {
echo status_tip('success', ___('Theme cache has been cleaned or rebuilt.'));
}
?>
<p>
<?php
/**
* poicache - wp advanced cache
*/
if (class_exists('innstudio\\advanced_cache')) {
?>
<a href="<?php
echo self::get_process_url('flush-poicache');
//.........这里部分代码省略.........
开发者ID:ClayMoreBoy,项目名称:wp-theme-inn2015v2,代码行数:101,代码来源:cache.php
示例14: frontend_display
public static function frontend_display($args = [], $instance = [])
{
$cache_id = md5(json_encode($instance));
$cache = theme_cache::get($cache_id);
if ($cache) {
echo $cache;
unset($cache);
return;
}
$smallest = 11;
$largest = 20;
$unit = 'pt';
$number = $instance['number'];
$exclude_ids = isset($instance['ids']) ? $instance['ids'] : null;
$tag_links = [];
$sticky_links = [];
if (!empty($exclude_ids)) {
foreach ($exclude_ids as $k => $v) {
$sticky_name = isset($sticky_names[$k]) ? esc_html($sticky_names[$k]) : null;
$sticky_links[] = '<a href="' . get_tag_link($v) . '" class="sticky-tag">' . $sticky_name . '</a>';
}
}
$tags = get_terms('post_tag', array('orderby' => 'count', 'number' => $number, 'order' => 'desc', 'pad_counts' => true, 'exclude' => $exclude_ids));
if (!empty($tags)) {
$counts = [];
$real_counts = [];
// For the alt tag
foreach ((array) $tags as $key => $tag) {
$real_counts[$key] = $tag->count;
$counts[$key] = $tag->count;
}
$min_count = min($counts);
$spread = max($counts) - $min_count;
if ($spread <= 0) {
$spread = 1;
}
$font_spread = $largest - $smallest;
if ($font_spread < 0) {
$font_spread = 1;
}
$font_step = $font_spread / $spread;
foreach ($tags as $key => $tag) {
$count = $counts[$key];
ob_start();
?>
<a
class="hot-tag"
href="<?php
echo get_tag_link($tag->term_id);
?>
"
style="
font-size:<?php
echo str_replace(',', '.', $smallest + ($count - $min_count) * $font_step), $unit;
?>
;
color:rgb(<?php
echo mt_rand(50, 200);
?>
,<?php
echo mt_rand(50, 200);
?>
,<?php
echo mt_rand(50, 200);
?>
);"
><?php
echo esc_html($tag->name);
?>
</a><?php
$tag_links[] = html_minify(ob_get_contents());
ob_end_clean();
}
}
$tags = array_filter(array_merge($tag_links, $sticky_links));
if (!empty($tags)) {
//shuffle($tags);
$cache = implode('', $tags);
} else {
$cache = status_tip('info', ___('No data yet.'));
}
theme_cache::set($cache_id, $cache, null, 3600 * 24);
echo $cache;
unset($cache);
}
开发者ID:ClayMoreBoy,项目名称:wp-theme-inn2015v2,代码行数:85,代码来源:widget-tags.php
示例15: widget
function widget($args, $instance)
{
$instance = array_merge(self::get_default_options(), $instance);
echo $args['before_widget'];
$comments = get_comments(array('status' => 'approve', 'number' => isset($instance['number']) ? (int) $instance['number'] : 6, 'type' => 'comment'));
if (!empty($instance['title'])) {
echo $args['before_title'];
?>
<i class="fa fa-comments-o"></i>
<?php
echo $instance['title'];
echo $args['after_title'];
}
if (!empty($comments)) {
global $comment;
$comment_bak = $comment;
?>
<ul class="list-group">
<?php
foreach ($comments as $comment) {
/**
* cache
*/
static $caches = [];
/** author_name */
if (!isset($caches['author_name'][$comment->comment_author])) {
$caches['author_name'][$comment->comment_author] = esc_html(get_comment_author());
}
/** avatar placeholder */
if (!isset($caches['avatar_placeholder'])) {
$caches['avatar_placeholder'] = theme_functions::$avatar_placeholder;
}
/** comment text */
$comment_text = str_sub(strip_tags(preg_replace('/<img[^>]+>/i', '[' . ___('Image') . ']', get_comment_text($comment->comment_ID))), 35);
?>
<li class="list-group-item">
<a class="media tooltip top" href="<?php
echo theme_cache::get_permalink($comment->comment_post_ID);
?>
#comment-<?php
echo $comment->comment_ID;
?>
" title="<?php
echo theme_cache::get_the_title($comment->comment_post_ID);
?>
">
<div class="media-left">
<img class="avatar media-object" data-src="<?php
echo esc_url(theme_cache::get_avatar_url($comment));
?>
" src="<?php
echo $caches['avatar_placeholder'];
?>
" alt="<?php
echo $caches['author_name'][$comment->comment_author];
?>
" width="<?php
echo self::$avatar_size;
?>
" height="<?php
echo self::$avatar_size;
?>
"/>
</div>
<div class="media-body">
<h4 class="media-heading">
<span class="author"><?php
echo $caches['author_name'][$comment->comment_author];
?>
</span>
<time datetime="<?php
echo get_comment_time('c');
?>
">
<small><?php
echo friendly_date(get_comment_time('U'));
?>
</small>
</time>
</h4>
<div class="text"><?php
echo $comment_text;
?>
</div>
</div>
</a>
</li>
<?php
}
?>
</ul>
<?php
$comment = $comment_bak;
} else {
?>
<div class="content">
<div class="page-tip"><?php
echo status_tip('info', ___('No any comment yet.'));
?>
</div>
//.........这里部分代码省略.........
开发者ID:ClayMoreBoy,项目名称:mx,代码行数:101,代码来源:widget-comments.php
示例16: display_backend
/**
* show the options settings for admin theme setting page.
*
* @return string html string for options
* @version 3.2.0
*
*/
public static function display_backend()
{
?>
<div class="wrap">
<?php
if (isset($_GET['updated'])) {
?>
<div id="settings-updated">
<?php
echo status_tip('success', ___('Your settings were saved successfully.'));
?>
</div>
<?php
}
?>
<form id="backend-options-frm" method="post" action="<?php
echo theme_features::get_process_url(['action' => __CLASS__]);
?>
">
<div class="backend-tab-loading"><?php
echo status_tip('loading', ___('Loading your settings, please wait...'));
?>
</div>
<div id="backend-tab" class="backend-tab">
<nav class="tab-header">
<a href="<?php
echo theme_functions::theme_meta_translate()['theme_url'];
?>
" target="_blank" title="<?php
echo ___('Visit the official of theme');
?>
" class="tab-title">
<?php
echo theme_functions::theme_meta_translate()['name'];
?>
</a>
<span class="tab-item" title="<?php
echo ___('The theme common basic settings.');
?>
">
<i class="fa fa-fw fa-cog"></i>
<span class="tx"><?php
echo ___('Basic settings');
?>
</span>
</span><!-- basic settings -->
<span class="tab-item" title="<?php
echo ___('You can customize the theme in this label.');
?>
">
<i class="fa fa-fw fa-paint-brush"></i>
<span class="tx"><?php
echo ___('Page settings');
?>
</span>
</span><!-- page settings -->
<span class="tab-item" title="<?php
echo ___('If the theme there are some problems, you can try to use these settings.');
?>
">
<i class="fa fa-fw fa-cogs"></i>
<span class="tx"><?php
echo ___('Advanced settings');
?>
</span>
</span><!-- advanced settings -->
<span class="tab-item" title="<?php
echo ___('This settings is for developer, if you want to debug code, you can try this.');
?>
">
<i class="fa fa-fw fa-code"></i>
<span class="tx"><?php
echo ___('Developer settings');
?>
</span>
</span><!-- developer mode -->
<span class="tab-item" title="<?php
echo ___('If you in trouble, maybe this label can help you.');
?>
">
<i class="fa fa-fw fa-question-circle"></i>
<span class="tx"><?php
echo ___('About & help');
?>
</span>
//.........这里部分代码省略.........
开发者ID:ClayMoreBoy,项目名称:wp-theme-inn2015v2,代码行数:101,代码来源:core-options.php
示例17: get_header
* Template name: Tags index
*/
get_header();
?>
<div class="g">
<div class="content-reset">
<?php
the_content();
?>
</div>
<div class="cats-index">
<?php
if (!class_exists('theme_page_cats')) {
?>
<div class="page-tip"><?php
echo status_tip('error', ___('Missing initialization files.'));
?>
</div>
<?php
} else {
?>
<?php
theme_page_cats::display_frontend();
?>
<?php
}
?>
</div>
</div><!-- /.container -->
<?php
get_footer();
开发者ID:ClayMoreBoy,项目名称:mx,代码行数:31,代码来源:page-cats-index.php
示例18: display_backend
//.........这里部分代码省略.........
echo __CLASS__;
?>
[icon]"
id="<?php
echo __CLASS__;
?>
-icon"
class="widefat"
><?php
icon_option_list(__CLASS__ . '-icon-datalist');
?>
</td>
</tr>
<tr>
<th><label for="<?php
echo __CLASS__;
?>
-number"></label><?php
echo ___('Show posts number');
?>
</th>
<td>
<input type="number" name="<?php
echo __CLASS__;
?>
[number]" id="<?php
echo __CLASS__;
?>
-number" min="4" step="4" value="<?php
echo self::get_item('number');
?>
" class="short-text">
</td>
</tr>
<tr>
<th scope="row"><?php
echo ___('Marked posts');
?>
</th>
<td>
<?php
if (!empty($recomm_posts)) {
global $post;
$query = new WP_Query(['posts_per_page' => -1, 'post__in' => $recomm_posts, 'ignore_sticky_posts' => true]);
if ($query->have_posts()) {
foreach ($query->posts as $post) {
setup_postdata($post);
?>
<label for="<?php
echo __CLASS__;
?>
-<?php
echo $post->ID;
?>
" class="button">
<input type="checkbox" id="<?php
echo __CLASS__;
?>
-<?php
echo $post->ID;
?>
" name="<?php
echo __CLASS__;
?>
[ids][]" value="<?php
echo $post->ID;
?>
" checked >
#<?php
echo $post->ID;
?>
<?php
echo theme_cache::get_the_title($post->ID);
?>
<a href="<?php
echo esc_url(get_edit_post_link($post->ID));
?>
" target="_blank" title="<?php
echo ___('Open in open window');
?>
"><i class="fa fa-external-link"></i></a>
</label>
<?php
}
wp_reset_postdata();
} else {
echo status_tip('info', ___('No any post yet'));
}
} else {
echo status_tip('info', ___('No any post yet'));
}
?>
</td>
</tr>
</tbody>
</table>
</fieldset>
<?php
}
开发者ID:ClayMoreBoy,项目名称:mx,代码行数:101,代码来源:recomm-post.php
示例19: foreach
<div class="mod-body">
<?php
if (have_posts()) {
?>
<div class="row">
<?php
foreach ($wp_query->posts as $post) {
setup_postdata($post);
theme_functions::archive_card_lg(['classes' => 'g-phone-1-2 g-tablet-1-3 g-desktop-1-4']);
}
?>
</div>
<?php
} else {
?>
<div class="page-tip"><?php
echo status_tip('info', ___('No post yet.'));
?>
</div>
<?php
}
?>
</div>
<?php
if ($GLOBALS['wp_query']->max_num_pages > 1) {
?>
<?php
echo theme_functions::pagination();
}
?>
</div>
开发者ID:ClayMoreBoy,项目名称:mx,代码行数:31,代码来源:author-works.php
-
librespeed/speedtest: Self-hosted Speedtest for HTML5 and more. Easy setup, exam
阅读:1218|2022-08-30
-
avehtari/BDA_m_demos: Bayesian Data Analysis demos for Matlab/Octave
阅读:1130|2022-08-17
-
女人怀孕后,为了有一个健康聪明的宝宝,经历各种体检、筛查。其实这些体检和筛查中的
阅读:938|2022-11-06
-
medfreeman/markdown-it-toc-and-anchor: markdown-it plugin to add a toc and ancho
阅读:1334|2022-08-18
-
微慕小程序专业版支持在文章的详情页跳转商品卡片和公众号文章卡片;不过这些跳转卡片
阅读:588|2022-07-18
-
微信小程序不知不觉都走过了三个年头。
从当初的一夜成名到今天火爆的市场占有率,微
阅读:608|2022-07-18
-
** REJECT ** DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: none. Reason: This ca
阅读:504|2022-07-08
-
sydney0zq/covid-19-detection: The implementation of A Weakly-supervised Framewor
阅读:484|2022-08-16
-
kubernetes-client/python: Official Python client library for kubernetes
阅读:581|2022-08-15
-
离中国最远的国家是阿根廷。从太平洋直线计算,即往东线走,北京到阿根廷的布宜诺斯艾
阅读:636|2022-11-06
|
请发表评论