• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP postbox_classes函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中postbox_classes函数的典型用法代码示例。如果您正苦于以下问题:PHP postbox_classes函数的具体用法?PHP postbox_classes怎么用?PHP postbox_classes使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了postbox_classes函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: cmb_do_meta_boxes

/**
 * Meta-Box template function
 *
 * @since 2.5.0
 *
 * @param string|object $screen Screen identifier
 * @param string $context box context
 * @param mixed $object gets passed to the box callback function as first parameter
 * @return int number of meta_boxes
 */
function cmb_do_meta_boxes($screen, $context, $object)
{
    global $wp_meta_boxes;
    static $already_sorted = false;
    if (empty($screen)) {
        $screen = get_current_screen();
    } elseif (is_string($screen)) {
        $screen = convert_to_screen($screen);
    }
    $page = $screen->id;
    $hidden = get_hidden_meta_boxes($screen);
    $i = 0;
    do {
        // Grab the ones the user has manually sorted. Pull them out of their previous context/priority and into the one the user chose
        if (!$already_sorted && ($sorted = get_user_option("meta-box-order_{$page}"))) {
            foreach ($sorted as $box_context => $ids) {
                foreach (explode(',', $ids) as $id) {
                    if ($id && 'dashboard_browser_nag' !== $id) {
                        add_meta_box($id, null, null, $screen, $box_context, 'sorted');
                    }
                }
            }
        }
        $already_sorted = true;
        if (!isset($wp_meta_boxes) || !isset($wp_meta_boxes[$page]) || !isset($wp_meta_boxes[$page][$context])) {
            break;
        }
        foreach (array('high', 'sorted', 'core', 'default', 'low') as $priority) {
            if (isset($wp_meta_boxes[$page][$context][$priority])) {
                foreach ((array) $wp_meta_boxes[$page][$context][$priority] as $box) {
                    if (false == $box || !$box['title']) {
                        continue;
                    }
                    $i++;
                    $hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : '';
                    ?>

					<div id="<?php 
                    esc_attr_e($box['id']);
                    ?>
" class="<?php 
                    esc_attr_e(postbox_classes($box['id'], $page) . $hidden_class);
                    ?>
">

						<?php 
                    call_user_func($box['callback'], $object, $box);
                    ?>

					</div>

				<?php 
                }
            }
        }
    } while (0);
    return $i;
}
开发者ID:duncanjbrown,项目名称:Custom-Meta-Boxes,代码行数:68,代码来源:fields-anywhere.php


示例2: wpcf_admin_metabox_begin

function wpcf_admin_metabox_begin($title, $id = false, $table_id = false, $table_show = true)
{
    $screen = get_current_screen();
    $markup = sprintf('<div class="postbox %s" %s><div title="%s" class="handlediv"><br></div><h3 class="hndle">%s</h3><div class="inside">', postbox_classes($id, $screen->id), $id ? sprintf('id="%s"', $id) : '', __('Click to toggle'), $title);
    if ($table_show) {
        $markup .= sprintf('<table %s class="wpcf-types-form-table widefat"><tbody><tr><td>', $table_id ? sprintf('id="%s"', $table_id) : '');
    }
    return array('#type' => 'markup', '#markup' => $markup);
}
开发者ID:chrismathers,项目名称:premierplacement,代码行数:9,代码来源:common-functions.php


示例3: emulate_metabox

 function emulate_metabox($post)
 {
     $post_type = !empty($post) ? $post->post_type : get_current_screen()->post_type;
     if ('page' !== $post_type) {
         return;
     }
     $box = array('id' => $this->args['page_slug'], 'title' => $this->args['page_title'], 'callback' => array(&$this, 'builder_settings_show'));
     $page = get_current_screen()->id;
     echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . ' hidden" ' . '>' . "\n";
     echo '<div class="handlediv" title="' . esc_attr__('Click to toggle', 'circleflip-builder') . '"><br /></div>';
     echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n";
     echo '<div class="inside">' . "\n";
     call_user_func($box['callback'], $post, $box);
     echo "</div>\n";
     echo "</div>\n";
 }
开发者ID:purgesoftwares,项目名称:purges,代码行数:16,代码来源:class-aq-page-builder.php


示例4: do_meta_boxes

