Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

80 Commits

Folders and files

Repository files navigation

Elevator Frontend (PHP)

This is a fully functioning front end for Elevator written in PHP powered by Lay

PHP Version: 8.1 >

Install

Update your composer.json to include the github repo

 "repositories": [
    {
      "type": "vcs",
      "url": "[email protected]:osaitech/elevator-php-frontend.git"
    }
  ],

The run this command on your terminal

composer require osaitech/elevator-frontend:dev-main

Copy The Frontend

php vendor/osaitech/elevator-frontend/init.php Dashboard

You can swap Dashboard for another domain.

If you want to overwrite the existing folders and/or files, pass the --force tag to the code above.

To overwrite the layout files, pass the --overwrite-layout tag to the code above.

Updating the Layout

Update the body.inc file to add new menus:

$layout = \ElevatorFrontend\PillarDash::layout();

$layout::pre_blog_menu(
     Menu::make(
        "New Menu",
        "ki-message-edit",
        true,
        [
            "name" => "Published Articles",
            "url" => "new-menu/new-url",
            "title" => "This page consists of all published articles",
        ],
    ),
);

$layout::render();

The End

Customizing

You can add your own menus using the pre_blog_menu and post_blog_menu methods.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages