コード例 #1
0
function widget_wp_shopping_cart($args)
{
    extract($args);
    $options = get_option('widget_wp_shopping_cart');
    if (get_option('show_sliding_cart') == 1) {
        if (is_numeric($_SESSION['slider_state'])) {
            if ($_SESSION['slider_state'] == 0) {
                $collapser_image = 'plus.png';
            } else {
                $collapser_image = 'minus.png';
            }
            $fancy_collapser = "<a href='#' onclick='return shopping_cart_collapser()' id='fancy_collapser_link'><img src='" . WPSC_URL . "/images/{$collapser_image}' title='' alt='' id='fancy_collapser' /></a>";
        } else {
            if ($_SESSION['nzshpcrt_cart'] == null) {
                $collapser_image = 'plus.png';
            } else {
                $collapser_image = 'minus.png';
            }
            $fancy_collapser = "<a href='#' onclick='return shopping_cart_collapser()' id='fancy_collapser_link'><img src='" . WPSC_URL . "/images/{$collapser_image}' title='' alt='' id='fancy_collapser' /></a>";
        }
    } else {
        $fancy_collapser = "";
    }
    $title = empty($options['title']) ? __('Shopping Cart') : $options['title'];
    //$title .= $fancy_collapser;
    echo $before_widget;
    $full_title = $before_title . $title . $fancy_collapser . $after_title;
    echo $full_title;
    echo "<ul>\n\r";
    echo "  <li>\n\r";
    nzshpcrt_shopping_basket("", 4);
    echo "  </li>\n\r";
    echo "</ul>\n\r";
    echo $after_widget;
}
コード例 #2
0
function widget_wp_shopping_cart($args)
{
    extract($args);
    $options = get_option('widget_wp_shopping_cart');
    $title = empty($options['title']) ? __('Shopping Cart') : $options['title'];
    echo $before_widget;
    $full_title = $before_title . $title . $after_title;
    nzshpcrt_shopping_basket($full_title);
    echo $after_widget;
}
コード例 #3
0
ファイル: header.php プロジェクト: hagure/960bc

<?php 
wp_head();
?>


</head>
<body>
	<!-><div id="search">
		<?php 
echo gold_shpcrt_search_form();
?>
		<br />
		<?php 
echo nzshpcrt_shopping_basket();
?>
	</div> <!-- end search -->
	
	<div id="header">
		<!-- skip to content and navigation links - these are hidden with screen reader friendly css for accessibility -->
		<div id="skip">
			<p><a href="#content" title="skip to main content">skip to main content</a></p>
			<p><a href="#navigation" title="skip to navigation">skip to main menu</a></p>
		</div><!-- end skip -->
	
		<div id="headerimg">
			<h2><a href="<?php 
echo get_option('home');
?>
/"><?php