function do_meta_boxes($page, $context, $object) {
	global $wp_meta_boxes;

	if ( !isset($wp_meta_boxes) || !isset($wp_meta_boxes[$page]) || !isset($wp_meta_boxes[$page][$context]) )
		return;

	foreach ( (array) $wp_meta_boxes[$page][$context] as $box ) {
		echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . '">' . "\n";
		echo "<h3>{$box['title']}</h3>\n";
		echo '<div class="inside">' . "\n";
		call_user_func($box['callback'], $object, $box);
		echo "</div>\n";
		echo "</div>\n";
	}
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:15,代码来源:template.php


示例5: _e

</label>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<p><?php 
_e('If the link is to a person, you can specify your relationship with them using the above form. If you would like to learn more about the idea check out <a href="http://gmpg.org/xfn/">XFN</a>.');
?>
</p>
</div>
</div>

<div id="linkadvanceddiv" class="postbox <?php 
echo postbox_classes('linkadvanceddiv', 'link');
?>
">
<h3><?php 
_e('Advanced');
?>
</h3>
<div class="inside">
<table class="form-table" style="width: 100%;" cellspacing="2" cellpadding="5">
	<tr class="form-field">
		<th valign="top"  scope="row"><label for="link_image"><?php 
_e('Image Address');
?>
</label></th>
		<td><input type="text" name="link_image" id="link_image" size="50" value="<?php 
echo $link->link_image;
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:edit-link-form.php


示例6: nggallery_picturelist


//.........这里部分代码省略.........
<h2><?php 
    echo __ngettext('Gallery', 'Galleries', 1, 'nggallery');
    ?>
 : <?php 
    echo $gallery->title;
    ?>
</h2>

<br style="clear: both;" />

<form id="updategallery" class="nggform" method="POST" action="<?php 
    echo $ngg->manage_page->base_page . '&amp;mode=edit&amp;gid=' . $act_gid;
    ?>
" accept-charset="utf-8">
<?php 
    wp_nonce_field('ngg_updategallery');
    ?>

<?php 
    if ($showTags) {
        ?>
<input type="hidden" name="showTags" value="true" /><?php 
    }
    if ($hideThumbs) {
        ?>
<input type="hidden" name="hideThumbs" value="true" /><?php 
    }
    ?>
<div id="poststuff">
	<?php 
    wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
    ?>
	<div id="gallerydiv" class="postbox <?php 
    echo postbox_classes('gallerydiv', 'ngg-manage-gallery');
    ?>
" >
		<h3><?php 
    _e('Gallery settings', 'nggallery');
    ?>
<small> (<?php 
    _e('Click here for more settings', 'nggallery');
    ?>
)</small></h3>
		<div class="inside">
			<table class="form-table" >
				<tr>
					<th align="left"><?php 
    _e('Title');
    ?>
:</th>
					<th align="left"><input type="text" size="50" name="title" value="<?php 
    echo $gallery->title;
    ?>
"  /></th>
					<th align="right"><?php 
    _e('Page Link to', 'nggallery');
    ?>
:</th>
					<th align="left">
					<select name="pageid" style="width:95%">
						<option value="0" ><?php 
    _e('Not linked', 'nggallery');
    ?>
</option>
						<?php 
    parent_dropdown($gallery->pageid);
开发者ID:pravinhirmukhe,项目名称:flow1,代码行数:67,代码来源:manage-images.php


示例7: nggallery_picturelist


//.........这里部分代码省略.........
        ?>
<input type="hidden" name="page" value="manage-images" />

<?php 
    } else {
        ?>
<h2><?php 
        echo _n('Gallery', 'Galleries', 1, 'nggallery');
        ?>
 : <?php 
        echo esc_html(nggGallery::i18n($gallery->title));
        ?>
</h2>

<br style="clear: both;" />

<form id="updategallery" class="nggform" method="POST" action="<?php 
        echo $ngg->manage_page->base_page . '&amp;mode=edit&amp;gid=' . $act_gid . '&amp;paged=' . $_GET['paged'];
        ?>
" accept-charset="utf-8">
<?php 
        wp_nonce_field('ngg_updategallery');
        ?>
<input type="hidden" name="page" value="manage-images" />

<?php 
        if (nggGallery::current_user_can('NextGEN Edit gallery options')) {
            ?>
<div id="poststuff">
	<?php 
            wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
            ?>
	<div id="gallerydiv" class="postbox <?php 
            echo postbox_classes('gallerydiv', 'ngg-manage-gallery');
            ?>
" >
		<h3><?php 
            _e('Gallery settings', 'nggallery');
            ?>
<small> (<?php 
            _e('Click here for more settings', 'nggallery');
            ?>
)</small></h3>
		<div class="inside">
			<table class="form-table" >
				<tr>
					<th align="left"><?php 
            _e('Title');
            ?>
:</th>
					<th align="left"><input <?php 
            nggGallery::current_user_can_form('NextGEN Edit gallery title');
            ?>
 type="text" size="50" name="title" value="<?php 
            echo esc_attr(stripslashes($gallery->title));
            ?>
"  /></th>
					<th align="right"><?php 
            _e('Page Link to', 'nggallery');
            ?>
:</th>
					<th align="left">
					<select <?php 
            nggGallery::current_user_can_form('NextGEN Edit gallery page id');
            ?>
  name="pageid" style="width:95%">
开发者ID:jeanpage,项目名称:ca_learn,代码行数:67,代码来源:manage-images.php


示例8: do_meta_boxes

/**
 * Meta-Box template function
 *
 * @since 2.5.0
 *
 * @param string|object $screen Screen identifier
 * @param string $context box context
 * @param mixed $object gets passed to the box callback function as first parameter
 * @return int number of meta_boxes
 */
function do_meta_boxes($screen, $context, $object)
{
    global $wp_meta_boxes;
    static $already_sorted = false;
    if (empty($screen)) {
        $screen = get_current_screen();
    } elseif (is_string($screen)) {
        $screen = convert_to_screen($screen);
    }
    $page = $screen->id;
    $hidden = get_hidden_meta_boxes($screen);
    printf('<div id="%s-sortables" class="meta-box-sortables">', htmlspecialchars($context));
    $i = 0;
    do {
        // Grab the ones the user has manually sorted. Pull them out of their previous context/priority and into the one the user chose
        if (!$already_sorted && ($sorted = get_user_option("meta-box-order_{$page}"))) {
            foreach ($sorted as $box_context => $ids) {
                foreach (explode(',', $ids) as $id) {
                    if ($id && 'dashboard_browser_nag' !== $id) {
                        add_meta_box($id, null, null, $screen, $box_context, 'sorted');
                    }
                }
            }
        }
        $already_sorted = true;
        if (!isset($wp_meta_boxes) || !isset($wp_meta_boxes[$page]) || !isset($wp_meta_boxes[$page][$context])) {
            break;
        }
        foreach (array('high', 'sorted', 'core', 'default', 'low') as $priority) {
            if (isset($wp_meta_boxes[$page][$context][$priority])) {
                foreach ((array) $wp_meta_boxes[$page][$context][$priority] as $box) {
                    if (false == $box || !$box['title']) {
                        continue;
                    }
                    $i++;
                    $style = '';
                    $hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : '';
                    echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . $hidden_class . '" ' . '>' . "\n";
                    if ('dashboard_browser_nag' != $box['id']) {
                        echo '<div class="handlediv" title="' . esc_attr__('Click to toggle') . '"><br /></div>';
                    }
                    echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n";
                    echo '<div class="inside">' . "\n";
                    call_user_func($box['callback'], $object, $box);
                    echo "</div>\n";
                    echo "</div>\n";
                }
            }
        }
    } while (0);
    echo "</div>";
    return $i;
}
开发者ID:cptpike,项目名称:linuxhardwareguide,代码行数:63,代码来源:template.php


示例9: attribute_escape

echo attribute_escape($post->post_name);
?>
" />
</div>
</div>

<?php 
$authors = get_editable_user_ids($current_user->id);
// TODO: ROLE SYSTEM
if ($post->post_author && !in_array($post->post_author, $authors)) {
    $authors[] = $post->post_author;
}
if ($authors && count($authors) > 1) {
    ?>
<div id="authordiv" class="postbox <?php 
    echo postbox_classes('authordiv', 'post');
    ?>
">
<h3><?php 
    _e('Post Author');
    ?>
</h3>
<div class="inside">
<?php 
    wp_dropdown_users(array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post_ID) ? $user_ID : $post->post_author));
    ?>
</div>
</div>
<?php 
}
?>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:edit-form-advanced.php


