diff --git a/src/application/controller/common/footer/guest.php b/src/application/controller/common/footer/guest.php new file mode 100644 index 0000000..2871cf9 --- /dev/null +++ b/src/application/controller/common/footer/guest.php @@ -0,0 +1,6 @@ +getTotal(); +$blocksTotal = $_modelBlock->getTotal(); + +require(PROJECT_DIR . '/application/view/common/footer/guest.phtml'); \ No newline at end of file diff --git a/src/application/controller/common/footer.php b/src/application/controller/common/footer/user.php similarity index 56% rename from src/application/controller/common/footer.php rename to src/application/controller/common/footer/user.php index e3fe90e..8fdb33d 100644 --- a/src/application/controller/common/footer.php +++ b/src/application/controller/common/footer/user.php @@ -3,4 +3,4 @@ $usersTotal = $_modelUser->getTotal(); $blocksTotal = $_modelBlock->getTotal(); -require(PROJECT_DIR . '/application/view/common/footer.phtml'); \ No newline at end of file +require(PROJECT_DIR . '/application/view/common/footer/user.phtml'); \ No newline at end of file diff --git a/src/application/controller/common/header.php b/src/application/controller/common/header.php deleted file mode 100644 index 5eb173f..0000000 --- a/src/application/controller/common/header.php +++ /dev/null @@ -1,3 +0,0 @@ - +
++ + +
\ No newline at end of file diff --git a/src/application/view/common/header.phtml b/src/application/view/common/header/guest.phtml similarity index 100% rename from src/application/view/common/header.phtml rename to src/application/view/common/header/guest.phtml diff --git a/src/application/view/common/header/user.phtml b/src/application/view/common/header/user.phtml new file mode 100644 index 0000000..9524fa9 --- /dev/null +++ b/src/application/view/common/header/user.phtml @@ -0,0 +1,29 @@ + + +
+ +
+ + + + + + + + +