[Peepagg-cvs] PA SVN Commit r65 - in trunk: publicroot templates/html
Brought to you by:
chalko,
marccanter
|
From: <sv...@2n...> - 2004-04-08 06:09:31
|
Author: crschmidt
Date: 2004-04-07 23:08:25 -0700 (Wed, 07 Apr 2004)
New Revision: 65
Modified:
trunk/publicroot/view.php
trunk/templates/html/view.tpl
Log:
Technorati "tracker" image and so on still displayed when=20
technorati_lookup_bloginfo was set to fales. Fix this behavior: if we're=20
not loading technorati stuff, we dont' need to display a technorati=20
image.
One line addition to view.php + if loop around the technorati div in=20
view.tpl.
Modified: trunk/publicroot/view.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/publicroot/view.php 2004-04-08 02:59:48 UTC (rev 64)
+++ trunk/publicroot/view.php 2004-04-08 06:08:25 UTC (rev 65)
@@ -61,7 +61,7 @@
=20
if(isset($consumed["friends"]))
$template->assign('profile_friends',$consumed["friends"]);
-
+ $template->assign('technorati_lookup_bloginfo', $technorati_lookup_bl=
oginfo);
if(isset($consumed["weblogs"])) {
$blogs =3D array();
foreach($consumed["weblogs"] as $weblog) {
Modified: trunk/templates/html/view.tpl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/templates/html/view.tpl 2004-04-08 02:59:48 UTC (rev 64)
+++ trunk/templates/html/view.tpl 2004-04-08 06:08:25 UTC (rev 65)
@@ -114,12 +114,14 @@
<p class=3D"p1">
{section name=3Dinc loop=3D$view_consumedmodel.weblogs}
{localize tag=3D"profile_weblog"}: <a href=3D"{$view_consumedmo=
del.weblogs[inc]}">{$view_consumedmodel.weblogs[inc]}</a><br />
- <div class=3D"technorati">
- <a href=3D"http://technorati.com/"><img src=3D"style/technor=
ati-logo.jpg" alt=3D"Technorati" /></a><br />
- Incoming Links: {$technorati_bloginfo[inc].inboundlinks}<br =
/>
- Incoming Blogs: {$technorati_bloginfo[inc].inboundblogs}<br =
/>
- <a href=3D"http://www.technorati.com/cosmos/search.html?rank=
=3D&url=3D{$view_consumedmodel.weblogs[inc]|escape:"url"}">View Cosmos</a=
>
- </div>
+ {if $technorati_lookup_bloginfo}
+ <div class=3D"technorati">
+ <a href=3D"http://technorati.com/"><img src=3D"style/techn=
orati-logo.jpg" alt=3D"Technorati" /></a><br />
+ Incoming Links: {$technorati_bloginfo[inc].inboundlinks}<b=
r />
+ Incoming Blogs: {$technorati_bloginfo[inc].inboundblogs}<b=
r />
+ <a href=3D"http://www.technorati.com/cosmos/search.html?ra=
nk=3D&url=3D{$view_consumedmodel.weblogs[inc]|escape:"url"}">View Cosmos<=
/a>
+ </div>
+ {/if}
{/section}
</p>
{/if}
|