<div class="b-menu b-menu_seo b-menu_padtop_20 b-menu_padbot_20 b-menu_bordtop_b2">
	<div class="b-menu__inner">
		<h3 class="b-menu__h4 b-menu__h4_padbot_10">О разделах каталога фрилансеров:</h3>
		<table class="b-menu__table b-menu__table_width_full" cellpadding="0" cellspacing="0" border="0">
			<tbody>
			<?php 
$n = 1;
foreach ($seo_catalog_data as $seo_direct) {
    if ($n == 1) {
        echo '<tr class="b-menu__tr">';
    }
    echo '<td class="b-menu__td b-menu__td_padright_20 b-menu__td_padbot_10"><a class="b-menu__link b-menu__link_fontsize_11" href="' . seo::getFriendlyURL('', $seo_direct['name_section_link'], '') . '">' . reformat($seo_direct['dir_name']) . '</a></td>';
    if ($n == 8) {
        echo '</tr>';
        $n = 1;
    } else {
        $n++;
    }
}
if ($n != 1) {
    for ($i = $n; $i <= 8; $i++) {
        echo '<td class="b-menu__td b-menu__td_padright_20 b-menu__td_padbot_10">&nbsp;</td>';
    }
    echo '</tr>';
}
?>
			</tbody>
		</table>
	</div>
</div>
Beispiel #2
0
          </ul>
        </li>
      <?php 
            $grnum++;
        }
    }
    //foreach
    ?>
      <?php 
}
?>
      <?php 
if ($direct_id) {
    ?>
      <li class="all-employers"><span class="wrap-item"><a href="<?php 
    echo seo::getFriendlyURL($subdomain, '', '');
    ?>
">Все направления</a></span></li>
      <?php 
}
?>
      </ul>
    <b class="b2"></b>
    <b class="b1"></b>
    </div>
    <script type="text/javascript">asynccall('initCtg(<?php 
echo isset($gr_show) ? $gr_show : -1;
?>
)');</script>

  
Beispiel #3
0
foreach ($sections as $section) {
    if (!$section['subsection']) {
        continue;
    }
    if ($n == 1) {
        echo '<tr class="b-layout__tr">';
    }
    echo '<td class="b-layout__one ' . ($n == 4 ? '' : 'b-layout__one_padright_20') . ' b-layout__one_width_20ps">';
    echo '<h3 class="b-layout__h3">' . $section['name_section'] . '</h3>';
    $len = count($section['subsection']) > 5 ? 5 : count($section['subsection']);
    for ($i = 0; $i < $len; ++$i) {
        $item = $section['subsection'][$i];
        echo '<div class="b-layout__txt b-layout__txt_padbot_5">— <a class="b-layout__link" href="' . seo::getFriendlyURL($subdomains[$item['subdomain_id']]['subdomain'], $directions[$item['direct_id']]['name_section_link'], $item['name_section_link'], $section['name_section_link']) . '">' . $item['name_section'] . '</a></div>';
    }
    if ($len == 5) {
        echo '<div class="b-layout__txt b-layout__txt_padleft_15 b-layout__txt_padbot_40"><a class="b-layout__link b-layout__link_bordbot_dot_0f71c8" href="' . seo::getFriendlyURL($seo->subdomain['subdomain'], $directions[$section['direct_id']]['name_section_link'], '', $section['name_section_link']) . '">Остальные статьи</a></div>';
    } else {
        echo '<div class="b-layout__txt b-layout__txt_padleft_15 b-layout__txt_padbot_40">&nbsp;</div>';
    }
    echo '</td>';
    if ($n == 4) {
        echo '</tr>';
        $n = 1;
    } else {
        ++$n;
    }
}
if ($n != 1) {
    for ($i = $n; $i <= 4; ++$i) {
        echo '<td class="b-layout__one">&nbsp;</td>';
    }