TAILIEUCHUNG - Thiết kế web với joomla 1.6(5).x part 58

Cách hiệu quả nhất để thêm ghi đè pagination cho mẫu của bạn là để sao chép các phân trang. php tập tin từ một trong hai mẫu mặc định RHUK_Milkyway hoặc mặc định mẫu Beez. Sử dụng mã như là điểm khởi đầu của bạn. Lưu mã được sao chép vào tập tin của riêng bạn bên trong thư mục html mẫu của bạn | Chapter 20 Customizing Joomla Templates function pagination_item_inactive item return span . item- text. span The most efficient way to add pagination overrides to your template is to copy the pagination. php file from either the default RHUK_Milkyway template or the default Beez template. Use that code as your starting point. Save the copied code to your own file inside your template s html directory. Make any changes you need to your new file and you re done. If there is a file in the active template s directory the system will detect it automatically and use it in preference to the default styling. Creating a New Template This section looks at the minimum requirements to set up a basic template. With these basics in place you have a solid foundation from which you can expand the template and introduce more advanced features as needed. Creating the structure As a first step to creating your own template you need to set up the necessary directory structure and name properly the directories and files. By way of example I am going to create a new Joomla template named Balinese. Follow these steps to get started 1. Create a new directory inside templates and name it balinese. 2. Inside the templates balinese directory create two new sub-directories css and images. 3. Use your HTML editor to create the following empty files and . 4. Place the files and inside templates balinese. 5. Place the file inside the directory templates balinese css. With the steps above completed you now have the structure in place to meet the minimum requirements for a new template. The next step is to add the code to the files. Creating the file The file is responsible for placing all the output on the page. The code below sets all the key elements in place but without any styling you can add the styling later with CSS. 535

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.