Permalink
Browse files

css updated for category page, no need submit button for filtering.

  • Loading branch information...
1 parent e7caceb commit 684a0a10c03eb7922b0c0493bb52534634672490 @zakirsajib committed May 16, 2012
View
@@ -10,7 +10,16 @@
?>
<div id="cat-sidebar" class="left-sidebar">
-
+
+ <div class="cat-title"></div>
+
+
+ <div style="clear:both">&nbsp;</div>
+
+
+ <div class="cat-upper">
+ <div class="cat-inner">
+
<?php
if (is_category()) {
$this_category = get_category($cat);
@@ -43,17 +52,40 @@
<?php } ?>
+
+ <div style="clear:both">&nbsp;</div>
+
+ <?php if ( is_active_sidebar( 'category_sidebar' ) ) : ?>
+ <?php dynamic_sidebar( 'category_sidebar' ); ?>
+ <?php else: ?>
+ <img src="<?php bloginfo('template_url');?>/images/160x600.jpg" alt="" />
+ <?php endif;?>
+
-
+ </div>
+ </div> <!-- End cat upper-->
</div>
<div id="right-content" class="right-col">
<!-- Category Title-->
- <h1 class="archive"><?php single_cat_title(); ?></h1>
+ <h1 class="cat-h1"><?php single_cat_title(); ?></h1>
<!-- Social Icons-->
+ <div class="cat-social-icons">
+
+ <!-- AddThis Button BEGIN -->
+ <div class="addthis_toolbox_top addthis_default_style ">
+ <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
+ <a class="addthis_button_tweet"></a>
+ <a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
+ </div>
+ <!-- AddThis Button END -->
+
+ </div>
+
+ <div style="clear:both">&nbsp;</div>
<!-- Category descriptions-->
<div class="cat-descr">
@@ -78,11 +110,11 @@
<div class="product-pagination">
<div class="results">
- <form method="post" action="">
+ <form name="prd-qry" method="post" action="">
<div class="show-col">
<span class="show">Show</span>
- <select name="showresults" id="showresults">
+ <select name="showresults" id="showresults" onChange="this.form.submit();">
<?php
$results = get_option('current_result', $results);
@@ -104,9 +136,11 @@
<div class="sort-col">
<span class="show">Sort By</span>
- <select name="sort" id="sort">
+ <select name="sort" id="sort" onChange="this.form.submit();">
<?php
+
+
$sort = get_option('current_sort', $sort);
if (isset($_POST['sort'])){
@@ -117,7 +151,7 @@
$paged=0;
}
-
+
?>
<option <?php if($sort=='prod_popularity'){ echo 'selected="selected"';}?>value="prod_popularity">Popularity</option>
<option <?php if($sort=='prod_picks'){ echo 'selected="selected"';}?> value="prod_picks">Top Picks</option>
@@ -126,7 +160,7 @@
<option <?php if($sort=='low'){ echo 'selected="selected"';}?> value="low">Lowest Price</option>
</select>
</div>
- <input type="submit" value="Go">
+ <input type="hidden" value="Go" id="cat-submit">
</form>
</div>
@@ -250,7 +284,6 @@
</div>
-
<?php wp_reset_query();?>
View
@@ -41,6 +41,8 @@
</div></div></div> <!-- End of wrapper, wrapper-container, wrapper-inner -->
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4fab94974df927e0"></script>
+ <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4f9d4553386c391b"></script>
+
<?php wp_footer();?>
</body>
</html>
View
@@ -58,7 +58,7 @@ function my_register_sidebars() {
/*General Sidebar*/
$category_sidebar=array(
- 'id' => 'cat_sidebar',
+ 'id' => 'category_sidebar',
'name' => __( 'Category page Sidebar' ),
'description' => __( 'This is for google ad in left sidebar of category page.' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -421,9 +421,40 @@ h5.find-gifts-h5, .find-gifts a{text-transform: uppercase; color: #CC3399; font-
.cat-descr{float: left; width:345px;}
.cat-descr p{margin: 0;color: #393838; font-size: 14px; line-height: 1.5em;}
.cat-img{float: left; width: 334px;}
+.cat-upper{background: url(images/left-sidebar-bg.gif) repeat-y 0 0; width: 210px; min-height: 775px;}
+.cat-inner{padding: 10px;}
+.cat-inner li{line-height: 1.2em;list-style-type: disc; list-style-position: inside;}
+.cat-inner li a{color:#666666; font-size: 13.5px; font-weight: bold;}
+.cat-inner li a:hover{text-decoration: underline; color: #000;}
+.cat-inner li ul.children li{margin-left: 10px; list-style-type: square;}
+
+.cat-title {background: url(images/gift-bg.png) no-repeat 0 0; width: 210px; height: 35px; }
+
+
+h1.cat-h1{font-size: 34px; line-height: 1; margin: 0;}
+.cat-social-icons{ padding: 20px 0;}
+
+
+#cat-submit{
+ background: url(images/go_button.png) no-repeat 0 0;
+ height:23px;
+ width: 23px;
+ border: 0;
+ cursor: pointer;
+ margin: -1px 0;
+ text-indent: -9999em;
+}
+
+
+
+#sort, #showresults{width: 150px; /* height: 25px; border: 0; */ }
+
+
+
+
+
+
-#cat-sidebar li{margin-left: 5px;}
-#cat-sidebar li ul.children{margin-left: 5px;}
/*Product gallery*/
.product-box{float: left; width: 160px; min-height: 230px; border: 1px solid #CCC; margin-right: 10px;margin-bottom: 10px;}
@@ -435,10 +466,10 @@ h5.find-gifts-h5, .find-gifts a{text-transform: uppercase; color: #CC3399; font-
.p-price{color: #CC3399; font-size: 18px; font-weight: bold;}
-.results{background:#F4F4F4; width:680px; height:30px; border: 1px solid #CCC; float: left;}
+.results{background:#E7E7E7; width:680px; height:26px; border: 1px solid #CCC; float: left; padding: 5px 0 0;}
.show{color:#000; font-size: 13px; font-weight: bold;}
-.show-col, .sort-col{float: left; padding: 5px 10px 0;}
+.show-col, .sort-col{float: left; padding: 0px 10px 0;}
.total-results-col{float: left;}
.pagination-col{float: right;}

0 comments on commit 684a0a1

Please sign in to comment.