Skip to main content

Get Google Calendar Event List in WordPress

<a href="https://console.cloud.google.com/apis/credentials">Get Your Api Credentials Here</a> <a href="https://calendar.google.com/calendar">Get your Calender ID</a> <?php include_once("wp-load.php"); function  get_calender_events() { $params = array(); /*Get current date*/ $current_date  = date('Y-m-d H:i:s'); /*Convert it to google calendar's rfc_format */ $rfc_format = date("c", strtotime($current_date)); $params[] = 'orderBy=startTime'; $params[] ='maxResults=100'; $params[] = 'timeMin='.urlencode($rfc_format); $url_param = ''; foreach($params as $param) { $url_param.= '&'.$param; } $calender_id = "calender_id"; $client_key =  "client_key"; $url = "https://www.googleapis.com/calendar/v3/calendars/".$calender_id."/events?key=".$client_key."&singleEvents=true".$url_param; $list_events = wp_remote_post($url,

extra

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
 <script>
 $(document).ready(function(){
// Your code here
 jQuery("div.quantity").append('<input type="button" value="+" id="add1" class="plus" />').prepend('<input type="button" value="-" id="minus1" class="minus" />');
        jQuery(".plus").click(function()
        {
            var currentVal = parseInt(jQuery(this).prev(".qty").val());
         
            if (!currentVal || currentVal=="" || currentVal == "NaN"){
              currentVal = 0;
            }
            var increment = jQuery(this).prev(".qty").attr("data-role");
         
            if(!increment || increment=="" || increment == "NaN"){
                currentVal = currentVal + 1;
            }else {              
                currentVal = parseInt(currentVal) + parseInt(increment);
            }
                       
            jQuery(this).prev(".qty").val(currentVal);
        });
   
        jQuery(".minus").click(function()
        {
            var currentVal = parseInt(jQuery(this).next(".qty").val());
         
            if (currentVal == "NaN"){
                currentVal = 0;
            }
            else {              
                var increment = jQuery(this).next(".qty").attr("data-role");                        
                currentVal = parseInt(currentVal) - parseInt(increment);              
            }
            if (currentVal >= 0 )
            {
                jQuery(this).next(".qty").val(currentVal);
            }
        });

});    
     
</script>

 <td class="a-center">
<div class="quantity">
                        <?php /*<input type="text" id="qty" name="super_group[<?php echo $_item->getId() ?>]" maxlength="12" value="<?php echo $_item->getQty()*1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" data-role="<?php echo $this->getMinimalQty($_item)== null?1:$this->getMinimalQty($_item); ?>" /> */?>
    <?php $stockItem = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_item->getId());?>                      
                        <input type="text" id="qty" name="super_group[<?php echo $_item->getId() ?>]" maxlength="12" value="<?php echo $_item->getQty()*1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" data-role="<?php echo $stockItem->getQtyIncrements()==null ? 1: $stockItem->getQtyIncrements();?>" />
                    </div>
                </td>









for image change

view.phtl

<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

/**
 * Product view template
 *
 * @see Mage_Catalog_Block_Product_View
 * @see Mage_Review_Block_Product_View
 */
 $ajax_cart= Mage::getStoreConfig('themeoptions_general/prodcuts_list_page/ajax_cart', $storeId);
?>
<?php $_helper = $this->helper('catalog/output'); ?>
<?php $_product = $this->getProduct(); ?>

<script type="text/javascript">
    var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
</script>
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
<div class="product-view">
    <div class="product-essential">
    <form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
        <div class="no-display">
            <input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
            <input type="hidden" name="related_product" id="related-products-field" value="" />
        </div>
        <?php if($ajax_cart):?>
        <div id="addedoverlay" style='display:none'> </div>
        <div id='added' style='display:none'></div>
        <div id='productname' style='display:none'><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></div>
        <div id="imgaddtocart" style="display: none;"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(75); ?>" width="75" height="75" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></div>  
        <?php endif; ?>
        <div class="row-fluid">
        <div class="product-img-box span6">
            <?php echo $this->getChildHtml('media') ?>
        </div>
        <div class="product-shop span6">
            <div class="product-name">
            <?php //$productType = $_product->getTypeID(); ?>
                <?php //echo $productType; ?>
             
                <?php if($_product->getTypeID() == 'simple' && $_GET['kleur']==""): ?>
       
                <h1>
<?php //echo $sku = Mage::getModel('catalog/product')->load($_product->getId())->getSku(); ?>
                <?php //echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?>
                    <?php $sku = Mage::getModel('catalog/product')->load($_product->getId())->getSku(); echo $sku; ?>
                </h1>              
                <?php else : ?>
                <h1 id="sku-container" > </h1>
<?php endif; ?>
                <span></span>
            </div>
            <div class="row-fluid">
            <div class="short-description">
                    <div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div>
                </div>
<div class="row-fluid">
 
 <?php if($_product->isConfigurable() || $_GET['kleur'] !="") { ?>
  <script>
  setInterval(function(){
  // jQuery("#tabs").show();
    },100);

    </script>
  <div class="span12">
    <?php //echo $this->getChildHtml('info_tabs') ?>
        <div id="tabs" style=" display: none !important;">
   <ul>
      <?php /*?><li><a href="#tabs-1">Product Description</a></li><?php */?>
      <li class=".tabs33"><a href="#tabs-3">Extra informatie</a></li>
   </ul>
   <?php /*?><div id="tabs-1">
   <?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?>
   </div><?php */?>
   <div id="tabs-3">
<table class="data-table">
<tr>
 <td>PSI Materiaal</td>
 <td id="psimat-container"></td>
</tr>
<tr>
  <td>PSI Dimension</td>
  <td id="psimat-dimension"></td>
</tr>
<tr>
 <td>PSI Print Dimension</td>
 <td id="psimat-printdimension"></td>
</tr>
<tr>
 <td>PSI Print Informatie</td>
 <td id="psimat-printinformatie"></td>
</tr>
<tr>
 <td>PSI Kleuren</td>
 <td id="psimat-psikleur"></td>
</tr>
<tr>
 <td>PSI aantal Perdoos</td>
 <td id="psimat-psiaantalperdoos"></td>
</tr>
<tr>
 <td>PSI aantal Kleuren</td>
 <td id="psimat-psiaantalkleuren"></td>
</tr>

    </table>
   </div>
    </div>
  </div>
           <?php
   } ?>
   <?php
   if($_product->getTypeID() == 'simple' && $_GET['kleur']=="" )
{
echo $this->getChildHtml('info_tabs');
}
   ?>
    <div class="span4 right-block" style="display:none";>
    <div class="right-block-inner">
    <?php if($this->getChildHtml('related_products')):?>
    <?php echo $this->getChildHtml('related_products') ?>
    <?php else:?>
    <?php if ($product_detail_right = $this->getLayout()->createBlock('cms/block')->setBlockId('detail_product_right')->toHtml()): ?>
    <?php echo $product_detail_right; ?>
   <?php endif;?>
<?php endif;?>
    </div>
    </div>
</div>

<?php if (Mage::getSingleton('customer/session')->isLoggedIn()) { ?>
<?php if($_product->isConfigurable() == 1){ ?>

<p class="availability in-stock"><span class="hide-in-stock"><?php echo $this->__('Aantal in voorraad: ') ?> <span id="stock-container"> </span></span>
</br><?php echo $this->__('Availability:') ?> <span><span id="avail-container"></span></span></p>


<?php }else { ?>
 
   <?php if ($_product->isAvailable()): ?>
   <?php $actual_qty = (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty(); ?>
 
<p class="availability in-stock"><span class="hide-in-stock"><?php echo $this->__('Aantal in voorraad: ') ?><?php echo $actual_qty; ?></span></br><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p>
   <?php else: ?>
<p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p>
   <?php endif; ?>

<?php } ?>
<?php } ?>
             

                <div class="span12">
 
<?php echo $this->getReviewsSummaryHtml($_product, false, true)?>
<!-- Add to links-->
<?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
<ul class="add-to-links">
<?php /*?><?php if ($this->helper('wishlist')->isAllow()) : ?>
   <li><a href="<?php echo $_wishlistSubmitUrl ?>" onclick="productAddToCartForm.submitLight(this, this.href); return false;" class="link-wishlist"><?php echo $this->__('<i class="icon-wishlist"></i> Add to Wishlist') ?></a></li>
<?php endif; ?><?php */ ?>
<?php
   //$_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
?>
<?php //if($_compareUrl) : ?>
  <!--  <li><a href="<?php //echo $_compareUrl ?>" class="link-compare"><?php //echo $this->__('<i class="icon-compare"></i> Add to Compare') ?></a></li> -->
<?php //endif; ?>
  <!--  <li><a href="<?php //echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>" class="email-to-friend"><?php //echo $this->__('<i class="icon-mail"></i> Email to a Friend') ?></a></li> -->

</ul>          
            <?php if ($this->canEmailToFriend()): ?>
               <!-- <p class="email-friend"><a href="<?php //echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>"><?php //echo $this->__('Email to a Friend') ?></a></p>-->
            <?php endif; ?>
            <?php echo $this->getChildHtml('alert_urls') ?>
            <?php echo $this->getChildHtml('product_type_data') ?>
            <?php echo $this->getTierPriceHtml() ?>
            <?php echo $this->getChildHtml('extrahint') ?>

            <?php if (!$this->hasOptions()):?>
                <div class="add-to-box">
                    <?php if($_product->isSaleable()): ?>
                        <?php echo $this->getChildHtml('addtocart') ?>
                        <?php if( $this->helper('wishlist')->isAllow() || $_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product)): ?>
                        <?php endif; ?>
                    <?php endif; ?>
                    <?php echo $this->getChildHtml('addto') ?>
                </div>
                <?php echo $this->getChildHtml('extra_buttons') ?>
           <?php elseif (!$_product->isSaleable()): ?>
               <div class="add-to-box">
                   <?php echo $this->getChildHtml('addto') ?>
               </div>
           <?php endif; ?>



           <?php echo $this->getChildHtml('other');?>
    <?php if ($block_detail_product_page_1 = $this->getLayout()->createBlock('cms/block')->setBlockId('block_detail_product_page_1')->toHtml()): ?>
    <?php echo $block_detail_product_page_1; ?>
   <?php endif;?>
           <?php if ($_product->isSaleable() && $this->hasOptions()):?>
               <?php echo $this->getChildChildHtml('container1', '', true, true) ?>
           <?php endif;?>
                    <div class="clearer"></div>
                <?php if ($_product->getShortDescription()):?>
                <?php /*?><div class="short-description">
                    <div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div>
                </div> <?php */?>            
                <?php endif;?>

                <?php echo $this->getLayout()->createBlock('sharingtool/share')->setBlockId('addthis_sharetool')->toHtml(); ?>
<?php if ($this->helper('customer')->isLoggedIn()): ?>

<?php if ($_product->isAvailable()): ?>
    <?php /* ?><p class="availability in-stock"><?php echo $this->__('Qty on Hand:') ?> <span><!--<?php echo $this->__('In stock') ?>--><?php echo (int) Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty()?></span></p>
<?php */ ?>
<?php else: ?>

<?php endif; ?>

<?php else: ?>

<?php endif; ?>



       <?php if ($_product->isSaleable() && $this->hasOptions()):?>
           <?php echo $this->getChildChildHtml('container2', '', true, true) ?>
       <?php endif;?>
           
    <?php if ($block_detail_product_page_2 = $this->getLayout()->createBlock('cms/block')->setBlockId('block_detail_product_page_2')->toHtml()): ?>
    <?php echo $block_detail_product_page_2; ?>
   <?php endif;?>

<?php
                    $attributeSetModel = Mage::getModel("eav/entity_attribute_set");
                    $attributeSetModel->load($_product->getAttributeSetId());
                    $_SESSION['AttName']=$attributeSetModel->getAttributeSetName();
                 
                    $_SESSION['PSI Materiaal'] = $_product->getPsimateriaal();
                    $_SESSION['PSI Dimension'] = $_product->getPsidimension();
                    $_SESSION['PSI Certificate'] = $_product->getPsicertificate();
                    $_SESSION['PSI Print Dimension'] = $_product->getPsiprintdimension();
                    $_SESSION['PSI Print Informatie'] = $_product->getPsiprintinformatie();
                    $_SESSION['PSI Kleur'] = $_product->getPsikleur();
                    $_SESSION['PSI doosformaat'] = $_product->getPsidoosformaat();
                    $_SESSION['PSI Aantal per doos'] = $_product->getPsiaantalperdoos();
                    $_SESSION['PSI Bruto gewicht per doos'] = $_product->getPsibrutogewichtperdoos();
                    $_SESSION['PSI aantal Kleuren'] = $_product->getPsiaantalkleuren();
                 
                    ?>

   </div>
        </div>
</div>
        </div>
     
    </form>
<?php if($ajax_cart):?>  
    <script type="text/javascript">
    //<![CDATA[
        var productAddToCartForm = new VarienForm('product_addtocart_form');
    productAddToCartForm.submit = function(button, url) {
if (this.validator.validate()) {
var form = this.form;
var oldUrl = form.action;
if (url) {
form.action = url;
}
var e = null;
            var msgHtml;
            var productImg = jQuery('#imgaddtocart').html();
            var windowOver = jQuery('#addedoverlay');
            var windowBox = jQuery('#added');
            var titleForBox = jQuery('#productname').text();
if (!url) {
url = jQuery('#product_addtocart_form').attr('action');
}
url = url.replace("checkout/cart","ajax/index");
var data = jQuery('#product_addtocart_form').serialize();
data += '&isAjax=1';
jQuery.colorbox({html:'<div id="cboxLoadingGraphic" style="width:32px;height:32px;"></div>',width:32,height:32,opacity:0.5,onLoad: function() {jQuery('#cboxClose').remove();}});
try {
jQuery.ajax( {
url : url,
dataType : 'json',
type : 'post',
data : data,
                    error : function(data) {
             windowBox.css({
                     backgroundImage: 'none'
                   }).html('<?php echo $this->__('Error') ?>');
                        windowOver.one('click',function(){
           hidewindow(windowBox,windowOver);                  
                        });    
                                       
                        jQuery('#hidewindow').click(function(){
           hidewindow(windowBox,windowOver);                  
                        });
                    },
success : function(data) {

                        if(data.status == 'SUCCESS'){
if(jQuery('.mini-cart')){
           jQuery('.mini-cart').replaceWith(data.sidebar);
       }
// Shopping cart dropdown
jQuery(".mini-cart").hover(function() {
jQuery(this).addClass('hover');
jQuery(".mini-cart .block-content").stop(true, true).delay(300).fadeIn(500, "easeOutCubic");
}, function() {
jQuery(".mini-cart .block-content").stop(true, true).delay(300).fadeOut(500, "easeInCubic");
});
jQuery.colorbox.close();
jQuery("html, body").animate({ scrollTop: 0 }, 500);    
                        }else{
                             jQuery.colorbox({html:'<p class="error-msg" style="margin-bottom:15px;">' + data.message + '</p>',opacity:0.5,onLoad: function() {jQuery('#cboxClose').remove();}});
                        }
                                                             
                     
       

}
});
} catch (e) {
}
this.form.action = oldUrl;
if (e) {
throw e;
}
}
}.bind(productAddToCartForm);
    productAddToCartForm.submitLight = function(button, url){
            if(this.validator) {
                var nv = Validation.methods;
                delete Validation.methods['required-entry'];
                delete Validation.methods['validate-one-required'];
                delete Validation.methods['validate-one-required-by-name'];
                if (this.validator.validate()) {
                    if (url) {
                        this.form.action = url;
                    }
                    this.form.submit();
                }
                Object.extend(Validation.methods, nv);
            }
        }.bind(productAddToCartForm);
     
        function hidewindow(windowBox,windowOver){
            windowOver.fadeOut(400);
            windowBox.fadeOut(400).html('');
        }

    //]]>
    </script>
<?php else:?>
    <script type="text/javascript">
    //<![CDATA[
        var productAddToCartForm = new VarienForm('product_addtocart_form');
        productAddToCartForm.submit = function(button, url) {
            if (this.validator.validate()) {
                var form = this.form;
                var oldUrl = form.action;

                if (url) {
                   form.action = url;
                }
                var e = null;
                try {
                    this.form.submit();
                } catch (e) {
                }
                this.form.action = oldUrl;
                if (e) {
                    throw e;
                }

                if (button && button != 'undefined') {
                    button.disabled = true;
                }
            }
        }.bind(productAddToCartForm);

        productAddToCartForm.submitLight = function(button, url){
            if(this.validator) {
                var nv = Validation.methods;
                delete Validation.methods['required-entry'];
                delete Validation.methods['validate-one-required'];
                delete Validation.methods['validate-one-required-by-name'];
                // Remove custom datetime validators
                for (var methodName in Validation.methods) {
                    if (methodName.match(/^validate-datetime-.*/i)) {
                        delete Validation.methods[methodName];
                    }
                }

                if (this.validator.validate()) {
                    if (url) {
                        this.form.action = url;
                    }
                    this.form.submit();
                }
                Object.extend(Validation.methods, nv);
            }
        }.bind(productAddToCartForm);
    //]]>
    </script>
<?php endif;?>  


    </div>

    <div class="product-collateral row-fluid">
    <link href="<?php echo $this->getSkinUrl('css/tab.css')?>" rel="stylesheet" type="text/css" />
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    <script>
 jQuery(function() {
   jQuery( "#tabs" ).tabs();
jQuery( ".tabs22" ).hide();
 });
function simple()
{
   jQuery( ".tabs33" ).show();
   jQuery( ".tabs22" ).hide();
}
    </script>
  <?php /*?><div class="row-fluid">
 <?php if($_product->isConfigurable() || $_GET['kleur'] !="") { ?>

  <div class="span8">
    <?php //echo $this->getChildHtml('info_tabs') ?>
        <div id="tabs">
   <ul>
      <li><a href="#tabs-1">Product Description</a></li>
      <li class=".tabs33"><a href="#tabs-3">Extra informatie</a></li>
   </ul>
   <div id="tabs-1">
   <?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?>
   </div>
   <div id="tabs-3">
<table class="data-table">
<tr>
 <td>PSI Materiaal</td>
 <td id="psimat-container"></td>
</tr>
<tr>
  <td>PSI Dimension</td>
  <td id="psimat-dimension"></td>
</tr>
<tr>
 <td>PSI Print Dimension</td>
 <td id="psimat-printdimension"></td>
</tr>
<tr>
 <td>PSI Print Informatie</td>
 <td id="psimat-printinformatie"></td>
</tr>
<tr>
 <td>PSI Kleuren</td>
 <td id="psimat-psikleur"></td>
</tr>
<tr>
 <td>PSI aantal Perdoos</td>
 <td id="psimat-psiaantalperdoos"></td>
</tr>
<tr>
 <td>PSI aantal Kleuren</td>
 <td id="psimat-psiaantalkleuren"></td>
</tr>

    </table>
   </div>
    </div>
  </div>
  <?php
  } ?>
  <?php
  if($_product->getTypeID() == 'simple' && $_GET['kleur']=="" )
{
echo $this->getChildHtml('info_tabs');
}
  ?>
    <div class="span4 right-block">
    <div class="right-block-inner">
    <?php if($this->getChildHtml('related_products')):?>
    <?php echo $this->getChildHtml('related_products') ?>
    <?php else:?>
    <?php if ($product_detail_right = $this->getLayout()->createBlock('cms/block')->setBlockId('detail_product_right')->toHtml()): ?>
    <?php echo $product_detail_right; ?>
   <?php endif;?>
<?php endif;?>
    </div>
    </div>
</div><?php */?>
    </div>
     <?php echo $this->getChildHtml('product_additional_data') ?>
        <?php //echo $this->getChildHtml('upsell_products') ?>  
</div>

<?php if ($block_bottom_details_page = $this->getLayout()->createBlock('cms/block')->setBlockId('block_bottom_details_page')->toHtml()): ?>
<div class="row-fluid tabs-bottom">
<?php echo $block_bottom_details_page; ?>
</div>
<?php endif;?>
<?php echo $this->getChildHtml('newproduct') ?>


*****************
media


<?php
$main_image_product_width = 326;
$main_image_product_height = 370;
$thumb_image_product_width = 65;
$thumb_image_product_height = 74;
    $_product = $this->getProduct();
    $_helper = $this->helper('catalog/output');
?>
<?php if ($_product->getImage() != 'no_selection' && $_product->getImage()): ?>
<?php
$sale = false;
$new_label = Mage::getStoreConfig('themeoptions_general/prodcuts_list_page/new_product_label', $storeId);
$new_position = Mage::getStoreConfig('themeoptions_general/prodcuts_list_page/new_product_label_position', $storeId);
$sale_label = Mage::getStoreConfig('themeoptions_general/prodcuts_list_page/sale_product_label', $storeId);
$sale_position = Mage::getStoreConfig('themeoptions_general/prodcuts_list_page/sale_product_label_position', $storeId);
if ($new_label)
{
$specialPrice = number_format($_product->getFinalPrice(), 2);
$regularPrice = number_format($_product->getPrice(), 2);
if ($specialPrice != $regularPrice){
      $sale = true;
}
}
 
$new = false;
if ($sale_label)
{
        $now = date("Y-m-d H:m:s");
        $newFromDate = $_product->getNewsFromDate();
        $newToDate = $_product->getNewsToDate();                                            
        if($newFromDate < $now && $newToDate > $now){
            $new = true;
        }
}
 
    if($new){
        ?>
           <div class="nova-product-label nova-new-label"><?php echo $this->__('New!') ?></div>
        <?php
    }
 
    if($sale){
        ?>
            <div class="nova-product-label nova-sale-label"><?php echo $this->__('Sale!') ?></div>
        <?php
    }
?>
<p class="product-image product-image-zoom">
    <?php
        $_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image').'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
        echo $_helper->productAttribute($_product, $_img, 'image');
    ?>
</p>
<p class="zoom-notice" id="track_hint"><?php echo $this->__('Double click on above image to view full picture') ?></p>
<div class="zoom">
    <img id="zoom_out" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_out.gif') ?>" alt="<?php echo $this->__('Zoom Out') ?>" title="<?php echo $this->__('Zoom Out') ?>" class="btn-zoom-out" />
    <div id="track">
        <div id="handle"></div>
    </div>
    <img id="zoom_in" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_in.gif') ?>" alt="<?php echo $this->__('Zoom In') ?>" title="<?php echo $this->__('Zoom In') ?>" class="btn-zoom-in" />
</div>
<script type="text/javascript">
//<![CDATA[
    Event.observe(window, 'load', function() {
        product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint');
    });
//]]>
</script>
<?php else: ?>
<p class="product-image">
    <?php
        $_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize($main_image_product_width,$main_image_product_height).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
        echo $_helper->productAttribute($_product, $_img, 'image');
    ?>
</p>
<?php endif; ?>
<?php if (count($this->getGalleryImages()) > 0): ?>
<div class="more-views">
    <ul>
    <?php foreach ($this->getGalleryImages() as $_image): ?>
        <li>
            <a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image) ?>', 'gallery', 'width=300,height=300,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize($thumb_image_product_width,$thumb_image_product_height); ?>" width="<?php echo $thumb_image_product_width?>" height="<?php $thumb_image_product_height?>" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>
        </li>
    <?php endforeach; ?>
    </ul>
