# Geany's snippets configuration file # # use \n or %newline% for a new line (it will be replaced by the used EOL char(s) - LF, CR/LF, CR). # use \t or %ws% for an indentation step, it will be replaced according to the current document's indent mode. # use \s to force whitespace at beginning or end of a value ('key= value' won't work, use 'key=\svalue'). # use %key% for all keys defined in the [Special] section. # use %cursor% to define where the cursor should be placed after completion. You can define multiple # %cursor% wildcards and use the "Move cursor in snippet" to jump to the next defined cursor # position in the completed snippet. # You can define a section for each supported filetype to overwrite default settings, the section # name must match exactly the internal filetype name, run 'geany --ft-names' for a full list. # # Additionally, you can use most of the template wildcards like {developer}, {command:...}, # or {date} in the snippets. # See the documentation for details. # For a list of available filetype names, execute: # geany --ft-names # Default is used for all filetypes and keys can be overwritten by [filetype] sections [Default] getby=$res = CIBlockElement::GetByID($%cursor%);\nif($ar_res = $res->GetNext()){\n \n} getsby=$res = CIBlockSection::GetByID($%cursor%);\nif($ar_res = $res->GetNext()){\n \n} getlist=$arOrder = array("SORT" => "ASC");\n$arFilter = array(%cursor%);\n$arSelectFields = array("ID","ACTIVE", "NAME");\n$rsElements = CIBlockElement::GetList($arOrder, $arFilter, FALSE, FALSE, $arSelectFields);\nwhile($arElement = $rsElements->GetNext())\n{\n}\n getslist=$arSort = array("SORT" => "ASC");\n$arFilter = array("IBLOCK_ID" => $arParams["IBLOCK_ID"], "ID" => %cursor%);\n$rsSections = CIBlockSection::GetList($arSort, $arFilter);\nwhile ($arSection = $rsSections->GetNext())\n{\n }\n include=IncludeFile(\n SITE_DIR."include/%cursor%.php",\n Array(),\n Array("MODE"=>"html")\n );\n?> img=%cursor%, 'height'=>%cursor%), BX_RESIZE_IMAGE_PROPORTIONAL_ALT, true); ?> ajax=$.ajax({\ntype: "POST",\nurl: "/ajax/%cursor%.php",\ndata: data,\nsuccess: function(msg){\nconsole.log(msg);\n}\n}); list=IncludeComponent("bitrix:news.list", "", array(\n"IBLOCK_ID" => "%cursor%",\n"NEWS_COUNT" => "10",\n"SORT_BY1" => "ID",\n"SORT_ORDER1" => "DESC",\n"FIELD_CODE" => array(0 => "DATE_CREATE", 1 => "", 2 => ''),\n"PROPERTY_CODE" => array(0 => "", 1 => "", 2=> ""),\n"SET_TITLE" => "N",\n"SET_STATUS_404" => "N",\n"INCLUDE_IBLOCK_INTO_CHAIN" => "N",\n"ADD_SECTIONS_CHAIN" => "N",\n"PARENT_SECTION" => "",\n"PARENT_SECTION_CODE" => "",\n"DISPLAY_TOP_PAGER" => "N",\n"DISPLAY_BOTTOM_PAGER" => "N",\n"PAGER_SHOW_ALWAYS" => "N",\n"PAGER_TEMPLATE" => "main",\n),\nfalse\n);\n?> filter="ACTIVE" => "Y", "SECTION_GLOBAL_ACTIVE" => "Y", "ACTIVE_DATE" => "Y" menu=IncludeComponent("bitrix:menu", "simple", Array("ROOT_MENU_TYPE" => "top"), false);?> breadcrumb=IncludeComponent("bitrix:breadcrumb", "simple", Array(), false);?> date= items=\n \n \n \n $arItem): ?>\n AddEditAction($arItem['ID'], $arItem['EDIT_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_EDIT"));\n \n$this->AddDeleteAction($arItem['ID'], $arItem['DELETE_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM')));\n $id = $this->GetEditAreaId($arItem['ID']);\n ?>\n
\n %cursor%\n
\n \n \n \n \n\n getid=AddEditAction($arItem['ID'], $arItem['EDIT_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_EDIT"));\n $this->AddDeleteAction($arItem['ID'],$arItem['DELETE_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" =>GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM')));\n $id = $this->GetEditAreaId($arItem['ID']);\n?>\n addcss=$APPLICATION->SetAdditionalCSS(SITE_TEMPLATE_PATH . "%cursor%"); addjs=$APPLICATION->AddHeadScript(SITE_TEMPLATE_PATH . "%cursor%"); isindex=if (CSite::InDir("%cursor%")) ibl=CModule::IncludeModule("%cursor%") log=AddMessage2Log(%cursor%); # Optional keybindings to insert snippets # Note: these can be overridden by Geany's configurable keybindings [Keybindings] #for=7 include=i