Scroll down when the plugin is activated
This commit is contained in:
parent
321225c6b7
commit
be5ad4aee1
|
@ -26,4 +26,4 @@ if ($Login->role()!=='admin') {
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
$pluginClassName = $layout['parameters'];
|
$pluginClassName = $layout['parameters'];
|
||||||
activatePlugin($pluginClassName);
|
activatePlugin($pluginClassName);
|
||||||
Redirect::page('plugins');
|
Redirect::page('plugins#'.$pluginClassName);
|
||||||
|
|
|
@ -17,26 +17,22 @@ echo '
|
||||||
<tbody>
|
<tbody>
|
||||||
';
|
';
|
||||||
|
|
||||||
foreach($plugins['all'] as $Plugin)
|
foreach ($plugins['all'] as $Plugin) {
|
||||||
{
|
echo '<tr id="'.$Plugin->className().'" '.($Plugin->installed()?'class="plugin-installed"':'class="plugin-notInstalled"').'>
|
||||||
echo '<tr '.($Plugin->installed()?'class="plugin-installed"':'class="plugin-notInstalled"').'>
|
|
||||||
<td>
|
<td>
|
||||||
<div class="plugin-name">'.$Plugin->name().'</div>
|
<div class="plugin-name">'.$Plugin->name().'</div>
|
||||||
<div class="plugin-links">';
|
<div class="plugin-links">';
|
||||||
|
|
||||||
if($Plugin->installed()) {
|
if ($Plugin->installed()) {
|
||||||
if(method_exists($Plugin, 'form')) {
|
if (method_exists($Plugin, 'form')) {
|
||||||
echo '<a class="configure" href="'.HTML_PATH_ADMIN_ROOT.'configure-plugin/'.$Plugin->className().'">'.$L->g('Settings').'</a>';
|
echo '<a class="configure" href="'.HTML_PATH_ADMIN_ROOT.'configure-plugin/'.$Plugin->className().'">'.$L->g('Settings').'</a>';
|
||||||
echo '<span class="separator"> | </span>';
|
echo '<span class="separator"> | </span>';
|
||||||
}
|
}
|
||||||
echo '<a class="uninstall" href="'.HTML_PATH_ADMIN_ROOT.'uninstall-plugin/'.$Plugin->className().'">'.$L->g('Deactivate').'</a>';
|
echo '<a class="uninstall" href="'.HTML_PATH_ADMIN_ROOT.'uninstall-plugin/'.$Plugin->className().'">'.$L->g('Deactivate').'</a>';
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
echo '<a class="install" href="'.HTML_PATH_ADMIN_ROOT.'install-plugin/'.$Plugin->className().'">'.$L->g('Activate').'</a>';
|
echo '<a class="install" href="'.HTML_PATH_ADMIN_ROOT.'install-plugin/'.$Plugin->className().'">'.$L->g('Activate').'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"plugin-data": {
|
||||||
|
"name": "Static Pages",
|
||||||
|
"description": "Menü der statischen Seiten."
|
||||||
|
},
|
||||||
|
"home-link": "Hauptseite",
|
||||||
|
"show-the-home-link-on-the-sidebar": "Hauptseite im Menü zeigen."
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"plugin-data": {
|
||||||
|
"name": "Static Pages",
|
||||||
|
"description": "Menü der statischen Seiten."
|
||||||
|
},
|
||||||
|
"home-link": "Hauptseite",
|
||||||
|
"show-the-home-link-on-the-sidebar": "Hauptseite im Menü zeigen."
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"plugin-data":
|
||||||
|
{
|
||||||
|
"name": "Páginas Estáticas",
|
||||||
|
"description": "Cree su propio menú de navegación con páginas estáticas."
|
||||||
|
},
|
||||||
|
"home-link": "Inicio enlace",
|
||||||
|
"show-the-home-link-on-the-sidebar": "Mostrar el enlace de inicio en la barra lateral."
|
||||||
|
}
|
|
@ -27,6 +27,7 @@ class pluginStaticPages extends Plugin {
|
||||||
$html .= '<select name="homeLink">';
|
$html .= '<select name="homeLink">';
|
||||||
$html .= '<option value="true" '.($this->getValue('homeLink')===true?'selected':'').'>'.$Language->get('Enabled').'</option>';
|
$html .= '<option value="true" '.($this->getValue('homeLink')===true?'selected':'').'>'.$Language->get('Enabled').'</option>';
|
||||||
$html .= '<option value="false" '.($this->getValue('homeLink')===false?'selected':'').'>'.$Language->get('Disabled').'</option>';
|
$html .= '<option value="false" '.($this->getValue('homeLink')===false?'selected':'').'>'.$Language->get('Disabled').'</option>';
|
||||||
|
$html .= '<span class="tip">'.$Language->get('show-the-home-link-on-the-sidebar').'</span>';
|
||||||
$html .= '</select>';
|
$html .= '</select>';
|
||||||
$html .= '</div>';
|
$html .= '</div>';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue