Microsoft
Software
Hardware
Network
Question : drupal blocks & php
Hello,
I have created a theme for Drupal 6.17. The person who is implementing it is not using the blocks region to manage content as Drupal is intended.
So when an object is assigned to the sidebar_left region the theme is not entirely applied.
I was wondering if writing an if else statement would handle if the sidebar left is empty or not so that the style sheet is applied or should it just be written so that all content in the left side bar gets the style sheet regardless of if it is empty or not.
My php for the left sidebar looks like this:
<?php $l = art_sidebar($left, $sidebar_left);
if (!empty($l) || !empty($sidebar_first)) echo '<div class="'.art_get_sidebar_s
tyle($l, $sidebar_first, 'art-sidebar1').'">' . $sidebar_first . $l . "</div>"; ?>
<?php $l = art_sidebar($left, $sidebar_left);
echo '<div class="'.art_get_sidebar_s
tyle($l, $sidebar_first, 'art-content').'">'; ?>
<? endif ?>
Answer : drupal blocks & php
Yes. if I understand you correctly. When you go to the news feed, select customize from the lock icon, and then type in select your friends that would get that.
Random Solutions
Blackberry browser 400 error - socketexception Connection reset
Audit, log and RBAC on AIX
Excel control returns only a string
How do I verify Using SSIS if an XML file exist in the folder , change it's name and move ot to an SFTP if exist
FAX configuration in windows 2003 server with Gmail.
How do I modify this php script to send a confirmation?
How to avoid zero(s) in front of number(s) disappears in array
Setting up my first database driven web site
V2P (Windows 2008)
VB .NET 2005 Combine Two Tables on Primary Key and Display in DataGridView