Ejemplo n.º 1
0
 public function delete()
 {
     $templateList = \Bitrix\Iblock\InheritedPropertyTable::getList(array("select" => array("ID"), "filter" => array("=IBLOCK_ID" => $this->entity->getIblockId(), "=ENTITY_TYPE" => $this->entity->getType(), "=ENTITY_ID" => $this->entity->getId())));
     while ($row = $templateList->fetch()) {
         \Bitrix\Iblock\InheritedPropertyTable::delete($row["ID"]);
     }
 }
Ejemplo n.º 2
0
            "MESSAGE_404" => ""
        )
    );?>
    <!--endajax-->
<?else:?>
    <?
    $parameters = array(
        'select'=>array('ID'),
        'filter'=>array('IBLOCK_ID'=>'2','CODE'=>$_REQUEST["ELEMENT_CODE"])
    );
    $EL = EL::getList($parameters)->fetchAll();
    $id_element = $EL[0]['ID'];
    $parameters = array(
        'filter'=>array('IBLOCK_ID'=>'2','ENTITY_ID'=>$id_element)
    );
    $rows = SEO::getList($parameters)->fetchAll();
    if(!empty($rows))
    {
        foreach($rows as $item)
        {
            switch ($item['CODE']) {
                case 'ELEMENT_META_TITLE':
                    $APPLICATION->SetPageProperty("title", $item['TEMPLATE']);
                    $APPLICATION->SetTitle($item['TEMPLATE']);
                    break;
            }
        }
    }
    ?>
    <?$APPLICATION->IncludeComponent("bitrix:main.include", "", array("AREA_FILE_SHOW" => "file", "PATH" => SITE_DIR."inc/charity_list.php"), false);?>
    <script>