示例10: do_meta_boxes

/**
 * {@internal Missing Short Description}}
 *
 * @since unknown
 *
 * @param unknown_type $page
 * @param unknown_type $context
 * @param unknown_type $object
 * @return int number of meta_boxes
 */
function do_meta_boxes($page, $context, $object) {
	global $wp_meta_boxes;
	static $already_sorted = false;

	//do_action('do_meta_boxes', $page, $context, $object);

	$hidden = get_hidden_meta_boxes($page);

	echo "<div id='$context-sortables' class='meta-box-sortables'>\n";

	$i = 0;
	do {
		// Grab the ones the user has manually sorted. Pull them out of their previous context/priority and into the one the user chose
		if ( !$already_sorted && $sorted = get_user_option( "meta-box-order_$page", 0, false ) ) {
			foreach ( $sorted as $box_context => $ids )
				foreach ( explode(',', $ids) as $id )
					if ( $id )
						add_meta_box( $id, null, null, $page, $box_context, 'sorted' );
		}
		$already_sorted = true;

		if ( !isset($wp_meta_boxes) || !isset($wp_meta_boxes[$page]) || !isset($wp_meta_boxes[$page][$context]) )
			break;

		foreach ( array('high', 'sorted', 'core', 'default', 'low') as $priority ) {
			if ( isset($wp_meta_boxes[$page][$context][$priority]) ) {
				foreach ( (array) $wp_meta_boxes[$page][$context][$priority] as $box ) {
					if ( false == $box || ! $box['title'] )
						continue;
					$i++;
					$style = '';
					if ( in_array($box['id'], $hidden) )
						$style = 'style="display:none;"';
					echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . '" ' . $style . '>' . "\n";
					echo '<div class="handlediv" title="' . __('Click to toggle') . '"><br /></div>';
					echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n";
					echo '<div class="inside">' . "\n";
					call_user_func($box['callback'], $object, $box);
					echo "</div>\n";
					echo "</div>\n";
				}
			}
		}
	} while(0);

	echo "</div>";

	return $i;

}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:60,代码来源:template.php


