diff options
author | 3rd Infantry Division <thirdid@3rd-infantry-division.org> | 2011-04-18 16:29:05 -0400 |
---|---|---|
committer | 3rd Infantry Division <thirdid@3rd-infantry-division.org> | 2011-04-18 16:29:05 -0400 |
commit | ea0080efe5a38a470d4f745ca589e923efc35e5c (patch) | |
tree | c6604647d51c0e81168e7dbaba9f73385edc02ee /themes/gttheme/include/functions.php | |
parent | fa1cde8684c1a481dd251398d1c2faa27d147a43 (diff) | |
parent | 0077cb99704fe863cf731fc5cab792af2ede96c2 (diff) | |
download | bayonetcms-ea0080efe5a38a470d4f745ca589e923efc35e5c.tar.gz |
Merge branch 'master' of ssh://3rd-infantry-division.org/~/git/bayonet
Diffstat (limited to 'themes/gttheme/include/functions.php')
-rw-r--r-- | themes/gttheme/include/functions.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/themes/gttheme/include/functions.php b/themes/gttheme/include/functions.php new file mode 100644 index 0000000..4a401fd --- /dev/null +++ b/themes/gttheme/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 |