Пример #1
0
    echo $arItem['PREVIEW_TEXT'];
    ?>
</h3>

                    <p id="<?php 
    echo $arItem['ID'];
    ?>
"> 
                        <?php 
    if ($arItem['ACTION_END']) {
        ?>
                            <?php 
        echo GetMessage('TO_ACTION_END');
        ?>
 <?php 
        echo sklonen($arItem['ACTION_END'], GetMessage('DAY_1'), GetMessage('DAY_2'), GetMessage('DAY_3'));
        ?>
                        <?php 
    } else {
        ?>
                            <?php 
        echo GetMessage('IS_OVER');
        ?>
                        <?php 
    }
    ?>
  
                    </p>
                </div> 
                <?php 
    if ($arItem['HAS_PIC']) {
Пример #2
0
?>
<div class="day-action">
    <div class="day-title green">
        <h2> <?php 
echo $arResult['PROPERTIES']['DETAIL_TITLE']['VALUE'] ? $arResult['PROPERTIES']['DETAIL_TITLE']['VALUE'] : $arResult['NAME'];
?>
</h2>
        <span>
            <?php 
if ($arResult['ACTION_END']) {
    ?>
                <?php 
    echo GetMessage('TO_ACTION_END');
    ?>
 <?php 
    echo sklonen($arResult['ACTION_END'], GetMessage('DAY_1'), GetMessage('DAY_2'), GetMessage('DAY_3'));
    ?>
            <?php 
} else {
    ?>
                <?php 
    echo GetMessage('IS_OVER');
    ?>
            <?php 
}
?>
 
        </span>
    </div>
    <div class="text">
        <?php 
Пример #3
0
				<?php 
            //endwhile;
        }
    }
    ?>
		</tbody>
	</table>
    <?php 
    if (count($arResult['ITEMS']['AnDelCanBuy']) > 5) {
        ?>
    <div class="cart-message">
              <p><?php 
        echo GetMessage('SALE_YET');
        ?>
 <?php 
        echo sklonen(count($arResult["ITEMS"]["AnDelCanBuy"]) - 5, GetMessage('SALE_TOVAR_1'), GetMessage('SALE_TOVAR_2'), GetMessage('SALE_TOVAR_3'));
        ?>
. <a href="<?php 
        echo $arParams["PATH_TO_BASKET"];
        ?>
"><?php 
        echo GetMessage('SALE_BASKET');
        ?>
</a></p>
    </div>
    <?php 
    }
    ?>
	<div class="bottom-box">
		<a class="button" href="<?php 
    echo $arParams["PATH_TO_ORDER"];
<?php

/* function sklonen($n,$s1,$s2,$s3, $b = false){
       $m = $n % 10; $j = $n % 100;
       if($b) $n = '<b>'.$n.'</b>';
       if($m==0 || $m>=5 || ($j>=10 && $j<=20)) return $n.' '.$s3;
       if($m>=2 && $m<=4) return  $n.' '.$s2;
       return $n.' '.$s1;
   }    */
foreach ($arResult['ACTION_END'] as $key => $time) {
    $seconds = strtotime($time) - time();
    if ($seconds > 0) {
        $dt = new DateTime('@' . $seconds, new DateTimeZone('UTC'));
        $day = $dt->format('z');
        $day_t = GetMessage('TO_ACTION_END') . ' ' . sklonen($day, GetMessage('DAY_1'), GetMessage('DAY_2'), GetMessage('DAY_3'));
        ?>
        <script type="text/javascript">
            $(document).ready(function(){
                    $('#<?php 
        echo $key;
        ?>
').text('<?php 
        echo $day_t;
        ?>
');
            })
        </script>
        <?php 
    } else {
        ?>
        <script type="text/javascript">