Drupal codes and experiments

Events happening in the community are now at Drupal community events on www.drupal.org.

In this approach for Drupal development, Drupalians can be encouraged to demonstrate how beautiful Drupal is, how designing inclusively can be seen not as a burden, but as an opportunity to expand Drupal and increase development proficiency.

susan5in7's picture

Accuse - the D7 theme with maximum features

ACCUSE - the theme for Drupal 7.

The name "ACCUSE" is taken from Accuserves. As the name describes itself, ACCUSE is developed to be a sub-theme of MAYO and newly added features that provides users easy ways to customize and create a theme they like.

Accuse had been developed 2yrs ago but not submitted for contribution due to copyright issue.

Read more
susan5in7's picture

Drupal codes and experiments group is waiting for approval.

The group has been submitted for moderation and won't be listed publicly until it has been approved. So any kind of posting has been stopped.

Read more
susan5in7's picture

How to make a sub-theme of Bartik - Chapter 2 "template.php" (Part-3)

Now come to Header Menu Style. Drupal 7 has simple Menu Bar system. It has no drop down menus. Many people have suggested to use Nice menu module or Superfish. There is a discussion forum also in http://drupal.org. In this section we will learn how to dodge drupal core menu system. This idea I have taken from http://www.prcweb.co.uk/2012/05/adding-a-drop-down-menu-to-drupal-7s-bar... and implement it into the theme. You just see in the image that how the codes are implemented. We have ended here "template.php" editing.

Read more
susan5in7's picture

How to make a sub-theme of Bartik - Chapter 2 "template.php" (Part-2)

Now start editing. In this section first you have to add body classes if you have regions with full of contents. You must observe that there are few extra lines added in the following codes compare to core Bartik.

You have to define the functions. Just you define the functions and name it as per your theme i.e "themaccu". You must see I have added new "topcolumn" regions in this theme whereas core Bartik has no such regions.

Codes:


function themaccu_preprocess_html(&$variables) {
if (!empty($variables['page']['featured'])) {
$variables['classes_array'][] = 'featured';
}

Read more
susan5in7's picture

How to make a sub-theme of Bartik - Chapter 2 "template.php" (Part-1)

Overriding a template file is relatively common task for a front-end developer, but depending on the base theme used it’s not always clear how to go about doing it.

The process is straightforward. We can create additional Template Suggestions simply by adding them to the ‘theme_hook_suggestions array in the template.php file.

Open the template.php file from themaccu folder in "MS expression web 4" for editing.

Your file location is: D:\UniServer\www\drupalcodes\sites\all\themes\themaccu\template.php

Read more
susan5in7's picture

How to make a sub-theme of Bartik - Chapter 1 ".INFO"

Before start, try make these two tools available with you. One is "Microsoft Expression Web 4" and another is "Coral-8 Uniform Server". These two tools tremendously help you to start easily. Suppose you have installed Uniserver in your PC/Laptop in Drive D and you are developing the website "drupalcodes". So your directory location must be D:\UniServer\www\drupaldev\ (this directory contains the entire Drupal Core i.e. you download Drupal 7 and rename it as drupalcodes instead of Drupal). Now we are going to make the theme "Themaccu".

Now Start: -

Read more
Subscribe with RSS Syndicate content

Drupal codes and experiments

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: