Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme » New Versions & Updates »

PATCH 113-07: allow use of bfa_get_template_part() in Virtual templates


  #1  
Old Mar 20, 2013, 10:40 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Inclusion of Custom sub templates should be done with
HTML Code:
<?php bfa_get_template_part( 'name-of-sub-template' ); ?>
however that code was not allowed in the virtual templates. This PATCH will allow they inclusion of Custom sub templates.

1) download the attached file
2) unzip it
3) move '650_sub_templates.php' to the 'montezuma/admin/options' folder
4) move 'get_template_part.php' to the 'montezuma/includes' folder
5) move 'get_whitelist.php' to the 'montezuma/includes' folder

the new format of the command will be

HTML Code:
<?php bfa_get_template_part( 'name-of-sub-template', '' ); ?>
Attached Files
File Type: zip PATCH113-07.zip (16.3 KB, 2187 views)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Patch 113-05: 'Add Sub Templates' '.php' missing/copy doesn't work juggledad New Versions & Updates 0 Feb 8, 2013 04:45 AM
PATCH 113-03: Using 'the_content()' in a virtual template may incorrect results juggledad New Versions & Updates 0 Jan 6, 2013 02:07 PM
[SOLVED] Need help differentiating virtual and physical templates Michael4fm Montezuma Theme 5 Jan 3, 2013 03:30 PM
[SOLVED] PATCH 373-03: date-modified in post/page .. patch is corrupted dnasir New Versions, & Updating 3 Jan 19, 2012 08:21 AM
PATCH 367-02: Page Titles are double with 3.6.7 (now part of PATCH 367-04) juggledad Old Version fixes and change logs 0 May 13, 2011 03:57 PM


All times are GMT -6. The time now is 03:37 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.