Changed ModulesAdmin dir into AdminIncludes - Updated debug bar module
This commit is contained in:
@@ -42,7 +42,7 @@ abstract class BaseModuleGenerate extends ContainerAwareCommand
|
||||
'Config',
|
||||
'Model',
|
||||
'Loop',
|
||||
'AdminModule'
|
||||
'AdminIncludes'
|
||||
);
|
||||
|
||||
protected function verifyExistingModule()
|
||||
|
||||
@@ -47,7 +47,7 @@ class Module extends AbstractSmartyPlugin
|
||||
|
||||
foreach ($modules as $module) {
|
||||
|
||||
$file = THELIA_MODULE_DIR . "/". ucfirst($module->getCode()) . "/ModuleAdmin/".$location.".html";
|
||||
$file = THELIA_MODULE_DIR . "/". ucfirst($module->getCode()) . "/AdminIncludes/".$location.".html";
|
||||
if(file_exists($file)) {
|
||||
$content .= file_get_contents($file);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
{debugbar_renderjs}
|
||||
{debugbar_renderresult}
|
||||
3
local/modules/TheliaDebugBar/AdminIncludes/head_css.html
Normal file
3
local/modules/TheliaDebugBar/AdminIncludes/head_css.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{* Include debug bar smarty calls *}
|
||||
|
||||
{debugbar_rendercss}
|
||||
@@ -26,8 +26,6 @@
|
||||
<link rel="stylesheet" href="{$asset_url}">
|
||||
{/stylesheets}
|
||||
|
||||
{debugbar_rendercss}
|
||||
|
||||
{block name="after-bootstrap-css"}{/block}
|
||||
|
||||
{* -- Admin CSS section ------------------------------------------------- *}
|
||||
@@ -245,11 +243,6 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
{debugbar_renderjs}
|
||||
{debugbar_renderresult}
|
||||
|
||||
{block name="after-javascript-include"}{/block}
|
||||
|
||||
{javascripts file='assets/js/bootstrap/bootstrap.js'}
|
||||
|
||||
@@ -165,12 +165,12 @@
|
||||
</tr>
|
||||
{/loop}
|
||||
|
||||
{* {loop type="auth" name="pcc8" role="ADMIN" resource="admin.configuration.system-logs" access="VIEW"}
|
||||
{loop type="auth" name="pcc8" role="ADMIN" resource="admin.configuration.system-logs" access="VIEW"}
|
||||
<tr>
|
||||
<td><a href="{url path='/admin/configuration/system_logs'}">{intl l='System logs'}</a></td>
|
||||
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/system_logs'}"><i class="glyphicon glyphicon-edit"></i></a></td>
|
||||
</tr>
|
||||
{/loop}*}
|
||||
{/loop}
|
||||
|
||||
{module_include location='system_configuration_bottom'}
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user