Максим Червонный (fiskus_boulder) wrote in changelog,
Максим Червонный
fiskus_boulder
changelog

[livejournal] r17640: LJSUP-7052: vertical landing pages, impl...

Committer: mchervonniy
LJSUP-7052: vertical landing pages, implement styles
U   trunk/htdocs/stc/widgets/search.css
U   trunk/templates/Browse/browse.tmpl
U   trunk/templates/Browse/communities.tmpl
U   trunk/templates/Browse/featured_communities.tmpl
U   trunk/templates/Browse/index.tmpl
U   trunk/templates/Browse/recent_posts.tmpl
U   trunk/templates/Browse/sidebar.tmpl
U   trunk/templates/Browse/top_posts.tmpl
Modified: trunk/htdocs/stc/widgets/search.css
===================================================================
--- trunk/htdocs/stc/widgets/search.css	2010-11-03 10:43:30 UTC (rev 17639)
+++ trunk/htdocs/stc/widgets/search.css	2010-11-03 11:19:12 UTC (rev 17640)
@@ -26,3 +26,7 @@
                 width: 97%; 
                 }
                 
+.appwidget-browse .appwidget-search h2 span.w-head-in {
+	background:url(/img/icons/search-lite.png) no-repeat 0 0;
+	}
+

Modified: trunk/templates/Browse/browse.tmpl
===================================================================
--- trunk/templates/Browse/browse.tmpl	2010-11-03 10:43:30 UTC (rev 17639)
+++ trunk/templates/Browse/browse.tmpl	2010-11-03 11:19:12 UTC (rev 17640)
@@ -1,21 +1,19 @@
 <div class="l-body">
 	<div class="b-catalogue">
 		<div class="l-aside">	
-			<TMPL_INCLUDE menu.tmpl> 
+			<TMPL_INCLUDE menu.tmpl>
 		</div>
-		<div class="l-content-wide">
-			<ul class="m-tab-switcher">
-				<li<tmpl_if expr="view eq 'recent_posts'"> class="cur"</tmpl_if>><a href="?view=recent_posts">Recent posts</a></li>
-				<li<tmpl_if expr="view eq 'communities'"> class="cur"</tmpl_if>><a href="?view=communities">Communities</a></li>
-			</ul>
-		</div>
 		<div class="l-content">
-        <tmpl_if expr="view eq 'communities'">
+		<ul class="m-tab-switcher">
+			<li<tmpl_if expr="view eq 'recent_posts'"> class="cur"</tmpl_if>><a href="?view=recent_posts">Recent posts</a><i class="b-round-ctl"></i><i class="b-round-ctr"></i></li>
+			<li<tmpl_if expr="view eq 'communities'"> class="cur"</tmpl_if>><a href="?view=communities">Communities</a><i class="b-round-ctl"></i><i class="b-round-ctr"></i></li>
+		</ul>
+		<tmpl_if expr="view eq 'communities'">
 			<TMPL_INCLUDE communities.tmpl>
-        </tmpl_if>
-        <tmpl_if expr="view eq 'recent_posts'">
+		</tmpl_if>
+		<tmpl_if expr="view eq 'recent_posts'">
 			<TMPL_INCLUDE recent_posts.tmpl>
-        </tmpl_if>
+		</tmpl_if>
 		</div>
 		<div class="l-sidebar">
 			<TMPL_INCLUDE sidebar.tmpl>
@@ -23,4 +21,3 @@
 	</div>
 </div>
 
-

Modified: trunk/templates/Browse/communities.tmpl
===================================================================
--- trunk/templates/Browse/communities.tmpl	2010-11-03 10:43:30 UTC (rev 17639)
+++ trunk/templates/Browse/communities.tmpl	2010-11-03 11:19:12 UTC (rev 17640)
@@ -1,5 +1,4 @@
 <TMPL_IF communities>
-	<!-- paging -->
 	<TMPL_IF expr="pages gt 1">
 	<ul class="b-nav-counter b-nav-counter-top">
 		<li class="b-nav-counter-first"><TMPL_IF page_first><a href="<TMPL_VAR page_first>" title="<TMPL_VAR expr="ml('widget.browse.page.first')">"><i><TMPL_VAR expr="ml('widget.browse.page.first')"></i></a><TMPL_ELSE><span><i><TMPL_VAR expr="ml('widget.browse.page.first')"></i></span></TMPL_IF></li>

