aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-11-21 12:34:22 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-11-21 12:34:22 +0100
commita86fd26bd86945fe75b7220e149b8986f88feb01 (patch)
tree75d3f73e9bcb4fc990bc35b0781d479f40ac9cfb /mod
parent590f1d2b25c00fc7bea85cb5de1a4f667ea86af1 (diff)
downloadvolse-hubzilla-a86fd26bd86945fe75b7220e149b8986f88feb01.tar.gz
volse-hubzilla-a86fd26bd86945fe75b7220e149b8986f88feb01.tar.bz2
volse-hubzilla-a86fd26bd86945fe75b7220e149b8986f88feb01.zip
more work on quattro. remove html from php for groups and saved searches widgets.
Diffstat (limited to 'mod')
-rw-r--r--mod/network.php29
1 files changed, 19 insertions, 10 deletions
diff --git a/mod/network.php b/mod/network.php
index 9fed8592e..763b3693f 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -71,21 +71,30 @@ function saved_searches($search) {
intval(local_user())
);
- $o .= '<div id="saved-search-list" class="widget">';
- $o .= '<h3 id="search">' . t('Saved Searches') . '</h3>' . "\r\n";
- $o .= search($search,'netsearch-box',$srchurl,true);
+ $saved = array();
+
+
if(count($r)) {
- $o .= '<ul id="saved-search-ul">' . "\r\n";
foreach($r as $rr) {
- $o .= '<li class="saved-search-li clear"><a href="network/?f=&remove=1&search=' . $rr['term'] . '" class="icon drophide savedsearchdrop" title="' . t('Remove term') . '" onclick="return confirmDelete();" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></a> <a href="network/?f=&search=' . urlencode($rr['term']) . '" class="savedsearchterm" >' . $rr['term'] . '</a></li>' . "\r\n";
+ $saved[] = array(
+ 'term' => $rr['term'],
+ 'encodedterm' => urlencode($rr['term']),
+ 'delete' => t('Remove term'),
+ 'selected' => ($search==$rr['term']),
+ );
}
- $o .= '</ul>';
}
- $o .= '<div class="clear"></div>';
-
- $o .= '</div>' . "\r\n";
+
+ $tpl = get_markup_template("saved_searches_aside.tpl");
+ $o = replace_macros($tpl, array(
+ '$title' => t('Saved Searches'),
+ '$add' => t('add'),
+ '$searchbox' => search($search,'netsearch-box',$srchurl,true),
+ '$saved' => $saved,
+ ));
+
return $o;
}
@@ -102,7 +111,7 @@ function network_content(&$a, $update = 0) {
// item filter tabs
// TODO: fix this logic, reduce duplication
- $a->page['content'] .= '<div class="tabs-wrapper">';
+ //$a->page['content'] .= '<div class="tabs-wrapper">';
$starred_active = '';
$new_active = '';