Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" debug="true">
- <head profile="http://gmpg.org/xfn/11">
- <title>
- <?php
- //wp_deregister_script( 'jquery' );
- if($_REQUEST['ptype'] !=''){
- bloginfo('name'); ?> | 
- <?php echo $_REQUEST['ptype'];
- }
- ?>
- <?php if ( is_home() && $_REQUEST['ptype']=='') {?>
- <?php wp_title(''); ?>
- <?php bloginfo('name'); ?>
- <?php }else if ( is_search() ) { ?>
- Search Results |
- <?php bloginfo('name'); ?>
- <?php }else if ( is_author() ) { ?>
- Author Archives |
- <?php bloginfo('name'); ?>
- <?php }else if ( is_single() ) { ?>
- <?php wp_title(''); ?>
- <?php }else if ( is_page() ) { ?>
- <?php wp_title(''); ?>
- <?php }else if ( is_category() ) { ?>
- <?php single_cat_title(); ?>
- |
- <?php bloginfo('name'); ?>
- <?php }else if ( is_tax() ) { ?>
- <?php single_cat_title(); ?>
- |
- <?php bloginfo('name'); ?>
- <?php }else if ( is_month() ) { ?>
- <?php the_time('F'); ?>
- |
- <?php bloginfo('name'); ?>
- <?php }else if ( is_tag() ) {?>
- <?php bloginfo('name'); ?>
- | Tag Archive |
- <?php single_tag_title("", true);
- }else {
- _e("Shop","templatic");
- }
- ?>
- </title>
- <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>;
- charset=<?php bloginfo('charset'); ?>" />
- <?php if (is_home()) { ?>
- <?php if ( get_option('ptthemes_meta_description') <> "" ) { ?>
- <meta name="description" content="<?php echo
- stripslashes(get_option('ptthemes_meta_description')); ?>" />
- <?php } ?>
- <?php if ( get_option('ptthemes_meta_keywords') <> "" ) { ?>
- <meta name="keywords" content="<?php echo
- stripslashes(get_option('ptthemes_meta_keywords')); ?>" />
- <?php } ?>
- <?php if ( get_option('ptthemes_meta_author') <> "" ) { ?>
- <meta name="author" content="<?php echo
- stripslashes(get_option('ptthemes_meta_author')); ?>" />
- <?php } ?>
- <?php } ?>
- <META HTTP-EQUIV="Expires" CONTENT="0">
- <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
- <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
- <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/library/css/print.css" media="print" />
- <link rel="stylesheet" type="text/css" href="http://www.mrcpromotions.com/wp-content/themes/framework/fonts1/stylesheet.css"/>
- <?php
- if(is_enable_woocommerce() &&
- is_plugin_active('woocommerce/woocommerce.php')){?>
- <link href="<?php bloginfo('stylesheet_directory');
- ?>/woocommerce.css" rel="stylesheet" type="text/css" />
- <?php }else{
- ?><link rel="stylesheet" type="text/css" href="<?php
- bloginfo('template_directory'); ?>/library/js/zoom/jquery.fancybox-1.2.6.css" />
- <?php } if(!is_enable_woocommerce()){ ?>
- <script type="text/javascript" src="<?php bloginfo('template_directory');
- ?>/library/js/modernizr.js"></script>
- <script type="text/javascript" src="<?php bloginfo('template_directory');
- ?>/library/js/jquery-1.3.2.min.js"></script>
- <?php } ?>
- <link href="<?php bloginfo('template_directory'); ?>/library/css/common.css"
- rel="stylesheet" type="text/css" />
- <?php if ( get_option('ptthemes_favicon') <> "" ) { ?>
- <link rel="icon" type="image/png" href="<?php echo get_option('ptthemes_favicon');
- ?>" />
- <?php } ?>
- <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if (
- get_option('ptthemes_feed_url') <> "" ) { echo get_option('ptthemes_feed_url'); }
- else { echo get_bloginfo_rss('rss2_url'); } ?>" />
- <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
- <!--[if lt IE 7]>
- <script type="text/javascript" src="<?php bloginfo('template_directory');
- ?>/library/js/pngfix.js"></script>
- <![endif]-->
- <?php if ( get_option('ptthemes_scripts_header') <> "" ) { echo
- stripslashes(get_option('ptthemes_scripts_header')); } ?>
- <!-- For Menu -->
- <?php if(function_exists('wp_enable_cufon_font')){wp_enable_cufon_font();}?>
- <?php
- if ( is_singular() && get_option( 'thread_comments' ) )
- wp_enqueue_script( 'comment-reply' );
- ?>
- <?php do_action('templ_head_css');?>
- <?php wp_head(); ?>
- <?php if ( get_option('ptthemes_customcss') ) { ?>
- <?php if(CHILDTEMPLATEPATH && file_exists(CHILDTEMPLATEPATH . '/custom.css')) {
- ?>
- <link href="<?php bloginfo('stylesheet_directory'); ?>/custom.css"
- rel="stylesheet" type="text/css" />
- <?php } else { ?>
- <link href="<?php bloginfo('template_directory'); ?>/custom.css"
- rel="stylesheet" type="text/css" />
- <?php }?>
- <?php }
- $image_width = get_option('ptthemes_image_width');
- $image_height = get_option('ptthemes_image_height');
- global $thumb_style;
- if($thumb_style=='')
- {
- $li_height = $image_height+50;
- if(get_option('ptthemes_prdlsthomeimage_border')
- == true){ $is_image_border = 1;
- echo $thumb_style = '<style
- type="text/css">#content ul.thumb_view li { height:'.$li_height.'px;
- width:'.($image_width+2).'px;}</style>';
- }else{
- echo $thumb_style = '<style
- type="text/css">#content ul.thumb_view li { height:'.$li_height.'px;
- width:'.($image_width).'px;}</style>';
- }
- }
- if($_REQUEST['checkout_as_guest']==1 && !is_enable_woocommerce()){
- ?>
- <script type="text/javascript">
- function setCost(pMethod,tamount){
- if(document.getElementById('copybilladd').checked == true &&
- document.getElementById('user_country').value ==
- document.getElementById('buser_country').value){
- var bucountry = document.getElementById('user_country').value;
- var bstate = document.getElementById('user_state').value;
- var buser_postalcode = document.getElementById('user_postalcode').value;
- }else if(document.getElementById('copybilladd').checked == true && bucountry !=
- document.getElementById('buser_country').value){
- var bucountry = document.getElementById('buser_country').value;
- var bstate = document.getElementById('buser_state').value;
- var buser_postalcode = document.getElementById('buser_postalcode').value;
- }else{
- var bucountry = document.getElementById('buser_country').value;
- var bstate = document.getElementById('buser_state').value;
- var buser_postalcode = document.getElementById('buser_postalcode').value;
- xmlhttp=new XMLHttpRequest();
- }
- if(document.getElementById('user_country').value == '' || bstate == ''){
- //alert('Please eneter billing details');
- }else{
- if (window.XMLHttpRequest)
- {// code for IE7+, Firefox, Chrome, Opera, Safari
- xmlhttp=new XMLHttpRequest();
- }else
- {// code for IE6, IE5
- xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange=function()
- {
- if (xmlhttp.readyState==4 && xmlhttp.status==200)
- {
- var response_text =xmlhttp.responseText;
- var results = response_text.split(';');
- var cur_pos = "<?php echo get_option('currencysym_pos'); ?>";
- if(results[0] >0){
- if(document.getElementById('tprice')){
- var total_price =
- parseFloat(tamount)+parseFloat(results[0]);
- var cur_pos = "<?php echo get_option('currencysym_pos');
- ?>";
- if(cur_pos == 'before'){
- document.getElementById('tprice').innerHTML = "<strong
- ><?php echo get_option('currencysym'); ?>"+results[0]+"</strong>";
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'><?php echo get_option('currencysym');
- ?>"+results[2]+"</strong>";
- }else if(cur_pos == none){
- document.getElementById('tprice').innerHTML =
- "<strong>"+results[0]+"</strong>";
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'>"+results[2]+"</strong>";
- }else{
- document.getElementById('tprice').innerHTML =
- "<strong>"+results[0]+"<?php echo get_option('currencysym'); ?></strong>";
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'>"+results[2]+"<?php echo get_option('currencysym');
- ?></strong>";
- }
- /* var input = document.createElement("input");
- input.setAttribute("type", "hidden");
- input.setAttribute("name", "weight_price");
- input.setAttribute("value", results[0]);
- document.getElementById("checkout_frm").appendChild(input); */
- }else{
- var table = document.getElementById('tmpl_order_info');
- var rowCount = table.rows.length;
- var row = table.insertRow(rowCount-1);
- var cell1 = row.insertCell(0);
- cell1.colSpan = "4";
- cell1.align = "right";
- cell1.setAttribute("class", 'row1');
- cell1.innerHTML = "Shipping cost :";
- var cell2 = row.insertCell(1);
- cell2.setAttribute('id','tprice');
- cell2.setAttribute("class", 'row1 tprice');
- cell2.innerHTML = " <?php echo
- get_option('currencysym'); ?>"+results[0];
- var total_price = results[2];
- var cur_pos = "<?php echo get_option('currencysym_pos');
- ?>";
- if(cur_pos == 'before'){
- //document.getElementById('total_price').innerHTML
- ="<strong><?php echo get_option('currencysym'); ?>"+total_price+"</strong>";
- }else if(cur_pos == none){
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'>"+total_price+"</strong>";
- }else{
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'>"+total_price+"<?php echo get_option('currencysym');
- ?></strong>";
- }
- }
- }else{
- var total_price2 = results[2];
- if(document.getElementById('tprice')){
- var table =
- document.getElementById('tmpl_order_info');
- var rowCount = table.rows.length;
- if(document.getElementById('tax_price')){
- var row = table.deleteRow(rowCount-3);
- }else{
- var row = table.deleteRow(rowCount-2);
- }
- }
- if(cur_pos == 'before'){
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'><?php echo get_option('currencysym');
- ?>"+total_price2+"</strong>";
- }else if(cur_pos == none){
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'>"+total_pric2+"</strong>";
- }else{
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'>"+total_price2+"<?php echo get_option('currencysym');
- ?></strong>";
- }
- }
- if(results[1] >0){
- if(document.getElementById('tax_price')){
- var total_price = results[2];
- var cur_pos = "<?php echo get_option('currencysym_pos');
- ?>";
- if(cur_pos == 'before'){
- document.getElementById('tax_price').innerHTML =
- "<strong><?php echo get_option('currencysym'); ?>"+results[1]+"</strong>";
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'><?php echo get_option('currencysym');
- ?>"+total_price+"</strong>";
- }else if(cur_pos == none){
- document.getElementById('tax_price').innerHTML =
- "<strong>"+results[1]+"</strong>";
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'>"+total_price+"</strong>";
- }else{
- document.getElementById('tax_price').innerHTML =
- "<strong>"+results[1]+"<?php echo get_option('currencysym'); ?></strong>";
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'>"+total_price+"<?php echo get_option('currencysym');
- ?></strong>";
- }
- }else{
- var table = document.getElementById('tmpl_order_info');
- var rowCount = table.rows.length;
- var row = table.insertRow(rowCount-1);
- var cell1 = row.insertCell(0);
- cell1.setAttribute("class", 'row1');
- cell1.colSpan = "4";
- cell1.align = "right";
- if(isNaN(results[1]))
- {
- var tax_html = results[1].split(':');
- cell1.innerHTML = tax_html[0] +":";
- }
- else
- {
- cell1.innerHTML = "Tax amount :";
- }
- var cell2 = row.insertCell(1);
- cell2.setAttribute('id','tax_price');
- cell2.setAttribute("class", 'row1 tprice');
- if(isNaN(results[1]))
- {
- var tax_html = results[1].split(':');
- cell2.innerHTML = "<?php echo
- get_option('currencysym'); ?>"+tax_html[1];
- }
- else
- {
- cell2.innerHTML = "<?php echo
- get_option('currencysym'); ?>"+results[1];
- }
- var total_price = results[2];
- if(cur_pos == 'before'){
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'><?php echo get_option('currencysym');
- ?>"+total_price+"</strong>";
- }else if(cur_pos == none){
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'>"+total_price+"</strong>";
- }else{
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'>"+total_price+"<?php echo get_option('currencysym');
- ?></strong>";
- }
- }
- }else{
- var total_price1 = results[2];
- if(document.getElementById('tax_price')){
- var table = document.getElementById('tmpl_order_info');
- var rowCount = table.rows.length;
- var row = table.deleteRow(rowCount-2);
- }
- if(cur_pos == 'before'){
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'><?php echo get_option('currencysym');
- ?>"+total_price1+"</strong>";
- }else if(cur_pos == none){
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'>"+total_price1+"</strong>";
- }else{
- document.getElementById('total_price').innerHTML
- ="<strong id='final_amount1'>"+total_price1+"<?php echo get_option('currencysym');
- ?></strong>";
- }
- }
- if(results[3]!= ''){
- jQuery('#guest_checout_user').append(results[3]);
- }
- }
- }
- }
- url = "<?php echo get_template_directory_uri();
- ?>/library/includes/ajax_guest_cart_calculation.php?country="+bucountry+"&bstate="
- +bstate+"&buser_postalcode="+buser_postalcode;
- xmlhttp.open("GET",url,true);
- xmlhttp.send();
- }
- </script>
- <?php } ?>
- <?php
- if (is_singular() && !is_page())
- {
- facebook_meta_tags($post);
- }
- ?>
- </head>
- <body>
- <?php
- global $General,$Cart,$Product,$themeUI;
- $userInfo = $General->getLoginUserInfo();
- if(CHILDTEMPLATEPATH && file_exists(CHILDTEMPLATEPATH . '/header_page.php'))
- {
- include(CHILDTEMPLATEPATH . '/header_page.php');
- }else
- {
- include(TEMPLATEPATH . '/library/includes/header.php');
- }
- ?>
- <div id="wrapper">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement