Jump to content
  • 0

html-коды


jest
 Share

Question

Привет всем.

Ребят не знаю даже и с чего начать...

не давно начал изучать html ....из-за работы был вынужден

не могу понять некоторые коды, и инфу о них найти не могу... вот выдрал часть из сайта на который мне дали права админа.... и сказано было устранять проблемы .... но сейчас не об этом... вот:

<?if(IsModuleInstalled('sale')):?> 
<table width="100%" cellspacing="1" cellpadding="1" border="0" style="border-collapse: collapse;">
<tbody>
<tr><td>
<br />
</td><td valign="top" align="right">
<p align="right"><?$APPLICATION->IncludeComponent(
"bitrix:sale.basket.basket.line",
".default",
Array(
"PATH_TO_BASKET" => "/personal/cart/",
"PATH_TO_PERSONAL" => "/personal/",
"SHOW_PERSONAL_LINK" => "N"
)
);?> </p>
</td></tr>
</tbody>
</table>
<?endif?> <?$APPLICATION->IncludeComponent("bitrix:catalog", "yenisite_catalog", array(
"IBLOCK_TYPE" => "books",
"IBLOCK_ID" => "6",
"BASKET_URL" => "/personal/cart/",
"ACTION_VARIABLE" => "action",
"PRODUCT_ID_VARIABLE" => "id",
"SECTION_ID_VARIABLE" => "SECTION_ID",
"SEF_MODE" => "Y",
"SEF_FOLDER" => "/e-store/",
"AJAX_MODE" => "N",
"AJAX_OPTION_SHADOW" => "Y",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"AJAX_OPTION_HISTORY" => "N",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "3600",
"CACHE_FILTER" => "Y",
"CACHE_GROUPS" => "Y",
"DISPLAY_PANEL" => "Y",
"SET_TITLE" => "N",
"SET_STATUS_404" => "Y",
"USE_FILTER" => "N",
"USE_REVIEW" => "Y",
"MESSAGES_PER_PAGE" => "4",
"USE_CAPTCHA" => "Y",
"PATH_TO_SMILE" => "/bitrix/images/forum/smile/",
"FORUM_ID" => "14",
"URL_TEMPLATES_READ" => "",
"SHOW_LINK_TO_FORUM" => "Y",
"POST_FIRST_MESSAGE" => "Y",
"USE_COMPARE" => "N",
"PRICE_CODE" => array(
0 => "WHOLESALE",
1 => "RETAIL",
),
"USE_PRICE_COUNT" => "N",
"SHOW_PRICE_COUNT" => "1",
"PRICE_VAT_INCLUDE" => "Y",
"PRICE_VAT_SHOW_VALUE" => "N",
"SHOW_TOP_ELEMENTS" => "Y",
"TOP_ELEMENT_COUNT" => "30",
"TOP_LINE_ELEMENT_COUNT" => "2",
"TOP_ELEMENT_SORT_FIELD" => "timestamp_x",
"TOP_ELEMENT_SORT_ORDER" => "desc",
"TOP_PROPERTY_CODE" => array(
0 => "CML2_ARTICLE",
1 => "FORUM_MESSAGE_CNT",
2 => "",
),
"PAGE_ELEMENT_COUNT" => "30",
"LINE_ELEMENT_COUNT" => "2",
"ELEMENT_SORT_FIELD" => "timestamp_x",
"ELEMENT_SORT_ORDER" => "desc",
"LIST_PROPERTY_CODE" => array(
0 => "CML2_ARTICLE",
1 => "CML2_BASE_UNIT",
2 => "CML2_TRAITS",
3 => "CML2_TAXES",
4 => "CML2_ATTRIBUTES",
5 => "",
),
"INCLUDE_SUBSECTIONS" => "Y",
"LIST_META_KEYWORDS" => "-",
"LIST_META_DESCRIPTION" => "-",
"LIST_BROWSER_TITLE" => "-",
"DETAIL_PROPERTY_CODE" => array(
0 => "CML2_ARTICLE",
1 => "CML2_BASE_UNIT",
2 => "CML2_TRAITS",
3 => "CML2_TAXES",
4 => "CML2_ATTRIBUTES",
5 => "",
),
"DETAIL_META_KEYWORDS" => "CML2_ATTRIBUTES",
"DETAIL_META_DESCRIPTION" => "CML2_ATTRIBUTES",
"DETAIL_BROWSER_TITLE" => "NAME",
"LINK_IBLOCK_TYPE" => "",
"LINK_IBLOCK_ID" => "",
"LINK_PROPERTY_SID" => "BOOK",
"LINK_ELEMENTS_URL" => "/e-store/reviews/detail.php?ID=#ELEMENT_ID#",
"USE_ALSO_BUY" => "Y",
"ALSO_BUY_ELEMENT_COUNT" => "2",
"ALSO_BUY_MIN_BUYES" => "2",
"DISPLAY_TOP_PAGER" => "Y",
"DISPLAY_BOTTOM_PAGER" => "Y",
"PAGER_TITLE" => "HV-Service - товары",
"PAGER_SHOW_ALWAYS" => "Y",
"PAGER_TEMPLATE" => "Каталог товаров HV-Service",
"PAGER_DESC_NUMBERING" => "Y",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "Y",
"AJAX_OPTION_ADDITIONAL" => "",
"SEF_URL_TEMPLATES" => array(
"sections" => "",
"section" => "#SECTION_ID#/",
"element" => "#SECTION_ID#/#ELEMENT_ID#/",
"compare" => "compare.php?action=#ACTION_CODE#",
),
"VARIABLE_ALIASES" => array(
"compare" => array(
"ACTION_CODE" => "action",
),
)
),
false
);?>

коды типо "/td></tr></tbody></table>" понимаю...

но что означают типо такие как""DETAIL_META_DESCRIPTION" => "CML2_ATTRIBUTES",

"DETAIL_BROWSER_TITLE" => "NAME",

"LINK_IBLOCK_TYPE" => "",

"LINK_IBLOCK_ID" => "",

"LINK_PROPERTY_SID" => "BOOK",

"LINK_ELEMENTS_URL" => "/e-store/reviews/detail.php?ID=#ELEMENT_ID#",

"USE_ALSO_BUY" => "Y"

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Всё очень просто.

возьмём к примеру

$APPLICATION->IncludeComponent(

"bitrix:sale.basket.basket.line",

".default",

Array(

"PATH_TO_BASKET" => "/personal/cart/",

"PATH_TO_PERSONAL" => "/personal/",

"SHOW_PERSONAL_LINK" => "N"

)

Мы подключаем элемент (когда плотно работал с битриксом мне удавалось даже отрыть его php но это и не нужно по сути)

и в пхп коде этого элемента будет доступен массив переменных

"PATH_TO_BASKET" содержащая "/personal/cart/",

"PATH_TO_PERSONAL"содержащая "/personal/",

"SHOW_PERSONAL_LINK" содержащая "N"

как правило такие переменные хранят ключевую информацию по адаптации элемента к контексту как например директория в которой хранятся какие-либо ключевые данные. Изменяя содержимое кавычек можно соответственно поменять высылаемые данные. Зачем же конкретно нужны эти переменные можно выяснить почитав пхп конкретных элементов.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy