1. Trang chủ
  2. » Công Nghệ Thông Tin

thiết kế giao diện wordpress phần 9 pot

15 267 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 15
Dung lượng 0,93 MB

Nội dung

Dynamic Menus and Interactive Elements [ 164 ] Again, if the user is browsing with IE6, then they will have to click to activate. The good news is the swapobject.js Javascript that we implemented above for your theme's headers can be leveraged anywhere on your site including these posts. Yes, of course there's a plug-in: This won't help you too much if you're planning on Flash in your theme, but for Flash in your WordPress posts and pages, Jim Penaloza has written a great little plug-in using the SWFObject method detailed above. You can nd out more about it here: http://wordpress.org/extend/plugins/wp-swfobject/ Chapter 7 [ 165 ] Want more Flash? Despite my warnings at the beginning of this chapter, if you still want to add more interesting Flash to your site, there's a host of Flash-based WordPress plug-ins that allow you to easily embed Flash content and features into your WordPress posts and pages. Check out the plug-ins directory at http://wordpress.org/extend/plugins/ search.php?q=Flash. Summary In this chapter, we've looked at getting drop-down Suckersh menus and Flash content quickly and painlessly into your WordPress theme and content. Next up—getting AJAX with dynamic interactive forms into your WordPress project. [...]... Users I've already mentioned how, when applied properly, AJAX can aid in interface usability WordPress attempts to take advantage of this within its Administration Panel by enhancing it with relevant information and compressing multiple page forms into one single-screen area The following is a quick look at how WordPress uses AJAX to enhance it's Administration Panel forms: [ 178 ] ... really reading, in real-time, quickly and easily Once your theme is widget-compatible, it's pretty much just as simple to get a widget up and running as a plug-in Get the Google Reader Widget from http:/ /wordpress. org/extend/ plugins/google-reader-widget/ Time For Action: 1 Unzip and drop googlereader.php file into the wp-content/plugins directory (Depending on the widget, be sure to read the author's... a snag with the Google Reader Widget: [ 176 ] Chapter 8 I had to read the FAQ for the Google Reader Widget to learn that my hosting provider doesn't approve of the file_get_contents() method (http:// wordpress. org/extend/plugins/google-reader-widget/faq/) So I had to modify my googlereader.php file at line 57 with the following workaround the widget author recommended: $ch = curl_init(); $timeout =... Documentation at http://automattic.com/code/widgets/api/ Additional Considerations: There are no concrete standards for widgets as of yet (though, the W3C is working on it (http://www.w3.org/TR/ widgets/) Many WordPress widgets, like Google Reader, are flexible and can handle just about any size column Some widgets may require a minimum column size! You may need to adjust your theme if the widget has an inflexible . of Flash-based WordPress plug-ins that allow you to easily embed Flash content and features into your WordPress posts and pages. Check out the plug-ins directory at http:/ /wordpress. org/extend/plugins/ search.php?q=Flash. Summary In. you name it, someone has probably written a WordPress plug-in for it. Take a look at the WordPress Plug-in page to see what's available: http:/ /wordpress. org/extend/plugins/ Widgets Widgets. and Flash content quickly and painlessly into your WordPress theme and content. Next up—getting AJAX with dynamic interactive forms into your WordPress project.

Ngày đăng: 24/07/2014, 23:21