</div>
<?php endif; ?>




for htaccess

http://69.195.124.220/~nomencla/index.php?category=large-vehicles&item=large-trucks
to
http://69.195.124.220/~nomencla/large-vehicles/large-trucks

.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond $1 !^(index\.php|assets|robots\.txt|favicon\.ico|images|js|css|jscript|images1|graphics)
#RewriteCond %{REQUEST_URI} ^(images|js|css|jscript|images1|graphics|graphics)
RewriteRule ^large-([^/]*)/([^/]*)$ /~nomencla/index.php?category=large-$1&item=$2 [L]
</IfModule>


jquer**************

function saveProgram(programId,type,Clientid)
{
var clientValue='';
if(Clientid!='')
{
var e = document.getElementById(Clientid);
clientValue=e.options[e.selectedIndex].value;
}
else
clientValue=0;


var exeId='';

var flag=0;
var exeOrderId="";
var exeOrderIdData="";
$('.rightMainBg .order').each(function(index,value)
{

exeOrderId=exeOrderId+$($(value).children()[0]).val()+",";
});

$('.rightMainBg .exercise').each(function(index, value)

{
var len=exeOrderId.length;
exeOrderIdData=exeOrderId.substr(0,(len)-1);
        var newexercise = $(value).children().find('.saveexercise').val();
        if(newexercise=="" && newexercise!=undefined){
             flagdata=1;
        }
else if($(value).children().attr('id')==undefined && newexercise=="")
{

flagdata=1;



}else
{

         
         
            if($(value).children().attr('id')==undefined && newexercise !="" ){
     flagdata=0;
    }
            var customeId;
                 
            if($(value).children().attr('id') !=undefined){
                exeId+=$(value).children().attr('id')+",";
            }else {
                var newURL = window.location.protocol + "//" + window.location.host + "/javascript/ajax/ajax.php";
                  $.ajax({        
                    url: newURL,
                    type: "post",
                    data: {dataval:newexercise},
                    //processData:false,
                    //contentType:false,
                    cache:false,
                    async:false,
                    success: function(data){
                        exeId+=data+",";
                       
                  }
                });
               
               
            }    
               
                // flagdata=0;
 
   
        }


});

if(flagdata==0)
{  //exeId+=exeId;
  //alert(exeId);
  getAjaxSaveProgram(programId,exeId,type,exeOrderIdData,clientValue);

}

else

{


  // getAjaxSaveProgram(programId,exeId,type,exeOrderIdData,clientValue);
alert('Please Select Exercise');
}

}






