@@ -124,13 +124,13 @@ |
||
124 | 124 | <?php |
125 | 125 | $url = $_SERVER['REQUEST_URI']; |
126 | 126 | |
127 | - if (strpos($url,'computing-support') !== false) { |
|
127 | + if (strpos($url, 'computing-support') !== false) { |
|
128 | 128 | $dept_name = 'Computing Support'; |
129 | 129 | $dept_url = 'computing-support'; |
130 | - } elseif (strpos($url,'marketing') !== false) { |
|
130 | + } elseif (strpos($url, 'marketing') !== false) { |
|
131 | 131 | $dept_name = 'Marketing'; |
132 | 132 | $dept_url = 'marketing'; |
133 | - } elseif (strpos($url,'human-resources') !== false) { |
|
133 | + } elseif (strpos($url, 'human-resources') !== false) { |
|
134 | 134 | $dept_name = 'Human Resources'; |
135 | 135 | $dept_url = 'human-resources'; |
136 | 136 | } else { |
@@ -35,10 +35,10 @@ |
||
35 | 35 | <?php } ?> |
36 | 36 | <?php $controls = PageTypeComposerFormLayoutSetControl::getList($cfl); |
37 | 37 | |
38 | - foreach($controls as $con) { |
|
39 | - if (is_object($page)) { // we are loading content in |
|
40 | - $con->setPageObject($page); |
|
41 | - } |
|
38 | + foreach($controls as $con) { |
|
39 | + if (is_object($page)) { // we are loading content in |
|
40 | + $con->setPageObject($page); |
|
41 | + } |
|
42 | 42 | $con->setTargetParentPageID($targetParentPageID); |
43 | 43 | ?> |
44 | 44 | <?php $con->render(); ?> |
@@ -19,13 +19,13 @@ discard block |
||
19 | 19 | <div class="alert alert-info" style="display: none" id="ccm-page-type-composer-form-save-status"></div> |
20 | 20 | |
21 | 21 | <style>.form-group.ccm-composer-url-slug {display:none}</style> |
22 | -<?php $u = new User(); if($u->inGroup(Group::getByName('Administrators'))){ ?> |
|
22 | +<?php $u = new User(); if ($u->inGroup(Group::getByName('Administrators'))) { ?> |
|
23 | 23 | <style>.form-group.ccm-composer-url-slug {display:block !important}</style> |
24 | 24 | <?php } ?> |
25 | 25 | |
26 | 26 | <input type="hidden" name="ptID" value="<?php echo $pagetype->getPageTypeID()?>" /> |
27 | 27 | |
28 | -<?php foreach($fieldsets as $cfl) { ?> |
|
28 | +<?php foreach ($fieldsets as $cfl) { ?> |
|
29 | 29 | <fieldset> |
30 | 30 | <?php if ($cfl->getPageTypeComposerFormLayoutSetDisplayName()) { ?> |
31 | 31 | <legend><?php echo $cfl->getPageTypeComposerFormLayoutSetDisplayName()?></legend> |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | <?php } ?> |
36 | 36 | <?php $controls = PageTypeComposerFormLayoutSetControl::getList($cfl); |
37 | 37 | |
38 | - foreach($controls as $con) { |
|
38 | + foreach ($controls as $con) { |
|
39 | 39 | if (is_object($page)) { // we are loading content in |
40 | 40 | $con->setPageObject($page); |
41 | 41 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | global $u; |
24 | 24 | |
25 | 25 | if ($u->isLoggedIn()) { |
26 | - echo '<p class="welcome-username">Welcome ' . $u->getUserName() . '</p>'; |
|
26 | + echo '<p class="welcome-username">Welcome '.$u->getUserName().'</p>'; |
|
27 | 27 | } else { |
28 | 28 | echo '<p class="welcome-username"><a href="/login">Click here to Login</a></p>'; |
29 | 29 |
@@ -35,10 +35,10 @@ |
||
35 | 35 | <?php } ?> |
36 | 36 | <?php $controls = PageTypeComposerFormLayoutSetControl::getList($cfl); |
37 | 37 | |
38 | - foreach($controls as $con) { |
|
39 | - if (is_object($page)) { // we are loading content in |
|
40 | - $con->setPageObject($page); |
|
41 | - } |
|
38 | + foreach($controls as $con) { |
|
39 | + if (is_object($page)) { // we are loading content in |
|
40 | + $con->setPageObject($page); |
|
41 | + } |
|
42 | 42 | $con->setTargetParentPageID($targetParentPageID); |
43 | 43 | ?> |
44 | 44 | <?php $con->render(); ?> |
@@ -19,13 +19,13 @@ discard block |
||
19 | 19 | <div class="alert alert-info" style="display: none" id="ccm-page-type-composer-form-save-status"></div> |
20 | 20 | |
21 | 21 | <style>.form-group.ccm-composer-url-slug {display:none}</style> |
22 | -<?php $u = new User(); if($u->inGroup(Group::getByName('Administrators'))){ ?> |
|
22 | +<?php $u = new User(); if ($u->inGroup(Group::getByName('Administrators'))) { ?> |
|
23 | 23 | <style>.form-group.ccm-composer-url-slug {display:block !important}</style> |
24 | 24 | <?php } ?> |
25 | 25 | |
26 | 26 | <input type="hidden" name="ptID" value="<?php echo $pagetype->getPageTypeID()?>" /> |
27 | 27 | |
28 | -<?php foreach($fieldsets as $cfl) { ?> |
|
28 | +<?php foreach ($fieldsets as $cfl) { ?> |
|
29 | 29 | <fieldset> |
30 | 30 | <?php if ($cfl->getPageTypeComposerFormLayoutSetDisplayName()) { ?> |
31 | 31 | <legend><?php echo $cfl->getPageTypeComposerFormLayoutSetDisplayName()?></legend> |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | <?php } ?> |
36 | 36 | <?php $controls = PageTypeComposerFormLayoutSetControl::getList($cfl); |
37 | 37 | |
38 | - foreach($controls as $con) { |
|
38 | + foreach ($controls as $con) { |
|
39 | 39 | if (is_object($page)) { // we are loading content in |
40 | 40 | $con->setPageObject($page); |
41 | 41 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | <div class="col-lg-12"> |
7 | 7 | <h1 class="page-header"><?php $page = Page::getCurrentPage(); echo $page->getCollectionName(); ?></h1> |
8 | 8 | <br> |
9 | - <?php $a= new Area('Page Content'); $a->display($c); ?> |
|
9 | + <?php $a = new Area('Page Content'); $a->display($c); ?> |
|
10 | 10 | </div> <!-- END col-lg-12 --> |
11 | 11 | </div> <!-- END row --> |
12 | 12 | </div> <!-- END container-fluid --> |