wordpress 主题(3) navigation 侧边栏

在 <?php endwhile; ?> 和 <?php else : ?>之间添加如下代码:

<div class="navigation">
<?php posts_nav_link(); ?>
</div>
posts_nav_link();调用后一页和前一页的链接;10篇以内不会显示

我们也可以给这个函数3个参数,分别给链接的中间,前面和后面的设置字符,如下:

<?php posts_nav_link('in between','befor','after'); ?>

第1个参数是显示在后一页和前一页链接的中间。第2个参数显示在前面。第3个参数显示在后面。

<div class="sidebar">
<ul>
<li>
<h3><?php _e('Categories');?></h3>
<ul>
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
</ul>
</li>
</ul>
</div>
<?php wp_list_cats();?> 调用分类链接列表

在分类链接上面添加以下代码:

<?php wp_list_pages('depth=3&title_li=<h3>Pages</h3>'); ?>
查看页面源代码,我们可以看到 wp_list_pages() 产生的完整结构以及代码,如下:
<li>Pages
	<ul>
		<li><a href="#">Your link</a></li>
		<li><a href="#">Your link2</a></li>
	</ul>
</li>
title_li是一个用来定制化页面链接列表的标题的参数,<h3>Pages</h3>是title_li这个参数的值
depth=3   页面的层数最大为3层
	<li>
				<h3><?php _e('Archives');?></h3>
				<ul>
					<?php wp_get_archives('type=monthly');?>
				</ul>
			</li>

<?php get_links_list(); ?>

wp_get_archives('type=monthly')  按月调用存档链接列表