/*********************************************//

Create static block
Step1‐> Login to Magento adminpanel. 
Step2‐> Go to CMS > Static blocks. 
Step3‐> click  Add New Block Button. You will see the form below:
USE THESE EXACT SETTINGS FOR THE STATIC BLOCK OR IT WON’T WORK!! 
Block Title:  enter Samrat  as title for the block! 
Identifier:   enter samrat   as identifier for the block! 
Status:         Enable 
Content:    First click the ‘show/hide editor’ to disable the cms editor.  
                    Next paste the  code and save the static block 
Step4‐> Placing the Widget on your webshop: 

Go to: Cms > Page > Home page. Click on the ‘Design’ Tab. 
Here the code can be placed for displaying the widget. Select the code needed for placing it on the 
left, right or in the header. 

Option 1: FOR PLACING THE CODE ON THE RIGHT: 
Search for  <reference name="right"> 
And add this code before </reference> 
<block type="cms/block" name="samrat" before="‐"> 
        <action method="setBlockId"><block_id>samrat</block_id></action> 
    </block>

Option 2: FOR PLACINGTHE CODE INTHEHEADER:
Search <reference name="header"> 
And add this code before </reference> 
<block type="cms/block" name=" samrat " before="‐"> 
        <action method="setBlockId"><block_id> samrat </block_id></action> 
    </block>    

