diff --git a/classes/fof-prefs.php b/classes/fof-prefs.php
index 890b852..b31581b 100644
--- a/classes/fof-prefs.php
+++ b/classes/fof-prefs.php
@@ -66,6 +66,7 @@ class FoF_Prefs
"keyboard" => false,
"direction" => "desc",
"howmany" => 50,
+ "sharing" => "no",
);
$admin_defaults = array(
diff --git a/plugins/share-off.gif b/plugins/share-off.gif
new file mode 100644
index 0000000..0d04f46
Binary files /dev/null and b/plugins/share-off.gif differ
diff --git a/plugins/share-on.gif b/plugins/share-on.gif
new file mode 100644
index 0000000..d6f468a
Binary files /dev/null and b/plugins/share-on.gif differ
diff --git a/plugins/sharing.php b/plugins/sharing.php
new file mode 100644
index 0000000..a4f355e
--- /dev/null
+++ b/plugins/sharing.php
@@ -0,0 +1,20 @@
+ $shared_text ";
+}
+?>
diff --git a/prefs.php b/prefs.php
index 7aa527a..db7d2c5 100644
--- a/prefs.php
+++ b/prefs.php
@@ -60,6 +60,9 @@ if(isset($_POST['prefs']))
$prefs->set('tzoffset', intval($_POST['tzoffset']));
$prefs->set('howmany', intval($_POST['howmany']));
$prefs->set('order', $_POST['order']);
+ $prefs->set('sharing', $_POST['sharing']);
+ $prefs->set('sharedname', $_POST['sharedname']);
+ $prefs->set('sharedurl', $_POST['sharedurl']);
foreach(fof_get_plugin_prefs() as $plugin_pref)
{
@@ -140,6 +143,19 @@ Time offset in hours:
+
+
+
+
+items.
+get('sharing') != "no") echo " (your shared page is here)";?>
+Name to be shown on shared page:
+URL to be linked on shared page:
+
+
+
: (this preference is from a plugin)
diff --git a/shared.php b/shared.php
new file mode 100644
index 0000000..3109360
--- /dev/null
+++ b/shared.php
@@ -0,0 +1,129 @@
+get("sharing");
+if($sharing == "no") die;
+
+$name = $prefs->get("sharedname");
+$url = $prefs->get("sharedurl");
+
+?>
+
+
+
+