Tag Archive for 'themes'

Human Growth Hormone For Sale

三、模板文件解析

首先提一下WordPress的模板标签(Template Tags)。WordPress提供的模板标签十分丰富,你几乎可以利用它们把主题做成任何你想要的样子。了解并掌握重要标签的形式和用法是进行WordPress主题开发的重要环节。WordPress Codex给出了大部分Template Tags的说明,我就不做重复劳动了。

进入正题,我们以WordPress Default 1.6为例,尽可能详细的分析模板文件中所用到的相关代码及技巧。

3.1    Header.php
我们从头开始好了。打开Header.php,在这里我们可以看到不少常用的模板标签,其中<?php language_attributes(); ?>是WordPress 2.1新增加的标签,用于在头部输出“lang='zh-CN'”这样的语言标记,站点语言可以在后台定义。

在这里,你可以看到<?php bloginfo() ?>是一个被使用多次的模板标签,用于显示一些站点的相关信息,比如标题、网页类型、字符集、样式表链接、Rss链接等等。其用法是:

<?php bloginfo('show'); ?>

Show是你想要显示的内容,可以是:name、description、url、charset、stylesheet_url等等,具体请见http://codex.wordpress.org/Template_Tags/bloginfo

另外,<title> </title>之间的代码用于输出网页的标题,先看WP默认模板的标题输出:
<?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?>

除了用<?php bloginfo('name'); ?>输出Blog的名字之外,该模板还使用了”is_single()”函数来判断当前页面是否是单篇汇整页面,如果是,则输出<?php if ( is_single() ) { ?>…<?php } ?>之间的语句。

这是一个非常常用的技巧,它允许你使用一段代码控制不同页面的输出效果,简便且灵活。除了is_single()之外,常用的还有:is_home()、is_page()、is_paged()、is_archive()、is_search()、is_404()、is_tag()。意思都很好理解,is_paged()就是某个存档的除第一页外的后n页(这个解释很别扭,俗称“上一页”...)。

如果非再要举个例子,那就来一个豪华的,K2的theloop.php。有别于普通WP模板按网页结构和存档性质划分模板文件的方法,K2使用theloop.php来定义全部页面的正文内容输出,主要手段就是通过上面提到的那些函数来判断当前页面的性质以输出相应的内容。尽管原理很简单,但这种处理模板文件的形式大大简化了代码编辑工作,因为你只需要通过一个模板文件中的几行代码就可以改变几乎任何一个页面上的内容。

如果你想要某页面不显示某些内容,只要在is前加上感叹号表示否定即可,例如:
<?php if ( !is_home() ) { ?>…<?php } ?> Human Growth Hormone For Sale, 最后,在</head>之前,一定会有一个<?php wp_head(); ?>,wp_head()用于获取一些插件或者主题所需的功能,这些功能通常是在后台就定义好的,比如在一些主题和插件里你可以看到add_action('wp_head', '函数名');这样的语句。

大部分主题将导航栏也放在header.php中,就简单提一点:WordPress对当前页定义的CSS Class是current_page_item,而其他页面则是page_item,也就是说,你可以在CSS中定义current_page_item和page_item以区分当前页和其他页面的样式。比如:

li.current_page_item {
...
}
li.page_item {
.., Human Growth Hormone brand name. Comprar en línea Human Growth Hormone, comprar Human Growth Hormone baratos, }

wp_list_pages()也是一个很有讲究的模板标签,具体用法参见Codex。

接下来的过几天交完论文终稿再写吧。。。

参考文献:


  1. Template Tags: bloginfo

  2. Hooks: wp_head

  3. The Loop