示例11: nggallery_picturelist


//.........这里部分代码省略.........
" accept-charset="utf-8">
<?php 
        wp_nonce_field('ngg_updategallery');
        ?>
<input type="hidden" name="page" value="manage-images" />

<?php 
    } else {
        ?>
<h2><?php 
        echo _n('Gallery', 'Galleries', 1, 'nggallery');
        ?>
 : <?php 
        echo nggGallery::i18n($gallery->title);
        ?>
</h2>

<br style="clear: both;" />

<form id="updategallery" class="nggform" method="POST" action="<?php 
        echo $ngg->manage_page->base_page . '&amp;mode=edit&amp;gid=' . $act_gid . '&amp;paged=' . $_GET['paged'];
        ?>
" accept-charset="utf-8">
<?php 
        wp_nonce_field('ngg_updategallery');
        ?>
<input type="hidden" name="page" value="manage-images" />

<div id="poststuff">
	<?php 
        wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
        ?>
	<div id="gallerydiv" class="postbox <?php 
        echo postbox_classes('gallerydiv', 'ngg-manage-gallery');
        ?>
" >
		<h3><?php 
        _e('Gallery settings', 'nggallery');
        ?>
<small> (<?php 
        _e('Click here for more settings', 'nggallery');
        ?>
)</small></h3>
		<div class="inside">
			<table class="form-table" >
				<tr>
					<th align="left"><?php 
        _e('Title');
        ?>
:</th>
					<th align="left"><input type="text" size="50" name="title" value="<?php 
        echo $gallery->title;
        ?>
"  /></th>
					<th align="right"><?php 
        _e('Page Link to', 'nggallery');
        ?>
:</th>
					<th align="left">
					<select name="pageid" style="width:95%">
						<option value="0" ><?php 
        _e('Not linked', 'nggallery');
        ?>
</option>
						<?php 
        parent_dropdown($gallery->pageid);
开发者ID:alx,项目名称:SimplePress,代码行数:67,代码来源:manage-images.php


示例12: postbox_classes

<div id="pageorderdiv" class="postbox <?php echo postbox_classes('pageorderdiv', 'page'); ?>">
<h3><?php _e('Page Order') ?></h3>
<div class="inside">
<p><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo $post->menu_order ?>" /></p>
<p><?php _e('Pages are usually ordered alphabetically, but you can put a number above to change the order pages appear in. (We know this is a little janky, it&#8217;ll be better in future releases.)'); ?></p>
</div>
</div>

<?php
$authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
if ( $post->post_author && !in_array($post->post_author, $authors) )
	$authors[] = $post->post_author;
if ( $authors && count( $authors ) > 1 ) :
?>
<div id="pageauthordiv" class="postbox <?php echo postbox_classes('pageauthordiv', 'page'); ?>">
<h3><?php _e('Page Author'); ?></h3>
<div class="inside">
<?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post_ID) ? $user_ID : $post->post_author) ); ?>
</div>
</div>
<?php endif; ?>

