]> git.mjollnir.org Git - s9y.git/commitdiff
adding my she.geek.nz nav plugin
authorPenny Leach <mjollnir@titania.local>
Mon, 29 May 2006 07:19:23 +0000 (19:19 +1200)
committerPenny Leach <penny@catalyst.net.nz>
Mon, 7 Apr 2008 23:45:37 +0000 (11:45 +1200)
plugins/serendipity_plugin_sgn_nav/serendipity_plugin_sgn_nav.php [new file with mode: 0644]

diff --git a/plugins/serendipity_plugin_sgn_nav/serendipity_plugin_sgn_nav.php b/plugins/serendipity_plugin_sgn_nav/serendipity_plugin_sgn_nav.php
new file mode 100644 (file)
index 0000000..a5d5ba9
--- /dev/null
@@ -0,0 +1,60 @@
+<?php # $Id: serendipity_plugin_shoutbox.php 7 2005-04-16 06:39:31Z s_bergmann $
+
+/* Contributed by Matthias Lange (http://blog.dinnri.de/ml/) */
+
+// Probe for a language include with constants. Still include defines later on, if some constants were missing
+$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
+if (file_exists($probelang)) {
+    include $probelang;
+}
+
+switch ($serendipity['lang']) {
+    case 'en':
+    default:
+        @define('PLUGIN_SGN_NAV_NAME', 'she.geek.nz');
+        @define('PLUGIN_SGN_NAV_BLAHBLAH', 'She.geek.nz related links');
+        break;
+}
+
+class serendipity_plugin_sgn_nav extends serendipity_plugin
+{
+    var $title = PLUGIN_SGN_NAV_NAME;
+
+    function introspect(&$propbag)
+    {
+        global $serendipity;
+
+        $propbag->add('name',          PLUGIN_SGN_NAV_NAME);
+        $propbag->add('description',   PLUGIN_SGN_NAV_BLAHBLAH);
+        $propbag->add('stackable',     false);
+        $propbag->add('author',        'Penny Leach');
+        $propbag->add('version',       '1.0');
+        $propbag->add('requirements',  array(
+            'serendipity' => '0.8',
+            'smarty'      => '2.6.7',
+            'php'         => '4.1.0'
+        ));
+
+    }
+
+    function generate_content(&$title)
+    {
+        global $serendipity;
+
+        $title       = $this->title;
+
+        echo '<p>This is a website about me. I am just this girl, who lives in Wellington, '
+            .'works on open source web stuff, and drinks too much.</p>'
+            .'<p>I write mundane crap about things I do.  If you\'re interested in things '
+            .'about me in list format, <a href="http://she.geek.nz/about">go here</a>.  '
+            .'You can also <a href="mailto:penny@she.geek.nz">send me email</a>, or '
+            .'<a href="http://she.geek.nz/feeds/index.rss2">subscribe to my rss feed</a>.  '
+            .'My gpg key id is 0xA30EC22B</p>'
+            .'<p>I give thumbs up to: <a href="http://exorsus.net">exorsus.net</a> for hosting '
+            .'my sorry ass, and <a href="http://s9y.org">serendipity</a> for writing such fine '
+            .'blog software and allowing me to hack it to pieces.</p>';
+    }
+}
+
+/* vim: set sts=4 ts=4 expandtab : */
+?>