aboutsummaryrefslogtreecommitdiff
path: root/themes/default/include/functions.php
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2011-04-17 20:13:07 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2011-04-17 20:13:07 -0400
commit0077cb99704fe863cf731fc5cab792af2ede96c2 (patch)
treedd68f44971aa2aee821f588d33b250dcd2fe57e3 /themes/default/include/functions.php
parente8b28c5e910d92cbec3d4baa6e98f025e8418d28 (diff)
downloadbayonetcms-0077cb99704fe863cf731fc5cab792af2ede96c2.tar.gz
Backporting retarded amount of changes outside of version control
Diffstat (limited to 'themes/default/include/functions.php')
-rw-r--r--themes/default/include/functions.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/themes/default/include/functions.php b/themes/default/include/functions.php
new file mode 100644
index 0000000..4a401fd
--- /dev/null
+++ b/themes/default/include/functions.php
@@ -0,0 +1,40 @@
+<?php
+
+ /* EVERY THEME SHOULD HAVE THIS FILE WITH THE FUNCTIONS OPENCONTENT() & CLOSECONTENT() */
+
+ /**
+ * OpenContent()
+ * Opens a Bayonet site content block.
+ * @return
+ */
+ function OpenContent()
+ {
+ echo "<div class=\"contentBorder1\">";
+ echo "<div class=\"contentBorder2\">";
+ }
+
+ /**
+ * CloseContent()
+ * Closes a Bayonet site content block.
+ * @return
+ */
+ function CloseContent()
+ {
+ echo "</div>";
+ echo "</div>";
+ }
+
+ function OpenBlock($title = 'New Block')
+ {
+ OpenContent();
+ echo "<div class=\"contentHeading\">{$title}</div>";
+ echo "<div class=\"content\">";
+ }
+
+ function CloseBlock()
+ {
+ echo "</div>";
+ CloseContent();
+ }
+
+?> \ No newline at end of file