This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GET VK ACCESS_TOKEN | |
// http://zenno.pro/kak-poluchit-access-token-prilozheniya-vk-com/ | |
https://oauth.vk.com/authorize?client_id=CLIENT_ID&scope=offline,photos,audio,video,docs,notes,pages,status,offers,questions,wall,groups,messages,email,notifications,stats,ads,offline,docs,pages,stats,notifications&response_type=token&redirect_uri=REDIRECT_URI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GET VK VIDEO | |
// https://vk.com/dev/video.get | |
// VIDEO_ID EX: -97860303_456239329 | |
https://api.vk.com/method/video.get?videos=VIDEO_ID&access_token=ACCESS_TOKEN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
По умолчанию компонент "Цепочка навигации" обходит все разделы, ищет в них файлы .section.php и строит из них цепочку. | |
https://dev.1c-bitrix.ru/support/forum/forum6/topic14880/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Sidebar Categories Widget */ | |
// create category list widget | |
class jpen_Category_List_Widget extends WP_Widget { | |
// php classnames and widget name/description added | |
function __construct() { | |
$widget_options = array( | |
'classname' => 'jpen_category_list_widget', | |
'description' => 'Add latest videos to sidebar' | |
); | |
parent::__construct( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Правильный AJAX в 1С-Битрикс | |
https://verstaem.com/ajax/ajax-1c-bitrix/ | |
Ajax-подгрузка контента при прокрутке страницы | |
http://codeharmony.ru/materials/136 | |
Слайдер с горизонтальной прокруткой колесом мыши | |
http://darsa.in/sly/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
background-image: linear-gradient(to right, #333 10%, rgba(255, 255, 255, 0) 0%); | |
background-position: bottom; | |
background-size: 10px 1px; | |
background-repeat: repeat-x; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(CModule::IncludeModule("iblock")) | |
{ | |
// выберем 3 элемента типа "cases" из нескольких информационных блоков (16, 17) | |
$items = GetIBlockElementListEx("cases", array(16, 17), Array(), | |
Array("DATE_ACTIVE_FROM"=>"DESC", "SORT"=>"ASC", "NAME" => "ASC"), 3); | |
// постраничная навигация | |
$items->NavPrint("Новости компании"); | |
// цикл по всем новостям | |
while($arItem = $items->GetNext()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$image = CFile::GetFileArray($arItem["DETAIL_PICTURE"]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$width_height_arr = array('width' => 465, 'height' => 510); | |
$file = CFile::ResizeImageGet($arItem["DETAIL_PICTURE"], $width_height_arr, BX_RESIZE_IMAGE_EXACT, true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ShowBreadcrumbs(){ | |
global $APPLICATION; | |
return $APPLICATION->GetProperty("show_breadcrumbs"); | |
} | |
$APPLICATION->AddBufferContent("ShowBreadcrumbs"); |
OlderNewer