Note‐>here, samrat is identifier. 
Note‐>if <reference name="header"> is not present then  insert these code 
<reference name="header"> 
<block type="cms/block" name=" samrat " before="‐"> 
        <action method="setBlockId"><block_id> samrat </block_id></action> 
    </block>    
</reference> 
Option 3: FOR PLACING THE CODE ON THE LEFT: 
Search <reference name="left"> 
And add this code before </reference> 
<block type="cms/block" name=" samrat " before="‐"> 
        <action method="setBlockId"><block_id> samrat </block_id></action> 
    </block>    
Note‐>here, samrat is identifier. 
Note‐>if <reference name="left"> is not present then  insert these code 
<reference name="header"> 
<block type="cms/block" name=" samrat " before="‐"> 
        <action method="setBlockId"><block_id> samrat </block_id></action> 
    </block>   
 </reference> 


Wp blog



Content.php
<?php
/**
 * The default template for displaying content
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
?>

                        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                                                <header class="entry-header">
                                                                        <?php if ( is_sticky() ) : ?>
                                                                                                <hgroup>
                                                                                                                        <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
                                                                                                                        <h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3>
                                                                                                </hgroup>
                                                                        <?php else : ?>
                                                                        <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
                                                                        <?php endif; ?>

                                                                        <?php if ( 'post' == get_post_type() ) : ?>
                                                                        <div class="entry-meta">
                                                                       
                <label><?php the_time('D,m/j/y - g:i');  ?></label>
                                                                        </div><!-- .entry-meta -->
                                                                        <?php endif; ?>

                                                                       
                                                </header><!-- .entry-header -->

                                                <?php if ( is_search() ) : // Only display Excerpts for Search ?>
                                                <div class="entry-summary">
       
                                                                        <?php the_excerpt(); ?>
                                                </div><!-- .entry-summary -->
                                                <?php else : ?>
        <?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
  the_post_thumbnail(large);
}
?>
                                                <div class="entry-content">
                                                                        <?php /*?><?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?><?php */?><?php echo $small = substr(get_the_content(), 0, 250); ?><a href="<?php the_permalink(); ?>"></a>
                                                                        <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
                                                </div><!-- .entry-content -->
                                                <?php endif; ?>
        <div class="cls"></div>

                                                <footer class="entry-meta">
                                                                        <?php $show_sep = false; ?>
                                                                        <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported ?>
                                                                        <?php
                                                                                                /* translators: used between list items, there is a space after the comma */
                                                                                                $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
                                                                                                if ( $categories_list ):
                                                                        ?>
                                                                        <span class="cat-links">
                                                                                                <?php printf( __( '<span class="btn-1">%2$s</span>', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
                                                                                                $show_sep = true; ?>
                                                                        </span>
                                                                        <?php endif; // End if categories ?>
                                                                        <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ) ?>
                                                                        <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported ?>
                                                                        <?php
                                                                                                /* translators: used between list items, there is a space after the comma */
                                                                                                $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
                                                                                                if ( $tags_list ):
                                                /*?>if ( $show_sep ) : ?>
                                                                        <span class="sep"> | </span>
                                                                                                <?php endif;<?php */?>
                                                                        <?php /*?><span class="tag-links">
                                                                                                <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
                                                                                                $show_sep = true; ?>
                                                                        </span><?php */?>
                                                                        <?php endif; // End if $tags_list ?>
                                                                        <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'post_tag' ) ?>
            <a href="<?php the_permalink(); ?>" class="readmore">More</a>
