remove multiples descriptions in plugins, fix for #1382

This commit is contained in:
Diego Najar 2021-11-11 13:40:33 +01:00
parent 642d07151e
commit 65afabefd8
7 changed files with 7 additions and 35 deletions

View file

@ -35,11 +35,7 @@ class pluginAPI extends Plugin {
{
global $L;
$html = '<div class="alert alert-primary" role="alert">';
$html .= $this->description();
$html .= '</div>';
$html .= '<div>';
$html = '<div>';
$html .= '<label>'.$L->get('URL').'</label>';
$html .= '<p class="text-muted">'.DOMAIN_BASE.'api/{endpoint}</p>';
$html .= '</div>';

View file

@ -61,11 +61,7 @@ class pluginLinks extends Plugin {
{
global $L;
$html = '<div class="alert alert-primary" role="alert">';
$html .= $this->description();
$html .= '</div>';
$html .= '<div>';
$html = '<div>';
$html .= '<label>'.$L->get('Label').'</label>';
$html .= '<input name="label" class="form-control" type="text" value="'.$this->getValue('label').'">';
$html .= '<span class="tip">'.$L->get('This title is almost always used in the sidebar of the site').'</span>';

View file

@ -15,11 +15,7 @@ class pluginSitemap extends Plugin {
{
global $L;
$html = '<div class="alert alert-primary" role="alert">';
$html .= $this->description();
$html .= '</div>';
$html .= '<div>';
$html = '<div>';
$html .= '<label>'.$L->get('Sitemap URL').'</label>';
$html .= '<a href="'.HTML::sitemapUrl().'">'.HTML::sitemapUrl().'</a>';
$html .= '</div>';

View file

@ -16,11 +16,7 @@ class pluginStaticPages extends Plugin {
{
global $L;
$html = '<div class="alert alert-primary" role="alert">';
$html .= $this->description();
$html .= '</div>';
$html .= '<div>';
$html = '<div>';
$html .= '<label>'.$L->get('Label').'</label>';
$html .= '<input id="jslabel" name="label" type="text" value="'.$this->getValue('label').'">';
$html .= '<span class="tip">'.$L->get('This title is almost always used in the sidebar of the site').'</span>';

View file

@ -13,11 +13,7 @@ class pluginTags extends Plugin {
{
global $L;
$html = '<div class="alert alert-primary" role="alert">';
$html .= $this->description();
$html .= '</div>';
$html .= '<div>';
$html = '<div>';
$html .= '<label>'.$L->get('Label').'</label>';
$html .= '<input id="jslabel" name="label" type="text" value="'.$this->getValue('label').'">';
$html .= '<span class="tip">'.$L->get('This title is almost always used in the sidebar of the site').'</span>';

View file

@ -14,11 +14,7 @@ class pluginTwitterCards extends Plugin {
{
global $L;
$html = '<div class="alert alert-primary" role="alert">';
$html .= $this->description();
$html .= '</div>';
$html .= '<div>';
$html = '<div>';
$html .= '<label>'.$L->get('Default image').'</label>';
$html .= '<input id="jsdefaultImage" name="defaultImage" type="text" value="'.$this->getValue('defaultImage').'" placeholder="https://">';
$html .= '</div>';

View file

@ -14,11 +14,7 @@ class pluginVersion extends Plugin {
{
global $L;
$html = '<div class="alert alert-primary" role="alert">';
$html .= $this->description();
$html .= '</div>';
$html .= '<div>';
$html = '<div>';
$html .= '<label>'.$L->get('Show current version in the sidebar').'</label>';
$html .= '<select name="showCurrentVersion">';
$html .= '<option value="true" '.($this->getValue('showCurrentVersion')===true?'selected':'').'>'.$L->get('Enabled').'</option>';