Modified: trunk/templates/Browse/featured_communities.tmpl
===================================================================
--- trunk/templates/Browse/featured_communities.tmpl	2010-11-03 10:43:30 UTC (rev 17639)
+++ trunk/templates/Browse/featured_communities.tmpl	2010-11-03 11:19:12 UTC (rev 17640)
@@ -1,8 +1,38 @@
-<tmpl_loop top_comms>
-<tmpl_var username><br/>
-<tmpl_var community><br/>
-<tmpl_var userpic><br/>
-<tmpl_var bio><br/>
-<hr/>
-</tmpl_loop>
+<div class="appwidget appwidget-featuredcomms">
+<div class="right-mod">
+<div class="mod-tl">
+<div class="mod-tr">
+<div class="mod-br">
+<div class="mod-bl">
+	<div class="w-head">
+		<h2><span class="w-head-in">Featured communities</span></h2>
+		<i class="w-head-corner"></i>
+	</div>
+	<div class="w-content">
+		<ul class="b-posts">
+			<tmpl_loop top_comms>
+			<li<tmpl_if __last__> class="last"</tmpl_if>>
+				<dl>
+					<dt><img src="<tmpl_var userpic>"></dt>
+					<dd>
+						<p class="b-posts-head">
+							<span class="ljuser"><a href="/community/<tmpl_var community>/profile"><img width="16" height="16" alt="[info]" src="/img/community.gif" class="ContextualPopup"/></a><a href="/community/<tmpl_var community>/"><b><tmpl_var community></b></a></span>
+						</p>
+						<p class="b-posts-data"><tmpl_var bio></p>
+						<ul class="b-catalogue-item-action">
+							<li><form action="/community/join.bml" method="GET"><input type="hidden" name="comm" value="<tmpl_var username>"><input type="submit" value="<TMPL_VAR expr="ml('widget.browse.community.join')">" /></form></li>
+							<li><form action="/friends/add.bml"><input type="hidden" name="user" value="<tmpl_var username>"><input type="submit" value="<TMPL_VAR expr="ml('widget.browse.community.watch')">" /></form></li>
+						</ul>
+					</dd>
+				</dl>
+			</li>
+			</tmpl_loop>
+		</ul>
+	</div>
+</div>
+</div>
+</div>
+</div>
+</div>
+</div>
 

Modified: trunk/templates/Browse/index.tmpl
===================================================================
--- trunk/templates/Browse/index.tmpl	2010-11-03 10:43:30 UTC (rev 17639)
+++ trunk/templates/Browse/index.tmpl	2010-11-03 11:19:12 UTC (rev 17640)
@@ -3,7 +3,7 @@
 	<div>AD Block</div>
 	<div class="b-catalogue">
 		<div class="l-aside">	
-			<TMPL_INCLUDE browse.tmpl> 
+			<TMPL_INCLUDE browse.tmpl>
 		</div>
 	</div>
 </div>

Modified: trunk/templates/Browse/recent_posts.tmpl
===================================================================
--- trunk/templates/Browse/recent_posts.tmpl	2010-11-03 10:43:30 UTC (rev 17639)
+++ trunk/templates/Browse/recent_posts.tmpl	2010-11-03 11:19:12 UTC (rev 17640)
@@ -6,7 +6,7 @@
 		<li class="b-nav-counter-next"><TMPL_IF post_page_next><a href="<TMPL_VAR post_page_next>" title="<TMPL_VAR expr="ml('widget.browse.page.next')">"><i><TMPL_VAR expr="ml('widget.browse.page.next')"></i></a><TMPL_ELSE><span><i><TMPL_VAR expr="ml('widget.browse.page.next')"></i></span></TMPL_IF></li>
 		<li class="b-nav-counter-last"><TMPL_IF post_page_last><a href="<TMPL_VAR post_page_last>" title="<TMPL_VAR expr="ml('widget.browse.page.last')">"><i><TMPL_VAR expr="ml('widget.browse.page.last')"></i></a><TMPL_ELSE><span><i><TMPL_VAR expr="ml('widget.browse.page.last')"></i></span></TMPL_IF></li>
 	</ul>
