Changed ModulesAdmin dir into AdminIncludes - Updated debug bar module
This commit is contained in:
@@ -42,7 +42,7 @@ abstract class BaseModuleGenerate extends ContainerAwareCommand
|
|||||||
'Config',
|
'Config',
|
||||||
'Model',
|
'Model',
|
||||||
'Loop',
|
'Loop',
|
||||||
'AdminModule'
|
'AdminIncludes'
|
||||||
);
|
);
|
||||||
|
|
||||||
protected function verifyExistingModule()
|
protected function verifyExistingModule()
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class Module extends AbstractSmartyPlugin
|
|||||||
|
|
||||||
foreach ($modules as $module) {
|
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)) {
|
if(file_exists($file)) {
|
||||||
$content .= file_get_contents($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}">
|
<link rel="stylesheet" href="{$asset_url}">
|
||||||
{/stylesheets}
|
{/stylesheets}
|
||||||
|
|
||||||
{debugbar_rendercss}
|
|
||||||
|
|
||||||
{block name="after-bootstrap-css"}{/block}
|
{block name="after-bootstrap-css"}{/block}
|
||||||
|
|
||||||
{* -- Admin CSS section ------------------------------------------------- *}
|
{* -- Admin CSS section ------------------------------------------------- *}
|
||||||
@@ -245,11 +243,6 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{debugbar_renderjs}
|
|
||||||
{debugbar_renderresult}
|
|
||||||
|
|
||||||
{block name="after-javascript-include"}{/block}
|
{block name="after-javascript-include"}{/block}
|
||||||
|
|
||||||
{javascripts file='assets/js/bootstrap/bootstrap.js'}
|
{javascripts file='assets/js/bootstrap/bootstrap.js'}
|
||||||
|
|||||||
@@ -165,12 +165,12 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{/loop}
|
{/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>
|
<tr>
|
||||||
<td><a href="{url path='/admin/configuration/system_logs'}">{intl l='System logs'}</a></td>
|
<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>
|
<td><a class="btn btn-default btn-xs" href="{url path='/admin/configuration/system_logs'}"><i class="glyphicon glyphicon-edit"></i></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
{/loop}*}
|
{/loop}
|
||||||
|
|
||||||
{module_include location='system_configuration_bottom'}
|
{module_include location='system_configuration_bottom'}
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user