Browse Source

lokalni upravy

Schunka Shiro 2 years ago
parent
commit
f7d54f7e89

+ 0 - 0
cache/upload/.empty


+ 0 - 0
feed-icons/index.html


BIN
plugins/article_toolbar/images/down.png


BIN
plugins/article_toolbar/images/feed.png


BIN
plugins/article_toolbar/images/list.png


BIN
plugins/article_toolbar/images/read.png


BIN
plugins/article_toolbar/images/refresh.png


BIN
plugins/article_toolbar/images/up.png


+ 31 - 0
plugins/article_toolbar/init.php

@@ -0,0 +1,31 @@
+<?php
+class article_toolbar extends Plugin {
+
+	private $host;
+
+	function about() {
+		return array(1.1,
+			"Toolbar for easy access to feed functions",
+			"idoxlr8", false);
+	}
+
+	function init($host) {
+		$this->host = $host;
+
+		$host->add_hook($host::HOOK_TOOLBAR_BUTTON, $this);
+	}
+
+	function get_js() {
+		return file_get_contents(dirname(__FILE__) . "/toolbar.js");
+	}
+
+	function HOOK_TOOLBAR_BUTTON() {
+		require_once dirname(__FILE__) . "/toolbar_body.php";
+	}
+  function api_version() {
+    return 2;
+  } 
+
+
+}
+?>

BIN
plugins/article_toolbar/storm/down.png


BIN
plugins/article_toolbar/storm/feed.png


BIN
plugins/article_toolbar/storm/list.png


BIN
plugins/article_toolbar/storm/read.png


BIN
plugins/article_toolbar/storm/refresh.png


BIN
plugins/article_toolbar/storm/up.png


+ 42 - 0
plugins/article_toolbar/toolbar.css

@@ -0,0 +1,42 @@
+.button_nav{
+	border: 1px solid #C0C0C0;
+	background-color: #ecf4ff! important;
+	opacity: 0.5;
+	border-radius: 3px 3px 3px 3px;
+	-moz-border-radius: 3px 3px 3px 3px;
+	-webkit-border-radius: 3px 3px 3px 3px;
+	width: 40px;
+	height: 34px;
+	cursor: pointer;
+	vertical-align: bottom;
+}
+.button_nav:hover{
+	border: 1px solid #C0C0C0;
+	background-color: #ecf4ff! important;
+	opacity: 1.0;
+	border-radius: 3px 3px 3px 3px;
+	-moz-border-radius: 3px 3px 3px 3px;
+	-webkit-border-radius: 3px 3px 3px 3px;
+	width: 40px;
+	height: 34px;
+	cursor: pointer;
+}
+
+.button_header{
+	border: 1px solid #C0C0C0;
+	background-color: #ecf4ff! important;
+	opacity: 0.5;
+	border-radius: 3px 3px 3px 3px;
+	-moz-border-radius: 3px 3px 3px 3px;
+	-webkit-border-radius: 3px 3px 3px 3px;
+	cursor: pointer;
+}
+.button_header:hover{
+	border: 1px solid #C0C0C0;
+	background-color: #ecf4ff! important;
+	opacity: 1.0;
+	border-radius: 3px 3px 3px 3px;
+	-moz-border-radius: 3px 3px 3px 3px;
+	-webkit-border-radius: 3px 3px 3px 3px;
+	cursor: pointer;
+}

+ 17 - 0
plugins/article_toolbar/toolbar.js

@@ -0,0 +1,17 @@
+function example(value) {
+	alert("Value saved: " + value);
+}
+
+		function toggle_cdm_expanded() {
+				notify_progress("Loading, please wait...");
+
+				var value = getInitParam("cdm_expanded") ? "false" : "true";
+				var query = "?op=rpc&method=setpref&key=CDM_EXPANDED&value=" + value;
+
+				new Ajax.Request("backend.php",	{
+					parameters: query,
+					onComplete: function(transport) {
+						setInitParam("cdm_expanded", !getInitParam("cdm_expanded"));
+						viewCurrentFeed();
+					} });
+		};

+ 32 - 0
plugins/article_toolbar/toolbar.less

@@ -0,0 +1,32 @@
+img[src*="plugins/article_toolbar/images/feed.png"],
+img[src*="plugins/article_toolbar/images/list.png"],
+img[src*="plugins/article_toolbar/images/read.png"],
+img[src*="plugins/article_toolbar/images/refresh.png"],
+img[src*="plugins/article_toolbar/images/up.png"],
+img[src*="plugins/article_toolbar/images/down.png"] {
+	height: 16px !important;
+	width: 0 !important;
+	padding-right: 16px !important;
+
+	filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
+	filter: gray; /* IE6-9 */
+	-webkit-filter: ~"grayscale(100%)"; /* Chrome 19+, Safari 6+, Safari 6+ iOS */
+}
+
+.button_nav{
+	background: #5e5e5e;
+	border: 0;
+	padding: 2px 6px 3px;
+	cursor: pointer;
+	vertical-align: bottom;
+
+	&:hover{
+		background: #454545;
+
+		img {
+			filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale");
+			-webkit-filter: ~"grayscale(0%)";
+		}
+	}
+}
+

+ 24 - 0
plugins/article_toolbar/toolbar_body.php

@@ -0,0 +1,24 @@
+<?php global $link; ?>
+<?php
+	echo stylesheet_tag("plugins/article_toolbar/toolbar.css");
+	print_user_stylesheet($link)
+?>
+
+			<button  class="button_nav" title="Subscribe To Feed" onclick="quickMenuGo('qmcAddFeed')">
+			<img src="plugins/article_toolbar/images/feed.png" alt="Subscribe To Feed"></button>
+			
+			<button class="button_nav" title="Toggle Expanded View" onclick="toggle_cdm_expanded()">
+			<img src="plugins/article_toolbar/images/list.png" alt="Toggle Expanded View"></button>
+
+			<button class="button_nav" title="Mark feed as read" onclick="catchupCurrentFeed()">
+			<img src="plugins/article_toolbar/images/read.png" alt="Mark as read"></button>
+
+			<button class="button_nav" title="Refresh Feed" onclick="viewCurrentFeed()">
+			<img src="plugins/article_toolbar/images/refresh.png" alt="Refresh Feed"></button>
+			
+			<button class="button_nav" title="Previous Post" onclick="moveToPost('prev',true)">
+			<img src="plugins/article_toolbar/images/up.png"></button>
+			
+			<button class="button_nav" title="Next Post" onclick="moveToPost('next',true)">
+			<img src="plugins/article_toolbar/images/down.png"></button>
+

+ 0 - 0
themes.local/.empty


+ 0 - 0
themes/.empty