<?php if ( comments_open() && ! post_password_required() ) : ?>
                                                                        <span class="btn-2"><div class="comments-link">
                                                                                                <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
                                                                        </div></span>
                                                                        <?php endif; ?>
                                                                        <?php /*?><?php if ( comments_open() ) : ?>
                                                                        <?php if ( $show_sep ) : ?>
                                                                        <span class="sep"> | </span>
                                                                        <?php endif; // End if $show_sep ?>
                                                                        <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
                                                                        <?php endif; // End if comments_open() ?><?php */?>

                                                                        <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
                                                </footer><!-- .entry-meta -->
                        </article><!-- #post-<?php the_ID(); ?> -->

Singlr.php
<?php
/**
 * The Template for displaying all single posts.
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */

get_header(); ?>

<div class="content blogsingle">
  <div class="width">
  <div class="cols">
      <div class="colLeft">
    <?php while ( have_posts() ) : the_post(); ?>
    <nav id="nav-single">
      <h3 class="assistive-text">
        <?php _e( 'Post navigation', 'twentyeleven' ); ?>
      </h3>
      <span class="nav-previous">
      <?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span> Previous', 'twentyeleven' ) ); ?>
      </span> <span class="nav-next">
      <?php next_post_link( '%link', __( 'Next <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
      </span> </nav>
    <!-- #nav-single -->
   
    <?php get_template_part( 'content-single', get_post_format() ); ?>
    <?php comments_template( '', true ); ?>
   
    <?php endwhile; // end of the loop. ?>
    </div>
   <div class="colRgt">
    <?php get_sidebar(); ?>
  </div>
  <div class="cls"></div>
   </div>
  </div>
  <!-- #content -->
</div>
<!-- #primary -->
<?php get_footer(); ?>

Content-single.php
<?php
/**
 * The template for displaying content in the single.php template
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                        <header class="entry-header">
                                                <h1 class="entry-title"><?php the_title(); ?></h1>

                                                <?php if ( 'post' == get_post_type() ) : ?>
                                                <div class="entry-meta">
                <label><?php the_time('m/j/y - g:i'); ?></label>
                                                                        </div><!-- .entry-meta -->
                                                <?php endif; ?>
                        </header><!-- .entry-header -->
 <?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
  the_post_thumbnail(large);
}
?>
                        <div class="entry-content">
                                                <?php the_content(); ?>
                                                <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
                        </div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->


For pagination

function pagination($pages = '', $range = 4)
{
     $showitems = ($range * 2)+1;

     global $paged;
     if(empty($paged)) $paged = 1;

     if($pages == '')
     {
         global $wp_query;
         $pages = $wp_query->max_num_pages;
         if(!$pages)
         {
             $pages = 1;
         }
     } 

     if(1 != $pages)
     {
         echo "<div class=\"pagination\"><span>Page ".$paged." of ".$pages."</span>";
         if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<a href='".get_pagenum_link(1)."'>&laquo; First</a>";
         if($paged > 1 && $showitems < $pages) echo "<a href='".get_pagenum_link($paged - 1)."'>&lsaquo; Previous</a>";

         for ($i=1; $i <= $pages; $i++)
         {
             if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
             {
                 echo ($paged == $i)? "<span class=\"current\">".$i."</span>":"<a href='".get_pagenum_link($i)."' class=\"inactive\">".$i."</a>";
             }
         }

         if ($paged < $pages && $showitems < $pages) echo "<a href=\"".get_pagenum_link($paged + 1)."\">Next &rsaquo;</a>";
         if ($paged < $pages-1 &&  $paged+$range-1 < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($pages)."'>Last &raquo;</a>";
         echo "</div>\n";
     }
}


In index.php
<?php //twentytwelve_content_nav( 'nav-below' ); ?>
 <?php if (function_exists("pagination")) {
    pagination($additional_loop->max_num_pages);
} ?>





<!----------- Pagination css ------------------!>
.pagination {
clear:both;
padding:20px 0;
position:relative;
font-size:11px;
line-height:13px;
}

.pagination span, .pagination a {
display:block;
float:left;
margin: 2px 2px 2px 0;
padding:6px 9px 5px 9px;
text-decoration:none;
width:auto;
color:#fff;
background: #555;
}

.pagination a:hover{
color:#fff;
background: #3279BB;
}

.pagination .current{
padding:6px 9px 5px 9px;
background: #3279BB;
color:#fff;
}

<!----------- Pagination css over------------------!>

<!----------- For Blog------------------!>
                       
                       
.content.blog .colLeft,
.content.blogsingle .colLeft{ width:610px;}
.content.blog .colRgt,
.content.blogsingle .colRgt {width:220px; padding-left:30px; border-left:2px solid #8234c2;}


.content.blog .colLeft img{ max-width:360px; height:auto; border:4px solid #fff; box-shadow:0 0 5px #333; -moz-box-shadow:0 0 5px #333; -o-box-shadow:0 0 5px #333; -webkit-box-shadow:0 0 5px #333; float:left; margin:0 10px 10px 0;}
.content.blog .colLeft h1.entry-title a{font-size:21px; line-height:21px; color:#241c2a; text-shadow:none;}

.content .colLeft article.post{ margin-bottom:40px;}

.blogsingle .colLeft img{ max-width:580px; height:auto; border:4px solid #fff; border:4px solid #fff; box-shadow:0 0 5px #333; -moz-box-shadow:0 0 5px #333; -o-box-shadow:0 0 5px #333; -webkit-box-shadow:0 0 5px #333; margin-bottom:15px; }

.blogsingle .colLeft footer.entry-meta a{}

.vcard a{ color:#9000ff;}

.entry-meta{ color:#656565;}
.entry-header{ margin-bottom:10px;}

.partnerCnt li a.visitWebsite{background: #86c7eb; /* Old browsers */
background: -moz-linear-gradient(top,  #86c7eb 0%, #40aae6 3%, #008edf 7%, #007fc6 30%, #005c8d 70%, #004c72 93%, #004468 97%, #003b58 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#86c7eb), color-stop(3%,#40aae6), color-stop(7%,#008edf), color-stop(30%,#007fc6), color-stop(70%,#005c8d), color-stop(93%,#004c72), color-stop(97%,#004468), color-stop(100%,#003b58)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  #86c7eb 0%,#40aae6 3%,#008edf 7%,#007fc6 30%,#005c8d 70%,#004c72 93%,#004468 97%,#003b58 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  #86c7eb 0%,#40aae6 3%,#008edf 7%,#007fc6 30%,#005c8d 70%,#004c72 93%,#004468 97%,#003b58 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  #86c7eb 0%,#40aae6 3%,#008edf 7%,#007fc6 30%,#005c8d 70%,#004c72 93%,#004468 97%,#003b58 100%); /* IE10+ */
background: linear-gradient(to bottom,  #86c7eb 0%,#40aae6 3%,#008edf 7%,#007fc6 30%,#005c8d 70%,#004c72 93%,#004468 97%,#003b58 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#86c7eb', endColorstr='#003b58',GradientType=0 ); /* IE6-9 */
display:inline-block; font-size:12px; color:#fff; font-weight:normal; height:35px; line-height:34px; text-transform:uppercase; text-align:center; padding:0 30px; border:1px solid #002146; border-radius:3px; -moz-border-radius:3px; -o-border-radius:3px; -webkit-border-radius:3px; box-shadow:0 3px 3px #333; opacity:1
}



.cat-links{ float:left;}
.cat-links span,
.entry-meta a.readmore,
.entry-meta .btn-2 a,
.content .colLeft .pagination span,
.content .colLeft .pagination a,
.nav-previous a,
.nav-next a
{background: rgb(204,117,241); /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2NjNzVmMSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjYlIiBzdG9wLWNvbG9yPSIjYjI1ZmUxIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iNDUlIiBzdG9wLWNvbG9yPSIjOWI0YmQzIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iOTQlIiBzdG9wLWNvbG9yPSIjNzUyOWJhIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iOTclIiBzdG9wLWNvbG9yPSIjNmUyNWI0IiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzU5MWFhMSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
background: -moz-linear-gradient(top,  rgba(204,117,241,1) 0%, rgba(178,95,225,1) 6%, rgba(155,75,211,1) 45%, rgba(117,41,186,1) 94%, rgba(110,37,180,1) 97%, rgba(89,26,161,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(204,117,241,1)), color-stop(6%,rgba(178,95,225,1)), color-stop(45%,rgba(155,75,211,1)), color-stop(94%,rgba(117,41,186,1)), color-stop(97%,rgba(110,37,180,1)), color-stop(100%,rgba(89,26,161,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  rgba(204,117,241,1) 0%,rgba(178,95,225,1) 6%,rgba(155,75,211,1) 45%,rgba(117,41,186,1) 94%,rgba(110,37,180,1) 97%,rgba(89,26,161,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  rgba(204,117,241,1) 0%,rgba(178,95,225,1) 6%,rgba(155,75,211,1) 45%,rgba(117,41,186,1) 94%,rgba(110,37,180,1) 97%,rgba(89,26,161,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(204,117,241,1) 0%,rgba(178,95,225,1) 6%,rgba(155,75,211,1) 45%,rgba(117,41,186,1) 94%,rgba(110,37,180,1) 97%,rgba(89,26,161,1) 100%); /* IE10+ */
background: linear-gradient(to bottom,  rgba(204,117,241,1) 0%,rgba(178,95,225,1) 6%,rgba(155,75,211,1) 45%,rgba(117,41,186,1) 94%,rgba(110,37,180,1) 97%,rgba(89,26,161,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc75f1', endColorstr='#591aa1',GradientType=0 ); /* IE6-8 */
 display:inline-block; font-size:12px; color:#fff; font-weight:normal; height:35px; line-height:34px; text-transform:uppercase; text-align:center; padding:0 30px; border:1px solid #5a1099; border-radius:3px; -moz-border-radius:3px; -o-border-radius:3px; -webkit-border-radius:3px; box-shadow:0 3px 3px #333; opacity:1}



.cat-links span:hover,
.entry-meta a.readmore:hover,
.entry-meta .btn-2 a:hover,
.content .colLeft .pagination span.current,
.content .colLeft .pagination span:hover,
.content .colLeft .pagination a:hover,
.nav-previous a:hover,
.nav-next a:hover,
.partnerCnt li a.visitWebsite:hover{ opacity:.8; transition:all .3s; -moz-transition:all .3s; -o-transition:all .3s; -webkit-transition:all .3s;}


.cat-links a{ color:#fff; text-transform:uppercase; display:block;}

.content .colLeft .pagination span,
.content .colLeft .pagination a{ padding:0 15px;}

.entry-meta a.readmore{ margin-left:5px;}
.entry-meta .btn-2{ display:inline-block; margin-left:5px;}
.entry-meta .btn-2 a{ padding:0 25px !important;}

.content.blogsingle .entry-header h1.entry-title{ text-shadow:none; font-size:37px; color:#000; line-height:40px; margin-bottom:10px;}

#nav-single{ position:relative; margin-bottom:50px;}

#nav-single h3.assistive-text{ display:none;}
.nav-previous a{ display:inline-block; position:absolute; top:-20px; left:0;}
.nav-next a{display:inline-block;position:absolute; top:-20px; right:0;}

#nav-above,
#nav-below{ position:relative;}
#nav-below{ margin-bottom:20px;}
#nav-above{ height:35px; margin-top:35px;}
#nav-above h3.assistive-text{ display:none;}

#nav-below h3.assistive-text{ display:none;}
#nav-below{ height:35px; margin-bottom:35px;}




.colRgt #secondary h1.widget-title{ font-size:37px; color:#343434; line-height:38px; text-shadow:none; padding-bottom:15px;}
.colRgt #secondary #searchform label.assistive-text{ display:none;}

.colRgt #secondary #searchform input[type=text]{ background:#fff; border:2px solid #b8b8b8; height:27px; line-height:27px; padding:0 5px; width:170px; color:#9c9c9c; font-size:14px; border-radius:8px; -moz-border-radius:8px; -o-border-radius:8px; -webkit-border-radius:8px; float:left;}

.colRgt #secondary #searchform input[type=submit]{ background:url(../images/searchIcon.png) left top no-repeat !important; background:none; border:none; cursor:pointer; height:29px; width:29px; text-indent:-99999px; float:left; margin-left:5px;}

.colRgt #secondary ul li.cat-item a{ font-size:15px; text-decoration:underline; color:#000;}
.colRgt #secondary .widget_categories ul li:before{ content:"- "}

.colRgt #secondary .widget_recent_comments li{ margin-bottom:30px; font-size:14px; color:#343434;}
.colRgt #secondary .widget_recent_comments li a{ font-size:14px; color:#343434; font-weight:bold;}

.colRgt #secondary .widget_tag_cloud a{ font-size:16px; color:#000;}






Comments

Popular posts from this blog

Create post with all post type

<?php /* add_action( 'wp_enqueue_scripts', 'mpcth_child_enqueue_scripts', 1000 ); function mpcth_child_enqueue_scripts() { wp_enqueue_style( 'mpc-styles-child', get_stylesheet_directory_uri() . '/style_custom.css' ); } */ function registration_form( $username, $fname, $lname, $email, $password, $confirm_password, $account_type, $distict_city, $school_name ,$school_address, $school_type, $grade_level, $invcode ) { ?>     <style>       /* Always set the map height explicitly to define the size of the div        * element that contains the map. */     #map {     height: 260px; }     </style>   <script> function initMap() {     var map = new google.maps.Map(document.getElementById('map'), {       center: {lat: -33.8688, lng: 151.2195},       zoom: 13     });     var input = document.getElementById('searchInput');    // map.controls[google.maps.ControlPosition.TOP_LEFT].push(input);    

Create Signature pad with save on database in php

Create Signature pad with save on database in php 1.create a folder images index.php ============   <!DOCTYPE >     <head>     <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />     <title>Signature Pad</title>     <script type="text/javascript" src="jquery-1.8.0.min.js"></script>     <script type="text/javascript"> $(document).ready(function () {     /** Set Canvas Size **/     var canvasWidth = 400;     var canvasHeight = 100;     /** IE SUPPORT **/     var canvasDiv = document.getElementById('signaturePad');     canvas = document.createElement('canvas');     canvas.setAttribute('width', canvasWidth);     canvas.setAttribute('height', canvasHeight);     canvas.setAttribute('id', 'canvas');     canvasDiv.appendChild(canvas);     if (typeof G_vmlCanvasManager != 'undefined') {        

WooCommerce Mini cart With Ajax

WooCommerce Mini cart //MINI CART SECTION   <div class="productdiv rightcart">                                                         <?php if ( ! WC()->cart->is_empty() ) : ?>     <ul class="woocommerce-mini-cart cart_list product_list_widget <?php echo esc_attr( $args['list_class'] ); ?>">         <?php             do_action( 'woocommerce_before_mini_cart_contents' );             foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {                 $_product     = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key );                 $product_id   = apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key );                 if ( $_product && $_product->exists() && $cart_item['quantity'] > 0 && apply_filters( 'woocommerce_widget_c