Giáo trình lập trình Wordpress - bài 4 - Tạo Plugin căn bản KhanhPham
• Tạo ra nền tảng vững chắc Plugin.
• Xác định thư mục và tập tin đường dẫn.
• Sử dụng chức năng Active và Deactivate.
• Tìm hiểu về các phương thức uninstall plugin.
• Cách viết code chuẩn trong WP
Khi phát triển một Plugin trong WordPress, điều này cần thiết để bắt đầu một nền tảng Plugin vững chắc. Bắt đầu với một nền tảng tốt có thể loại bỏ sự đau đầu khi các bạn phát triển các Plugin . Các kỹ thuật được thảo luận trong chương này sẽ được xử dụng xuyên trong quá trình học của chúng ta.
Để tìm hiểu kỹ hơn về bài học này các bạn hãy truy cập;
Website: www.zend.vn
Facebook: https://www.facebook.com/zendvngroup
Bài 4 Hướng dẫn chỉnh sửa và thiết kế giao diện web JoomlaMasterCode.vn
Tìm hiểu chi tiết cách thức quản lý giao diện website
Joomla thông qua phần Template Manager;
• Chỉnh sửa một template có sẵn để tạo giao diện web
như ý muốn;
• Hiểu rõ cấu trúc của một Template, những kiến thức căn
bản để xây dựng 1 Template cho website Joomla
Bài 7: Bảo mật website Joomla Các lỗi và một số vấn đề thường gặp với website...MasterCode.vn
Tìm hiểu một số phương pháp bảo mật website Joomla;
• Tìm hiểu một số lỗi và các vấn đề thường gặp trong quá
trình xây dựng và quản trị website Joomla;
Giáo trình lập trình Wordpress - bài 4 - Tạo Plugin căn bản KhanhPham
• Tạo ra nền tảng vững chắc Plugin.
• Xác định thư mục và tập tin đường dẫn.
• Sử dụng chức năng Active và Deactivate.
• Tìm hiểu về các phương thức uninstall plugin.
• Cách viết code chuẩn trong WP
Khi phát triển một Plugin trong WordPress, điều này cần thiết để bắt đầu một nền tảng Plugin vững chắc. Bắt đầu với một nền tảng tốt có thể loại bỏ sự đau đầu khi các bạn phát triển các Plugin . Các kỹ thuật được thảo luận trong chương này sẽ được xử dụng xuyên trong quá trình học của chúng ta.
Để tìm hiểu kỹ hơn về bài học này các bạn hãy truy cập;
Website: www.zend.vn
Facebook: https://www.facebook.com/zendvngroup
Bài 4 Hướng dẫn chỉnh sửa và thiết kế giao diện web JoomlaMasterCode.vn
Tìm hiểu chi tiết cách thức quản lý giao diện website
Joomla thông qua phần Template Manager;
• Chỉnh sửa một template có sẵn để tạo giao diện web
như ý muốn;
• Hiểu rõ cấu trúc của một Template, những kiến thức căn
bản để xây dựng 1 Template cho website Joomla
Bài 7: Bảo mật website Joomla Các lỗi và một số vấn đề thường gặp với website...MasterCode.vn
Tìm hiểu một số phương pháp bảo mật website Joomla;
• Tìm hiểu một số lỗi và các vấn đề thường gặp trong quá
trình xây dựng và quản trị website Joomla;
Vietnamese version translated from this famous slide
http://www.slideshare.net/nbykmatsui/ss-55961899?utm_content=buffer50ae1&utm_medium=social&utm_source=facebook.com&utm_campaign=buffer
Pd fbuoi2 onpage – tối ưu hóa trang web-mastercode.vnMasterCode.vn
Meta Tag là thẻ dùng để cung cấp các thông tin về website một cách tóm gọn đối với các trình duyệt lẫn người dùng hay bot từ các search engine. Mọi người hay nghe Meta Keyword, Meta Description, Meta Page title,..
Bài 1: Làm quen với SEO
1.1. Khái niệm cơ bản về SEO
1.2. Nhận dạng SEO và quảng cáo Google
1.3. Hành vi người dùng trên Internet
1.4. Nguyên lý hoạt động của Google
1.5. Các thuật ngữ khi làm SEO
1.6. Thuật toán của Google
1.7. Các công cụ (Addons) hổ trợ SEO
1.8. Những yếu tố của một Website chuẩn SEO
1.9. Những lưu ý và lỗi thường gặp khi làm Website
Bài 3 Cài đặt và quản lý các Extension của JoomlaMasterCode.vn
Hiểu rõ Joomla có bao nhiêu loại Extension, chức năng
nhiệm cụ của từng loại extension;
• Thành thạo cách thức cài đặt và quản lý từng loại
extension;
• Tìm hiểu một số extension hay sử dụng;
• Các chức năng còn lại trong Joomla CMS.
Khóa học lập trình jQuery Master của ZendVN là một khóa học được nâng cấp từ khóa học thiết kế Web. Khóa học jQuery master này đem đến cho các bạn toàn bộ kiến thức nền tảng của lập trình website như HTML, CSS, javascript, jQuery framework, Bootstrap framework, NodeJS… ZendVN đảm bảo khóa học JQuery sẽ đem lại cho các bạn kiến thức rộng nhất và toàn diện nhất của lĩnh vực thiết kết web hiện đại.
Joomla 3.6 - The revolution in Joomla User ExperienceJoomlaShine
Joomla 3.6 is here with more than 400 improvements to make it faster, easier to use and more powerful. Check out the changes in Joomla 3.6 that make you fall in love with Joomla over again!
#JoomlerSpirit - the spirit of being "Together" and being "As a whole" has kept Joomlers as sturdy and resilient as ever. Now it’s time to look back #10yeartogether. Many years are still ahead but we can do more and more, together! Happy Joomla 10th Birthday! Let’s celebrate Joomla! 10th Birthday and ignite #JoomlerSpirit: bit.ly/10together
Vietnamese version translated from this famous slide
http://www.slideshare.net/nbykmatsui/ss-55961899?utm_content=buffer50ae1&utm_medium=social&utm_source=facebook.com&utm_campaign=buffer
Pd fbuoi2 onpage – tối ưu hóa trang web-mastercode.vnMasterCode.vn
Meta Tag là thẻ dùng để cung cấp các thông tin về website một cách tóm gọn đối với các trình duyệt lẫn người dùng hay bot từ các search engine. Mọi người hay nghe Meta Keyword, Meta Description, Meta Page title,..
Bài 1: Làm quen với SEO
1.1. Khái niệm cơ bản về SEO
1.2. Nhận dạng SEO và quảng cáo Google
1.3. Hành vi người dùng trên Internet
1.4. Nguyên lý hoạt động của Google
1.5. Các thuật ngữ khi làm SEO
1.6. Thuật toán của Google
1.7. Các công cụ (Addons) hổ trợ SEO
1.8. Những yếu tố của một Website chuẩn SEO
1.9. Những lưu ý và lỗi thường gặp khi làm Website
Bài 3 Cài đặt và quản lý các Extension của JoomlaMasterCode.vn
Hiểu rõ Joomla có bao nhiêu loại Extension, chức năng
nhiệm cụ của từng loại extension;
• Thành thạo cách thức cài đặt và quản lý từng loại
extension;
• Tìm hiểu một số extension hay sử dụng;
• Các chức năng còn lại trong Joomla CMS.
Khóa học lập trình jQuery Master của ZendVN là một khóa học được nâng cấp từ khóa học thiết kế Web. Khóa học jQuery master này đem đến cho các bạn toàn bộ kiến thức nền tảng của lập trình website như HTML, CSS, javascript, jQuery framework, Bootstrap framework, NodeJS… ZendVN đảm bảo khóa học JQuery sẽ đem lại cho các bạn kiến thức rộng nhất và toàn diện nhất của lĩnh vực thiết kết web hiện đại.
Joomla 3.6 - The revolution in Joomla User ExperienceJoomlaShine
Joomla 3.6 is here with more than 400 improvements to make it faster, easier to use and more powerful. Check out the changes in Joomla 3.6 that make you fall in love with Joomla over again!
#JoomlerSpirit - the spirit of being "Together" and being "As a whole" has kept Joomlers as sturdy and resilient as ever. Now it’s time to look back #10yeartogether. Many years are still ahead but we can do more and more, together! Happy Joomla 10th Birthday! Let’s celebrate Joomla! 10th Birthday and ignite #JoomlerSpirit: bit.ly/10together
Joomla 3.4 Made Easy - A perfect start for Joomla! novices. Updated with the latest Joomla version. Click here to download: http://www.joomlashine.com/download/free-download-joomla-made-easy.html
For more information from JoomlaShine, just:
- Visit our website at: www.joomlashine.com
- Like our fan pages on FB: http://www.facebook.com/joomlashine
- Follow us on Twitter: http://twitter.com/joomlashine
Infographic 6 steps to build a Joomla websiteJoomlaShine
Want to build a Joomla! website on your own, but too afraid of tons of codes that you merely know of? Worry not! With JSN PowerAdmin and JSN Page Builder from JoomlaShine, everything has become easier than ever! All you have to do is typing your pure text, and click to select an appropriate method of display on your front page. No coding skills needed.
Let's check out the 6 simple steps you have to build your own eye-catching Joomla site with the help of JSN PowerAdmin and JSN PageBuilder!
Download JSN PageBuilder: http://www.joomlashine.com/joomla-extensions/jsn-pagebuilder-joomla-page-builder-extension.html
Learn how to configure JSN Escape - a responsive template with grunge style for an eye-catching effect. To see the Demo of JSN Mico: http://demo.joomlashine.com/joomla-templates/jsn_mico/pro/index.php
To stay on top of Joomla tutorials from JoomlaShine, just:
- Like our fan pages on FB: http://www.facebook.com/joomlashine
- Follow us on Twitter: http://twitter.com/joomlashine
Learn how to customize JSN Mico - a responsive Joomla template. To see the Demo of JSN Mico: http://demo.joomlashine.com/joomla-templates/jsn-mico
To stay on top of Joomla tutorials from JoomlaShine, just:
- Like our fan pages on FB: http://www.facebook.com/joomlashine
- Follow us on Twitter: http://twitter.com/joomlashine
Learn how to configure JSN Mico - a impressive and responsive Joomla template. To see the Demo of JSN Mico: http://demo.joomlashine.com/joomla-templates/jsn_mico/pro/index.php
To stay on top of Joomla tutorials from JoomlaShine, just:
- Like our fan pages on FB: http://www.facebook.com/joomlashine
- Follow us on Twitter: http://twitter.com/joomlashine
Learn how to configure JSN Air - a clean Joomla template. To see the Demo of JSN Air: http://demo.joomlashine.com/joomla-templates/jsn_air/pro/index.php
To stay on top of Joomla tutorials from JoomlaShine, just:
- Like our fan pages on FB: http://www.facebook.com/joomlashine
- Follow us on Twitter: http://twitter.com/joomlashine
Joomla 3.0 Made Easy - A perfect start for Joomla! novices. Click here to download: http://ow.ly/in8pw
For more information from JoomlaShine, just:
- Visit our website at: www.joomlashine.com
- Like our fan pages on FB: http://www.facebook.com/joomlashine
- Follow us on Twitter: http://twitter.com/joomlashine
Learn how to configure JSN Boot - the Christmas Joomla template. To see the Demo of JSN Boot: http://demo.joomlashine.com/joomla-templates/jsn-boot
To stay on top of Joomla tutorials from JoomlaShine, just:
- Like our fan pages on FB: http://www.facebook.com/joomlashine
- Follow us on Twitter: http://twitter.com/joomlashine
Learn how to customize JSN Neon - the musical Joomla template. To see the Demo of JSN Neon: http://demo.joomlashine.com/joomla-templates/jsn-neon
To stay on top of Joomla tutorials from JoomlaShine, just:
- Like our fan pages on FB: http://www.facebook.com/joomlashine
- Follow us on Twitter: http://twitter.com/joomlashine
Learn how to configure JSN UniForm - the easiest to use Joomla form extensions. To see the Demo of JSN UniForm: http://www.demo.joomlashine.com/joomla-extensions/jsn-uniform.html
To stay on top of Joomla tutorials from JoomlaShine, just:
- Like our fan pages on FB: http://www.facebook.com/joomlashine
- Follow us on Twitter: http://twitter.com/joomlashine
Learn how to configure JSN Kido - the eCommerce Joomla template. To see the Demo of JSN Kido: http://demo.joomlashine.com/joomla-templates/jsn-kido
To stay on top of Joomla tutorials from JoomlaShine, just:
- Like our fan pages on FB: http://www.facebook.com/joomlashine
- Follow us on Twitter: http://twitter.com/joomlashine
Learn how to configure JSN Vintage - a responsive Joomla template. To see the Demo of JSN Vintage: http://demo.joomlashine.com/joomla-templates/jsn-vintage
To stay on top of Joomla tutorials from JoomlaShine, just:
- Like our fan pages on FB: http://www.facebook.com/joomlashine
- Follow us on Twitter: http://twitter.com/joomlashine
Learn how to customize JSN Vintage - a responsive Joomla template. To see the Demo of JSN Vintage: http://demo.joomlashine.com/joomla-templates/jsn-vintage
To stay on top of Joomla tutorials from JoomlaShine, just:
- Like our fan pages on FB: http://www.facebook.com/joomlashine
- Follow us on Twitter: http://twitter.com/joomlashine
Learn how to customize JSN Decor - a responsive Joomla template. Here is the demo of JSN Decor: http://demo.joomlashine.com/joomla-templates/jsn-decor
To stay on top of Joomla tutorials from JoomlaShine, just:
- Like our fan pages on FB: http://www.facebook.com/joomlashine
- Follow us on Twitter: http://twitter.com/joomlashine
Learn how to configure JSN Decor - a responsive Joomla template. To see the Demo of JSN Decor: http://demo.joomlashine.com/joomla-templates/jsn-decor
To stay on top of Joomla tutorials from JoomlaShine, just:
- Like our fan pages on FB: http://www.facebook.com/joomlashine
- Follow us on Twitter: http://twitter.com/joomlashine
Để xem full tài liệu Xin vui long liên hệ page để được hỗ trợ
:
https://www.facebook.com/garmentspace/
https://www.facebook.com/thuvienluanvan01
HOẶC
https://www.facebook.com/thuvienluanvan01
https://www.facebook.com/thuvienluanvan01
tai lieu tong hop, thu vien luan van, luan van tong hop, do an chuyen nganh
GIÁO TRÌNH 2-TÀI LIỆU SỬA CHỮA BOARD MONO TỦ LẠNH MÁY GIẶT ĐIỀU HÒA.pdf
https://dienlanhbachkhoa.net.vn
Hotline/Zalo: 0338580000
Địa chỉ: Số 108 Trần Phú, Hà Đông, Hà Nội
2. Trong 45 phút tới... Khái niệm cơ bản về template Chức năng nâng cao của template Nguồn thông tin tham khảo
3. 3 Khái niệm cơ bản về template Joomla! template cơ bản
4. 4 Cơ chế template trong Joomla Khái niệm cơ bản về template Joomla! template trông như thế nào?
5. 5 Cơ chế template trong Joomla Khái niệm cơ bản về template Thành phần trong Joomla! template Nội dung của Module Nội dung của Component
6. 6 Cơ chế template trong Joomla Khái niệm cơ bản về template Cấu trúc files của 1 template /my_template component.php logo.png /images index.php template.css templateDetails.xml /css template_thumbnail.png favicon.ico
7. 7 Cơ chế template trong Joomla Khái niệm cơ bản về template Hãy thử tạo một template
8. 8 Cơ chế template trong Joomla Khái niệm cơ bản về template Chuẩn bị các công cụ Miễn phí Notepad++ Eclipse Có phí TopStyle Dreamweaver Kiểm tra Firefox Chrome Safari Opera IE
9. 9 Cơ chế template trong Joomla Khái niệm cơ bản về template Những file cần chú ý /my_template component.php logo.png /images index.php template.css templateDetails.xml /css template_thumbnail.png favicon.ico
10. 10 Cơ chế template trong Joomla Khái niệm cơ bản về template Tạo file templateDetails.xml Khai báo metadata về file XML Khai báo metadata về template Khai báo danh sách file và folder trong template Khai báo các vị trí cho module
11. 11 Cơ chế template trong Joomla Khái niệm cơ bản về template Khai báo metadata về file XML <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD template 1.0//EN" "http://dev.joomla.org/xml/1.5/template-install.dtd"> <install version="1.5" type="template">
12. 12 Cơ chế template trong Joomla Khái niệm cơ bản về template Khai báo metadata về template <name>JDay2009</name> <creationDate>2009-10-31</creationDate> <author>BraveBits Co,. Ltd</author> <authorEmail>info@bravebits.vn</authorEmail> <authorUrl>http://www.bravebits.vn</authorUrl> <copyright>BraveBits Co,. Ltd</copyright> <version>1.0</version> <license>GNU/GPL</license> <description>Demo template for Joomla! Day HCMC 2009</description>
13. 13 Cơ chế template trong Joomla Khái niệm cơ bản về template Khai báo danh sách file và folder <files> <folder>images/</folder> <folder>css/</folder> <filename>index.html</filename> <filename>index.php</filename> <filename>templateDetails.xml</filename> <filename>template_thumbnail.png</filename> <filename>favicon.ico</filename> </files>
14. 14 Cơ chế template trong Joomla Khái niệm cơ bản về template Khai báo các vị trí cho modules <positions> <position>top</position> <position>bottom</position> </positions>
15. 15 Cơ chế template trong Joomla Khái niệm cơ bản về template Tạo file index.php Khai báo khởi đầu cho file index.php Khai báo nội dung trong thẻ <head> Khai báo nội dung trong thẻ <body>
16. 16 Cơ chế template trong Joomla Khái niệm cơ bản về template Khai báo khởi đầu cho file index.php <?php defined( '_JEXEC' ) or die( 'Restricted access' );?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>“ dir="<?php echo $this->direction; ?>”>
17. 17 Cơ chế template trong Joomla Khái niệm cơ bản về template Khai báo nội dung trong thẻ <head> <head> <jdoc:include type="head" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/template.css" type="text/css" /> </head>
18. 18 Cơ chế template trong Joomla Khái niệm cơ bản về template Khai báo nội dung trong thẻ <body> <body> <jdoc:include type="modules" name="top" /> <jdoc:include type=“message" /> <jdoc:include type="component" /> <jdoc:include type="modules" name="bottom" /> </body>
19. 19 Cơ chế template trong Joomla Chức năng nâng cao Thuộc tính cho template
20. 20 Cơ chế template trong Joomla Chức năng nâng cao Thuộc tính cho template là gì?
21. 21 Cơ chế template trong Joomla Chức năng nâng cao Tại sao nên dùng thuộc tính? Cho phép người dùng tuy biến template mà không cần sửa code Tạo thêm nhiều tính năng cho template mà không làm quá trình sử dụng phức tạp hơn Tiết kiệm thời gian để tùy biến template
22. 22 Cơ chế template trong Joomla Chức năng nâng cao Thêm một thuộc tính cho template
23. 23 Cơ chế template trong Joomla Chức năng nâng cao Thêm thuộc tính cho template Khai báo về thuộc tính trong file templateDetails.xml Lưu giá trị của thuộc tính trong file params.ini Tạo code PHP để xử lý giá trị của thuộc tính
24. 24 Cơ chế template trong Joomla Chức năng nâng cao Khai báo trong file templateDetails.xml <params> <param name="templateColor" type="list" default="blue" label="Template Color" description="Choose the template color."> <option value="blue">Blue</option> <option value="red">Red</option> </param> ... </params>
25. 25 Cơ chế template trong Joomla Chức năng nâng cao Lưu giá trị trong file params.ini templateColor=blue
26. 26 Cơ chế template trong Joomla Chức năng nâng cao Tạo code PHP để xử lý giá trị <?php $tplColor = $this->params->get( 'templateColor' ); $this->addStyleSheet( $this->baseurl . '/templates/' . $this->template . '/css/' . $tplColor .'.css' ); ?>
27. 27 Cơ chế template trong Joomla Chức năng nâng cao Những định dạng thuộc tính có sẵn Joomla! có sẵn 21 định dạng cho mọi trường hợp Trên thực tế hay dùng nhất là List Radio Text
28. 28 Cơ chế template trong Joomla Chức năng nâng cao Template override
29. 29 Cơ chế template trong Joomla Chức năng nâng cao Template override là gì? Trước khi override Sau khi override
30. 30 Cơ chế template trong Joomla Chức năng nâng cao Tại sao nên dùng override? Có code HTML đặc biệt mà không cần động đến code của extension Có được code HTML tối ưu hóa cho công cụ tìm kiếm Tiết kiệm thời gian để tùy biến template
31. Cơ chế template trong Joomla Chức năng nâng cao Mô hình MVC là gì? Hiển thị nội dung Điều khiển Nội dung Nội dung 31
32. Cơ chế template trong Joomla Chức năng nâng cao Mô hình MVC trong Joomla! Xem nội dung trên trang web Joomla! Nội dung được hiển thị căn cứ vào View va Layout Nội dung cần thiết được lấy từ DB và đưa về View Phân tích yêu cầu và đưa về component phù hợp (com_content) 32
33. Cơ chế template trong Joomla Chức năng nâng cao Views và Layout Views Layout 33
34. Cơ chế template trong Joomla Chức năng nâng cao Files của Views và Layout com_content/<- folder chứa file chung thuộc component views/<- folder chứa file thuộc phần View article/<- folder chứa file thuộc View một bài viết tmpl/ <- folder chứa file layout default.php<- file layout form.php<- file layout category/ tmpl/ 34
35. Cơ chế template trong Joomla Chức năng nâng cao Đối với Module mod_mainmenu/<- folder chứa file chung thuộc module tmpl/<- folder chứa file layout default.php<- file layout helper.php<- helper file với logic xử lý của module mod_mainmenu.php<- file chính của module mod_mainmenu.xml<- file thông tin về module 35
36. Cơ chế template trong Joomla Chức năng nâng cao Tạo một override cho component 36
37. Cơ chế template trong Joomla Chức năng nâng cao Tạo một override cho component Tạo folder theo cấu trúc chuẩn trong template folder Copy file View gốc của component vào folder mới được tạo Thực hiện override trên file mới được copy Cập nhật thông tin trong file templateDetails.xml 37
38. Cơ chế template trong Joomla Chức năng nâng cao Tạo folder theo cấu trúc chuẩn YourTemplate/<- folder template của bạn html/<- folder chứa các file overrides com_content/<- folder mang tên component sẽ bị override article/<- folder mang tên view sẽ bị override com_user/ login/ 38
39. Cơ chế template trong Joomla Chức năng nâng cao Copy file View gốc của component Copy /components/com_content/views/article/tmpl/default.php vào /templates/your_template/html/com_content/article/default.php 39
40. Cơ chế template trong Joomla Chức năng nâng cao Thực hiện override trên file mới . . . <td class="contentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" width="100%"> <h2> <?php echo $this->escape($this->article->title); ?> </h2> </td> . . . 40
41. Cơ chế template trong Joomla Chức năng nâng cao Override module cũng tương tự Copy /components/mod_mainmenu/tmpl/default.php vào /templates/your_template/html/mod_mainmenu/default.php 41
42. Cơ chế template trong Joomla Chức năng nâng cao Bạn cần lưu ý Bạn chỉ có thể override khi component hoặc module được thực hiện theo chuẩn MVC (có folder views/tmpl) Bạn không thể override PDF và RSS feeds (phải chỉnh sửa file core) Đường dẫn đến file override phải thật chính xác Override chỉ có giá trị cho template mà bạn đang override Lưu ý cập nhật file templateDetails.xml 42
43. Cơ chế template trong Joomla Chức năng nâng cao Module Chrome 43
44. Cơ chế template trong Joomla Chức năng nâng cao Module Chrome là gì? Browser Template Modules Layouts Chrome HTML CSS JS IMAGES jdoc:include type=“modules” name=“left” style=“xhtml mystyle” modChrome_xhtml modChrome_mystyle templates/system/html/modules.php your_template/html/modules.php 44
45. Cơ chế template trong Joomla Chức năng nâng cao Tại sao nên dùng module chrome? Thể hiện module style cao cấp mà cơ chế có sẵn không đáp ứng được Để có thể tối ưu hóa code HTML của module phù hợp cho nhu cầu nhất định 45
46. Cơ chế template trong Joomla Chức năng nâng cao Module chrome khác gì Module override? <div id="left"> <div class="moduletable"> <h3>Main Menu</h3> <ul class="menu"> <li id="current" class="active item1"> <li class="item2"> ...... Module HTML code khác ...... </div> </div> Module position container Module chrome wrapper Module content / override 46
47. Cơ chế template trong Joomla Chức năng nâng cao Những module chrome có sẵn trong Joomla! <div class="module"> <div> <div> <div> <h3>Main Menu</h3> <ul class="menu"> <li>Menuitem 1</li> . . . </ul> </div> </div> </div> </div> <div class="moduletable"> <h3>Main Menu</h3> <ul class="menu"> <li>Menuitem 1</li> . . . </ul> </div> xhtml rounded <ul class="menu"> <li>Menuitem 1</li> . . . </ul> none 47
48. Cơ chế template trong Joomla Chức năng nâng cao Tạo một module chrome 48
49. Cơ chế template trong Joomla Chức năng nâng cao Tạo một module chrome Tạo hoặc sửa file modules.php trong template folder html/ Tạo hàm với tên và tham số phù hợp Tạo code thực thi hàm để có module chrome mong muốn 49
50. Cơ chế template trong Joomla Chức năng nâng cao Tạo hoặc sửa file modules.php YourTemplate/<- folder template của bạn html/<- folder chứa các file overrides modules.php<- file khai báo hàm cho module chrome /templates/system/html/modules.php 50
51. Cơ chế template trong Joomla Chức năng nâng cao Tạo hàm với tên và tham số phù hợp <?phpfunction modChrome_customh($module, &$params, &$attribs){ if (!empty ($module->content)) : ?> <div class="moduletable<?php echo $params->get('moduleclass_sfx'); ?>"> <?php if ($module->showtitle != 0) : ?> <h3><?php echo $module->title; ?></h3> <?php endif; ?> <?php echo $module->content; ?> </div> <?php endif; } ?> 51
52. Cơ chế template trong Joomla Chức năng nâng cao Tạo code thực thi hàm <?phpfunction modChrome_customh($module, &$params, &$attribs){ if (!empty ($module->content)) : ?> <div class="moduletable<?php echo $params->get('moduleclass_sfx'); ?>"> <?php if ($module->showtitle != 0) : ?> <h2><?php echo $module->title; ?></h2> <?php endif; ?> <?php echo $module->content; ?> </div> <?php endif; } ?> 52
53. Cơ chế template trong Joomla Chức năng nâng cao Nói thêm về jdoc:include Gọi module position <jdoc:include type="modules"name="left"style="rounded" /> Gọi một module đơn lẻ <jdoc:include type="module"name=“breadcrumb"style=“none" /> Gọi nhiều chrome cùng một lúc <jdoc:include type="modules"name="left"style="rounded mystyle" /> 53
54. Cơ chế template trong Joomla Chức năng nâng cao Những điều bạn cần biết 54
55. Cơ chế template trong Joomla Chức năng nâng cao Những trang web dùng Joomla! ấn tượng http://www.palgor-publicidade.com/ http://www.spacemakerwardrobes.com.au/ http://www.lonestar.com.au/ http://www.childrenoftherevolution.com.au/ http://www.cultureelcafe.nl/ http://btl.bialystok.pl/ http://www.waterandstone.com/ http://www.55thinking.com/ 55
56. Cơ chế template trong Joomla Chức năng nâng cao Nguồn thông tin tham khảo http://docs.joomla.org/Joomla!_1.5_Template_Tutorial http://docs.joomla.org/Tutorial:Creating_a_basic_Joomla!_template http://docs.joomla.org/Tutorial:Understanding_Joomla!_templates http://www.compassdesigns.net/joomla-tutorials/joomla-template-tutorial http://www.joomlashack.com/tutorials 56