<?php do_meta_boxes('page', 'advanced', $post); ?>

</div>
</div>

</div>

</form>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:30,代码来源:edit-page-form.php


示例13: printf

			<li><a href="<?php 
    printf('#%s', $meta_box['id']);
    ?>
"><?php 
    echo $meta_box['title'];
    ?>
</a></li>
		<?php 
}
?>
	</ul>
	<?php 
foreach ($view_args['meta_boxes'] as $meta_box) {
    ?>
		<div id="<?php 
    echo $meta_box['id'];
    ?>
" class="postbox <?php 
    echo postbox_classes($meta_box['id'], 'campaign');
    ?>
">
			<div class="inside">
				<?php 
    call_user_func($meta_box['callback'], $post, $meta_box);
    ?>
			</div>
		</div>
	<?php 
}
?>
</div>
开发者ID:helgatheviking,项目名称:Charitable,代码行数:31,代码来源:campaign-advanced-settings.php


示例14: xfn_check

						<input class="valinp" type="checkbox" name="romantic" value="date" id="date" <?php xfn_check('romantic', 'date'); ?> />
						<?php _e('date') ?></label>
						<label for="romantic">
						<input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="romantic" <?php xfn_check('romantic', 'sweetheart'); ?> />
						<?php _e('sweetheart') ?></label>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<p><?php _e('If the link is to a person, you can specify your relationship with them using the above form. If you would like to learn more about the idea check out <a href="http://gmpg.org/xfn/">XFN</a>.'); ?></p>
</div>
</div>

<div id="linkadvanceddiv" class="postbox <?php echo postbox_classes('linkadvanceddiv', 'link'); ?>">
<h3><?php _e('Advanced') ?></h3>
<div class="inside">
<table class="form-table" style="width: 100%;" cellspacing="2" cellpadding="5">
	<tr class="form-field">
		<th valign="top"  scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th>
		<td><input type="text" name="link_image" id="link_image" size="50" value="<?php echo $link->link_image; ?>" style="width: 95%" /></td>
	</tr>
	<tr class="form-field">
		<th valign="top"  scope="row"><label for="rss_uri"><?php _e('RSS Address') ?></label></th>
		<td><input name="link_rss" type="text" id="rss_uri" value="<?php echo $link->link_rss; ?>" size="50" style="width: 95%" /></td>
	</tr>
	<tr class="form-field">
		<th valign="top"  scope="row"><label for="link_notes"><?php _e('Notes') ?></label></th>
		<td><textarea name="link_notes" id="link_notes" cols="50" rows="10" style="width: 95%"><?php echo $link->link_notes; ?></textarea></td>
	</tr>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:edit-link-form.php


示例15: postbox_classes

 /**
  *	Get saved postbox states
  */
 function postbox_classes($css_id)
 {
     if (function_exists('postbox_classes')) {
         return postbox_classes($css_id, $this->page);
     } else {
         return "";
     }
 }
开发者ID:omodev,项目名称:hooks,代码行数:11,代码来源:pay-with-a-like.php


示例16: lici_wp_add_bottom_post

