Գլխավոր էջ
Բարի օր։ Խնդիրը անսպասելիորեն առաջացավ։ Ստեղծում եմ կայք Zen թեմայով, դրեցի մութ ֆոն, բայց գլխավոր էջի հոդվածի համար անհրաժեշտ է լուսավոր ֆոն։ Սկսեցի նայել Firebug-ով, թե ինչպես ավելի լավ անել, բայց անսպասելիորեն բախվեցի խնդրի՝ ինչու՞ գլխավոր էջում տեղադրված հոդվածը իր սահմաններով անցնում է նախորդ բլոկի վրա։ Իսկ կոդում, ընդհանրապես, ինչ-որ պատճառով այդ բլոկները հոդվածի մարմնում են... ահավոր։
այս է էջի կոդը:
<div id="page">
<header id="header" role="banner">
<?php if ($logo): ?>
<a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" /></a>
<?php endif; ?>
<?php if ($site_name || $site_slogan): ?>
<hgroup id="name-and-slogan">
<?php if ($site_name): ?>
<h1 id="site-name">
<a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
</h1>
<?php endif; ?>
<?php if ($site_slogan): ?>
<h2 id="site-slogan"><?php print $site_slogan; ?></h2>
<?php endif; ?>
</hgroup><!-- /#name-and-slogan -->
<?php endif; ?>
<?php print render($page['header']); ?>
</header>
<div id="main">
<div class="content-wrapper">
<div id="content" class="column" role="main">
<?php print render($page['highlighted']); ?>
<?php print $breadcrumb; ?>
<a id="main-content"></a>
<?php print $messages; ?>
<?php print render($tabs); ?>
<?php print render($page['help']); ?>
<?php if ($action_links): ?>
<ul class="action-links"><?php print render($action_links); ?></ul>
<?php endif; ?>
<?php print render($page['content']); ?>
<?php print $feed_icons; ?>
</div><!-- /#content -->
<div id="navigation">
<?php if ($main_menu): ?>
<nav id="main-menu" role="navigation">
<?php
// Այս կոդի հատվածը դժվար է փոփոխել։ Մենք խորհուրդ ենք տալիս отключить
// "Գլխավոր մենյուն" ձեր ենթաթեմայի կարգավորումներում, ջնջել այս PHP
// կոդի հատվածը և, փոխարենը, օգտագործել "Մենյու բլոկ" մոդուլը։
// @see http://drupal.org/project/menu_block
print theme('links__system_main_menu', array(
'links' => $main_menu,
'attributes' => array(
'class' => array('links', 'inline', 'clearfix'),
),
'heading' => array(
'text' => t('Գլխավոր մենու'),
'level' => 'h2',
'class' => array('element-invisible'),
),
)); ?>
</nav>
<?php endif; ?>
<?php print render($page['navigation']); ?>
</div><!-- /#navigation -->
<?php
// Ցուցադրեք կողային սեղանները՝ տեսնելու համար, թե դրանցում ինչ-որ բան կա։
$sidebar_first = render($page['sidebar_first']);
$sidebar_second = render($page['sidebar_second']);
?>
<?php if ($sidebar_first || $sidebar_second): ?>
<aside class="sidebars">
<?php print $sidebar_first; ?>
<?php print $sidebar_second; ?>
</aside><!-- /.sidebars -->
<?php endif; ?>
</div>
</div><!-- /#main -->
<?php print render($page['footer']); ?>
</div><!-- /#page -->
<?php print render($page['bottom']); ?>