@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | if (!$modx->hasPermission('save_template')) { |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | $updateMsg = ''; |
| 16 | 16 | |
| 17 | 17 | if (isset($_POST['listSubmitted'])) { |
| 18 | - $updateMsg .= '<span class="text-success" id="updated">' . $_lang['sort_updated'] . '</span>'; |
|
| 18 | + $updateMsg .= '<span class="text-success" id="updated">'.$_lang['sort_updated'].'</span>'; |
|
| 19 | 19 | foreach ($_POST as $listName => $listValue) { |
| 20 | 20 | if ($listName == 'listSubmitted' || $listName == 'reset') { |
| 21 | 21 | continue; |
@@ -40,11 +40,11 @@ discard block |
||
| 40 | 40 | $sortableList = '<div class="clearfix"><ul id="sortlist" class="sortableList">'; |
| 41 | 41 | while ($row = $modx->db->getRow($rs)) { |
| 42 | 42 | $caption = $row['caption'] != '' ? $row['caption'] : $row['name']; |
| 43 | - $sortableList .= '<li id="item_' . $row['id'] . '"><i class="fa fa-list-alt"></i> ' . $caption . ' <small class="protectedNode" style="float:right">[*' . $row['name'] . '*]</small></li>'; |
|
| 43 | + $sortableList .= '<li id="item_'.$row['id'].'"><i class="fa fa-list-alt"></i> '.$caption.' <small class="protectedNode" style="float:right">[*'.$row['name'].'*]</small></li>'; |
|
| 44 | 44 | } |
| 45 | 45 | $sortableList .= '</ul></div>'; |
| 46 | 46 | } else { |
| 47 | - $updateMsg = '<p class="text-danger">' . $_lang['tmplvars_novars'] . '</p>'; |
|
| 47 | + $updateMsg = '<p class="text-danger">'.$_lang['tmplvars_novars'].'</p>'; |
|
| 48 | 48 | } |
| 49 | 49 | ?> |
| 50 | 50 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | usort($notices, 'version_compare'); |
| 16 | 16 | $notices = array_reverse($notices); |
| 17 | 17 | |
| 18 | - foreach($notices as $v) { |
|
| 18 | + foreach ($notices as $v) { |
|
| 19 | 19 | if ($v >= '1.3.0') { |
| 20 | 20 | $cms = 'EVO'; |
| 21 | 21 | } |
@@ -18,8 +18,7 @@ |
||
| 18 | 18 | foreach($notices as $v) { |
| 19 | 19 | if ($v >= '1.3.0') { |
| 20 | 20 | $cms = 'EVO'; |
| 21 | - } |
|
| 22 | - else { |
|
| 21 | + } else { |
|
| 23 | 22 | $cms = 'MODX EVO'; |
| 24 | 23 | } |
| 25 | 24 | echo '<div class="sectionHeader"> '.$cms.' '.$v.'</div><div class="sectionBody">'; |
@@ -7,8 +7,8 @@ |
||
| 7 | 7 | <div class="sectionHeader">Changelog</div> |
| 8 | 8 | <div class="sectionBody"> |
| 9 | 9 | <?php |
| 10 | - $changeLog = MODX_BASE_PATH . 'assets/docs/changelog.txt'; |
|
| 11 | - if(is_readable($changeLog)) |
|
| 12 | - echo str_replace("\n",'<br>',file_get_contents($changeLog)); |
|
| 10 | + $changeLog = MODX_BASE_PATH . 'assets/docs/changelog.txt'; |
|
| 11 | + if(is_readable($changeLog)) |
|
| 12 | + echo str_replace("\n",'<br>',file_get_contents($changeLog)); |
|
| 13 | 13 | ?> |
| 14 | 14 | </div> |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | ?> |
@@ -7,8 +7,8 @@ discard block |
||
| 7 | 7 | <div class="sectionHeader">Changelog</div> |
| 8 | 8 | <div class="sectionBody"> |
| 9 | 9 | <?php |
| 10 | - $changeLog = MODX_BASE_PATH . 'assets/docs/changelog.txt'; |
|
| 11 | - if(is_readable($changeLog)) |
|
| 12 | - echo str_replace("\n",'<br>',file_get_contents($changeLog)); |
|
| 10 | + $changeLog = MODX_BASE_PATH.'assets/docs/changelog.txt'; |
|
| 11 | + if (is_readable($changeLog)) |
|
| 12 | + echo str_replace("\n", '<br>', file_get_contents($changeLog)); |
|
| 13 | 13 | ?> |
| 14 | 14 | </div> |
@@ -8,7 +8,8 @@ |
||
| 8 | 8 | <div class="sectionBody"> |
| 9 | 9 | <?php |
| 10 | 10 | $changeLog = MODX_BASE_PATH . 'assets/docs/changelog.txt'; |
| 11 | - if(is_readable($changeLog)) |
|
| 12 | - echo str_replace("\n",'<br>',file_get_contents($changeLog)); |
|
| 13 | -?> |
|
| 11 | + if(is_readable($changeLog)) { |
|
| 12 | + echo str_replace("\n",'<br>',file_get_contents($changeLog)); |
|
| 13 | + } |
|
| 14 | + ?> |
|
| 14 | 15 | </div> |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <!-- Template variables --> |
| 2 | 2 | <?php |
| 3 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 4 | 4 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 5 | 5 | } |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <!-- chunks --> |
| 2 | 2 | <?php |
| 3 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 4 | 4 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 5 | 5 | } |
| 6 | 6 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } ?> |
| 5 | 5 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <!-- snippets --> |
| 2 | 2 | <?php |
| 3 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 4 | 4 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 5 | 5 | } |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <!-- Templates --> |
| 2 | 2 | <?php |
| 3 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 4 | 4 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 5 | 5 | } |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <!-- plugins --> |
| 2 | 2 | <?php |
| 3 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 4 | 4 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 5 | 5 | } |
| 6 | 6 | |