Beispiel #1
0
        $APPLICATION->IncludeComponent("bitrix:main.share", "myqube", array("COMPONENT_TEMPLATE" => ".default", "HIDE" => "N", "HANDLERS" => array("vk", "facebook", "google"), "PAGE_URL" => $APPLICATION->GetCurPage(), "PAGE_TITLE" => $arPost[$this_post]["NAME"], "PAGE_IMAGE" => "http://myqube.ru" . $ogImage["src"], "SHORTEN_URL_LOGIN" => "", "SHORTEN_URL_KEY" => ""));
        ?>
					<?php 
    }
    ?>

					<?php 
    $APPLICATION->IncludeComponent("radia:likes", "", array("ELEMENT" => $arPost[$this_post]["ID"], "COUNTER" => 'N'));
    ?>
				</nav>
				<div style="both: clear;" class="clear"></div>
				<?php 
    $APPLICATION->IncludeComponent("smsmedia:comments", "myqube_lenta", array("OBJECT_ID" => $arPost[$this_post]["ID"], "IBLOCK_TYPE" => "comments", "COMMENTS_IBLOCK_ID" => "5", "LEFT_MARGIN" => "", "SHOW_USERPIC" => "Y", "SHOW_DATE" => "Y", "SHOW_COUNT" => "Y", "CACHE_TYPE" => "A", "CACHE_TIME" => "3600", "NO_FOLLOW" => "Y", "NO_INDEX" => "Y", "NON_AUTHORIZED_USER_CAN_COMMENT" => "N", "USE_CAPTCHA" => "N", "AUTH_PATH" => "/auth/", "COMPONENT_TEMPLATE" => "myqube_event"), false);
    ?>
			</div>
		</div>
		<?php 
} elseif ($arPost[$this_post]["PROPERTIES"]["SHARE"]["VALUE"] == "Y") {
} else {
    if ($USER->IsAuthorized()) {
        if (!CustomUser::UserYouHave18()) {
            LocalRedirect("/?message=you_are_under_18");
        }
        if (!CustomUser::UserCheckFields()) {
            LocalRedirect("/checking_user_fields.php?backurl=" . $_SERVER["REQUEST_URI"]);
        }
    } else {
        LocalRedirect("/auth/?backurl=" . $_SERVER["REQUEST_URI"]);
    }
}
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php";