
如何刷1G Box.net存储空间
2007-04-09 09:42 去Box.net注册时,却弹出了上图的窗口,声称Box.net免费存储已经停止注册。直到最近,才发现这项免费的服务只是对部分亚洲地区用户进行了限制,而其他地区仍然可以免费注册1GB的存储空间,不禁愕然。 今...
2007-04-09 09:42 去Box.net注册时,却弹出了上图的窗口,声称Box.net免费存储已经停止注册。直到最近,才发现这项免费的服务只是对部分亚洲地区用户进行了限制,而其他地区仍然可以免费注册1GB的存储空间,不禁愕然。 今...
2007-04-09 09:17 在别人的blog看到这样一个网站,在线人像测试,看了一下,有相当的科学性,我把两年内的不同照片调出来了几张,结果有的还是相似的人,当你上传你的照片后,这个工具会进行图像扫描,然后会列出一些像你的明星照片,我...
短域名,国别域名,单字符域名,四声母域名,个性域名,欢迎您进来挑选和撩一下 微信:691699
2007-04-08 20:57 你是不是为了寻找一个免费的个人相册感到为难?因为现在有太多的免费的个人相册网站,每个都把自己宣传的很好。下面我根据个人相册网站人气选出了7个最好的免费个人相册,分别列出了它们的主要特点,希望这些能够帮助你们...
2007-04-08 20:55 不少人还喜欢用短信,最近有越来越多公司推出”免费”短信方案,免费通过网站或电子邮件来发送手机短信,以下是5个比较好的短信Web服务: 1). TeleFlip: TeleFlip通过发送邮件到“电话号码”@...
2007-04-02 14:40 1、 http://www.icxo.com/ 商道:世界经理人网站, 堪称世界商务/管理/财经门户!NO.1 2、 http://www.mckinseyquar...
2007-04-01 18:20 有时候可能需要外出上网,显得很无聊,猛然间找不到事情做,其实事情还是有不少 比如xrea换程序 zhuaxia.net的空间申请 5u6的问题
2007-03-26 15:11 DoNews 3月23日消息(记者 刘韧)265.com总裁蔡文胜在5G第一次向业界谈论了他的域名和站长生涯,蔡文胜谈到了hao123和265的起源、中国个人站长的历史进程、将FM365送回联想、265被百...
2007-03-15 08:39 1.一定要有独立的人格、独立的思想。一个经过独立思考而坚持错误观点的人比一个不假思索而接受正确观点的人更值得肯定。不要成为灌输教育的牺牲品。 2.仕途,商界,学术。大致说来,每个人都注定要走上三条...
2006-12-17 21:06 这回决定了,启用lese.cn,wordpress程序做为正式个人生活记录blog 两年内不再改变 同时天下邮gmail 同步备份,重要隐章同时163-shuai文档备份 把投向于免费空间的精力更多用在le...
2006-12-15 20:47 zhuaxia.net zhuaxia.org veryftp.com baidubd.com 86p.net—2月到期 lese.cn
/**
* 初始化说说参数
*/
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 |