|
|
@@ -1,14 +1,43 @@
|
|
|
-Place all custom page files here....
|
|
|
+Place all custom page files here in this directory....
|
|
|
|
|
|
-make sure to start page contents like so:
|
|
|
+Name file something like "custom_code_presentation.php" and make sure to start page contents like so:
|
|
|
<pre>
|
|
|
<?php
|
|
|
-// This is a check to make sure organizr is setup already...
|
|
|
-if (file_exists($GLOBALS['userConfigPath'])) {
|
|
|
- // All variables need to start with $customPage .... Make sure to change Simple to any word (First Letter needs to be capital)... i.e. $customPageNewish
|
|
|
- // Also make sure to escape single quotes
|
|
|
- $customPageSimple = '
|
|
|
- <h1>THIS IS JUST A TEST</h1>
|
|
|
- ';
|
|
|
-}
|
|
|
+ /*
|
|
|
+ * Make sure to edit "name_here" with your page name - i.e. custom_code_presentation
|
|
|
+ * You will edit on both "$GLOBALS['organizrPages'][] = 'name_here';" and "function get_page_name_here($Organizr)"
|
|
|
+ */
|
|
|
+ $GLOBALS['organizrPages'][] = 'name_here';
|
|
|
+ function get_page_name_here($Organizr)
|
|
|
+ {
|
|
|
+ if (!$Organizr) {
|
|
|
+ $Organizr = new Organizr();
|
|
|
+ }
|
|
|
+ /*
|
|
|
+ * Take this out if you dont care if DB has been created
|
|
|
+ */
|
|
|
+ if ((!$Organizr->hasDB())) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ /*
|
|
|
+ * Take this out if you dont want to be for admin only
|
|
|
+ */
|
|
|
+ if (!$Organizr->qualifyRequest(1, true)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return '
|
|
|
+ <script>
|
|
|
+ // Custom JS here
|
|
|
+ </script>
|
|
|
+ <div class="panel bg-org panel-info">
|
|
|
+ <div class="panel-heading">
|
|
|
+ <span lang="en">Template</span>
|
|
|
+ </div>
|
|
|
+ <div class="panel-wrapper collapse in" aria-expanded="true">
|
|
|
+ <div class="panel-body bg-org">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ ';
|
|
|
+ }
|
|
|
</pre>
|