Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/units/categories/categories_tag_processor.php
Show First 20 Lines • Show All 1271 Lines • ▼ Show 20 Line(s) | |||||
if ( !$page_helper->loadContentBlock($content, $page, $num) && EDITING_MODE ) { | if ( !$page_helper->loadContentBlock($content, $page, $num) && EDITING_MODE ) { | ||||
$page_helper->createNewContentBlock($page->GetID(), $num); | $page_helper->createNewContentBlock($page->GetID(), $num); | ||||
$page_helper->loadContentBlock($content, $page, $num); | $page_helper->loadContentBlock($content, $page, $num); | ||||
} | } | ||||
$edit_code_before = $edit_code_after = ''; | $edit_code_before = $edit_code_after = ''; | ||||
$inline_editing = isset($params['mode']) && $params['mode'] == 'inline'; | $inline_editing = isset($params['mode']) && $params['mode'] == 'inline'; | ||||
$readonly = isset($params['mode']) && $params['mode'] == 'readonly'; | |||||
if ( EDITING_MODE == EDITING_MODE_CONTENT ) { | if ( EDITING_MODE == EDITING_MODE_CONTENT && !$readonly ) { | ||||
if ( $inline_editing ) { | if ( $inline_editing ) { | ||||
$params['name'] = 'content_block_' . $num; | $params['name'] = 'content_block_' . $num; | ||||
$editing_hint = $this->Application->Phrase('la_hint_ClickToEdit', false, true); | $editing_hint = $this->Application->Phrase('la_hint_ClickToEdit', false, true); | ||||
$edit_code_before = ' | $edit_code_before = ' | ||||
<div class="cms-edit-btn-container mode-inline-edit" data-content-id="' . $content->GetID() . '"> | <div class="cms-edit-btn-container mode-inline-edit" data-content-id="' . $content->GetID() . '"> | ||||
<div class="inline-edit-layer"></div> | <div class="inline-edit-layer"></div> | ||||
▲ Show 20 Lines • Show All 1024 Lines • Show Last 20 Lines |