How to share custom data on social network site !!!

Blog Archives

How to share custom data on social network site !!!

For Facebook share <a id=”ref_fb” href=”http://www.facebook.com/sharer.php?s=100&amp;p[title]=<?php echo $ftitle;?>&amp;p[summary]=<?php echo $fdescription;?>&amp;p[url]=<?php echo urlencode($fshare_url);?>&amp; p[images][0]=<?php echo $fimage_url;?>” onclick=”javascript:window.open(this.href, ”, ‘menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600’); return false;”>&nbsp;</a> For Twitter share <a id=”ref_tw” href=”http://twitter.com/home?status=<?php echo $ttitle; ?>+<?php echo urlencode($tshare_url);?>” onclick=”javascript:window.open(this.href, ”, ‘menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600’);return false;”>&nbsp;</a>   For Linkedin share <a

Posted in Blog, Wordpress Tagged with: , , , , ,

How To Get Category Name ,Author Name And Date In WordPress

Get Category : You can get category name by perticular post <?php $categories = get_the_category(); $separator = ‘ ‘; $output = ”; if($categories){ foreach($categories as $category) { $output .= ‘<a href=”‘.get_category_link( $category->term_id ).” . esc_attr( sprintf( __( “” ), $category->name

Posted in Blog, Wordpress Tagged with: , ,

How to get current Page URL and Identifiers in Magento

There are times when you want to perform some event on particular page. In Magento to detect the current page, following code can be used. 1) To Get the name of the current router use following code : Mage::app()->getFrontController()->getRequest()->getRouteName(); There

Posted in Blog, Magento Tagged with: , ,

Basic WordPress Method

Display Post URL as  Link Text <?php the_permalink(); ?> For Homepage Url <?php bloginfo(‘url’); ?> For Image Source Or File Path <?php bloginfo(‘template_directory’); ?>/folder-name/ For Get Header Menu <?php wp_nav_menu(‘Menu=headermenu’ ); ?> For Get Footer Menu <?php wp_nav_menu( array(‘menu’ => ‘footermenu’

Posted in Blog, Wordpress Tagged with: ,

Getting Skin, Media, JS, Store URL in Magento

Following is a quick note on how to get different URL’s in Magento Getting URL using PHP code : Base URL : Mage::getBaseUrl(); Skin URL : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); Skin URL : $this->getSkinUrl(‘images/imagename.jpg’); Media URL : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); JS URL : Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); Store

Posted in Blog, Magento Tagged with: , ,