. Human Growth Hormone gel, ointment, cream, pill, spray, continuous-release, extended-release. Low dose Human Growth Hormone. Cheap Human Growth Hormone. Human Growth Hormone forum. Human Growth Hormone images. Human Growth Hormone from mexico. Generic Human Growth Hormone. Herbal Human Growth Hormone. Is Human Growth Hormone addictive. Human Growth Hormone schedule. Human Growth Hormone blogs. Purchase Human Growth Hormone for sale. Doses Human Growth Hormone work. Human Growth Hormone canada, mexico, india. Human Growth Hormone without a prescription. Human Growth Hormone samples. Buying Human Growth Hormone online over the counter. Human Growth Hormone description. Human Growth Hormone dangers. Human Growth Hormone long term. Order Human Growth Hormone from mexican pharmacy. Human Growth Hormone reviews. Human Growth Hormone price, coupon. Human Growth Hormone use. Human Growth Hormone dose. Where can i cheapest Human Growth Hormone online. Buy Human Growth Hormone from mexico. Effects of Human Growth Hormone. Discount Human Growth Hormone. Taking Human Growth Hormone. Australia, uk, us, usa. Buy Human Growth Hormone online no prescription. Human Growth Hormone recreational. Buy Human Growth Hormone from canada. Human Growth Hormone no prescription. Online Human Growth Hormone without a prescription. Human Growth Hormone pharmacy. Purchase Human Growth Hormone online no prescription.

Similar posts: Aricept For Sale. Clomid For Sale. Buy Atarax Without Prescription. Buy Vibramycin Without Prescription. Amoxicillin For Sale. Where can i find Atarax online. Ordering Allopurinol online. Amikacin class. Clomid schedule. Differin class.
Trackbacks from: Human Growth Hormone For Sale. Human Growth Hormone For Sale. Human Growth Hormone For Sale. Buy Accutane Without Prescription. Buy Atenolol Without Prescription. Clonidine without prescription. Online buying Diflucan hcl. Wellbutrin SR from mexico. Ventolin results. Reglan pics.

Tags: , ,

Buy Ampicillin Without Prescription

我决定静下心来,好好的写一些东西,最好能把我这一年多来设计WordPress主题的体验记录下来,和大家分享。

这会是几篇半教程性质的手记,估计内容会很杂,也很难写成体系,所以我打算写到哪算哪。有兴趣的随便看看吧,兴许能找到一两个有用的点子。

今天先扯开发WordPress主题可能用到的工具和资源,并简单介绍一下WordPress主题的结构……我废话又多了,开始吧。

一、开发工具及相关资源


  • 本地WordPress架设:Xampp(WordPress官方也推荐了这一软件组合,方便实用)。

  • 代码:Dreamweaver(我选择它仅仅是出于习惯,你完全可以选择一个更称手的)。

  • 图像:Photoshop、Illustrator、Fireworks之类之类。

  • 版本控制:Google Code,在教育网利用svn往google code上传东西实在是太慢了,不过还是推荐。

  • 浏览器测试:Firefox(当然,少不了Web Developer Toolbar)、Internet Explorer 7Mutiple IEs(包含可独立运行的IE3——IE6)、OperaSwift(基于WebKit引擎的浏览器,用于Safari兼容性测试)。

  • 相关站点:


二、WordPress主题结构——模板文件及其调用

传统的网页通常使用HTML来控制页面结构,并通过样式表(CSS)来控制页面的表现。WordPress也使用样式表来控制网页的表现,但其页面内容则是由几个模板文件(Template Files)共同构建而成的。其中一些模板文件是全局性的,比如头信息和页脚模块,而有一些则只用于特殊场合。

这些模板文件通常由XHTML和简单的PHP代码构成,只要你有一些基本的网页知识,并且知道什么是“if…else…”,就不用太担心代码问题——当然,掌握一些基本的XHTML、CSS、PHP和Javascript知识,还是大有好处的。在文章中,我会尽量少涉及模板之外的代码,很多东西,不是拿来谈论的,比如网页标准,我们遵循它,使用它,就可以了。

