aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-06 17:52:58 -0800
committerfriendica <info@friendica.com>2013-03-06 17:52:58 -0800
commit5a9dae78a2839d8d466a5c3ecda9e83cf1f4c50c (patch)
tree76515f87d200a34889570aef11adc39b09d7ddd1 /view
parentb32b0102f79a4ecaaee62d08e2bceb51f69d79ad (diff)
downloadvolse-hubzilla-5a9dae78a2839d8d466a5c3ecda9e83cf1f4c50c.tar.gz
volse-hubzilla-5a9dae78a2839d8d466a5c3ecda9e83cf1f4c50c.tar.bz2
volse-hubzilla-5a9dae78a2839d8d466a5c3ecda9e83cf1f4c50c.zip
get rid of html from mod_suggest
Diffstat (limited to 'view')
-rw-r--r--view/tpl/smarty3/suggest_friends.tpl12
-rw-r--r--view/tpl/smarty3/suggest_page.tpl14
-rw-r--r--view/tpl/suggest_friends.tpl12
-rw-r--r--view/tpl/suggest_page.tpl9
4 files changed, 35 insertions, 12 deletions
diff --git a/view/tpl/smarty3/suggest_friends.tpl b/view/tpl/smarty3/suggest_friends.tpl
index f7c030919..4445a4693 100644
--- a/view/tpl/smarty3/suggest_friends.tpl
+++ b/view/tpl/smarty3/suggest_friends.tpl
@@ -4,18 +4,18 @@
*
*}}
<div class="profile-match-wrapper">
- <a href="{{$ignlnk}}" title="{{$ignore}}" class="icon drophide smalldrop profile-match-ignore" onmouseout="imgdull(this);" onmouseover="imgbright(this);" onclick="return confirmDelete();" ></a>
+ <a href="{{$entry.ignlnk}}" title="{{$entry.ignore}}" class="icon drophide smalldrop profile-match-ignore" onmouseout="imgdull(this);" onmouseover="imgbright(this);" onclick="return confirmDelete();" ></a>
<div class="profile-match-photo">
- <a href="{{$url}}">
- <img src="{{$photo}}" alt="{{$name}}" width="80" height="80" title="{{$name}} [{{$url}}]" />
+ <a href="{{$entry.url}}">
+ <img src="{{$entry.photo}}" alt="{{$entry.name}}" width="80" height="80" title="{{$entry.name}} [{{$entry.url}}]" />
</a>
</div>
<div class="profile-match-break"></div>
<div class="profile-match-name">
- <a href="{{$url}}" title="{{$name}}">{{$name}}</a>
+ <a href="{{$entry.url}}" title="{{$entry.name}}">{{$entry.name}}</a>
</div>
<div class="profile-match-end"></div>
- {{if $connlnk}}
- <div class="profile-match-connect"><a href="{{$connlnk}}" title="{{$conntxt}}">{{$conntxt}}</a></div>
+ {{if $entry.connlnk}}
+ <div class="profile-match-connect"><a href="{{$entry.connlnk}}" title="{{$entry.conntxt}}">{{$entry.conntxt}}</a></div>
{{/if}}
</div> \ No newline at end of file
diff --git a/view/tpl/smarty3/suggest_page.tpl b/view/tpl/smarty3/suggest_page.tpl
new file mode 100644
index 000000000..07999abfd
--- /dev/null
+++ b/view/tpl/smarty3/suggest_page.tpl
@@ -0,0 +1,14 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+<h3>{{$title}}</h3>
+
+{{if $entries}}
+{{foreach $entries as $child}}
+{{include file="suggest_friends.tpl" entry=$child}}
+{{/foreach}}
+{{/if}}
+
+<div class="clear"></div>
diff --git a/view/tpl/suggest_friends.tpl b/view/tpl/suggest_friends.tpl
index d8913c91c..47b74fee4 100644
--- a/view/tpl/suggest_friends.tpl
+++ b/view/tpl/suggest_friends.tpl
@@ -1,16 +1,16 @@
<div class="profile-match-wrapper">
- <a href="$ignlnk" title="$ignore" class="icon drophide smalldrop profile-match-ignore" onmouseout="imgdull(this);" onmouseover="imgbright(this);" onclick="return confirmDelete();" ></a>
+ <a href="$entry.ignlnk" title="$entry.ignore" class="icon drophide smalldrop profile-match-ignore" onmouseout="imgdull(this);" onmouseover="imgbright(this);" onclick="return confirmDelete();" ></a>
<div class="profile-match-photo">
- <a href="$url">
- <img src="$photo" alt="$name" width="80" height="80" title="$name [$url]" />
+ <a href="$entry.url">
+ <img src="$entry.photo" alt="$entry.name" width="80" height="80" title="$entry.name [$entry.url]" />
</a>
</div>
<div class="profile-match-break"></div>
<div class="profile-match-name">
- <a href="$url" title="$name">$name</a>
+ <a href="$entry.url" title="$entry.name">$entry.name</a>
</div>
<div class="profile-match-end"></div>
- {{ if $connlnk }}
- <div class="profile-match-connect"><a href="$connlnk" title="$conntxt">$conntxt</a></div>
+ {{ if $entry.connlnk }}
+ <div class="profile-match-connect"><a href="$entry.connlnk" title="$entry.conntxt">$entry.conntxt</a></div>
{{ endif }}
</div> \ No newline at end of file
diff --git a/view/tpl/suggest_page.tpl b/view/tpl/suggest_page.tpl
new file mode 100644
index 000000000..ab9150138
--- /dev/null
+++ b/view/tpl/suggest_page.tpl
@@ -0,0 +1,9 @@
+<h3>$title</h3>
+
+{{ if $entries }}
+{{ for $entries as $child }}
+{{ inc suggest_friends.tpl with $entry=$child }}{{ endinc }}
+{{ endfor }}
+{{ endif }}
+
+<div class="clear"></div>