]> git.mxchange.org Git - friendica.git/commitdiff
some plugins left over (#5369)
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Thu, 12 Jul 2018 17:18:45 +0000 (19:18 +0200)
committerHypolite Petovan <mrpetovan@eml.cc>
Thu, 12 Jul 2018 17:18:45 +0000 (13:18 -0400)
* tinymce is not used anymore, we can delete the cuson CSS file

* mv the plugins_details template to addon_details

* renamed template called from admin panel

* some CSS classes that should be addon where still plugin

* Insert a warning into the generated quattro CSS files

14 files changed:
mod/admin.php
view/custom_tinymce.css [deleted file]
view/templates/admin/addon_details.tpl [new file with mode: 0644]
view/templates/admin/addons.tpl
view/templates/admin/plugins_details.tpl [deleted file]
view/theme/frio/css/style.css
view/theme/frio/templates/admin/addons.tpl
view/theme/quattro/dark/Makefile
view/theme/quattro/dark/style.css
view/theme/quattro/green/Makefile
view/theme/quattro/green/style.css
view/theme/quattro/lilac/Makefile
view/theme/quattro/lilac/style.css
view/theme/quattro/quattro.less

index 4d4c065010b32ffdcbde7f8933222dd6f2dff1c3..5f8e57050f1391ca9f4231570aa063f41271f7dd 100644 (file)
@@ -1937,7 +1937,7 @@ function admin_page_addons(App $a)
                        $func($a, $admin_form);
                }
 