function lici_wp_add_bottom_post() {
	global $wpdb;
	$options_table = $wpdb->prefix."lici_options";


	echo '
	<div id="licipost" class="postbox ' . postbox_classes("licipost", "post") . '" style="margin: 0px; background: #fff">
<h3><a class="togbox">+</a> LIci Crossposter - Параметры</h3>
<div class="inside">';
	echo '<h4>В какие журналы постить?</h4><ul>';
	// begin

	$logins = $wpdb->get_results("SELECT * FROM $options_table ORDER BY `id`;");
	foreach($logins as $login) {
		$sel = ($login->autocheck === "yes")? " checked='checked'" : "";
		print "<li><label><input type='checkbox' name='lici-".$login->id."' value='".$login->id."'$sel /> ".$login->login."</label></li>";
	}
	// end
	print "</ul><p>&nbsp;</p><h4>Опции журнала</h4>";

	// begin
	$logins = $wpdb->get_results("SELECT * FROM $options_table ORDER BY `id`;");
	print "
	<select id='sellici' onChange='javascript:licioptions();'>
	";
	foreach ($logins as $login) {
		print "<option value='".$login->id."'$sel>".$login->login."</option>\n";
	}
	print "
	</select>
	";
	$show = true;
	foreach ($logins as $login) {
		if ($show) { print "<div id='lici-".$login->id."'><script type='text/javascript'> licinow = 'lici-".$login->id."';</script>"; $show = !$show; } else {
			print "<div id='lici-".$login->id."' style='display: none;'>";
		}
		print "<br />
		<label><input type='checkbox' name='lici-".$login->id."-comments' ";
        if ($login->comments === "yes") { print "checked='checked'";}
		print " /> Разрешить комментарии</label><br />
		<label><input type='checkbox' name='lici-".$login->id."-closerec' ";
		if ($login->closerec === "yes") { print "checked='checked'";}
		print " /> Закрыть запись</label><br />
		<label><input type='checkbox' name='lici-".$login->id."-original' ";
		if ($login->original === "yes") { print "checked='checked'";}
		print " /> Ссылка на оригинал</label><br />
		<label><input type='checkbox' name='lici-".$login->id."-onlymore'  ";
		if ($login->onlymore === "yes") { print "checked='checked'";}
		print " /> Кросспостить только до &lt;!--more--&gt;</label><br /><br />";
		print "
		<table width='100%'>
		 <tr>
		  <td><label>Я сейчас нахожусь<br /><input type='text' value='".$login->whereiam."' name='lici-".$login->id."-whereiam' /></label></td>
		 </tr>
		 <tr>
		  <td><label>Мой настрой<br /><input type='text' value='".$login->mood."' name='lici-".$login->id."-mood' /></label></td>
		 </tr>
		 <tr>
		  <td><label>Я слушаю<br /><input type='text' value='".$login->listening."' name='lici-".$login->id."-listening' /></label></td>
		  </tr>
		</table>
		";
		print "</div>";
	}
	// end
	echo '</div></div>';
	?>

	<script type="text/javascript">
	jQuery(document).ready(function(){
		jQuery(".side-info").before("<div style='display: block; background: white; width: 100%; height: 10px;'></div>");
		jQuery(".side-info").before(jQuery("#licipost"));
	});
	</script>
	<?
}
开发者ID:query-string,项目名称:LIci,代码行数:76,代码来源:lici-wp.php


示例17: do_meta_boxes

function do_meta_boxes($page, $context, $object)
{
    global $wp_meta_boxes;
    do_action('do_meta_boxes', $page, $context, $object);
    if (!isset($wp_meta_boxes) || !isset($wp_meta_boxes[$page]) || !isset($wp_meta_boxes[$page][$context])) {
        return;
    }
    foreach (array('high', 'core', 'default', 'low') as $priority) {
        foreach ((array) $wp_meta_boxes[$page][$context][$priority] as $box) {
            if (false === $box) {
                continue;
            }
            echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . '">' . "\n";
            echo "<h3>{$box['title']}</h3>\n";
            echo '<div class="inside">' . "\n";
            call_user_func($box['callback'], $object, $box);
            echo "</div>\n";
            echo "</div>\n";
        }
    }
}
开发者ID:nurpax,项目名称:saastafi,代码行数:21,代码来源:template.php


