Friday, July 29, 2011

Drupal 7 Blogger's Pack

So you need more than just one theme, meet Blogger's Pack . Get all the power of BlozZit and Photofolio for Drupal 7, including PSD & HTML/CSS.


Among the most powerful Drupal themes ever released. Ideal for bloggers, photographers, designers, creatives and trendsetters.

For Drupal 6 & 7


BlozZit

Personal blogging revisited. Combining awesome design and typography, with the power of Drupal.

For Drupal 7

Every theme in the Blogger's Pack comes with:
  • Full static HTML & CSS site.
  • Full layered PSD files.
  • Rich Drupal 7.x theme incl. Views.
  • An installation profile which sets up in a minute.


Corporate Clean - Free Drupal 7 theme


Corporate Clean for Drupal by More than Themes is based on the homonymous PSD template, which was designed and published by Zsolt Kacso.
Corporate Clean has been ported to Drupal and is supported by More than Themes, as part of our ongoing effort to bring quality themes to Drupal.

Live Demo
Documentation
Screen shots

Monday, July 4, 2011

Custom Drupal User Login/Logout Links

For no logged user it presents
a) User Login

For logged in users the links become
a) My Account -> Links to User Profile
b) Logout


<?php
global $user;
if ($user->uid != 0) {
print l('My Account', 'user/'. $user->uid) . " | ";
print l('Logout','user/logout/');
}
else {
print l('User Login','user/');
}
?>

Friday, July 1, 2011

Adding meta description & keywords to the Drupal 7 head

You can use drupal_add_html_head() for adding meta description and meta keywords in header. In your theme template.php file, you can call hook_page_alter() for embeding meta. If you want to add meta description and meta keywords in your site then go to your template.php file and paste the code (display below):

function YOURTHEMENAME_page_alter($page) {
$meta_description = array(
'#type' => 'html_tag',
'#tag' => 'meta',
'#attributes' => array(
'name' => 'description',
'content' => 'some description here'
)
);
$meta_keywords = array(
'#type' => 'html_tag',
'#tag' => 'meta',
'#attributes' => array(
'name' => 'keywords',
'content' => 'some, keywords'
)
);
drupal_add_html_head( $meta_description, 'meta_description' );
drupal_add_html_head( $meta_keywords, 'meta_keywords' );
}