
今晚通宵<
今天晚上通宵 我要干一下几件事 下载软件 flashfxp leadfxp opera theworld xrea-worldpress TTSITE刷贡献 hideip IP代理 18ceo- 电信空间http://www.nuno.cn...
今天晚上通宵 我要干一下几件事 下载软件 flashfxp leadfxp opera theworld xrea-worldpress TTSITE刷贡献 hideip IP代理 18ceo- 电信空间http://www.nuno.cn...
无法提供摘要。这是一篇受保护的文章。
短域名,国别域名,单字符域名,四声母域名,个性域名,欢迎您进来挑选和撩一下 微信:691699
人肉的滋味真不好受,不知道坐在这里多久了,my.lese blog上的东西终于转完了,哎,如果不是怕数据转换工具有问题,我是不会这样苦干的,不过也很不错,看了以前很多不错的东西,很划算的说,...
人肉的滋味真不好受,不知道坐在这里多久了,my.lese.cn blog上的东西终于转完了,哎,如果不是怕数据转换工具有问题,我是不会这样苦干的,不过也很不错,看了以前很多不错的东西,很划算的说,这里也希望大家好好保存自己的BLOG,自己的...
无人问津也好,技不如人也罢,你都要试着让自己安静下来,做自己该做的事情,而不是让内心的烦躁不安,毁掉你本就不多的热情和定力 培养热情的方法1,制定明确目标2,清楚地写下你的目标,达到目标的计划,以及为了达到目标你愿意做出的付出3,用强烈的欲...
Souyo博客搜索 http://www.souyo.com 同城博客秀 http://show.blogunion.org 百度博客搜索 http://utility.baidu.com/blogsearch/submit.php 有道登...
培养热情的方法 1,制定明确目标 2,清楚地写下你的目标,达到目标的计划,以及为了达到目标你愿意做出的付出 3,用强烈的欲望作为达成目标的后盾,使欲望变得狂热,让它成为你脑子中最重要的事情 4,立即执行你的计划 5,正确而且坚定地照着计划去...
这里是关于页面,是一个 WordPress 页面范例。您可以编辑本页面,写上您和网站的基本信息以便读者能了解您。您可以创建任意多的页面和子页面,WordPress 会帮你管理这些内容。
饮食 吃早饭。 每三到四小时补充营养。 吃更多的纤维素。 保持水分。 午后避免摄入咖啡。 精神 疲倦时冲个澡或者洗把脸。 不要因为懒惰而忽略着装。 释放你的感觉。 听听音乐。 宽容。 腹式呼吸。 整理房间。 做义工。 休息 晚上8点后就关掉...
原载时间:2007年6月5日12:58星期二
/**
* 初始化说说参数
*/
function shuoshuo_init()
{
$labels = array('name' => '说说', 'singular_name' => 'singularname', 'add_new' => '发表说说', 'add_new_item' => '发表说说', 'edit_item' => '编辑说说', 'new_item' => '新说说', 'view_item' => '查看说说', 'search_items' => '搜索说说', 'not_found' => '找不到说说', 'not_found_in_trash' => '回收站里找不到说说', 'parent_item_colon' => '', 'menu_name' => '说说');
$args = array('labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => null, 'supports' => array('title', 'editor', 'author'));
register_post_type('shuoshuo', $args);
}
add_action('init', 'shuoshuo_init');
上面的代码注册了一个新的 post 类型 shuoshuo ,并在后台管理界面启用菜单。在路径 wp-content/themes/nisarg/ 下面创建 shuoshuo.php 单页面模板文件,页面样式复用首页的文章列表,文件内容如下:
<?php
/*
* Template Name: 说说
* author: 倾城
* url: https://www.codingbrick.com/shuoshuo
*/
get_header(); ?>
<style>
/* 内容样式 */
.type-shuoshuo {
padding: 10px;
border-radius: 10px;
display: inline-block;
}
/* 内容 图片样式 */
.type-shuoshuo img {
margin-right: 3px;
width: 160px;
height: 160px;
float: left;
object-fit: cover;
}
/* 作者 */
.shuoshuo_author {
background: #FFFFFF;
color: #000;
width: 60px;
height: 60px;
border-radius: 50%;
justify-content: center;
align-items: center;
text-align: center;
display: flex;
}
/* 发布日期 */
.shuoshuo_date {
color: gray;
width: 100%;
clear: both;
}
/* 移动端样式 */
@media screen and (max-width: 65.375em) {
/* 让手机页面更规整,隐藏作者 */
.shuoshuo_author {
display: none;
}
}
</style>
<div class="container">
<div class="row">
<header class="archive-page-header">
<h3 class="archive-page-title"><span>说说</span></h3>
</header>
</div>
<div class="row">
<div id="primary" class="col-md-9 content-area">
<main id="main" class="site-main" role="main">
<?php
// 获取页面分页参数
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("post_type=shuoshuo&post_status=publish&paged=".$paged);
if (have_posts()) : while (have_posts()) :
the_post(); ?>
<div class="row">
<div class="col-md-1">
<div class="shuoshuo_author"><?php the_author(); ?></div>
</div> <div class="col-md-11">
<article id="post-<?php the_ID(); ?>" <?php post_class('post-content'); ?>>
<?php the_content(); ?>
<div class="shuoshuo_date"><?php echo friendly_date(get_gmt_from_date(get_the_time('Y-m-d G:i:s'))); ?></div>
</article> </div> </div> <?php endwhile;
//分页导航条
nisarg_posts_navigation();
endif; ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar('sidebar-1'); ?>
</div> <!--.row-->
</div><!--.container-->
<?php get_footer(); ?>
shuoshuo.php 页面将文章的发布时间调整为阅读友好的“刚刚、几天前”格式,friendly_date 函数内容如下:
/**
* 转化友好型的时间格式
*/
function friendly_date( $pub_time ) {
$pub_time = strtotime($pub_time);
$interval_time = time() - $pub_time;
if ($interval_time < 1) return '刚刚';
$interval = array (
12 * 30 * 24 * 60 * 60 => '年前 ('.date('Y-m-d', $pub_time).')',
30 * 24 * 60 * 60 => '个月前 ('.date('m-d', $pub_time).')',
7 * 24 * 60 * 60 => '周前 ('.date('m-d', $pub_time).')',
24 * 60 * 60 => '天前',
60 * 60 => '小时前',
60 => '分钟前',
1 => '秒前'
);
foreach ($interval as $second => $str) {
$d = $interval_time / $second;
if ($d >= 1) {
$r = round($d);
return $r . $str;
}
};
}
在管理后台创建说说单页面,模板类型选择“说说”,并且配置顶部菜单,如下图所示:
技术面试题为什么这么多八股文?招聘市场上一直都是求职者多的惊人,而岗位少的可怜。八股文能够迅速简单粗暴的过滤掉“不合格的”人,有效降低招聘的时间成本。过了八股文的都是人才吗?不重要,反正是进来拧螺丝钉的,差不多够用就行。<div><a href="https://www.codingbrick.com/wp-content/uploads/2022/09/taste-life-17-03.jpg"><img src="https://www.codingbrick.com/wp-content/uploads/2022/09/taste-life-17-03-300x240.jpg"/></a></div>
好
毛玻璃效果卡片,带有微妙阴影 悬停时卡片上浮增强交互感 新域名突出显示,带有呼吸光效 使用渐变色背景动画,色彩随时间流动变化 添加了50个随机移动的粒子元素,营造空间感 响应式设计: 适配各种屏幕尺寸 在移动设备上自动调整元素大小 源码分享:https://pan.baidu.com/s/1l2gSvAwpU8DFZo-7zl4ltQ?pwd=8888 |