示例18: helperSuggestTags

	/**
	 * Suggested tags
	 *
	 */
	function helperSuggestTags() {
		?>
		<div id="suggestedtags" class="postbox <?php echo postbox_classes('suggestedtags', 'post'); ?>">
			<h3>
				<img style="float:right; display:none;" id="st_ajax_loading" src="<?php echo $this->info['install_url']; ?>/inc/images/ajax-loader.gif" alt="Ajax loading" />
				<?php _e('Suggested tags from :', 'simpletags'); ?>&nbsp;&nbsp;
				<a class="local_db" href="#suggestedtags"><?php _e('Local tags', 'simpletags'); ?></a>&nbsp;&nbsp;-&nbsp;&nbsp;
				<a class="yahoo_api" href="#suggestedtags"><?php _e('Yahoo', 'simpletags'); ?></a>&nbsp;&nbsp;-&nbsp;&nbsp;
				<a class="ttn_api" href="#suggestedtags"><?php _e('Tag The Net', 'simpletags'); ?></a>
			</h3>
			<div class="inside container_clicktags">
				<?php _e('Choose a provider to get suggested tags (local, yahoo or tag the net).', 'simpletags'); ?>
				<div class="clear"></div>
			</div>
		</div>
	   	<script type="text/javascript">
	    // <![CDATA[
			var site_url = '<?php echo $this->info['siteurl']; ?>';
		// ]]>
	    </script>
	    <script type="text/javascript" src="<?php echo $this->info['install_url'] ?>/inc/js/helper-suggested-tags.js?ver=<?php echo $this->version; ?>""></script>
    <?php
	}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:27,代码来源:simple-tags.admin.php


示例19: nggallery_picturelist


//.........这里部分代码省略.........
        ?>
<input type="hidden" name="page" value="manage-images" />

<?php 
    } else {
        ?>
<h2><?php 
        echo _n('Gallery', 'Galleries', 1, 'nggallery');
        ?>
 : <?php 
        echo esc_html(nggGallery::i18n($gallery->title));
        ?>
</h2>

<br style="clear: both;" />

<form id="updategallery" class="nggform" method="POST" action="<?php 
        echo $ngg->manage_page->base_page . '&amp;mode=edit&amp;gid=' . $act_gid . '&amp;paged=' . esc_attr($_GET['paged']);
        ?>
" accept-charset="utf-8">
<?php 
        wp_nonce_field('ngg_updategallery');
        ?>
<input type="hidden" name="page" value="manage-images" />

<?php 
        if (nggGallery::current_user_can('NextGEN Edit gallery options')) {
            ?>
<div id="poststuff">
	<?php 
            wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
            ?>
	<div id="gallerydiv" class="postbox <?php 
            echo postbox_classes('gallerydiv', 'ngg-manage-gallery');
            ?>
" >
		<h3><?php 
            _e('Gallery settings', 'nggallery');
            ?>
<small> (<?php 
            _e('Click here for more settings', 'nggallery');
            ?>
)</small></h3>
		<div class="inside">
			<?php 
            $controller->render_gallery_fields();
            ?>

			<div class="submit">
				<?php 
            if (wpmu_enable_function('wpmuImportFolder') && nggGallery::current_user_can('NextGEN Import image folder')) {
                ?>
				<input type="submit" class="button-secondary" name="scanfolder" value="<?php 
                _e("Scan Folder for new images", 'nggallery');
                ?>
 " />
				<?php 
            }
            ?>
				<input type="submit" class="button-primary action" name="updatepictures" value="<?php 
            _e("Save Changes", 'nggallery');
            ?>
" />
			</div>

		</div>
开发者ID:bensethro,项目名称:runcyb,代码行数:67,代码来源:manage-images.php


示例20: do_action

</label>                              
		                                
		                                <?php 
do_action('fa_extra_image_fields', $options);
?>
		                        	</div> 
	                            </div>
							</div>
						</div>
	                    <?php 
$plugin_options = FA_plugin_options();
if (1 == $plugin_options['auto_insert']) {
    ?>
	                    <!-- Automatic display options panel -->
	                    <div id="fa-autoplacement-options" class="postbox <?php 
    echo postbox_classes('fa-autoplacement-options', $page_hook);
    ?>
">
	                        <div title="<?php 
    _e('Click to toggle', 'falite');
    ?>
" class="handlediv"><br></div><h3 class="hndle"><span><?php 
    _e('Automatic placement Options', 'falite');
    ?>
</span></h3>
	                        <div class="inside">
	                            <div class="section">
	                                <p class="info">
	                                	<?php 
    _e('Automatic placement works by placing the slider before the first loop it find into the pages you selected the slider to be displayed.', 'falite');
    ?>
开发者ID:proudchild,项目名称:sdmblog,代码行数:31,代码来源:edit.php



注:本文中的postbox_classes函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP postcalendar_getDate函数代码示例发布时间:2022-05-15
下一篇:
PHP post_views函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap