';
- if(($a->argc > 1 && $a->argv[1] === 'new') || ($a->argc > 2 && $a->argv[2] === 'new'))
- $a->page['aside'] .= '
' . t('Normal View') . '';
+
+
+ if(($a->argc > 1 && $a->argv[1] === 'new') || ($a->argc > 2 && $a->argv[2] === 'new') || x($_GET,'search'))
+ $a->page['aside'] .= '
' . t('Normal View') . '';
else
$a->page['aside'] .= '
' . t('New Item View') . '';
@@ -55,6 +63,8 @@ function network_content(&$a, $update = 0) {
}
}
+ if(x($_GET,'search'))
+ $nouveau = true;
if($cid)
$def_acl = array('allow_cid' => '<' . intval($cid) . '>');
@@ -96,7 +106,8 @@ function network_content(&$a, $update = 0) {
$o .= '
' . "\r\n";
$o .= "\r\n";
}
@@ -169,6 +180,10 @@ function network_content(&$a, $update = 0) {
$sql_extra2 = (($nouveau) ? '' : " AND `item`.`parent` = `item`.`id` ");
+ if(x($_GET,'search'))
+ $sql_extra .= " AND `item`.`body` REGEXP '" . dbesc(escape_tags($_GET['search'])) . "' ";
+
+
$r = q("SELECT COUNT(*) AS `total`
FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0
diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css
index 2bac4238ea..58cf8646c8 100644
--- a/view/theme/duepuntozero/style.css
+++ b/view/theme/duepuntozero/style.css
@@ -2394,6 +2394,16 @@ a.mail-list-link {
margin: 0px 3px 0px 3px;
}
+
+#netsearch-box {
+ margin-top: 20px;
+}
+
+#netsearch-box #search-submit {
+ margin: 5px 0px 0px 0px;
+}
+
+
/**
* ICONS
*/
diff --git a/view/theme/loozah/style.css b/view/theme/loozah/style.css
index 9c6c0120b8..7c9697b4d4 100644
--- a/view/theme/loozah/style.css
+++ b/view/theme/loozah/style.css
@@ -2411,6 +2411,14 @@ a.mail-list-link {
width: 300px;
}
+#netsearch-box {
+ margin-top: 20px;
+}
+
+#netsearch-box #search-submit {
+ margin: 5px 0px 0px 0px;
+}
+
/**
* ICONS
*/