Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vjousse/doboxieadmingeneratorthemeplugin
symfony admin generator theme based on Boxie theme by gwaihir http://themeforest.net/item/boxie-admin/74076
https://github.com/vjousse/doboxieadmingeneratorthemeplugin
Last synced: 3 months ago
JSON representation
symfony admin generator theme based on Boxie theme by gwaihir http://themeforest.net/item/boxie-admin/74076
- Host: GitHub
- URL: https://github.com/vjousse/doboxieadmingeneratorthemeplugin
- Owner: vjousse
- License: mit
- Created: 2010-05-07T07:59:47.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-12-07T14:27:51.000Z (about 14 years ago)
- Last Synced: 2024-10-04T16:51:48.787Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 243 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
doBoxieAdminGeneratorThemePlugin
========================================================Overview
--------This is a symfony admin generator theme based on the [Boxie theme by gwaihir](http://themeforest.net/item/boxie-admin/74076)
Requirements
------------You'll have to buy the theme on Theme Forest to be able to use this plugin.
It's cheap and it's good quality, so don't hesitate ! You can buy it at [Theme Forest](http://themeforest.net/item/boxie-admin/74076)Installation
------------Enable it in `config/ProjectConfiguration.class.php`
[php]
class ProjectConfiguration extends sfProjectConfiguration
{
public function setup()
{
$this->enablePlugins(array(
'sfDoctrinePlugin',
'doBoxieAdminGeneratorThemePlugin',
'...'
));
}
}Publish your assets:
$ php symfony plugin:publish-assets
Copying boxie files
-------------------Put the content of the boxie css/ folder into a newly created dir web/doBoxieAdminGeneratorThemePlugin/css/boxie (you should have a css per color and an image directory)
Put the ddpng.js file into web/doBoxieAdminGeneratorThemePlugin/js/
You'll need jQuery for this theme, don't forget to include it somewhere in a view.ymlGlobal Layout
-------------I've provided two examples of layout in doBoxieAdminGeneratorThemePlugin/layout.
Global is the layout for your application, login is the layout for the login page.To add the layout to your login page when you're using sfDoctrineGuardPlugin, copy doBoxieAdminGeneratorThemePlugin/layout/login.php to apps/backend/templates/.
Then create apps/backend/sfGuardAuth/ and apps/backend/sfGuardAuth/config/ directories and put a view.yml inside the last one:[yml]
# in myproject/apps/backend/sfGuardAuth/config/view.yml
all:
layout: login
stylesheets:
- /doBoxieAdminGeneratorThemePlugin/css/boxie/blue.cssJust do the same for the global layout by changing apps/backend/config/view.yml
Be sure to include the boxie.js file in your app view.yml. For example, here is mine:
[yml]
# in myproject/apps/backend/config/view.ymldefault:
http_metas:
content-type: text/htmlstylesheets:
- back.css
- /doBoxieAdminGeneratorThemePlugin/css/boxie/blue.css
javascripts:
- jquery-1.4.2.min.js
- /doBoxieAdminGeneratorThemePlugin/js/boxie.jshas_layout: true
layout: globalAdmin generator usage
---------------------You'll have to enable the theme in your generator.yml. You have to change the
theme value to boxieAdmin and the css value to the css you want (depending on the color).
For example, you could have a file like this:[yml]
# in myproject/apps/frontend/modules/mymodule/config/generator.yml
generator:
class: sfDoctrineGenerator
param:
model_class: sfGuardUser
theme: boxieAdmin
non_verbose_templates: true
with_show: false
singular: ~
plural: ~
route_prefix: sf_guard_user
with_doctrine_route: true
css: /doBoxieAdminGeneratorThemePlugin/css/boxie/blue.css....
Feel free to modify and contribute !