Anoop Saini

Web Developer

Menu

Skip to content
  • Home
  • PHP
    • MVC
      • Codeigniter
      • CakePHP
  • CMS
    • WordPress
    • Magento
    • Drupal
    • Open Cart
    • Joomal
    • Moodle
  • About
  • HTML
    • ETC
  • jquery
  • Contact
    • anoopsaini.in

Monthly Archives: October 2014

Post navigation

Include a file

Posted on October 25, 2014 by Anoop Saini

<?php include_once($_SERVER[“DOCUMENT_ROOT”] . base_path() . path_to_theme() . “/nav.php”); ?>

Rate this:

Posted in Drupal

Condition for Login Logout

Posted on October 25, 2014 by Anoop Saini

<?php if (user_is_logged_in()): ?>  <p>Hello, logged in user</p>

<?php else:?>  <p>Hello, stranger</p>

<?php endif;?>

Rate this:

Posted in Drupal

Call Static image in theme

Posted on October 25, 2014 by Anoop Saini

<img src=”<?php print base_path() . path_to_theme(); ?>/images/banner-side-1.jpg” alt=””>

Rate this:

Posted in Drupal

Condition for home page

Posted on October 25, 2014 by Anoop Saini

<?php if (drupal_is_front_page()){

echo ‘this is home’;

} ?>

Rate this:

Posted in Drupal

Post navigation

2012

October 2014
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Feb    

CMS

Drupal etc HTML Joomal jquery Magento Moodle Open Cart PHP Wordpress

Latest Post

  • Include a file
  • Condition for Login Logout
  • Call Static image in theme
  • Condition for home page
  • Conditional Tags Test
  • An image make center form every side
  • Implement CSS on All common classes
  • Display woo commerce Reviews on any other Place
  • Update Default Jquery of WP

joinlicpunjab.in

anoopsaini.in

Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • Anoop Saini
    • Already have a WordPress.com account? Log in now.
    • Anoop Saini
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar