
侧面观察
有句话叫”物以类聚,人以群分”这句话太有道理性了,所至我们平时失败了,后悔了,才能理解真正的含义! 平时我们老问:”这人到底杂样啊,是不是如表面那样,还是另有洞天”记得看鹿丁记的时候,吴应雄轻...
有句话叫”物以类聚,人以群分”这句话太有道理性了,所至我们平时失败了,后悔了,才能理解真正的含义! 平时我们老问:”这人到底杂样啊,是不是如表面那样,还是另有洞天”记得看鹿丁记的时候,吴应雄轻...
最近在看《鹿鼎记》,深感人性之复杂,吴应雄轻看小宝,小人得志,市井地痞,吴三贵告诉儿子:看某人,了解某人,留心周围人嗜好和群类,就能从中旁测某人真相了 有大人物告诉我,不要只研究业务,要研究人性!买了曾仕强的U盘课件,没事的时候可以看一看,...
短域名,国别域名,单字符域名,四声母域名,个性域名,欢迎您进来挑选和撩一下 微信:691699
有时候可能需要外出上网,显得很无聊,猛然间找不到事情做,其实事情还是有不少 比如xrea换程序 zhuaxia.net的空间申请 5u6的问题
这个话题的名字是自己取的,不知道该怎样正确的表示,也就没有资料可以参考! 和陌生人交谈时,对交谈没有太多的技巧,短短几句后也就没话题交谈了,显得过于木呐,寡言,其实大家平时可能很能说的,会碰到这种问题呢,具体的问题很多,我不能说出都有那些,...
后来ps2024 我总结了一下:聊天就是聊情绪 聊天:共情第一,话题第二,聊情绪,不意对错,不聊专业 这个话题的名字是自己取的,不知道该怎样正确的表示,也就没有资料可以参考! 和陌生人交谈时,对交谈没有太多的技巧,短短几句后也就没话题交谈了...
这学期眼看要毕业了,我开始还是把闹钟定在了5:50,后来我对自己说:”晚起一会也无妨吧”就改成 了6:10,当然下来也就是6:20,6:40,7:25,现在就这样了,一点早起的东西也没有了,今天又看到 一篇译 文,老...
首先这样的东西不能净信,什么行业赚钱,除了流行和发展,还有国家的宏控把握 据经济专家预测,未来中国市场最有发展前途的十大行业依次是: 耐用消费品销售行业:随着国民收入的上升,未来的消费格局将向多元化发展。消费者对照相机、电脑、电视、V...
这篇大概是来自show web2.0的文章,不少人抽藏了,我也感觉很不错,不知道是什么时候写的,同时希望大家也多推荐一些这样的文章,国内的web2规模还很小,需要大众参与和我们的评选推荐
首先剑痞推荐给大家一个 查询域名whois的MSN机器人:whois@hyson.org 1.互联网档案馆:http://www.archive.org/web/web.php 这个就是查询域名使用历史的,可以看得到各个阶段的原始面貌 Wa...
2006-12-17 21:06 这回决定了,启用lese.cn,wordpress程序做为正式个人生活记录blog 两年内不再改变 同时天下邮gmail 同步备份,重要隐章同时163-shuai文档备份 把投向于免费空间的精力更多用在le...
/**
* 初始化说说参数
*/
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 |