-</TMPL_IF>	 
+</TMPL_IF>
 
 <ul class="b-catalogue-list b-recent-posts">
 <tmpl_loop posts>
@@ -22,9 +22,9 @@
 		</dl>
 		<div class="b-catalogue-item-desc">
 			<tmpl_var post_text>
-			<tmpl_if is_need_more>(<a href="<tmpl_var url_to_post>">Read more in original post</a>)<br/></tmpl_if>
+			<tmpl_if is_need_more>(<a href="<tmpl_var url_to_post>">Read more in original post</a>)</tmpl_if>
 		</div>
-		<p class="b-catalogue-item-comments"><span class="b-catalogue-comments-count"><a href="<tmpl_var url_to_post>#comments"><tmpl_var comments_count> comments</a> |<span> <a href="<tmpl_var url_to_post>?mode=reply">Leave comment</a></p>
+		<p class="b-catalogue-item-comments"><span class="b-catalogue-comments-count"><a href="<tmpl_var url_to_post>#comments"><tmpl_var comments_count> comments</a> |</span> <a href="<tmpl_var url_to_post>?mode=reply">Leave comment</a></p>
 	</li>
 </tmpl_loop>
 </ul>

Modified: trunk/templates/Browse/sidebar.tmpl
===================================================================
--- trunk/templates/Browse/sidebar.tmpl	2010-11-03 10:43:30 UTC (rev 17639)
+++ trunk/templates/Browse/sidebar.tmpl	2010-11-03 11:19:12 UTC (rev 17640)
@@ -5,9 +5,7 @@
 <TMPL_IF ad><div class="b-catalogue-ads"><TMPL_VAR ad></div></TMPL_IF>
 <TMPL_VAR search_widget>
 <TMPL_IF 0><TMPL_VAR popular_interests_widget></TMPL_IF>
-<TMPL_VAR add_community_widget>
-
 <tmpl_include top_posts.tmpl>
-<br/>
 <tmpl_include featured_communities.tmpl>
+<TMPL_VAR add_community_widget>
 

Modified: trunk/templates/Browse/top_posts.tmpl
===================================================================
--- trunk/templates/Browse/top_posts.tmpl	2010-11-03 10:43:30 UTC (rev 17639)
+++ trunk/templates/Browse/top_posts.tmpl	2010-11-03 11:19:12 UTC (rev 17640)
@@ -1,8 +1,32 @@
-<tmpl_loop top_posts>
-<tmpl_var subject><br/>
-<tmpl_var userpic><br/>
-<tmpl_var updated_ago><br/>
-<tmpl_var comments_count><br/>
-<hr/>
-</tmpl_loop>
+<div class="appwidget appwidget-featuredposts">
+<div class="right-mod">
+<div class="mod-tl">
+<div class="mod-tr">
+<div class="mod-br">
+<div class="mod-bl">
+	<div class="w-head">
+		<h2><span class="w-head-in">Featured posts</span></h2>
+		<i class="w-head-corner"></i>
+	</div>
+	<div class="w-content">
+		<ul class="b-posts">
+			<tmpl_loop top_posts>
+			<li<tmpl_if __last__> class="last"</tmpl_if>>
+				<dl>
+					<dt><img src="<tmpl_var userpic>"></dt>
+					<dd>
+						<h3 class="b-posts-head"><a href="<tmpl_var url_to_post>"><tmpl_var subject></a></h3>
+						<p class="b-posts-data"><i class="i-posts-time">Posted <tmpl_var updated_ago> |</i> <i class="i-posts-comments"><a href="<tmpl_var url_to_post>"><tmpl_var comments_count> comments</a></i></p>
+					</dd>
+				</dl>
+			</li>
+			</tmpl_loop>
+		</ul>
+	</div>
+</div>
+</div>
+</div>
+</div>
+</div>
+</div>
 

Tags: css, fiskus_boulder, livejournal, tmpl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments