- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
<?php if (!($main_controller->params['id_type'] == 3
&& in_array($id_seo, array(70,76,92,78,121,163,165,278,164)))
&& $main_controller->params['id_cat']!=12 && $main_controller->params['id_cat']!=11
&& $main_controller->params['id_type'] != 6
&& !($id_type==5 && $id_elt==6
&& isset($main_controller->params['id_prep']))
&& $id_seo!=140 && !($main_controller->params['id_type'] == 1
&& ($id_elt==76 || ($id_elt>=82 && $id_elt<=90) || in_array($id_seo, array(241,244,245,268,286,287,288,289,237,285,283,284,324))
|| in_array($id_elt, array(12,100,101,14,18,19,20,13,93,24,25,26,27,28,29,30,31,32,33,34,43,44,45,46,47,48,49,50,51,52,53,54,55,57,58,59,60,61,62,63,64,104,91))))) { ?>
...
else if($main_controller->params['id_type'] == 1 && ($id_elt==76 || ($id_elt>=82 && $id_elt<=90)
|| in_array($id_elt, array(12,100,101,14,18,19,20,13,93,24,25,26,27,28,29,30,31,32,33,34,43,44,45,46,47,48,49,50,51,52,53,54,55,57,58,59,60,61,62,63,64,104,91))))
такие вот лаконичнинькие условия (было в одну строку - переносы сам сделал для читабельности))))