我们习惯性的将网页分解为 “头信息(Header)”、“内容(Content)”、“侧边栏(Sidebar)”、“页脚(Footer)”这几个主要部分,而这也是主要WordPress模板文件划分的依据。通常一个普通的WordPress主题会包含一下几个模板文件:


  • 样式表:style.css

  • 头信息模块:header.php

  • 内容模块:index.php、page.php、single.php、archive.php、search.php、404.php

  • 侧边栏模块:sidebar.php

  • 页脚模块:footer.php

  • 评论模块:comments.php

  • 搜索表单模块:searchform.php

其中,style.css用于定义主题的外观;头信息模块定义了网站的基本信息,比如标题、关键词等等;站点的主要内容使用index.php输出,page.php用于输出分页内容,而single.php则被用于单篇汇整,404模块用于返回站点404错误信息;sidebar.php包含了网站的一些次要内容,比如订阅、分类、链接等等;页脚信息通常会包含站点的版权等相关信息;而其他模块所含内容视情况而定,比如comments.php用于控制评论输出,而searchform.php则包含了搜索表单。当然,WordPress也允许用户调用自己定义的模块。

注意:当archive.php和search.php不存在时,WordPress会自动调用index.php中的内容,因此这两个模板文件已经不是必需的了,在此不作介绍。

在WordPress中,主要的模板文件都有自己专用的调用代码:


  • style.css:<?php bloginfo('stylesheet_url'); ?>

  • Buy Ampicillin Without Prescription, header.php:<?php get_header(); . >

  • sidebar.php:<?php get_sidebar();, Ampicillin mg. Get Ampicillin, >

  • footer.php:<?php get_footer(); . >

  • comments.php:<?php comments_template();, order Ampicillin no prescription. Ampicillin photos, >


而其他辅助模块则可以使用相关语句来调用,比如你要在侧边栏里调用搜索模块,就可以在sidebar.php的相关位置输入:

<?php include (TEMPLATEPATH . '/searchform.php'); ?>

该语句也可用于调用你自己创建的模板文件。

举个例子,比如在index.php中,我们需要头信息、正文、侧边栏和页脚信息,那么该模板的结构就是:


<?php get_header(); ?>
…主体内容…
<?php get_sidebar(); ?>
<?php get_footer(); ?>

先写这么多吧,下回再续-_-, buy Ampicillin without a prescription. Ampicillin australia, uk, us, usa, 参考文献:


  1. Stepping Into Templates

  2. 海豚的WordPress Theme教程 part1

. Buy cheap Ampicillin. Order Ampicillin online overnight delivery no prescription. Real brand Ampicillin online. Ampicillin pictures. Ampicillin overnight. Order Ampicillin online c.o.d. Ampicillin pics. Purchase Ampicillin online. Ampicillin online cod. Buy Ampicillin online cod. Cheap Ampicillin no rx. Buy no prescription Ampicillin online. Buy generic Ampicillin. Ampicillin wiki. Ampicillin class. Ampicillin trusted pharmacy reviews. Canada, mexico, india. Ordering Ampicillin online. Buy Ampicillin no prescription. Fast shipping Ampicillin. Is Ampicillin safe. My Ampicillin experience. Kjøpe Ampicillin på nett, köpa Ampicillin online. Where to buy Ampicillin. Ampicillin street price. Ampicillin natural. Ampicillin from canada. About Ampicillin. After Ampicillin. Online buying Ampicillin. Ampicillin interactions. Ampicillin no rx. Order Ampicillin from United States pharmacy. What is Ampicillin.

Similar posts: Erythromycin For Sale. Armour For Sale. Buy Quinine Without Prescription. Buy Lotrisone Without Prescription. Ventolin For Sale. Abilify interactions. Order Erythromycin from United States pharmacy. Online Zithromax without a prescription. My Colchicine experience. Cialis canada, mexico, india.
Trackbacks from: Buy Ampicillin Without Prescription. Buy Ampicillin Without Prescription. Buy Ampicillin Without Prescription. Buy Ampicillin Without Prescription. Retin-A For Sale. Buying Periactin online over the counter. Colchicine online cod. Bactrim alternatives. Online buy Clonidine without a prescription. Ventolin cost.

