Commit 3f29d81a authored by Andrej Vyšný's avatar Andrej Vyšný

no message

parent 47c5303f
framework:
translator:
paths:
- '%kernel.project_dir%/src/Plugins/ExamplePlugin/Resources/translations'
\ No newline at end of file
<?php
namespace App\Plugins\ExamplePlugin\Controller\Install;
use App\Controller\Admin\Plugins\PluginInstaller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
/**
* Class InstallController
* @package App\Plugins\ExamplePlugin\Controller\Install
* @IsGranted("ROLE_ADMIN")
*/
class InstallController extends PluginInstaller
{
/**
* @return mixed|void
* @throws \Exception
*/
public function installAction()
{
/* Single Link in aside menu */
$this->setSingleMenu('ExamplePlugin', 'your_route','<i class="your icon"></i>');
/* Collapse Links in aside menu */
$this->setCollapseMenu('ExamplePlugin','<i class="your icon"></i>');
$this->setCollapseMenuRoute('Name','your_route');
}
/**
* @return mixed|void
* @throws \Exception
*/
public function reinstallAction()
{
$this->deleteAction();
$this->installAction();
}
/**
* @return mixed|void
* @throws \Exception
*/
public function deleteAction()
{
$this->removeMenu();
}
}
<?php
namespace App\Plugins\ExamplePlugin;
use App\Controller\Admin\Plugins\PluginsMeta;
class Meta extends PluginsMeta{
const PLUGIN_NAME = "Example Plugin";
const PLUGIN_AUTHOR = "Author";
const PLUGIN_AUTHOR_WEBSITE = "Website";
const PLUGIN_DESCRIPTION = "Description";
const PLUGIN_VERSION = "1.0.0";
const PLUGIN_DOCUMENTATION_WEBSITE = "Documentation website";
const PLUGIN_SLUG = "ExamplePlugin/Resources/views/";
}
{% extends 'admin/base.html.twig' %}
{% block body %}
<div class="container pt-lg-none pt-5 content-box">
<div class="row my-4">
<div class="col-md-12 d-flex align-items-center justify-content-between">
<h2 class="main">
<!-- begin:: HEADING TEXT -->
Your Heading
<!-- end:: HEADING TEXT -->
</h2>
<!-- begin:: SEARCH BAR -->
<div class="align-self-lg-start d-none d-lg-flex search-items">
<label>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"></rect>
<path d="M14.2928932,16.7071068 C13.9023689,16.3165825 13.9023689,15.6834175 14.2928932,15.2928932 C14.6834175,14.9023689 15.3165825,14.9023689 15.7071068,15.2928932 L19.7071068,19.2928932 C20.0976311,19.6834175 20.0976311,20.3165825 19.7071068,20.7071068 C19.3165825,21.0976311 18.6834175,21.0976311 18.2928932,20.7071068 L14.2928932,16.7071068 Z" fill="#000000" fill-rule="nonzero" opacity="0.3"></path>
<path d="M11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 Z M11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 C14.8659932,4 18,7.13400675 18,11 C18,14.8659932 14.8659932,18 11,18 Z" fill="#000000" fill-rule="nonzero"></path>
</g>
</svg>
<input type="text" class="form-control help-center" placeholder="Search">
</label>
</div>
<!-- end:: SEARCH BAR -->
<div>
<!-- begin:: BUTTON SECTION -->
<a href="#" class="btn btn-primary animatedLink-scaleUp">Your Btn</a>
<!-- end:: BUTTON SECTION -->
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-body overflow-auto">
<!-- begin:: YOUR CARD CONTENT -->
Your Content
<!-- end:: YOUR CARD CONTENT -->
</div>
</div>
</div>
</div>
</div>
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment