/**
  * Constructor. Fills in the instance variables, escapes urls accordingly 
  */
 function FeedListItem($id, $title, $url, $siteurl, $name, $parent, $icon, $descr, $mode, $unreadCount)
 {
     $this->id = $id;
     $this->title = $title;
     $this->url = $url;
     $this->publicUrl = preg_replace('|(https?://)([^:]+:[^@]+@)(.+)$|', '\\1\\3', $url);
     $this->siteurl = $siteurl;
     $this->name = $name;
     $this->parent = $parent;
     if (getConfig('rss.output.showfavicons') && $icon) {
         if (substr($icon, 0, 5) == 'blob:') {
             $this->icon = getPath() . "extlib/favicon.php?url=" . rss_real_escape_string(substr($icon, 5));
         } else {
             $this->icon = $icon;
         }
     } elseif (getConfig('rss.output.showfavicons')) {
         $this->icon = getExternalThemeFile("media/noicon.png");
     } else {
         $this->icon = false;
     }
     $this->descr = $descr;
     $this->mode = $mode;
     if (getConfig('rss.output.usemodrewrite')) {
         $this->rlink = getPath(rss_uri($title)) . "/";
     } else {
         $this->rlink = getPath() . "feed.php?channel={$id}";
     }
     if ($unreadCount > 0) {
         $this->rdLbl = sprintf(__('<strong id="%s" style="%s">(%d unread)</strong>'), "cid{$id}", "", $unreadCount);
         $this->class_ = "feed title unread";
     } else {
         $this->rdLbl = "";
         $this->class_ = "feed title";
     }
 }
Example #2
0
 function TagListItem($title, $cnt, $url)
 {
     $this->title = $title;
     $this->cnt = $cnt;
     $this->rlink = $url;
     $this->rdLbl = "({$cnt})";
     $this->icon = getExternalThemeFile("media/noicon.png");
 }
Example #3
0
function rss_itemlist_icon()
{
    if ($GLOBALS['rss']->renderOptions & IL_CHANNEL_VIEW && getConfig('rss.output.showfavicons') && count($GLOBALS['rss']->currentItemList->feeds)) {
        $key = array_keys($GLOBALS['rss']->currentItemList->feeds);
        return $GLOBALS['rss']->currentItemList->feeds[$key[0]]->iconUrl;
    } elseif ($GLOBALS['rss']->renderOptions & IL_FOLDER_VIEW && getConfig('rss.output.showfavicons')) {
        return getExternalThemeFile("media/folder.gif");
    }
    return null;
}
Example #4
0
<?php

if (!rss_feeds_folder_is_root()) {
    ?>
<div>
	<a href="#"  onclick="<?php 
    echo rss_feeds_onclickaction('category');
    ?>
">
		<img src="<?php 
    echo getExternalThemeFile('media/folder.gif');
    ?>
" alt="<?php 
    echo rss_feeds_folder_name();
    ?>
" />
	</a>
	<a href="<?php 
    echo rss_feeds_folder_link();
    ?>
"><?php 
    echo rss_feeds_folder_name();
    ?>
</a>
	<?php 
    echo rss_feeds_folders_unread_count();
    ?>
	
</div>
<?php 
}
Example #5
0
?>
" />
	<title><?php 
echo rss_header_title();
?>
</title>
	<meta name="robots" content="<?php 
echo rss_header_robotmeta();
?>
" />
	<link rel="stylesheet" type="text/css" href="<?php 
echo getExternalThemeFile('css/layout.css');
?>
" />
	<link rel="stylesheet" type="text/css" href="<?php 
echo getExternalThemeFile('css/look.css');
?>
" />
	<link rel="stylesheet" type="text/css" href="<?php 
echo getPath();
?>
css/print.css" media="print" />
	<?php 
echo rss_scheme_stylesheets();
echo rss_plugin_hook('rss.plugins.stylesheets', null);
if (rss_header_autorefreshtime() > 0 && !getConfig('rss.config.restrictrefresh')) {
    ?>
	<meta http-equiv="refresh"  content="<?php 
    echo rss_header_autorefreshtime();
    ?>
;<?php 
Example #6
0
    ?>
" id="sa<?php 
    echo rss_item_id();
    ?>
" href="#" onclick="_es(<?php 
    echo rss_item_id();
    ?>
,<?php 
    echo rss_item_flags();
    ?>
,<?php 
    echo rss_item_cid();
    ?>
); return false;">
		<img src="<?php 
    echo getExternalThemeFile('media/edit.gif');
    ?>
" alt="<?php 
    echo __('Edit Item Properties');
    ?>
" />
	</a>
	<?php 
}
?>
	<?php 
rss_plugin_hook("rss.plugins.items.beforetitle", rss_item_id());
?>
	<h4><?php 
echo rss_item_content();
?>
Example #7
0
<?php 
foreach (rss_header_javascripts() as $script) {
    ?>
	<script type="text/javascript" src="<?php 
    echo $script;
    ?>
"></script>
<?php 
}
?>
	<script type="text/javascript">
// <![CDATA[
(function(){
	$(document).ready(function(){
		var $spinner=$('<span class="spinner" style="float:right"><img src="<?php 
echo getExternalThemeFile('media/busy.gif');
?>
" /></span>');
		var loading=[];
		var $folder=$('#channels a.folderhide').parent('h3').next('ul');

		$('body').click(function(e){
			var $target=$(e.target);

			// external click
			if ($target.is('a') && $target.attr('target')==='_blank') {
				$target=null;
				return;
			}

			// folder expand
Example #8
0
<title><?php 
echo rss_header_title();
?>
</title>
<link rel="stylesheet" type="text/css" href="<?php 
echo getExternalThemeFile('style.css');
?>
">
Example #9
0
<h3<?php 
    echo rss_feed_class();
    ?>
>
<?php 
    if (rss_feed_allow_collapsing()) {
        ?>
<a class="<?php 
        echo rss_feed_collapsed() ? "expand" : "collapse";
        ?>
" href="#" onclick="<?php 
        echo rss_feed_expand_collapse_js();
        ?>
">
	<img src="<?php 
        echo getExternalThemeFile('media/' . (rss_feed_collapsed() ? "plus" : "minus") . '.gif');
        ?>
" alt="" <?php 
        echo rss_feed_id("cli");
        ?>
/>
</a>

<?php 
    } elseif (rss_feed_do_favicon()) {
        ?>
	<img src="<?php 
        echo rss_feed_favicon_url();
        ?>
" class="favicon" alt="" />
<?php 
Example #10
0
    function sajax_get_common_js()
    {
        global $sajax_debug_mode;
        global $sajax_request_type;
        global $sajax_remote_uri;
        $t = strtoupper($sajax_request_type);
        if ($t != "GET" && $t != "POST") {
            return "// Invalid type: {$t}.. \n\n";
        }
        ob_start();
        ?>
		
		// remote scripting library
		// (c) copyright 2005 modernmethod, inc
		var sajax_debug_mode = <?php 
        echo $sajax_debug_mode ? "true" : "false";
        ?>
;
		var sajax_request_type = "<?php 
        echo $t;
        ?>
";
		
		function sajax_debug(text) {
			if (sajax_debug_mode)
				alert("RSD: " + text)
		}
 		function sajax_init_object() {
 			sajax_debug("sajax_init_object() called..")
 			
 			var A;
			try {
				A=new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try {
					A=new ActiveXObject("Microsoft.XMLHTTP");
				} catch (oc) {
					A=null;
				}
			}
			if(!A && typeof XMLHttpRequest != "undefined")
				A = new XMLHttpRequest();
			if (!A)
				sajax_debug("Could not create connection object.");
			return A;
		}
		function sajax_do_call(func_name, args) {
			var i, x, n;
			var uri;
			var post_data;
			
			uri = "<?php 
        echo $sajax_remote_uri;
        ?>
";
			if (sajax_request_type == "GET") {
				if (uri.indexOf("?") == -1) 
					uri = uri + "?rs=" + escape(func_name);
				else
					uri = uri + "&rs=" + escape(func_name);
				for (i = 0; i < args.length-1; i++) 
					uri = uri + "&rsargs[]=" + escape(args[i]);
				uri = uri + "&rsrnd=" + new Date().getTime();
				post_data = null;
			} else {
				post_data = "rs=" + escape(func_name);
				for (i = 0; i < args.length-1; i++) 
					post_data = post_data + "&rsargs[]=" + escape(args[i]);
			}
			
			rss_sajax_busy();
			
			x = sajax_init_object();
			x.open(sajax_request_type, uri, true);
			if (sajax_request_type == "POST") {
				x.setRequestHeader("Method", "POST " + uri + " HTTP/1.1");
				x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			}
			x.onreadystatechange = function() {
				if (x.readyState != 4) 
					return;
				sajax_debug("received " + x.responseText);
				
				var status;
				var data;
				status = x.responseText.charAt(0);
				data = x.responseText.substring(2);
				if (status == "-") {
					alert("Error: " + data);
				} else {
					args[args.length-1](data);
				}
				rss_sajax_unbusy();
			}
			sajax_debug(func_name + " uri = " + uri + "\n/post = " + post_data);
			x.send(post_data);
			sajax_debug(func_name + " waiting..");
			delete x;
		}
		
		function rss_sajax_unbusy() {
			span = document.getElementById('ajax_throbber');
			if (span) {
				devnull = span.parentNode.removeChild(span);
			}
			
		}
		
		function rss_sajax_busy() {			
			var span=document.createElement('span');
			span.id='ajax_throbber';
			span.style.position=(document.all?'absolute':'fixed');
			span.style.left = '5px';
    	span.style.top = '5px';
    	span.style.padding = '3px';
    	span.className = 'frame';    	
    	span.innerHTML = '<img src="<?php 
        echo getExternalThemeFile('media/busy.gif');
        ?>
" />';
			document.body.appendChild(span);
		}
		
		<?php 
        $html = ob_get_contents();
        ob_end_clean();
        return $html;
    }
Example #11
0
    echo $title;
    ?>
" href="<?php 
    echo $href;
    ?>
" />
<?php 
}
foreach (rss_header_javascripts() as $script) {
    ?>
	<script type="text/javascript" src="<?php 
    echo $script;
    ?>
"></script>	
	<script type"text/javascript" src="<?php 
    echo getExternalThemeFile('js/jquery-1.4.js');
    ?>
"></script>
	<script type="application/x-javascript">

$(document).ready(function() {
	/* Get data from a dom element with id 'mytext' */
	var description = $("#mytext").text();
	var task = "#";
	var incident_title = "#";
	var incident_description = description;
    	var incident_date = "#";
	var incident_hour = "#";
	var incident_minute = "#";
	var incident_ampm = "";
	var incident_category = "#";