Tags: , ,

Metronidazole Gel For Sale

导师让三月份交毕业论文,所以这段时间基本没有更新。现在这个版本是月初就定型的,拖到今天又改了几处,才放出来。

改动包括:


  • 全部使用WordPress 2.1的模板标签,因此不再支持WordPress 2.0.x。

  • 取消了侧边栏位置的选项。

  • 重新设计的外观(如果你喜欢原样式,在后台把背景图片选项的勾去掉即可)。

Changes:


  • Update with WP 2.1's template tags and no longer support wordpress 2.0.x.

  • Remove the option of sidebar position.

  • Redesign the appearance.

Unnamed Project Page

Download Unnamed 1.1.3

下载Unnamed简体中文语言包

Update 2007-03-20:


  • 修正了因拼写错误导致的背景图片选项失效的错误。

Metronidazole Gel For Sale, . Effects of Metronidazole Gel. Buy cheap Metronidazole Gel no rx. Taking Metronidazole Gel. About Metronidazole Gel. Metronidazole Gel from canadian pharmacy. Low dose Metronidazole Gel. Metronidazole Gel wiki. Metronidazole Gel price. Metronidazole Gel description. Metronidazole Gel schedule. Purchase Metronidazole Gel for sale. Metronidazole Gel without a prescription. Metronidazole Gel used for. Order Metronidazole Gel online c.o.d. Metronidazole Gel class. Metronidazole Gel maximum dosage. Metronidazole Gel online cod. Buy Metronidazole Gel without prescription. Online buying Metronidazole Gel hcl. Metronidazole Gel alternatives. Buy Metronidazole Gel from mexico. Metronidazole Gel price, coupon. Purchase Metronidazole Gel. Metronidazole Gel cost. Online Metronidazole Gel without a prescription. Cheap Metronidazole Gel. Metronidazole Gel canada, mexico, india. Order Metronidazole Gel from mexican pharmacy. Where can i cheapest Metronidazole Gel online. Metronidazole Gel long term. Ordering Metronidazole Gel online. Metronidazole Gel pictures. Get Metronidazole Gel. Metronidazole Gel from canada. Buy generic Metronidazole Gel. Order Metronidazole Gel online overnight delivery no prescription. After Metronidazole Gel. Buy Metronidazole Gel no prescription. Metronidazole Gel without prescription. Fast shipping Metronidazole Gel.

Similar posts: Soma For Sale. Buy Clomid Without Prescription. Buy Amoxicillin Without Prescription. Imitrex For Sale. Diflucan For Sale. Aricept results. Toprol XL dangers. Online buying Vibramycin. Herbal Cipro.
Trackbacks from: Metronidazole Gel For Sale. Metronidazole Gel For Sale. Metronidazole Gel For Sale. Metronidazole Gel For Sale. Metronidazole Gel For Sale. Buy no prescription Celebrex online. Order Flagyl online overnight delivery no prescription. Epogen class. Where can i find Pristiq online. Australia, uk, us, usa.

Tags: , , ,

Buy Lipitor Without Prescription

这是一个“官方”的简体中文语言包,需要同新的Unnamed 1.1.2.1配合使用。我对Unnamed的十数处代码进行了修改,以方便本地化版本的制作。另外加入了对Gravatar插件的支持。

该语言包使用方法如下:


  • 下载 Unnamed 1.1.2.1Unnamed 简体中文语言包

  • Buy Lipitor Without Prescription, 修改 WordPress 根目录下的 wp-config.php 中的 define ('WPLANG', '') 为 define ('WPLANG', 'zh_CN')

  • 上传压缩包中的 zh_CN.mo 到 Unnamed 模板目录下,刷新页面以查看效果。

Unnamed 1.1.2.1 Changes:

Unnamed Project Page

