PluginProbe
Welcart e-Commerce / 1.3.3
Welcart e-Commerce v1.3.3
2.12.4 2.12.3 2.11.35 2.12.2 2.12.1 2.11.34 2.11.33 2.11.32 2.11.31 2.11.30 1.3.16 1.3.17 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 All 292 releases
usc-e-shop / theme / welcart_default / sidebar.php

sidebar.php in Welcart e-Commerce 1.3.3, at theme/welcart_default/sidebar.php

115 lines 6.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * <meta content="charset=UTF-8">
4 * @package Welcart
5 * @subpackage Welcart Default Theme
6 */
7 global $usces;
8 ?>
9 <!-- begin left sidebar -->
10 <div id="leftbar" class="sidebar">
11 <ul>
12 <?php /* Widgetized sidebar, if you have the plugin installed. */
13 if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
14 <li id="welcart_search-3" class="widget widget_welcart_search">
15 <div class="widget_title"><img src="<?php bloginfo('template_url'); ?>/images/search.png" alt="<?php _e('keyword search','usces') ?>" /><?php _e('keyword search','usces') ?></div>
16 <ul class="welcart_search_body welcart_widget_body">
17 <li>
18 <form method="get" id="searchform" action="<?php echo home_url(); ?>" >
19 <input type="text" value="" name="s" id="s" class="searchtext" /><input type="submit" id="searchsubmit" value="<?php _e('Search','usces') ?>" />
20 <div><a href="<?php echo USCES_CART_URL . $usces->delim; ?>page=search_item"><?php _e('An article category keyword search','usces') ?>&gt;</a></div>
21 </form>
22 </li>
23 </ul>
24 </li>
25 <li id="welcart_category-3" class="widget widget_welcart_category">
26 <div class="widget_title"><img src="<?php bloginfo('template_url'); ?>/images/category.png" alt="<?php _e('Item Category','usces') ?>" /><?php _e('Item Category','usces') ?></div>
27 <ul class="welcart_widget_body">
28 <?php $cats = get_category_by_slug('itemgenre'); ?>
29 <?php wp_list_categories('orderby=id&use_desc_for_title=0&child_of='.$cats->term_id.'&title_li='); ?>
30 </ul>
31 </li>
32 <li id="welcart_post-3" class="widget widget_welcart_post">
33 <div class="widget_title"><img src="<?php bloginfo('template_url'); ?>/images/post.png" alt="<?php _e('Information','usces') ?>" /><?php _e('Information','usces') ?></div>
34 <ul class="welcart_widget_body">
35 <?php usces_list_post(__('Uncategorized'),3); ?>
36 </ul>
37 </li>
38 <li id="welcart_calendar-3" class="widget widget_welcart_calendar">
39 <div class="widget_title"><img src="<?php bloginfo('template_url'); ?>/images/calendar.png" alt="<?php _e('Business Calendar','usces') ?>" /><?php _e('Business Calendar','usces') ?></div>
40 <ul class="welcart_calendar_body welcart_widget_body"><li>
41 <?php usces_the_calendar(); ?>
42 </li></ul>
43 </li>
44 <?php endif; ?>
45 </ul>
46 </div>
47 <!-- end left sidebar -->
48
49 <!-- begin right sidebar -->
50 <div id="rightbar" class="sidebar">
51 <ul>
52 <?php /* Widgetized sidebar, if you have the plugin installed. */
53 if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
54 <?php if(usces_is_membersystem_state()): ?>
55 <li id="welcart_login-3" class="widget widget_welcart_login">
56 <div class="widget_title"><img src="<?php bloginfo('template_url'); ?>/images/login.png" alt="<?php _e('Log-in','usces') ?>" /><?php _e('Log-in','usces') ?></div>
57 <ul class="welcart_login_body welcart_widget_body"><li>
58 <div class="loginbox">
59 <?php if ( ! usces_is_login() ) { ?>
60 <form name="loginwidget" id="loginform" action="<?php echo USCES_MEMBER_URL; ?>" method="post">
61 <p>
62 <label><?php _e('e-mail adress','usces') ?><br />
63 <input type="text" name="loginmail" id="loginmail" class="loginmail" value="<?php echo usces_remembername('return'); ?>" size="20" tabindex="10" /></label><br />
64 <label><?php _e('password','usces') ?><br />
65 <input type="password" name="loginpass" id="loginpass" class="loginpass" value="<?php echo usces_rememberpass('return'); ?>" size="20" tabindex="20" /></label><br />
66 <label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90"<?php echo usces_remembercheck('return'); ?> /> <?php _e('memorize login information','usces') ?></label></p>
67 <p class="submit">
68 <input type="submit" name="member_login" id="member_login" value="<?php _e('Log-in','usces') ?>" tabindex="100" />
69 </p>
70 </form>
71 <a href="<?php echo USCES_LOSTMEMBERPASSWORD_URL; ?>" title="<?php _e('Pssword Lost and Found','usces') ?>"><?php _e('Did you forget your password?','usces') ?></a><br />
72 <a href="<?php echo USCES_NEWMEMBER_URL; ?>" title="<?php _e('New enrollment for membership.','usces') ?>"><?php _e('New enrollment for membership.','usces') ?></a>
73 <?php }else{ ?>
74 <?php printf(__('Mr/Mrs %s', 'usces'), usces_the_member_name()); ?><br />
75 <?php echo usces_loginout(); ?><br />
76 <a href="<?php echo USCES_MEMBER_URL; ?>"><?php _e('Membership information','usces') ?></a>
77 <?php } ?>
78 </div>
79 </li>
80 </ul>
81 </li>
82 <?php endif; ?>
83 <li id="welcart_featured-3" class="widget widget_welcart_featured">
84 <div class="widget_title"><img src="<?php bloginfo('template_url'); ?>/images/osusume.png" alt="<?php _e('Items recommended','usces') ?>" /><?php _e('Items recommended','usces') ?></div>
85 <ul class="welcart_featured_body welcart_widget_body">
86 <li>
87 <?php
88 $offset = usces_posts_random_offset(get_posts('category='.usces_get_cat_id( 'itemreco' )));
89 $myposts = get_posts('numberposts=1&offset='.$offset.'&category='.usces_get_cat_id( 'itemreco' ));
90 foreach($myposts as $post) : usces_the_item();
91 ?>
92 <div class="thumimg"><a href="<?php the_permalink() ?>"><?php usces_the_itemImage($number = 0, $width = 150, $height = 150 ); ?></a></div>
93 <div class="thumtitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php usces_the_itemName(); ?>&nbsp;(<?php usces_the_itemCode(); ?>)</a></div>
94 <?php endforeach; ?>
95 </li>
96 </ul>
97 </li>
98 <li id="welcart_bestseller-3" class="widget widget_welcart_bestseller">
99 <div class="widget_title"><img src="<?php bloginfo('template_url'); ?>/images/bestseller.png" alt="<?php _e('best seller','usces') ?>" width="24" height="24" /><?php _e('best seller','usces') ?></div>
100 <ul class="welcart_widget_body">
101 <?php usces_list_bestseller(10); ?>
102 </ul>
103 </li>
104 <li id="welcart_page-2" class="widget widget_welcart_page">
105 <div class="widget_title"><img src="<?php bloginfo('template_url'); ?>/images/page.png" alt="<?php _e('page','usces') ?>" /><?php _e('page','usces') ?></div>
106 <ul class="welcart_widget_body">
107 <?php wp_list_pages('title_li=') ; ?>
108 </ul>
109 </li>
110 <?php endif; ?>
111 </ul>
112
113 </div>
114 <!-- end right sidebar -->
115