]> git.mxchange.org Git - friendica.git/commitdiff
show experimental and unsupported theme status on theme admin page\18
authorfriendica <info@friendica.com>
Sun, 26 Feb 2012 12:17:02 +0000 (04:17 -0800)
committerfriendica <info@friendica.com>
Sun, 26 Feb 2012 12:17:02 +0000 (04:17 -0800)
include/plugin.php
mod/admin.php
view/admin_plugins.tpl
view/theme/clean/unsupported [new file with mode: 0644]
view/theme/darkness/unsupported [new file with mode: 0644]
view/theme/darkzero-NS/unsupported [new file with mode: 0644]
view/theme/easterbunny/unsupported [new file with mode: 0644]
view/theme/ghost/unsupported [new file with mode: 0644]
view/theme/goldenrod/unsupported [new file with mode: 0644]
view/theme/loozah/unsupported [new file with mode: 0644]
view/theme/shady/unsupported [new file with mode: 0644]

index 57f77cb570342c0d0a24254d9f2bf9c76c0b94fe..8280b1022eeaa560e1be82eb3bf3119a0e053c21 100755 (executable)
@@ -225,9 +225,16 @@ function get_theme_info($theme){
                'description' => "",
                'author' => array(),
                'maintainer' => array(),
-               'version' => ""
+               'version' => "",
+               'experimental' => false,
+               'unsupported' => false
        );
 
+       if(file_exists("view/theme/$theme/experimental"))
+               $info['experimental'] = true;
+       if(file_exists("view/theme/$theme/unsupported"))
+               $info['unsupported'] = true;
+
        if (!is_file("view/theme/$theme/theme.php")) return $info;
        
        $f = file_get_contents("view/theme/$theme/theme.php");
index bcbf3e28fa4927a69ea737e6dc935663c648ac5f..0f600e3126b1b123e5cb4befe1f26de078147eb1 100755 (executable)
@@ -711,7 +711,7 @@ function admin_page_themes(&$a){
                        return; // NOTREACHED   
                }
 
-               // display plugin details
+               // display theme details
                require_once('library/markdown.php');
 
                if (theme_status($themes,$theme)) {
@@ -769,7 +769,9 @@ function admin_page_themes(&$a){
                '$submit' => t('Submit'),
                '$baseurl' => $a->get_baseurl(),
                '$function' => 'themes',
-               '$plugins' => $xthemes
+               '$plugins' => $xthemes,
+               '$experimental' => t('[Experimental]'),
+               '$unsupported' => t('[Unsupported]')
        ));
 }
 
index f4afd2cf036c6e1099445ed05022fefa3e54e3f3..8367ff6a1db8a4d8a9e733637b4f57a417a13ae2 100755 (executable)
@@ -6,6 +6,8 @@
                        <li class='plugin $p.1'>
                                <a class='toggleplugin' href='$baseurl/admin/$function/$p.0?a=t' title="{{if $p.1==on }}Disable{{ else }}Enable{{ endif }}" ><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 {{ endif }}{{ if $p.2.unsupported }} $unsupported {{ endif }}
+
                                        <div class='desc'>$p.2.description</div>
                        </li>
                {{ endfor }}
diff --git a/view/theme/clean/unsupported b/view/theme/clean/unsupported
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/view/theme/darkness/unsupported b/view/theme/darkness/unsupported
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/view/theme/darkzero-NS/unsupported b/view/theme/darkzero-NS/unsupported
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/view/theme/easterbunny/unsupported b/view/theme/easterbunny/unsupported
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/view/theme/ghost/unsupported b/view/theme/ghost/unsupported
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/view/theme/goldenrod/unsupported b/view/theme/goldenrod/unsupported
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/view/theme/loozah/unsupported b/view/theme/loozah/unsupported
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/view/theme/shady/unsupported b/view/theme/shady/unsupported
new file mode 100644 (file)
index 0000000..e69de29