-               $t = get_markup_template('admin/plugins_details.tpl');
+               $t = get_markup_template('admin/addon_details.tpl');
 
                return replace_macros($t, [
                        '$title' => L10n::t('Administration'),
@@ -2208,7 +2208,7 @@ function admin_page_themes(App $a)
                        $screenshot = null;
                }
 
-               $t = get_markup_template('admin/plugins_details.tpl');
+               $t = get_markup_template('admin/addon_details.tpl');
                return replace_macros($t, [
                        '$title' => L10n::t('Administration'),
                        '$page' => L10n::t('Themes'),
diff --git a/view/custom_tinymce.css b/view/custom_tinymce.css
deleted file mode 100644 (file)
index 7932653..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; margin:8px;}
-body {background:#FFF;}
-body.mceForceColors {background:#FFF; color:#000;}
-h1 {font-size: 2em}
-h2 {font-size: 1.5em}
-h3 {font-size: 1.17em}
-h4 {font-size: 1em}
-h5 {font-size: .83em}
-h6 {font-size: .75em}
-.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;}
-a.mceItemAnchor {display:inline-block; width:11px !important; height:11px  !important; background:url(img/items.gif) no-repeat 0 0;}
-td.mceSelected, th.mceSelected {background-color:#3399ff !important}
-img {border:0;}
-table {cursor:default}
-table td, table th {cursor:text}
-ins {border-bottom:1px solid green; text-decoration: none; color:green}
-del {color:red; text-decoration:line-through}
-cite {border-bottom:1px dashed blue}
-acronym {border-bottom:1px dotted #CCC; cursor:help}
-abbr {border-bottom:1px dashed #CCC; cursor:help}
-
-/* IE */
-* html body {
-scrollbar-3dlight-color:#F0F0EE;
-scrollbar-arrow-color:#676662;
-scrollbar-base-color:#F0F0EE;
-scrollbar-darkshadow-color:#DDD;
-scrollbar-face-color:#E0E0DD;
-scrollbar-highlight-color:#F0F0EE;
-scrollbar-shadow-color:#F0F0EE;
-scrollbar-track-color:#F5F5F5;
-}
-
-img:-moz-broken {-moz-force-broken-image-icon:1; width:24px; height:24px}
-font[face=mceinline] {font-family:inherit !important}
-
-
-object {
-       display: block; width: 400px; 
-       background: #cccccc url(../images/plugin.png) no-repeat center center;
-}
diff --git a/view/templates/admin/addon_details.tpl b/view/templates/admin/addon_details.tpl
new file mode 100644 (file)
index 0000000..fb908b7
--- /dev/null
@@ -0,0 +1,37 @@
+
+<div id='adminpage'>
+       <h1>{{$title}} - {{$page}}</h1>
+
+       <p><span class='toggleaddon icon {{$status}}'></span> {{$info.name}} - {{$info.version}} : <a href="{{$baseurl}}/admin/{{$function}}/{{$addon}}/?a=t&amp;t={{$form_security_token}}">{{$action}}</a></p>
+       <p>{{$info.description}}</p>
+
+       <p class="author">{{$str_author}}
+       {{foreach $info.author as $a name=authors}}
+               {{if $a.link}}<a href="{{$a.link}}">{{$a.name}}</a>{{else}}{{$a.name}}{{/if}}{{if $smarty.foreach.authors.last}}{{else}}, {{/if}}
+       {{/foreach}}
+       </p>
+
+       <p class="maintainer">{{$str_maintainer}}
+       {{foreach $info.maintainer as $a name=maintainers}}
+               {{if $a.link}}<a href="{{$a.link}}">{{$a.name}}</a>{{else}}{{$a.name}}{{/if}}{{if $smarty.foreach.maintainers.last}}{{else}}, {{/if}}
+       {{/foreach}}
+       </p>
+
+       {{if $screenshot}}
+       <a href="{{$screenshot.0}}" class='screenshot'><img src="{{$screenshot.0}}" alt="{{$screenshot.1}}" /></a>
+       {{/if}}
+
+       {{if $admin_form}}
+       <h3>{{$settings}}</h3>
+       <form method="post" action="{{$baseurl}}/admin/{{$function}}/{{$addon}}/">
+               {{$admin_form}}
+       </form>
+       {{/if}}
+
+       {{if $readme}}
+       <h3>Readme</h3>
+       <div id="addon_readme">
+               {{$readme}}
+       </div>
+       {{/if}}
+</div>
index 297e132e00748c196eff7a61d5f43ed38481c348..93266bf1455fe28ad41b62762e6016e025c41609 100644 (file)
@@ -7,10 +7,10 @@
                    </div>
                {{else}}
                <a class="btn" href="{{$baseurl}}/admin/{{$function}}?a=r&amp;t={{$form_security_token}}">{{$reload}}</a>
-               <ul id='pluginslist'>
+               <ul id='addonslist'>
                {{foreach $addons as $p}}
-                       <li class='plugin {{$p.1}}'>
-                               <a class='toggleplugin' href='{{$baseurl}}/admin/{{$function}}/{{$p.0}}?a=t&amp;t={{$form_security_token}}' title="{{if $p.1==on}}Disable{{else}}Enable{{/if}}" ><span class='icon {{$p.1}}'></span></a>
+                       <li class='addon {{$p.1}}'>
+                               <a class='toggleaddon' href='{{$baseurl}}/admin/{{$function}}/{{$p.0}}?a=t&amp;t={{$form_security_token}}' title="{{if $p.1==on}}Disable{{else}}Enable{{/if}}" ><span class='icon {{$p.1}}'></span></a>
                                <a href='{{$baseurl}}/admin/{{$function}}/{{$p.0}}'><span class='name'>{{$p.2.name}}</span></a> - <span class="version">{{$p.2.version}}</span>
                                {{if $p.2.experimental}} {{$experimental}} {{/if}}{{if $p.2.unsupported}} {{$unsupported}} {{/if}}
 
diff --git a/view/templates/admin/plugins_details.tpl b/view/templates/admin/plugins_details.tpl
deleted file mode 100644 (file)
index 05e3e8a..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-
-<div id='adminpage'>
-       <h1>{{$title}} - {{$page}}</h1>
-
-       <p><span class='toggleplugin icon {{$status}}'></span> {{$info.name}} - {{$info.version}} : <a href="{{$baseurl}}/admin/{{$function}}/{{$addon}}/?a=t&amp;t={{$form_security_token}}">{{$action}}</a></p>
-       <p>{{$info.description}}</p>
-
-       <p class="author">{{$str_author}}
-       {{foreach $info.author as $a name=authors}}
-               {{if $a.link}}<a href="{{$a.link}}">{{$a.name}}</a>{{else}}{{$a.name}}{{/if}}{{if $smarty.foreach.authors.last}}{{else}}, {{/if}}
-       {{/foreach}}
-       </p>
-
-       <p class="maintainer">{{$str_maintainer}}
-       {{foreach $info.maintainer as $a name=maintainers}}
-               {{if $a.link}}<a href="{{$a.link}}">{{$a.name}}</a>{{else}}{{$a.name}}{{/if}}{{if $smarty.foreach.maintainers.last}}{{else}}, {{/if}}
-       {{/foreach}}
-       </p>
-
-       {{if $screenshot}}
-       <a href="{{$screenshot.0}}" class='screenshot'><img src="{{$screenshot.0}}" alt="{{$screenshot.1}}" /></a>
-       {{/if}}
-
-       {{if $admin_form}}
-       <h3>{{$settings}}</h3>
-       <form method="post" action="{{$baseurl}}/admin/{{$function}}/{{$addon}}/">
-               {{$admin_form}}
-       </form>
-       {{/if}}
-
-       {{if $readme}}
-       <h3>Readme</h3>
-       <div id="plugin_readme">
-               {{$readme}}
-       </div>
-       {{/if}}
-</div>
index 7b55bfd993c391705df148ca81efa3a809826cd7..055a6611179a55c4b3a97a7daae1c64aaafede4b 100644 (file)
@@ -2948,7 +2948,7 @@ section.help-content-wrapper li {
 #admin-summary-wrapper {
     padding-top: 10px;
 }
-#adminpage ul#pluginslist, li.plugin {
+#adminpage ul#addonslist, li.addon {
     list-style: none;
 }
 #adminpage li .icon {
@@ -2989,7 +2989,7 @@ section.help-content-wrapper li {
     font-size: 11px;
     color: #555555;
 }
-#adminpage .plugin .desc {
+#adminpage .addon .desc {
     padding-left: 10px;
 }
 .adminpage .admin-settings-action-link,
index 659149af86342370fd2e0f2d3c214386c6066a36..220abdc2c4a0a6eeaa32bef53a91712b15478feb 100644 (file)
@@ -7,11 +7,11 @@
                    </div>
                {{else}}
                <a class="btn" href="{{$baseurl}}/admin/{{$function}}?a=r&amp;t={{$form_security_token}}">{{$reload}}</a>
-               <ul id='pluginslist'>
+               <ul id='addonslist'>
                {{foreach $addons as $p}}
-                       <li class="plugin {{$p.1}}">
+                       <li class="addon {{$p.1}}">
                                <span class="offset-anchor" id="{{$p.0}}"></span>
-                               <a class='toggleplugin' href='{{$baseurl}}/admin/{{$function}}/{{$p.0}}?a=t&amp;t={{$form_security_token}}#{{$p.0}}' title="{{if $p.1==on}}Disable{{else}}Enable{{/if}}" ><span class='icon {{$p.1}}'></span></a>
+                               <a class='toggleaddon' href='{{$baseurl}}/admin/{{$function}}/{{$p.0}}?a=t&amp;t={{$form_security_token}}#{{$p.0}}' title="{{if $p.1==on}}Disable{{else}}Enable{{/if}}" ><span class='icon {{$p.1}}'></span></a>
                                <a href='{{$baseurl}}/admin/{{$function}}/{{$p.0}}'><span class='name'>{{$p.2.name}}</span></a> - <span class="version">{{$p.2.version}}</span>
                                {{if $p.2.experimental}} {{$experimental}} {{/if}}{{if $p.2.unsupported}} {{$unsupported}} {{/if}}
                                <div class='desc'>{{$p.2.description}}</div>
index 989da60c726f3456f6a36267add450a29bcfbf10..c9b77b446ab1434710ad0f8995f705b66ff7dd19 100644 (file)
@@ -1,4 +1,5 @@
 ##
 
 style.css : style.less colors.less ../icons.less ../quattro.less
-       lessc style.less > style.css
+       echo "/* THIS FILE IS GENERATED FROM THE less SOURCE DO NOT EDIT MANUALLY */" > style.css
+       lessc style.less >> style.css
index 9d63717b12be214cf586dd6cc76d53754c2dd08d..87dc3720239377c481f4ac8dc6b1e941c1b53d58 100644 (file)
@@ -1,3 +1,4 @@
+/* THIS FILE IS GENERATED FROM THE less SOURCE DO NOT EDIT MANUALLY */
 /**
  * Fabio Comuni <http://kirgroup.com/profile/fabrixxm>
  **/
@@ -2514,11 +2515,11 @@ footer {
   clear: left;
   text-align: right;
 }
-#adminpage #pluginslist {
+#adminpage #addonslist {
   margin: 0;
   padding: 0;
 }
-#adminpage .plugin {
+#adminpage .addon {
   list-style: none;
   display: block;
   border: 1px solid #888888;
@@ -2526,10 +2527,10 @@ footer {
   margin-bottom: 5px;
   clear: left;
 }
-#adminpage .plugin desc {
+#adminpage .addon desc {
   margin-left: 2.5em;
 }
-#adminpage .toggleplugin {
+#adminpage .toggleaddon {
   float: left;
   margin-right: 1em;
 }
index 989da60c726f3456f6a36267add450a29bcfbf10..c9b77b446ab1434710ad0f8995f705b66ff7dd19 100644 (file)
@@ -1,4 +1,5 @@
 ##
 
 style.css : style.less colors.less ../icons.less ../quattro.less
-       lessc style.less > style.css
+       echo "/* THIS FILE IS GENERATED FROM THE less SOURCE DO NOT EDIT MANUALLY */" > style.css
+       lessc style.less >> style.css
index daaaca9cfc4c7f79cde11cf729b04e978dd9564f..55cb32556b44ecefbd3a108ac3be6adf98277c78 100644 (file)
@@ -1,3 +1,4 @@
+/* THIS FILE IS GENERATED FROM THE less SOURCE DO NOT EDIT MANUALLY */
 /**
  * Fabio Comuni <http://kirgroup.com/profile/fabrixxm>
  **/
@@ -2514,11 +2515,11 @@ footer {
   clear: left;
   text-align: right;
 }
-#adminpage #pluginslist {
+#adminpage #addonslist {
   margin: 0;
   padding: 0;
 }
