mirror of
https://github.com/itflow-org/itflow
synced 2026-08-05 07:07:14 +00:00
Use Short echo tags across the code
This commit is contained in:
@@ -54,9 +54,9 @@ if ($total_found_rows > 5) {
|
||||
|
||||
<div class="col-sm">
|
||||
<p class="text-center">
|
||||
Showing <strong><?php echo $start; ?></strong> to <strong><?php echo $end; ?></strong> of <strong><?php echo $total_found_rows; ?></strong> records
|
||||
Showing <strong><?= $start ?></strong> to <strong><?= $end ?></strong> of <strong><?= $total_found_rows ?></strong> records
|
||||
</p>
|
||||
<!--<p class="text-center mt-2"><?php echo $total_found_rows; ?></p> -->
|
||||
<!--<p class="text-center mt-2"><?= $total_found_rows ?></p> -->
|
||||
</div>
|
||||
<div class="col-sm">
|
||||
<ul class="pagination justify-content-sm-end">
|
||||
|
||||
@@ -4,7 +4,7 @@ require_once "inc_confirm_modal.php";
|
||||
|
||||
<?php
|
||||
if (basename(dirname($_SERVER['REQUEST_URI'])) === 'admin') { ?>
|
||||
<p class="text-right font-weight-light">ITFlow <?php echo APP_VERSION ?> · <a target="_blank" href="https://docs.itflow.org">Docs</a> · <a target="_blank" href="https://forum.itflow.org">Forum</a> · <a target="_blank" href="https://services.itflow.org">Services</a></p>
|
||||
<p class="text-right font-weight-light">ITFlow <?= APP_VERSION ?> · <a target="_blank" href="https://docs.itflow.org">Docs</a> · <a target="_blank" href="https://forum.itflow.org">Forum</a> · <a target="_blank" href="https://services.itflow.org">Services</a></p>
|
||||
<br>
|
||||
<?php } ?>
|
||||
<?php
|
||||
@@ -25,7 +25,7 @@ if (basename(dirname($_SERVER['REQUEST_URI'])) === 'guest') { ?>
|
||||
</div> <!-- ./wrapper -->
|
||||
|
||||
<!-- Set the browser window title to the clients name -->
|
||||
<script>document.title = <?php echo json_encode("$tab_title - $page_title"); ?>;</script>
|
||||
<script>document.title = <?= json_encode("$tab_title - $page_title") ?>;</script>
|
||||
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ header("X-Frame-Options: DENY");
|
||||
</head>
|
||||
<body class="
|
||||
hold-transition sidebar-mini layout-fixed layout-navbar-fixed
|
||||
accent-<?php echo escapeHtml($config_theme); ?>
|
||||
accent-<?= escapeHtml($config_theme) ?>
|
||||
<?php if ($user_config_theme_dark) echo 'dark-mode'; ?>
|
||||
">
|
||||
<div class="wrapper text-sm">
|
||||
|
||||
@@ -27,7 +27,7 @@ if (!empty($_SESSION['alert_message'])) {
|
||||
"hideMethod": "fadeOut"
|
||||
}
|
||||
|
||||
toastr["<?php echo $_SESSION['alert_type']; ?>"]("<?php echo $_SESSION['alert_message']; ?>")
|
||||
toastr["<?= $_SESSION['alert_type'] ?>"]("<?= $_SESSION['alert_message'] ?>")
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<!-- Navbar -->
|
||||
<nav class="main-header navbar navbar-expand navbar-<?php echo escapeHtml($config_theme); ?> navbar-dark">
|
||||
<nav class="main-header navbar navbar-expand navbar-<?= escapeHtml($config_theme) ?> navbar-dark">
|
||||
|
||||
<!-- Left navbar links -->
|
||||
<ul class="navbar-nav">
|
||||
@@ -47,9 +47,9 @@
|
||||
|
||||
?>
|
||||
|
||||
<li class="nav-item" title="<?php echo $custom_link_name; ?>">
|
||||
<a href="<?php echo $custom_link_uri; ?>" <?php echo $target; ?> class="nav-link">
|
||||
<i class="fas fa-<?php echo $custom_link_icon; ?> nav-icon"></i>
|
||||
<li class="nav-item" title="<?= $custom_link_name ?>">
|
||||
<a href="<?= $custom_link_uri ?>" <?= $target ?> class="nav-link">
|
||||
<i class="fas fa-<?= $custom_link_icon ?> nav-icon"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
<i class="fas fa-bell"></i>
|
||||
<?php if ($num_notifications) { ?>
|
||||
<span class="badge badge-light badge-pill navbar-badge position-absolute" style="top: 1px; right: 3px;">
|
||||
<?php echo $num_notifications; ?>
|
||||
<?= $num_notifications ?>
|
||||
</span>
|
||||
<?php } ?>
|
||||
</a>
|
||||
@@ -79,11 +79,11 @@
|
||||
<?php if (empty($session_avatar)) { ?>
|
||||
<i class="fas fa-user-circle mr-1"></i>
|
||||
<?php }else{ ?>
|
||||
<img src="<?php echo "/uploads/users/$session_user_id/$session_avatar"; ?>"
|
||||
<img src="<?= "/uploads/users/$session_user_id/$session_avatar" ?>"
|
||||
class="user-image img-circle">
|
||||
<?php } ?>
|
||||
<span
|
||||
class="d-none d-md-inline dropdown-toggle"><?php echo stripslashes(escapeHtml($session_name)); ?></span>
|
||||
class="d-none d-md-inline dropdown-toggle"><?= stripslashes(escapeHtml($session_name)) ?></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
|
||||
<!-- User image -->
|
||||
@@ -92,11 +92,11 @@
|
||||
<i class="fas fa-user-circle fa-6x"></i>
|
||||
<?php }else{ ?>
|
||||
|
||||
<img src="<?php echo "/uploads/users/$session_user_id/$session_avatar"; ?>" class="img-circle">
|
||||
<img src="<?= "/uploads/users/$session_user_id/$session_avatar" ?>" class="img-circle">
|
||||
<?php } ?>
|
||||
<p>
|
||||
<?php echo stripslashes(escapeHtml($session_name)); ?>
|
||||
<small><?php echo escapeHtml($session_user_role_display); ?></small>
|
||||
<?= stripslashes(escapeHtml($session_name)) ?>
|
||||
<small><?= escapeHtml($session_user_role_display) ?></small>
|
||||
</p>
|
||||
</li>
|
||||
<!-- Menu Footer-->
|
||||
|
||||
Reference in New Issue
Block a user