Files
wahyd4.github.com/2010/09/22/wordpress/index.html
T

794 lines
20 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html class="theme-next gemini use-motion" lang="zh-Hans">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />
<link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />
<link href="/css/main.css?v=5.1.2" rel="stylesheet" type="text/css" />
<meta name="keywords" content="wordpress,幻灯片,插件,首页," />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.1.2" />
<meta name="description" content="笔者为了找这样一款在首页显示的插件费了很多功夫,本来国产的有一款类似的差距叫helloFlash做的还不错,但是有一点不好的就是,这个插件会截取你发辫文章里面的每一张图片,而不是只是一张。这样就不好了。 经过苦苦寻找,终于让我找到了这样一款插件,做得比较好。叫做Featured Content Valley ,是一款英文的插件,设置相比helloflash那样的傻瓜配置是要复杂一些,不过还好。下面">
<meta name="keywords" content="wordpress,幻灯片,插件,首页">
<meta property="og:type" content="article">
<meta property="og:title" content="一款很棒的wordpress 首页动画展示插件">
<meta property="og:url" content="http://toozhao.com/2010/09/22/wordpress/index.html">
<meta property="og:site_name" content="大染志">
<meta property="og:description" content="笔者为了找这样一款在首页显示的插件费了很多功夫,本来国产的有一款类似的差距叫helloFlash做的还不错,但是有一点不好的就是,这个插件会截取你发辫文章里面的每一张图片,而不是只是一张。这样就不好了。 经过苦苦寻找,终于让我找到了这样一款插件,做得比较好。叫做Featured Content Valley ,是一款英文的插件,设置相比helloflash那样的傻瓜配置是要复杂一些,不过还好。下面">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="http://www.junv.info/wp-content/uploads/2010/09/8-15-1024x513.png">
<meta property="og:image" content="http://www.junv.info/wp-content/uploads/2010/09/8-15-2-1024x450.png">
<meta property="og:updated_time" content="2014-07-22T08:35:38.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="一款很棒的wordpress 首页动画展示插件">
<meta name="twitter:description" content="笔者为了找这样一款在首页显示的插件费了很多功夫,本来国产的有一款类似的差距叫helloFlash做的还不错,但是有一点不好的就是,这个插件会截取你发辫文章里面的每一张图片,而不是只是一张。这样就不好了。 经过苦苦寻找,终于让我找到了这样一款插件,做得比较好。叫做Featured Content Valley ,是一款英文的插件,设置相比helloflash那样的傻瓜配置是要复杂一些,不过还好。下面">
<meta name="twitter:image" content="http://www.junv.info/wp-content/uploads/2010/09/8-15-1024x513.png">
<script type="text/javascript" id="hexo.configurations">
var NexT = window.NexT || {};
var CONFIG = {
root: '/',
scheme: 'Gemini',
version: '5.1.2',
sidebar: {"position":"left","display":"post","offset":12,"offset_float":12,"b2t":false,"scrollpercent":false,"onmobile":false},
fancybox: true,
tabs: true,
motion: true,
duoshuo: {
userId: '0',
author: '博主'
},
algolia: {
applicationID: '',
apiKey: '',
indexName: '',
hits: {"per_page":10},
labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
}
};
</script>
<link rel="canonical" href="http://toozhao.com/2010/09/22/wordpress/"/>
<title>一款很棒的wordpress 首页动画展示插件 | 大染志</title>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-5243064-16', 'auto');
ga('send', 'pageview');
</script>
</head>
<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
<div class="container sidebar-position-left page-post-detail ">
<div class="headband"></div>
<header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-wrapper">
<div class="site-meta ">
<div class="custom-logo-site-title">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<span class="site-title">大染志</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
<p class="site-subtitle">想要玩得很 High 的程序员</p>
</div>
<div class="site-nav-toggle">
<button>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
</button>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="menu">
<li class="menu-item menu-item-home">
<a href="/" rel="section">
<i class="menu-item-icon fa fa-fw fa-home"></i> <br />
首页
</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives/" rel="section">
<i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
归档
</a>
</li>
<li class="menu-item menu-item-tags">
<a href="/tags" rel="section">
<i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
标签
</a>
</li>
<li class="menu-item menu-item-about">
<a href="/about" rel="section">
<i class="menu-item-icon fa fa-fw fa-user"></i> <br />
关于
</a>
</li>
</ul>
</nav>
</div>
</header>
<main id="main" class="main">
<div class="main-inner">
<div class="content-wrap">
<div id="content" class="content">
<div id="posts" class="posts-expand">
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
<link itemprop="mainEntityOfPage" href="http://toozhao.com/2010/09/22/wordpress/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Junv">
<meta itemprop="description" content="">
<meta itemprop="image" content="http://7ktsrz.com1.z0.glb.clouddn.com/libr.jpg?imageView2/1/w/200/h/200/q/90|imageslim">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="大染志">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">一款很棒的wordpress 首页动画展示插件</h1>
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建于" itemprop="dateCreated datePublished" datetime="2010-09-22T00:00:00+08:00">
2010-09-22
</time>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-calendar-check-o"></i>
</span>
<span class="post-meta-item-text">更新于&#58;</span>
<time title="更新于" itemprop="dateModified" datetime="2014-07-22T16:35:38+08:00">
2014-07-22
</time>
</span>
<span class="post-category" >
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-folder-o"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/头条推荐/" itemprop="url" rel="index">
<span itemprop="name">头条推荐</span>
</a>
</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/头条推荐/酷玩软件/" itemprop="url" rel="index">
<span itemprop="name">酷玩软件</span>
</a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>笔者为了找这样一款在首页显示的插件费了很多功夫,本来国产的有一款类似的差距叫helloFlash做的还不错,但是有一点不好的就是,这个插件会截取你发辫文章里面的每一张图片,而不是只是一张。这样就不好了。</p>
<p>经过苦苦寻找,终于让我找到了这样一款插件,做得比较好。叫做Featured Content Valley ,是一款英文的插件,设置相比helloflash那样的傻瓜配置是要复杂一些,不过还好。下面我就介绍一下这款插件的配置。<a href="http://www.junv.info/wp-content/uploads/2010/09/8-15.png" target="_blank" rel="external"><img class="aligncenter size-large wp-image-300" title="8-15" src="http://www.junv.info/wp-content/uploads/2010/09/8-15-1024x513.png" alt="" width="1024" height="513"></a></p>
<p>这里面可以设置你要截取图片的类别,就是 Category name ,我这里选择的是头条推荐。下面一个是显示数量。说一下比较重要的事,你可以自定义幻灯片的宽度和高度。你完全可以按照你自己的需要设置就好了,下面一个选项是在图片下方留多高的区域来显示文字。这篇区域的颜色由幻灯片的背景颜色控制,这个颜色也是可以设置的。即是Gallery Background color。然后你还可以设置幻灯片的边框的颜色,你可以设置成与你的主题相协调的颜色。即是Gallery Border color. 你还可以在Gallery Text color 里面设置显示的字体的颜色。这些事基本设置,下面还有一些设置。</p>
<p><a href="http://www.junv.info/wp-content/uploads/2010/09/8-15-2.png" target="_blank" rel="external"><img class="aligncenter size-large wp-image-301" title="8-15-2" src="http://www.junv.info/wp-content/uploads/2010/09/8-15-2-1024x450.png" alt="" width="1024" height="450"></a></p>
<p>下面两行的设置,你可以不用修改,如果你不需要高级属性的话,因为插件本身已经有默认值了。这里我就不再介绍了,如果大家想自己设置这些,就花点功夫自己研究研究吧。</p>
<p>Slide Transition Type 这是动画效果的选择,你可以根据你自己的需要来设置什么效果。</p>
<p>下面就是有一个Advanced Custom Fields ,一些高级选项。 如果你不勾选高级选项的话,系统就会采用默认选项。 即你只需要在自定义栏目里面属于 类似于键值对这样的东西。键是“ artucleimg”不要引号。然后再值里面跟上图片的地址,说选择的图片还是尽量满足你设置的大小比较好。</p>
<p>最后你要做的很简单就是 代码放到你想显示这个动画的任何地方。他就可以显示啦,不信你试试。很简单的。</p>
<p><span style="color: #ff0000;">&lt;?php include (ABSPATH . /wp-content/plugins/featured-content-gallery/gallery.php); ?&gt;</span></p>
<p>下面附上最新版本3.2.0下载地址吧:<a href="http://downloads.wordpress.org/plugin/featured-content-gallery.3.2.0.zip" target="_blank" rel="external">点我下载</a>wordpress 官方网站下载)!</p>
</div>
<footer class="post-footer">
<div class="post-tags">
<a href="/tags/wordpress/" rel="tag"># wordpress</a>
<a href="/tags/幻灯片/" rel="tag"># 幻灯片</a>
<a href="/tags/插件/" rel="tag"># 插件</a>
<a href="/tags/首页/" rel="tag"># 首页</a>
</div>
<div class="post-nav">
<div class="post-nav-next post-nav-item">
<a href="/2010/09/22/nikitamaggie-q/" rel="next" title="NIKITA/maggie Q">
<i class="fa fa-chevron-left"></i> NIKITA/maggie Q
</a>
</div>
<span class="post-nav-divider"></span>
<div class="post-nav-prev post-nav-item">
<a href="/2010/09/23/ultraiso/" rel="prev" title="UltraISO(软碟通)—>轻松做个超好用的u盘系统启动盘!">
UltraISO(软碟通)—>轻松做个超好用的u盘系统启动盘! <i class="fa fa-chevron-right"></i>
</a>
</div>
</div>
</footer>
</div>
</article>
<div class="post-spread">
</div>
</div>
</div>
<div class="comments" id="comments">
</div>
</div>
<div class="sidebar-toggle">
<div class="sidebar-toggle-line-wrap">
<span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
</div>
</div>
<aside id="sidebar" class="sidebar">
<div class="sidebar-inner">
<section class="site-overview sidebar-panel sidebar-panel-active">
<div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
<img class="site-author-image" itemprop="image"
src="http://7ktsrz.com1.z0.glb.clouddn.com/libr.jpg?imageView2/1/w/200/h/200/q/90|imageslim"
alt="Junv" />
<p class="site-author-name" itemprop="name">Junv</p>
<p class="site-description motion-element" itemprop="description">Go, JavaScript, Ruby on Rails, Java,Docker, CI, CD, Photography</p>
</div>
<nav class="site-state motion-element">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">307</span>
<span class="site-state-item-name">日志</span>
</a>
</div>
<div class="site-state-item site-state-categories">
<a href="/categories/index.html">
<span class="site-state-item-count">69</span>
<span class="site-state-item-name">分类</span>
</a>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/index.html">
<span class="site-state-item-count">247</span>
<span class="site-state-item-name">标签</span>
</a>
</div>
</nav>
<div class="links-of-author motion-element">
<span class="links-of-author-item">
<a href="https://github.com/wahyd4" target="_blank" title="GitHub">
<i class="fa fa-fw fa-github"></i>
GitHub
</a>
</span>
<span class="links-of-author-item">
<a href="https://www.linkedin.com/in/junwei-zhao-46944557" target="_blank" title="LinkedIn">
<i class="fa fa-fw fa-linkedin"></i>
LinkedIn
</a>
</span>
<span class="links-of-author-item">
<a href="https://stackoverflow.com/users/1140611/junv" target="_blank" title="StackOverflow">
<i class="fa fa-fw fa-stack-overflow"></i>
StackOverflow
</a>
</span>
<span class="links-of-author-item">
<a href="http://weibo.com/wahyd4" target="_blank" title="Weibo">
<i class="fa fa-fw fa-weibo"></i>
Weibo
</a>
</span>
</div>
</section>
</div>
</aside>
</div>
</main>
<footer id="footer" class="footer">
<div class="footer-inner">
<div class="copyright" >
&copy;
<span itemprop="copyrightYear">2017</span>
<span class="with-love">
<i class="fa fa-heart"></i>
</span>
<span class="author" itemprop="copyrightHolder">Junv</span>
</div>
</div>
</footer>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>
</div>
</div>
<script type="text/javascript">
if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
window.Promise = null;
}
</script>
<script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
<script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
<script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
<script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
<script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
<script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
<script type="text/javascript" src="/js/src/utils.js?v=5.1.2"></script>
<script type="text/javascript" src="/js/src/motion.js?v=5.1.2"></script>
<script type="text/javascript" src="/js/src/affix.js?v=5.1.2"></script>
<script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.2"></script>
<script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.2"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.2"></script>
<script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.2"></script>
</body>
</html>