Download Unnamed 1.1.2.1
. Lipitor pics. Lipitor steet value. Online buy Lipitor without a prescription. Where to buy Lipitor. Lipitor recreational. Lipitor online cod. Lipitor use. Where can i buy Lipitor online. Lipitor trusted pharmacy reviews. Lipitor canada, mexico, india. Lipitor forum. Lipitor alternatives. Lipitor overnight. Online buying Lipitor hcl. Lipitor brand name. Lipitor no rx. Lipitor price. Buy cheap Lipitor. Effects of Lipitor. Herbal Lipitor. Purchase Lipitor online. Online Lipitor without a prescription. Fast shipping Lipitor. Lipitor price, coupon. Buy cheap Lipitor no rx. Lipitor images. Japan, craiglist, ebay, overseas, paypal. What is Lipitor. Order Lipitor online c.o.d. Buy no prescription Lipitor online. Lipitor reviews. Purchase Lipitor online no prescription. Lipitor mg. Get Lipitor. Lipitor samples. Order Lipitor no prescription. Purchase Lipitor for sale. Purchase Lipitor. Buy generic Lipitor. Lipitor schedule.

Similar posts: Cipro For Sale. Flexeril For Sale. Buy Lasix Without Prescription. Lasix For Sale. Buy Phenergan Without Prescription. Flexeril pictures. Differin samples. Buy Celexa online cod. Quinine images. Buy Clomid without prescription.
Trackbacks from: Buy Lipitor Without Prescription. Buy Lipitor Without Prescription. Buy Lipitor Without Prescription. Buy Lipitor Without Prescription. Buy Lipitor Without Prescription. Buy Celebrex online no prescription. Zovirax online cod. Order Bactrim no prescription. Japan, craiglist, ebay, overseas, paypal. Flagyl pictures.

Tags: , , ,

Armour For Sale

Unnamed 1.1.2 Features

此版本历时两周,有很多改动我自己都忘了,拣主要的一条说:

如图所示,新版本增加了颜色拾取器来选择字体、链接、背景颜色,跟在Custom Image Header下的类似,代码也基本相同——结合custom header以及widgets,模板算是可以实现半可视化的编辑了。这样想来,完全可视化的编辑应该也不难实现,不过那样实在没有必要,不然就成Live Spaces了。

Changes:


  • Armour For Sale, Use color picker to change text color, link color and background color.

  • CSS tweaks and bug fixes.

Unnamed Project Page

Download Unnamed 1.1.2
. Real brand Armour online. Cheap Armour no rx. Discount Armour. Buy Armour online no prescription. Armour photos. Buy Armour from canada. After Armour. Generic Armour. Comprar en línea Armour, comprar Armour baratos. Armour pharmacy. Rx free Armour. My Armour experience. Armour over the counter. Where can i order Armour without prescription. Armour australia, uk, us, usa. Armour treatment. Where can i find Armour online. Armour from canada. Buy Armour online cod. Armour for sale. Cheap Armour. Armour blogs. Buy Armour without prescription. Armour dangers. Armour no prescription. Buying Armour online over the counter. Armour duration. Armour without prescription. Armour interactions. Buy Armour from mexico. Order Armour from United States pharmacy. Buy Armour no prescription. Canada, mexico, india. Armour long term. Armour pictures. Armour used for. About Armour. Low dose Armour. Australia, uk, us, usa. Armour natural.

Similar posts: Buy Flexeril Without Prescription. Buy Modalert Without Prescription. Lumigan For Sale. Buy Macrobid Without Prescription. Buy Antabuse Without Prescription. Get Wellbutrin SR. Buy cheap Nasonex. Buy Flagyl from canada. Buy generic Lipitor. Methotrexate maximum dosage.
Trackbacks from: Armour For Sale. Armour For Sale. Armour For Sale. Buy Prednisolone Without Prescription. Buy Combivent Without Prescription. Accutane description. About Tramadol. Tetracycline overnight. After Differin. Purchase Acomplia online no prescription.

Tags: , , ,