aboutsummaryrefslogtreecommitdiff
path: root/themes/default/include/functions.php
diff options
context:
space:
mode:
author3rd Infantry Division <thirdid@3rd-infantry-division.org>2011-04-18 16:29:05 -0400
committer3rd Infantry Division <thirdid@3rd-infantry-division.org>2011-04-18 16:29:05 -0400
commitea0080efe5a38a470d4f745ca589e923efc35e5c (patch)
treec6604647d51c0e81168e7dbaba9f73385edc02ee /themes/default/include/functions.php
parentfa1cde8684c1a481dd251398d1c2faa27d147a43 (diff)
parent0077cb99704fe863cf731fc5cab792af2ede96c2 (diff)
downloadbayonetcms-ea0080efe5a38a470d4f745ca589e923efc35e5c.tar.gz
Merge branch 'master' of ssh://3rd-infantry-division.org/~/git/bayonet
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