-#adminpage .plugin {
+#adminpage .addon {
   list-style: none;
   display: block;
   border: 1px solid #888888;
@@ -2526,10 +2527,10 @@ footer {
   margin-bottom: 5px;
   clear: left;
 }
-#adminpage .plugin desc {
+#adminpage .addon desc {
   margin-left: 2.5em;
 }
-#adminpage .toggleplugin {
+#adminpage .toggleaddon {
   float: left;
   margin-right: 1em;
 }
index 989da60c726f3456f6a36267add450a29bcfbf10..c9b77b446ab1434710ad0f8995f705b66ff7dd19 100644 (file)
@@ -1,4 +1,5 @@
 ##
 
 style.css : style.less colors.less ../icons.less ../quattro.less
-       lessc style.less > style.css
+       echo "/* THIS FILE IS GENERATED FROM THE less SOURCE DO NOT EDIT MANUALLY */" > style.css
+       lessc style.less >> style.css
index fccd0dc0b8cf4616c5c886a542417ecd73b5aa84..4e6c727b091d29987a0d6af209994ff49274401c 100644 (file)
@@ -1,3 +1,4 @@
+/* THIS FILE IS GENERATED FROM THE less SOURCE DO NOT EDIT MANUALLY */
 /**
  * Fabio Comuni <http://kirgroup.com/profile/fabrixxm>
  **/