get_links_list(); 友情链接列表

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
1. A Simple Poll V2.0.0 For Adobe Dreamweaver 2. Abrir Janela Pop-Up V1.0.2 (Portuguese) For Adobe Dreamweaver 3. Add Gradient Background Style V1.0.0 For Adobe Dreamweaver 4. Add onmouseout V1.0.0 For Adobe Dreamweaver 5. Adobe Style Menu V4.0.2 For Adobe Dreamweaver 6. Advanced CSS File Include V1.0.0 For Adobe Dreamweaver 7. Advanced Manage Workspace Layouts V1.1.1 For Adobe Dreamweaver 8. Advanced Random Images V4.3.8 For Adobe Dreamweaver 9. ASP Random Images V1.0.2 For Adobe Dreamweaver 10. Atomz Search V2.0.19 For Adobe Dreamweaver 11. Auto Default Form Field V1.0.2 For Adobe Dreamweaver 12. Automatic Jump Menu V1.0.2 For Adobe Dreamweaver 13. Book Flip V1.0.2 For Adobe Dreamweaver 14. Bordered Table V2.1.1 For adobe Dreamweaver 15. Breadcrumbs V1.4.4 For Adobe Dreamweaver 16. Calandar Maker V1.0.1 For Adobe Dreamweaver 17. Calendar Object V2.0.4 For Adobe Dreamweaver 18. Caps And Case Change V1.1.3 For Adobe Dreamweaver 19. Center Layout Tables V1.0.0 For Adobe Dreamweaver 20. Center Popup Window V1.0.1 For Adobe Dreamweaver 21. Check Form V4.66.0 For Adobe Dreamweaver 22. Clear Initial Form Fields V2.1.1 For Adobe Dreamweaver 23. Close All Documents V1.0.5 For Adobe Dreamweaver 24. Close Bowser Window V1.2.0 For Adobe Dreamweaver 25. Close Button 1.1.1 For Adobe Dreamweaver 26. Colour Harmony V1.0.0 For Adobe Dreamweaver 27. Compare To V1.0.2 For Adobe Dreamweaver 28. Constructioner Areas (C-Areas) V2.0.1 For Adobe Dreamweaver 29. Contect Help Toolbar V1.2.0 For Adobe Dreamweaver 30. CourseBuilder V4.4.1.0 For Adobe Dreamweaver 31. Cross-browser AutoScroller V2.0.0 For Adobe Dreamweaver 32. Cruotons V1.0.0 For Adobe Dreamweaver 33. CSS Target Media Type Interface V2.0.1 For Adobe Dreamweaver 34. D4WStatsLittle V1.12.0 For Adobe Dreamweaver 35. Date Insertion V1.4.2 For Adobe Dreamweaver 36. Diable Field V1.0.2 For Adobe Dreamweaver 37. Div Tags V1.0.0 For Adobe Dreamweaver 38. Downloads Counter V1.1.0 For Adobe Dreamweaver 39. DwZone Access DataBase Connection V1.2.0 For Adobe Dreamweaver 40. DwZone Advanced Form Controls V1.3.8 For Adobe Dreamweaver 41. DwZone Advanced Image Gallery V1.2.8 For Adobe Dreamweaver 42. DwZone Advanced Mail Plug In V1.2.1 For Adobe Dreamweaver 43. DwZone Advanced Mail PlugIn Delete V1.1.0 For Adobe Dreamweaver 44. DwZone Advanced Mail V2.2.3 For Adobe Dreamweaver 45. DwZone Advanced Search V1.3.9 For Adobe Dreamweaver 46. DwZone ASP Upload And Resize Simple V1.9.7 For Adobe Dreamweaver 47. DwZone ASP Upload And Resize V2.2.2 For Adobe Dreamweaver 48. DwZone ASP Upload Simple V1.7.5 For Adobe Dreamweaver? 49. DwZone ASP Upload V1.9.0 For Adobe Dreamweaver 50. DwZone ASP.NET Advanced Mail V1.1.6 For Adobe Dreamweaver 51. DwZone ASP.NET File Upload And Resize V1.2.3 For Adobe Dreamweaver 52. DwZone ASP.NET File Upload V1.2.1 For Adobe Dreamweaver 53. DwZone ASP.NET Image Gallery V1.1.0 For Adobe Dreamweaver 54. DwZone ASP.NET Multi Column Combo Box V1.1.1 For Adobe Dreamweaver 55. DwZone Dynamic Chart V1.1.1 For Adobe Dreamweaver 56. DwZone Dynamic Image V1.2.1 For Adobe Dreamweaver 57. DwZone Dynamic Sort Table V1.1.0 For Adobe Dreamweaver 58. DwZone Multi Column Combo Box V1.1.7 For Adobe Dreamweaver 59. DwZone Professional Query Manager V1.5.4 For Adobe Dreamweaver 60. DwZone Professional Record Wizard For Adobe Dreamweaver 61. DwZone Site Search Engine V1.2.9 For Adobe Dreamweaver 62. DwZone Visual CDonts Insert Object V1.1.4 For Adobe Dreamweaver 63. DwZone Visual Include V1.1.4 For Adobe Dreamweaver 64. DwZone Visual Search File V1.1.0 For Adobe Dreamweaver 65. DwZone WYSIWYG HTML Editor V1.5.4 For Adobe Dreamweaver 66. Dyanmic Images V1.1.3 For Adobe Dreamweaver 67. External Links Pro V1.0.15 For Adobe Dreamweaver 68. Fade Link V1.0.6 For Adobe Dreamweaver 69. Favorites Menu V1.0.0 For Adobe Dreamweaver 70. Flat Button V1.0.4 For Adobe Dreamweaver 71. Float Layer V1.0.1 For Adobe Dreamweaver 72. Form Calculator V1.2.4 For Adobe Dreamweaver 73. Form Inputs To Datasource V1.3.3 For Adobe Dreamweaver 74. Form Maker V2.0.0 For Adobe Dreamweaver 75. Form Security V2.9.5 For Adobe Dreamweaver 76. Format Table CSS V1.0.1 For Adobe Dreamweaver 77. Frunder Flash Menu V2.5.0 For Adobe Dreamweaver 78. F-source Business Drop Down Menu V1.0.0 For Adobe Dreamweaver 79. F-source Business Style Menu V1.2.1 & f-source Navigation Guide V1.0.0 For ADw [1] 80. F-source Business Style Menu V1.2.1 & f-source Navigation Guide V1.0.0 For ADw [2] 81. F-source Cubic Menu V2.1.0 For Adobe Dreameaver 82. F-source Metalic Menu V1.1.0 For Adobe Dreamweaver 83. GenB V1.4.1 For Adobe Dreamweaver 84. Go To URL In Opener V1.0.0 For Adobe Dreamweaver 85. History Navigation V1.1.2 For Adobe Dreamweaver 86. IM Animated Collapsible Accordion V1.1.1 For Adobe Dreamweaver 87. Image Bounds V1.0.0 For Adobe Dreamweaver 88. Insert A QuickTime Movie V1.0.1 For Adobe Dreamweaver 89. Insert Filename V1.0.0 For Adobe Dreamweaver 90. Insert Flash Animation V1.0.1 For Adobe Dreamweaver 91. javascript Syntax Checker V1.0.0 For Adobe Dreamweaver 92. Joomla V1.5 Extension For Adobe Dreamweaver 93. Language Menu V2.0.0 For Adobe Dreamweaver 94. Likno AllWebMenus javascript Menu Builder V1.0.1 For Adobe Dreamweaver 95. Link Title V1.0.0 For Adobe Dreamweaver 96. List Menu Data V1.0.4 For Adobe Dreamweaver 97. List-Menu Rewrite V1.1.2 For Adobe Dreamweaver 98. Live Clock V2.3.2 For Adobe Dreamweaver 99. Load Site Selection V1.0.6 For Adobe Dreamweaver 100. Mac Style Menu V4.2.1 For Adobe Dreamweaver 101. Macromedia Style Menu V4.2.1 For Adobe Dreamweaver 102. MenuKit V1.2.2 For Adobe Dreamweaver 103. MenuKit V2.0.1 For Adobe Dreamweaver 104. MiArt HTTP Header Tool V1.4.0 For Adobe Dreamweaver 105. Mighty Flighty CSS Template V1.0.1 For Adobe Dreamweaver 106. Multiple Selection V1.0.0 For Adobe Dreamweaver 107. Netscape And Opera Resize Fix V1.0.14 For Adobe Dreamweaver 108. Page List V1.1.3 For Adobe Dreamweaver 109. Panels Toolbar V1.0.0 For Adobe Dreamweaver 110. PayPal Button Creator V2.1.3 For Adobe Dreamweaver 111. PlayStream VideoLaunch V1.1.0 For Adobe Dreamweaver 112. PluginLab Combo Box Menu V1.4.0 For Adobe Dreamweaver 113. PluginLab Combo Box Menu V2.0.41 For Adobe Dreamweaver 114. PluginLab CSS Tree Menu V1.011 For Adobe Dreamweaver 115. PluginLab Horizontal Flyout Menu V2.0.80 For Adobe Dramweaver 116. PluginLab Horizontal Image Menu V2.0.30 For Adobe Dreamweaver 117. PluginLab Vertical Flyout Menu V2.0.80 For Adobe Dramweaver 118. PluginLab Vertical Image Menu V2.0.30 For Adobe Dramweaver 119. Pop Up Text Link V1.0.0 For Adobe Dreamweaver 120. Popup Link V1.3.0 For Adobe Dreamweaver 121. Popup Messages V1.0.6 For Adobe Dreamweaver 122. Puzzle Factory Game Arcade V1.0.3 For Adobe Dreamweaver 123. PVII Accordion Panel Magic V1.04 For Adobe Dreamweaver 124. PVII AniMagic Layers V2.90 For Adobe Dreamweaver 125. PVII Auto ShowHide V1.20 For Adobe Dreamweaver 126. PVII AutoHide V1.70 For Adobe Dreamweaver 127. PVII AutoLayers V1.50 For Adobe Dreamweaver 128. PVII Class Changer V2.70 For Adobe Dreamweaver 129. PVII CSS Cookie Monster V1.80 For Adobe Dreamweaver 130. PVII CSS Layout Magic V1.07 For Adobe Dreamweaver 131. PVII Fix Null Links V1.02 For Adobe Dreamweaver 132. PVII Horizontal Scroller V1.70 For Adobe Dreamweaver 133. PVII Image Gallery Magic V1.1.5 For Adobe Dreamweaver 134. PVII Instant CSS V2.20 For Adobe Dreamweaver 135. PVII Jump Menu Magic V1.40 For Adobe Dreamweaver 136. PVII Layout Designer 2 V2.4.0 For Adobe Dreamweaver 137. PVII Layout Designer 2 V2.60 For Adobe Dreamweaver 138. PVII Multi-Class 2 V1.00 For Adobe Dreamweaver 139. PVII Multi-Move V1.40 For Adobe Dreamweaver 140. PVII Opera Resize Fix V1.1.0 For Adobe Dreamweaver 141. PVII PagePack -Ennergi V1.0.2 For Adobe Dreamweaver 142. PVII PagePack -Graffiti V1.0.7 For Adobe Dreamweaver 143. PVII PagePack -il Libro V1.0.2 For Adobe Dreamweaver 144. PVII PagePack -Jazz 05 V1.0.4 For Adobe Dreamweaver 145. PVII PagePack -Key Lime V1.0.7 For Adobe Dreamweaver 146. PVII PagePack -Utopia V1.02 For Adobe Dreamweaver 147. PVII Pop Menu Magic Style Pack V1.0.4 For Adobe Dreamweaver 148. PVII ReDolt V1.21 For Adobe Dreamweaver 149. PVII Remove IE Link Scrubber V1.30 For Adobe Dreamweaver 150. PVII Return False Fix V1.50 For Adobe Dreamweaver 151. PVII RunEm V1.40 For Adobe Dreamweaver 152. PVII Safari BackButton Fix V1.2.0 For Adobe Dreamweaver 153. PVII Scrub V1.00 For Adobe Dreamweaver 154. PVII Set Min Width V1.1.3 For Adobe Dreamweaver 155. PVII ShowPic V2.00 For Adobe Dreamweaver 156. PVII Simple VII-V2 Menu Object (CSS Express Drop-Down Menus) V1.30 For ADw 157. PVII Slide Show Magic V1.2.7 For Adobe Dreamweaver 158. PVII Snap Layers V2.67 For Adobe Dreamweaver 159. PVII Style Sheet Loader V1.2.0 For Adobe Dreamweaver 160. PVII Swap Class V1.40 For Adobe Dreamweaver 161. PVII Tab Panel Magic V1.0.8 For Adobe Dreamweaver 162. PVII TabBar Magic V1.0.9 For Adobe Dreamweaver 163. PVII Vertical Scroller V1.70 For Adobe Dreamweaver 164. PVII Write Styles V1.60 For Adobe Dreamweaver 165. PVII Write V4 StyleSheet V1.10 For Adobe Dreamweaver 166. Quick Gallery V1.0.1 For Adobe Dreamweaver 167. Quick Link Anchors V1.4.5 For Adobe Dreamweaver 168. Quick Named Anchor V1.0.1 For Adobe Dreamweaver 169. QuickLink V1.1.0 For Adobe Dreamweaver 170. Random Links V1.2.3 For Adobe Dreamweaver 171. Remove Page Margins V1.0.2 For Adobe Dreamweaver 172. Reset Image Sizes V3.0.8 For Adobe Dreamweaver 173. RSS 2.0 From Darabase V1.0.0 For Adobe Dreamweaver 174. RSS DreamFeeder V2.0.9 For Adobe Dreamweaver 175. Script Optimizer-Obfuscator For javascript V1.2.0 For Adobe Dreamweaver 176. Scrollbars V1.2.4 For Adobe Dreamweaver 177. Select Template Files V1.5.0 For Adobe Dreamweaver 178. Selection Menu For Coding Toolbar V1.1.0 For Adobe Dreamweaver 179. Set Class V1.0.1 For Adobr Dreamweaver 180. Set Collation V1.0.1 For Adobe Dreamweaver 181. Simple Banner Rotator V1.0.1 For Adobe Dreamweaver 182. Simple List-Menu Rewrite V1.0.4 For Adobe Dreamweaver 183. Sitepal Wizard V1.4.0 For Adobe Dreamweaver 184. Sky Style Menu V1.0.0 For Adobe Dreamweaver 185. Slide Layer V2.1.0 For Adobe Dreamweaver 186. Smart Link V1.4.3 For Adobe Dreamweaver 187. Softery Aluminium DropDown Menu V1.0.2 & Menus UI V1.3.2 & 188. IE Flash Problem Solver V1.0.5 For Adobe Dreamweaver 189. Softery Aluminium Menu V1.0.5 & Menus UI V1.2.4 & 190. IE Flash Problem Solver V1.0.4 For Adobe Dreamweaver 191. Softery Easy DropDown Menu V1.0.0 & Menus UI V1.3.0 & 192. IE Flash Problem Solver V1.0.4 For Adobe Dreamweaver 193. Softery G-Force Menu V1.0.0 & Menus UI V1.3.0 & 194. IE Flash Problem Solver V1.0.4 For Adobe Dreamweaver 195. Softery Glassy Menu V1.0.0 & Menus UI V1.3.0 & 196. IE Flash Problem Solver V1.0.4 For Adobe Dreamweaver 197. Softery Grid Menu V1.0.0 & Meuns UI V1.0.7 For Adobe Dreamweaver 198. Softery Light Metal Menu V1.0.0 & Menus UI V1.1.2 For Adobe Dreamweaver 199. Softery Obsidian DropDown Menu V1.0.1 & Menus UI V1.1.2 For Adobe Dreamweaver 200. Softery Obsidian Menu V1.0.8 & Menus UI V1.3.2 & 201. IE Flash Problem Solver V1.0.5 For Adobe Dreamweaver 202. Softery Plastic Menu V1.0.0 & Menus UI V1.0.7 For Adobe Dreamweaver 203. Softery Plastic Menu V1.0.5 & Menus UI V1.3.0 & 204. IE Flash Problem Solver V1.0.5 For Adobe Dreamweaver 205. Softery Simple DropDown Menu V1.0.0 & Menus UI V1.1.3 For Adobe Dreamweaver 206. Softery Soft Sea DropDown Menu V1.0.5 & Menus UI V1.3.2 & 207. IE Flash Problem Solver V1.0.5 For Adobe Dreamweaver 208. Softery Sony Style DropDown Menu V1.0.3 & Menus UI V1.3.0 & 209. IE Flash Problem Solver V1.0.4 For Adobe Dreamweaver 210. Softery WinXP Style Menu V1.0.8 & Menus UI V1.3.2 & 211. IE Flash Problem Solver V1.0.5 For Adobe Dreamweaver 212. Status Bar Text V1.5.15 For Adobe Dreamweaver 213. Super Countries V2.4.0 For Adobe Dreamweaver 214. Super Date V1.2.0 For Adobe Dreamweaver 215. SuperScript 2 V1.1.2 For Adobe Dreamweaver 216. Swap Trans Image V1.0.2 For Adobe Dreamweaver 217. Switch Field V1.0.1 For Adobe Dreamweaver 218. Tabel Dimensions To Background Image V2.6.0 For Adobe Dreamweaver 219. Telephone Character V1.6.0 For Adobe Dreamweaver 220. Template Report V1.0.0 For Adobe Dreamweaver 221. The Login with Dynamic Redirect V1.0.0 For Adobe Dreamweaver 222. Trio Solutions Scroll V1.0.1 For Adobe Dreamweaver 223. TrustSoft Joomla Dreamweaver Template Kit V2.0 For Adobe Dreamweaver 224. Ultra Close Window V2.0.0 For Adobe Dreamweaver 225. Uni Mailer V1.0.5 For Adobe Dreamweaver 226. Visit Counter V1.0.1 For Adobe Dreamweaver 227. Vista Drop Down Menu V1.1.0 For Adobe Dreamweaver 228. Voice Web Studio Free V1.1.1 For Adobe Dreamweaver 229. Web Photo Album V2.1.8 For Adobe Dreamweaver 230. Web Photo Album V2.2.6 For Adobe Dreamweaver 231. Zencil V3.0.8 For Adobe Dreamweaver 232. Zoom Search Engine V4.2.1002 For Adobe Dreamweaver
使用帮助:http://blog.csdn.net/ptianfeng/article/details/8217176 JSF2.xdatatable分页控件与左侧菜单最简单应用   JSF2.x,功能强大,使用方便。全世界使用JSF的人越来越多。而且也有很多很好的控件给发出来了,如:richfaces、primefaces、myfaces等,就日前来讲primefaces功能很强大,控件很多,但有一点不好就是不支持IE6,特别是下拉列表,p:dialog等,其它的分页p:datatable实际使用起来总有不如意的地方。richfaces还支持可视化开发,可惜就是控件开发进度相比其它的慢了很多。下面帖我的控件的使用方法: 一、分页具体使用方法如下(不多说,直接给你些颜色看看): 1. xhtml文件:    <html xmlns:ems="http://www.ems.com.cn" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"> 2. 相应的Managedbean: [java] view plaincopy /** * EMS 11185 限时未达邮费奉还 * @author 螃蟹 */ @SuppressWarnings(value = "serial") @ManagedBean(name = "userlogMBean") @ViewScoped() public class UserlogMBean extends PageListBaseBean implements Serializable { public PagedListDataModel getDefaultDataModel() { if (defaultDataModel == null) { defaultDataModel = new PagedListDataModel(pageSize) { public DataPage fetchPage(int startRow, int pageSize) { ArrayList dataList = new ArrayList(); List list = dao.getObjectList(jpql, pageSize, startRow); if (list != null) { for (Userlog u : list) { UserlogVo vo = new UserlogVo();
Table of Contents Preface 1 Chapter 1: Getting Started as a WordPress Theme Designer 7 WordPress perks 7 Does a WordPress site have to be a blog? 8 Pick a theme or design your own? 9 Drawbacks to using an already built theme 9 Using theme frameworks 10 This book's approach 11 Core technology you should understand 12 WordPress 12 CSS 13 XHTML 13 PHP 13 Other helpful technologies 14 Tools of the trade 14 HTML editor 15 Graphic editor 16 Firefox 17 Developing for Firefox first 17 Summary 18 Chapter 2: Theme Design and Approach 19 Things to consider 20 Types of blogs 21 Plugins and widgets 22 Getting ready to design 23 A common problem 23 The solution: Rapid design comping 24 The radical, new process—is not so new or radical? 25 This material is copyright and is licensed for the sole use by Gay Anschultz on 5th December 2009 21844 Grovepark Dr., , Santa Clarita, , 91350 Download at WoweBook.Com Table of Contents [ ii ] Overview of rapid design comping 25 Getting started 27 Sketching It 27 Considering usability 29 Starting with the structure 30 Creating your design 31 The DOCTYPE 32 The main body 32 Attaching the basic stylesheet 33 Basic semantic XHTML structure 35 Adding text—typography 37 Starting with the text 38 Choosing your fonts 39 Cascading fonts 41 Font stacks 42 sIFR 43 Font sizing 43 Why pixels? 43 Keeping it in proportion 44 Paragraphs 45 Default links 46 The layout 47 Column Layout: Floating div tags versus CSS tables 50 Posts 51 Making sure WordPress sticky posts get styled 51 Forms 52 Threaded and paginated comments 52 Navigation 53 Styling the main navigation 53 WordPress-specific styles for navigation 56 Color schemes 57 Two-minute color schemes 58 Color schemes with GIMP or Photoshop 58 Adding color to your CSS 60 Styling the special TOC headers 61 Creating the graphical elements 62 Relax and have fun designing 64 Slicing and exporting images 66 Don't forget your favicon! 70 Making your favicon high-res 71 Summary 72 Chapter 3: Coding It Up 73 Got WordPress? 73 Understanding the WordPress theme 75 Creating your WordPress workflow 76 This material is copyright and is licensed for the sole use by Gay Anschultz on 5th December 2009 21844 Grovepark Dr., , Santa Clarita, , 91350 Download at WoweBook.Com Table of Contents [ iii ] Building our WordPress theme 77 Starting with a blank slate: Tabula rasa 78 Create a new theme directory 79 Including WordPress content 82 Understanding template tags 83 Getting a handle on hooks 83 Learning the Loop 83 Creating a basic loop 84 Modifying the timestamp and author template tags 86 Modifying the basic comments display 87 Including threaded comments 91 Styling threaded comments 93 Breaking it up: Header, footer, and sidebar template files 97 Creating the footer.php template file 98 Creating the sidebar.php template file 99 The header 104 More template files: Home, internal, and static pages 105 The home page 106 Internal pages 107 Static pages 109 Quick review 111 Fun with other page layouts 111 Don't forget about your 404 page 112 Even more template files 114 Adding in the favicon 115 Activating the favicon 115 Summary 116 Chapter 4: Debugging and Validation 117 Testing other browsers and platforms 118 Introduction to debugging 118 Troubleshooting basics 120 Why validate? 121 PHP template tags 122 CSS quick fixes 123 Advanced troubleshooting 124 Quirks mode 124 Fixing CSS across browsers 126 Box model issues 126 Everything is relative 127 To hack or not to hack 127 Out of the box model thinking 129 The road to validation 132 Advanced validation 135 This material is copyright and is licensed for the sole use by Gay Anschultz on 5th December 2009 21844 Grovepark Dr., , Santa Clarita, , 91350 Download at WoweBook.Com Table of Contents [ iv ] Firefox's JavaScript/Error Console 136 The Web Developer Toolbar 137 Firebug 137 Checking your work in Internet Explorer 139 Run multiple versions of IE 139 IE Developer Toolbar 140 Don't forget about the QorSMode bookmarklet 140 Optimizing for text and mobile browsers 140 The new mobile Safari browser 141 Summary 141 Chapter 5: Putting Your Theme into Action 143 A picture's worth 143 Theme packaging basics 145 Describing your theme 145 Licensing 146 Creating a ReadMe.txt file 148 Zipping it up 149 No way to zip? 150 Performing one last test 151 Getting some feedback and tracking it 152 Summary 153 Chapter 6: WordPress Template Tag, Function, and CSS Reference 155 Class styles generated by WordPress 156 The search bar ID 156 Classes output by the media manager 157 Classes output by the sidebar widgets 159 Classes output by the wp_list_pages template tag 160 Classes output by the wp_list_categories template tag 161 post_class class styles 161 body_class class styles 162 Why add custom class styles to template tags? 164 Using the template selector feature 164 Creating a custom page template 164 Template hierarchy 165 Template tags 167 Author template tag updates in 2.8 168 Template tags for tags 169 Adding tag display to your theme 170 General template tags—the least you need to know 173 Conditional tags 179 This material is copyright and is licensed for the sole use by Gay Anschultz on 5th December 2009 21844 Grovepark Dr., , Santa Clarita, , 91350 Download at WoweBook.Com Table of Contents [ v ] Including tags into your themes 180 Creating custom header, footer, sidebar includes 180 Completely custom—streamlining your theme 181 Creating a custom include in your theme 181 The Loop functions 182 Plugin hooks 182 WordPress core functions 183 WordPress shortcodes 184 Creating a basic shortcode 185 Summary 186 Chapter 7: AJAX / Dynamic Content and Interactive Forms 187 Preparing for dynamic content and interactive forms 188 Assessing if AJAX is appropriate for your site 189 Do it yourself or use plugins 190 Plugin pros and cons 190 The AJAX factor 191 jQuery now comes bundled with WordPress 192 Including jQuery in WordPress 193 Avoiding problems registering jQuery 194 Linking to jQuery from Google Code's CDN 194 Using WordPress' bundled includes versus including your own or using a CDN 195 jQuery plugins 196 Problem with setting up a Lightbox effect in WordPress 197 jQuery lightBox 197 Adding jQuery lightBox to your template 198 Implementing lightBox 200 jQuery's ThickBox and ColorBox plugins 201 Plugins and widgets 202 Plugins 202 Widgets 203 Getting your theme ready for plugins and widgets 203 Preparing your theme for plugins 204 Installing a plugin 204 Installing the AJAX comment preview plugin 205 Preparing your theme for widgets 207 Making your theme compatible with widgets 207 Google Reader widget 211 AJAX––It's not just for your site's users 213 New work space features 214 pageMash 215 Installing the pageMash plugin 215 Summary 216 This material is copyright and is licensed for the sole use by Gay Anschultz on 5th December 2009 21844 Grovepark Dr., , Santa Clarita, , 91350 Download at WoweBook.Com Table of Contents [ vi ] Chapter 8: Dynamic Menus and Interactive Elements 217 Dynamic menus 217 Drop-down menus 218 DIY SuckerFish menus in WordPress 219 Applying CSS to WordPress 221 Applying the DOM script to WordPress 224 Allowing only selected pages to display 226 Hiding pages the easy way with pageMash 226 Adding Flash to your theme 227 Flash in your theme 227 Handling users without Flash, older versions of Flash, and IE6 users 228 Is the ActiveX restriction still around? 228 Adding a SWF to the template using swfObject 229 jQuery Flash plugin 230 Passing Flash a WordPress variable 231 Adding sIFR text with the jQuery Flash plugin 233 Flash in a WordPress post or page 236 Adding You Tube video to a WordPress post 236 Summary 238 Chapter 9: Design Tips for Working with WordPress 239 The cool factor essentials 240 Backgrounds 241 Lists 242 See it in action 243 Rounded corners 243 The classic—all four corners 243 The two-image cheat 245 CSS3—the new way to round corners 248 Creative posting 249 Breaking boundaries 250 Keeping tabs on current design trends 254 Creative fonts 256 Graphic text 256 Using PHP to make graphic headers easy 259 Custom fonts with CSS3 262 Good design isn't always visual—looking at SEO 263 Search engine friendly URLs 263 Keywords and descriptions 265 DYI meta tags 266 Meta tag plugins 267 Summary 267 Index 269

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值