<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to BluePrint</title><link>https://sourceforge.net/p/phpbaseplate/wiki/BluePrint/</link><description>Recent changes to BluePrint</description><atom:link href="https://sourceforge.net/p/phpbaseplate/wiki/BluePrint/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 25 Feb 2017 16:20:11 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/phpbaseplate/wiki/BluePrint/feed" rel="self" type="application/rss+xml"/><item><title>BluePrint modified by Stevie G</title><link>https://sourceforge.net/p/phpbaseplate/wiki/BluePrint/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,4 +1,4 @@
-*BluePrint Template Engine**
+BluePrint Template Engine
 ===
 By default the BluePrint Engine is started in common.php
 ~~~
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stevie G</dc:creator><pubDate>Sat, 25 Feb 2017 16:20:11 -0000</pubDate><guid>https://sourceforge.net503c81cb88553d77012ae898f5a255ff894bc0c6</guid></item><item><title>BluePrint modified by Stevie G</title><link>https://sourceforge.net/p/phpbaseplate/wiki/BluePrint/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="blueprint-template-engine"&gt;&lt;em&gt;BluePrint Template Engine&lt;/em&gt;*&lt;/h1&gt;
&lt;p&gt;By default the BluePrint Engine is started in common.php&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="x"&gt;require_once(LOC_CLASSES."BluePrint.class.php"); //Include BluePrint Template Engine&lt;/span&gt;
&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;template&lt;/span&gt;&lt;span class="x"&gt;=new BluePrint(THEME_PATH); //BluePrint Theme Switcher&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The Blueprint template engine can be called as follows&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;multiset&lt;/span&gt;&lt;span class="x"&gt;=array(&lt;/span&gt;
&lt;span class="x"&gt;"PageTitle"=&amp;gt;"Welcome to ComputerM8",&lt;/span&gt;
&lt;span class="x"&gt;"MetaDescription"=&amp;gt;"ComputerM8 - I.T. services, sales, support, remote assistance, web design, web hosting, troubleshooting, networking, custom built computers and more.",&lt;/span&gt;
&lt;span class="x"&gt;"MetaKeywords"=&amp;gt;"Computer Repair, Computer Engineer, Web Design, Web Application Design, Web Developer, PHP, HTML, CSS",&lt;/span&gt;
&lt;span class="x"&gt;"PageAuthor"=&amp;gt;"Steven Graham",&lt;/span&gt;
&lt;span class="x"&gt;"URL_IMAGES"=&amp;gt;URL_IMAGES,&lt;/span&gt;
&lt;span class="x"&gt;"URL_CSS"=&amp;gt;URL_CSS,&lt;/span&gt;
&lt;span class="x"&gt;"BodyContent"=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;content&lt;/span&gt;&lt;span class="x"&gt;&lt;/span&gt;
&lt;span class="x"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;template&lt;/span&gt;&lt;span class="x"&gt;-&amp;gt;multiSet(&lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;multiset&lt;/span&gt;&lt;span class="x"&gt;);&lt;/span&gt;
&lt;span class="x"&gt;echo &lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;page&lt;/span&gt;&lt;span class="x"&gt;-&amp;gt;output();&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;You can set multiple SuperTagz at once using the multiset function shown above. This uses the array &lt;code&gt;key=&amp;gt;value&lt;/code&gt; format. Each of the SuperTagz specified can then be used in the template (ie ...&lt;code&gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;[@PageTitle]&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;[@BodyContent]&amp;lt;/body&amp;gt;&lt;/code&gt;...)&lt;/p&gt;
&lt;p&gt;Alternatively you can specify a single tag as follows&lt;br/&gt;
&lt;code&gt;$template-&amp;gt;set("DATE", date("Y-m-d"));&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This could then be called in the template file like this &lt;code&gt;[@date]&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;BluePrint has the ability to output the contents of theme files or php variables, see the following example.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;myvar&lt;/span&gt;&lt;span class="x"&gt;="The date is [@DATE] and the PHP version is [@PHP_VERSION]";&lt;/span&gt;
&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;content&lt;/span&gt;&lt;span class="x"&gt;=&lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;template&lt;/span&gt;&lt;span class="x"&gt;-&amp;gt;output(&lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;myvar&lt;/span&gt;&lt;span class="x"&gt;);&lt;/span&gt;
&lt;span class="x"&gt;echo &lt;/span&gt;&lt;span class="p"&gt;$&lt;/span&gt;&lt;span class="nv"&gt;content&lt;/span&gt;&lt;span class="x"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stevie G</dc:creator><pubDate>Sat, 25 Feb 2017 16:19:48 -0000</pubDate><guid>https://sourceforge.netea95d7b69c3bd6478627d30df6f6389f2e8a5a4a</guid></item></channel></rss>