@@ -2514,11 +2515,11 @@ footer {
   clear: left;
   text-align: right;
 }
-#adminpage #pluginslist {
+#adminpage #addonslist {
   margin: 0;
   padding: 0;
 }
-#adminpage .plugin {
+#adminpage .addon {
   list-style: none;
   display: block;
   border: 1px solid #888888;
@@ -2526,10 +2527,10 @@ footer {
   margin-bottom: 5px;
   clear: left;
 }
-#adminpage .plugin desc {
+#adminpage .addon desc {
   margin-left: 2.5em;
 }
-#adminpage .toggleplugin {
+#adminpage .toggleaddon {
   float: left;
   margin-right: 1em;
 }
index 49ea016e1e7be7d3a644791c4e7105bc1bb08e79..c7b29a495e0f3a1c01897b77b52079ce9ba77c70 100644 (file)
@@ -1710,10 +1710,10 @@ footer { height: 100px; display: table-row; }
        clear:left;
        text-align: right;
     }
-    #pluginslist {
+    #addonslist {
        margin: 0; padding: 0;
     }
-    .plugin {
+    .addon {
        list-style: none;
        display: block;
        border: 1px solid #888888;
@@ -1724,7 +1724,7 @@ footer { height: 100px; display: table-row; }
             margin-left: 2.5em;
         }
     }
-    .toggleplugin {
+    .toggleaddon {
        float:left;
        margin-right: 1em;
     }