Version 4.1.19
This commit is contained in:
1 parent
28bd025b35
commit
2bd5025018
2674 files changed
+233518
-77766
No files matched your search
+149
-62
@@ -88,7 +88,7 @@
|
||||
</div>]]></template>
|
||||
<template template_group="blocks" template_name="previewBlock" template_data="" template_location="admin" template_app="cms"><![CDATA[<li class="ipsFieldRow">
|
||||
<div id="elPages_block_preview_wrapper">
|
||||
<iframe class='loading' src='{url="app=cms&module=pages&controller=builder&do=previewBlock" base="front"}' data-base-url="{url="app=cms&module=pages&controller=builder&do=previewBlock" base="front"}" frameborder="0" name="elpages_block_preview" id="elpages_block_preview"></iframe>
|
||||
<iframe class='loading' src='{url="app=cms&module=pages&controller=builder&do=previewBlock" base="front" protocol="\IPS\Http\Url::PROTOCOL_RELATIVE"}' data-base-url="{url="app=cms&module=pages&controller=builder&do=previewBlock" base="front" protocol="\IPS\Http\Url::PROTOCOL_RELATIVE"}" frameborder="0" name="elpages_block_preview" id="elpages_block_preview"></iframe>
|
||||
</div>
|
||||
<div class="ipsPos_right">
|
||||
<span data-role="refreshPreview" class="ipsButton ipsButton_light ipsButton_small">{lang="cms_block_preview_refresh"}</span>
|
||||
@@ -116,36 +116,48 @@
|
||||
<a class="ipsPos_right ipsBadge ipsBadge_style1" href="{$page->url()}" target="_blank">{lang="cms_db_used_on_page" sprintf="$page->_title"}</a>
|
||||
{{endif}}
|
||||
<p class='ipsType_light'>{$database->_description}</p>]]></template>
|
||||
<template template_group="databases" template_name="rebuildTopics" template_data="$id" template_location="admin" template_app="cms"><![CDATA[
|
||||
<div class='acpBlock'>
|
||||
<div class="ipsPad">
|
||||
{lang="database_rebuild_topics_desc"}
|
||||
<p>
|
||||
<a href='{url="app=cms&module=databases&controller=databases&do=rebuildTopicContent&id={$id}&process=1"}' class="ipsButton ipsButton_primary">{lang="database_rebuild_topics_button"}</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>]]></template>
|
||||
<template template_group="global" template_name="basicRelationship" template_data="$items" template_location="front" template_app="cms"><![CDATA[{{foreach $items as $id => $item}}
|
||||
<a href="{$item->url()}">{$item->_title}</a>
|
||||
<a class="ipsPages_csv" href="{$item->url()}">{$item->_title}</a>
|
||||
{{endforeach}}]]></template>
|
||||
<template template_group="global" template_name="commentTableHeader" template_data="$comment, $record" template_location="front" template_app="cms"><![CDATA[{{$iposted = $record->container()->contentPostedIn();}}
|
||||
{{$idField = $record::$databaseColumnId;}}
|
||||
<div>
|
||||
<h3 class='ipsType_sectionHead ipsType_break'>
|
||||
{{if $record->unread()}}
|
||||
<a href='{$record->url( 'getNewComment' )}' title='{lang="first_unread_post"}' data-ipsTooltip>
|
||||
<span class='ipsItemStatus'><i class="fa {{if in_array( $record->$idField, $iposted )}}fa-star{{else}}fa-circle{{endif}}"></i></span>
|
||||
</a>
|
||||
{{else}}
|
||||
{{if in_array( $record->$idField, $iposted )}}
|
||||
<span class='ipsItemStatus ipsItemStatus_read ipsItemStatus_posted'><i class="fa fa-star"></i></span>
|
||||
<h3 class='ipsType_sectionHead'>
|
||||
<div class='ipsType_break ipsContained'>
|
||||
{{if $record->unread()}}
|
||||
<a href='{$record->url( 'getNewComment' )}' title='{lang="first_unread_post"}' data-ipsTooltip>
|
||||
<span class='ipsItemStatus'><i class="fa {{if in_array( $record->$idField, $iposted )}}fa-star{{else}}fa-circle{{endif}}"></i></span>
|
||||
</a>
|
||||
{{else}}
|
||||
{{if in_array( $record->$idField, $iposted )}}
|
||||
<span class='ipsItemStatus ipsItemStatus_read ipsItemStatus_posted'><i class="fa fa-star"></i></span>
|
||||
{{endif}}
|
||||
{{endif}}
|
||||
{{endif}}
|
||||
<a href='{$comment->url()}' title='{lang="view_this_cmsrecord" sprintf="\IPS\Member::loggedIn()->language()->addToStack( 'content_db_lang_sl_' . $record::$customDatabaseId, FALSE ), $record->_title"}'>{wordbreak="$record->_title"}</a>
|
||||
{{if $record->container()->allow_rating}}
|
||||
{template="rating" group="global" location="front" app="core" params="'large', $record->rating_hits ? ( $record->rating_total / $record->rating_hits ) : 0"}
|
||||
{{endif}}
|
||||
|
||||
<a href='{$comment->url()}' title='{lang="view_this_cmsrecord" sprintf="\IPS\Member::loggedIn()->language()->addToStack( 'content_db_lang_sl_' . $record::$customDatabaseId, FALSE ), $record->_title"}'>{$record->_title}</a>
|
||||
{{if $record->container()->allow_rating}}
|
||||
{template="rating" group="global" location="front" app="core" params="'large', $record->rating_hits ? ( $record->rating_total / $record->rating_hits ) : 0"}
|
||||
{{endif}}
|
||||
</div>
|
||||
</h3>
|
||||
<p class='ipsType_normal ipsType_light ipsType_blendLinks ipsType_reset'>{lang="in"} <a href='{$record->container()->url()}'>{$record->container()->_title}</a></p>
|
||||
</div>]]></template>
|
||||
<template template_group="global" template_name="uploadDisplay" template_data="$file, $record" template_location="front" template_app="cms"><![CDATA[{{if $file->isImage()}}
|
||||
<template template_group="global" template_name="uploadDisplay" template_data="$file, $record, $downloadUrl" template_location="front" template_app="cms"><![CDATA[{{if $file->isImage()}}
|
||||
<img src="$file->url" class="ipsImage" data-ipsLightbox>
|
||||
{{else}}
|
||||
{{if $record}}
|
||||
<a href="{url="applications/cms/interface/file/file.php?record={$record->_id}&database={$record::$customDatabaseId}&file=" base="none"}{expression="urlencode($file)"}">{$file->originalFilename}</a>
|
||||
{{else}}
|
||||
<a href="{$file->url}">{$file->originalFilename}</a>
|
||||
<a href="{$downloadUrl}">{$file->originalFilename}</a>
|
||||
{{endif}}
|
||||
{{endif}}]]></template>
|
||||
<template template_group="media" template_name="fileListing" template_data="$url, $item" template_location="admin" template_app="cms"><![CDATA[
|
||||
@@ -186,6 +198,7 @@
|
||||
{{if $rootButtons['add_page']}}
|
||||
<li class='ipsPos_left'><a href='{url="app=cms&module=pages&controller=media&do=upload"}' data-ipsDialog data-ipsDialog-forceReload data-ipsDialog-remoteSubmit data-ipsDialog-title='{lang="cms_add_media"}' class='ipsButton ipsButton_normal ipsButton_small ipsButton_fullWidth' data-role='uploadButton'><i class='fa fa-cloud-upload'></i> {lang="cms_add_media"}</a></li>
|
||||
{{endif}}
|
||||
<li class='ipsPos_left ipsHide' data-action='deleteFolder'><a href='{url="app=cms&module=pages&controller=media&do=delete&deleteNode=1"}' data-ipsDialog data-ipsDialog-forceReload data-ipsDialog-remoteVerify="false" data-ipsDialog-title='{lang="delete"}' class='ipsButton ipsButton_negative ipsButton_small ipsButton_fullWidth'><i class='fa fa-times'></i> {lang="cms_delete_folder_media"}</a></li>
|
||||
<li class='ipsPos_left ipsHide' data-action='deleteSelected'><a href='#' class='ipsButton ipsButton_negative ipsButton_small ipsButton_fullWidth'><i class='fa fa-times'></i> {lang="cms_delete_selected_media"}</a></li>
|
||||
<li class='ipsResponsive_showPhone ipsResponsive_block'><hr class='ipsHr'></li>
|
||||
<li class='ipsPos_right'>
|
||||
@@ -282,12 +295,17 @@
|
||||
<ul class='ipsList_reset'>
|
||||
{{if isset( $widgets[ $id ] )}}
|
||||
{{foreach $widgets[ $id ] as $widget}}
|
||||
<li class='ipsWidget ipsWidget_{$orientation}' data-blockTitle="{$widget->title()}" data-blockID='{{if isset($widget->app)}}app_{$widget->app}_{{else}}plugin_{$widget->plugin}_{{endif}}{$widget->key}_{$widget->uniqueKey}'{{if $widget->hasConfiguration()}} data-blockConfig="true"{{endif}} data-controller='core.front.widgets.block'>{$widget|raw}</li>
|
||||
<li class='{{if get_class( $widget ) != 'IPS\cms\widgets\Database'}}ipsWidget ipsWidget_{$orientation}{{endif}}' data-blockTitle="{$widget->title()}" data-blockID='{{if isset($widget->app)}}app_{$widget->app}_{{else}}plugin_{$widget->plugin}_{{endif}}{$widget->key}_{$widget->uniqueKey}'{{if $widget->hasConfiguration()}} data-blockConfig="true"{{endif}} data-controller='core.front.widgets.block'>{$widget|raw}</li>
|
||||
{{endforeach}}
|
||||
{{endif}}
|
||||
</ul>
|
||||
</div>
|
||||
{{endif}}]]></template>
|
||||
<template template_group="records" template_name="category" template_data="$category" template_location="admin" template_app="cms"><![CDATA[{{if $parent = $category->parent()}}
|
||||
{{$databaseId = \IPS\Request::i()->database_id;}}
|
||||
<a href="#" data-ipsHover-timeout="0.1" data-ipsHover-target="{url="app=cms&module=databases&controller=records&do=categoryTree&id={$category->_id}&database_id={$databaseId}"}" data-ipsHover class="ipsType_light">{$parent->_title}</a> <i class="ipsType_light fa fa-angle-right"></i>
|
||||
{{endif}}
|
||||
{$category->_title}]]></template>
|
||||
<template template_group="records" template_name="categorySelector" template_data="$form" template_location="admin" template_app="cms"><![CDATA[
|
||||
<div class='ipsPad'>
|
||||
{$form|raw}
|
||||
@@ -295,6 +313,13 @@
|
||||
<template template_group="records" template_name="categorySelector" template_data="$form" template_location="front" template_app="cms"><![CDATA[
|
||||
<div class='ipsPad'>
|
||||
{$form|raw}
|
||||
</div>]]></template>
|
||||
<template template_group="records" template_name="categoryTree" template_data="$category, $parents" template_location="admin" template_app="cms"><![CDATA[<div class="ipsPad">
|
||||
{{$databaseId = \IPS\Request::i()->database_id;}}
|
||||
{{foreach $parents as $cat}}
|
||||
<a href="{url="app=cms&module=databases&controller=categories&do=form&id={$cat->_id}&database_id={$databaseId}"}" class="ipsType_light">{$cat->_title}</a> <i class="ipsType_light fa fa-angle-right"></i>
|
||||
{{endforeach}}
|
||||
<a href="{url="app=cms&module=databases&controller=categories&do=form&id={$category->_id}&database_id={$databaseId}"}">{$category->_title}</a>
|
||||
</div>]]></template>
|
||||
<template template_group="records" template_name="commentTemplate" template_data="$id, $action, $elements, $hiddenValues, $actionButtons, $uploadField, $class=''" template_location="front" template_app="cms"><![CDATA[{{$minimized = false;}}
|
||||
<form accept-charset='utf-8' class="ipsForm {$class}" action="{$action}" method="post" {{if $uploadField}}enctype="multipart/form-data"{{endif}}>
|
||||
@@ -306,7 +331,7 @@
|
||||
<input type="hidden" name="MAX_FILE_SIZE" value="{$uploadField}">
|
||||
<input type="hidden" name="plupload" value="{expression="md5( uniqid() )"}">
|
||||
{{endif}}
|
||||
<div class='ipsComposeArea ipsComposeArea_withPhoto ipsClearfix'>
|
||||
<div class='ipsComposeArea ipsComposeArea_withPhoto ipsClearfix ipsContained'>
|
||||
<div class='ipsPos_left ipsResponsive_hidePhone ipsResponsive_block'>{template="userPhoto" app="core" group="global" params="\IPS\Member::loggedIn(), 'small'"}</div>
|
||||
<div class='ipsComposeArea_editor'>
|
||||
{{if !\IPS\Member::loggedIn()->member_id}}
|
||||
@@ -361,7 +386,7 @@
|
||||
{{endif}}
|
||||
<input type="checkbox" class="ipsHide" id="elInput_record_static_furl_set" name="record_static_furl_set_checkbox" {{if $collection['record_static_furl_set']->value}}checked="checked"{{endif}} value="1">
|
||||
<input type="hidden" name="record_static_furl_set" value="{{if $collection['record_static_furl_set']->value}}1{{else}}0{{endif}}">
|
||||
{lang="url"}: <span data-ipsSlugUrl>{$page->url()}</span><span data-ipsSlugCategory>{$category->full_path}</span><span data-ipsSlugSlug></span><span data-ipsSlugManual class="ipsHide">
|
||||
{lang="url"}: <span data-ipsSlugUrl>{url="app=cms&module=pages&controller=page&path=$page->full_path" seoTemplate="content_page_path" seoTitle="$page->full_path"}</span><span data-ipsSlugCategory>{$category->full_path}</span><span data-ipsSlugSlug></span><span data-ipsSlugManual class="ipsHide">
|
||||
/ <input type="text" class='ipsField_short ipsField_tinyText' name="record_static_furl" value="{$collection['record_static_furl']->value}">
|
||||
</span><span data-ipsSlugExt>{{if $record !== NULL}}-r{$record->_id}{{else}}-r#{{endif}}</span>
|
||||
<button data-ipsChange class="ipsButton ipsButton_veryVerySmall">{lang="change"}</button>
|
||||
@@ -414,14 +439,23 @@
|
||||
<div class='ipsType_richText'>
|
||||
{{$gotDiffs = FALSE;}}
|
||||
{{foreach $row['revision_data'] as $key => $diff}}
|
||||
{{if ! empty( $diff['diff'] )}}
|
||||
{{if $diff['original'] != $diff['current']}}
|
||||
{{$gotDiffs = TRUE;}}
|
||||
<p><strong>{$diff['field']->_title}</strong></p>
|
||||
{$diff['diff']|raw}
|
||||
{{if !in_array( $diff['field']->type, array( 'Editor', 'CodeMirror', 'TextArea' ) )}}
|
||||
<div class='ipsGrid' data-key='{$key}' data-method='diff'>
|
||||
<div class='ipsGrid_span6 ipsPad' data-original='{$key}'>{$diff['original']}</div>
|
||||
<div class='ipsGrid_span6 ipsPad' data-current='{$key}'>{$diff['current']}</div>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class='ipsPagesDiff' data-key='{$key}' data-method='merge' id="{expression="md5(uniqid())"}"></div>
|
||||
<textarea class='ipsHide' data-original='{$key}'>{$diff['original']}</textarea>
|
||||
<textarea class='ipsHide' data-current='{$key}'>{$diff['current']}</textarea>
|
||||
{{endif}}
|
||||
{{endif}}
|
||||
{{endforeach}}
|
||||
{{if ! $gotDiffs}}
|
||||
<p class="ipsMessage ipsMessage_info">{lang="record_no_revision_data"}</p>
|
||||
<p class="ipsMessage ipsMessage_info">{lang="record_no_revision_data"}</p>
|
||||
{{endif}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -433,7 +467,7 @@
|
||||
<h1 class='ipsType_pageTitle'>{lang="content_view_revisions"}</h1>
|
||||
</div>
|
||||
{{endif}}
|
||||
<div class='ipsBox' data-baseurl='{$table->baseUrl}' data-resort='{$table->resortKey}'>
|
||||
<div class='ipsBox' data-baseurl='{$table->baseUrl}' data-resort='{$table->resortKey}' data-controller='cms.front.records.revisions'>
|
||||
{{if $table->title}}
|
||||
<h2 class='ipsType_sectionTitle ipsType_reset ipsClear'>{lang="$table->title"}</h2>
|
||||
{{endif}}
|
||||
@@ -478,7 +512,7 @@
|
||||
<input type="hidden" name="{$k}" value="{$v}">
|
||||
{{endif}}
|
||||
{{endforeach}}
|
||||
<ol class='ipsList_reset'>
|
||||
<ol class='ipsList_reset' data-controller='cms.front.records.revisions'>
|
||||
{{foreach $conflicts as $key => $data}}
|
||||
<li>
|
||||
<h2 class="ipsType_secondaryTitle ipsType_reset ipsType_blendLinks">
|
||||
@@ -486,7 +520,7 @@
|
||||
</h2>
|
||||
<ol class='ipsDataList ipsDataList_large' id='elTable_{$record->_id}' data-role="tableRows">
|
||||
<li class="ipsDataItem">
|
||||
{{if isset( $data['diff'])}}
|
||||
{{if isset( $data['diff']) OR $data['original'] != $data['current']}}
|
||||
<div class="ipsDataItem_main ipsAreaBackground_light ipsPad_half">
|
||||
<table class="ipsTable diff restrict_height">
|
||||
<tr>
|
||||
@@ -495,32 +529,39 @@
|
||||
</tr>
|
||||
</table>
|
||||
<div data-conflict-id="{$key}">
|
||||
{$data['diff']|raw}
|
||||
{{if !in_array( $data['field']->type, array( 'Editor', 'CodeMirror', 'TextArea' ) )}}
|
||||
<div class='ipsGrid' data-key='{$key}' data-method='diff'>
|
||||
<div class='ipsGrid_span6 ipsPad' data-original='{$key}'>{$data['original']}</div>
|
||||
<div class='ipsGrid_span6 ipsPad' data-current='{$key}'>{$data['current']}</div>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class='ipsPagesDiff' data-key='{$key}' data-method='merge' id="{expression="md5(uniqid())"}"></div>
|
||||
<textarea class='ipsHide' data-original='{$key}'>{$data['original']}</textarea>
|
||||
<textarea class='ipsHide' data-current='{$key}'>{$data['current']}</textarea>
|
||||
{{endif}}
|
||||
</div>
|
||||
<div class="ipsAreaBackground ipsPad">
|
||||
<div class='ipsGrid'>
|
||||
<div class='ipsGrid_span6'>
|
||||
<span class='ipsButton ipsButton_light' data-conflict-name="old">
|
||||
<span class='' data-conflict-name="old">
|
||||
{{foreach $elements as $collection}}
|
||||
{{foreach $collection as $name => $input}}
|
||||
{{if $name == 'conflict_' . $data['field']->id}}
|
||||
<input id='elField_{$name}' type="radio" name="{$name}" value="old" checked="checked" />
|
||||
{template="radio" location="global" app="core" group="forms" params="$name, 'old', FALSE, array( 'old' => \IPS\Member::loggedIn()->language()->addToStack('content_conflict_use_this_revision') ), FALSE, array(), array(), array(), '', NULL, NULL, 'oldrev'"}
|
||||
{{endif}}
|
||||
{{endforeach}}
|
||||
{{endforeach}}
|
||||
<strong>{lang="content_conflict_use_this_revision"}</strong>
|
||||
</span>
|
||||
</div>
|
||||
<div class='ipsGrid_span6'>
|
||||
<span class='ipsButton ipsButton_light' data-conflict-name="new">
|
||||
<span data-conflict-name="new">
|
||||
{{foreach $elements as $collection}}
|
||||
{{foreach $collection as $name => $input}}
|
||||
{{if $name == 'conflict_' . $data['field']->id}}
|
||||
<input id='elField_{$name}' type="radio" name="{$name}" value="new" />
|
||||
{template="radio" location="global" app="core" group="forms" params="$name, NULL, FALSE, array( 'new' => \IPS\Member::loggedIn()->language()->addToStack('content_conflict_use_this_record') ), FALSE, array(), array(), array(), '', NULL, NULL, 'newrev'"}
|
||||
{{endif}}
|
||||
{{endforeach}}
|
||||
{{endforeach}}
|
||||
<strong>{lang="content_conflict_use_this_record"}</strong>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -677,6 +718,9 @@
|
||||
{{if isset( $templates[ $type ] ) and is_array( $templates[ $type ] )}}
|
||||
{{foreach $templates[ $type ] as $group => $childTemplates}}
|
||||
<li {{if $request['t_group'] == $group}}class="cTemplateList_activeBranch"{{else}}class="cTemplateList_inactiveBranch"{{endif}} data-group="{$group}">
|
||||
{{if $type == 'database' and ! in_array( $group, array_values( \IPS\cms\Templates::$databaseDefaults ) )}}
|
||||
<a class="ipsCms_templateOptions" href="{url="app=cms&module=pages&controller=templates&do=databaseTemplateGroupOptions&group={$group}&t_location={$type}"}" id="elTemplateEditor_options_{$group}" data-ipsDialog><i class="fa fa-cog"></i></a>
|
||||
{{endif}}
|
||||
<a href='{url="app=cms&module=pages&controller=templates&t_location={$type}&t_group={$group}"}' data-action="toggleBranch">{expression="\IPS\cms\Templates::readableGroupName( $group )"}</a>
|
||||
<ul class='ipsList_reset'>
|
||||
{{foreach $childTemplates as $key => $child}}
|
||||
@@ -730,7 +774,7 @@
|
||||
<a href='#' id='elTemplateEditor_variables' class='ipsButton ipsButton_veryLight ipsButton_small' data-ipsDialog data-ipsDialog-title='{lang="content_template_editor_fields_title"}' data-ipsDialog-content="#elTemplateEditor_attributesDialog" data-ipsDialog-size='narrow'>{lang="theme_attributes"}</a>
|
||||
</li>
|
||||
<li class='ipsPos_right'>
|
||||
<a href='{url="app=cms&module=pages&controller=templates&do=deleteTemplate&t_location={$current->location}&t_id={$current->id}"}' class='ipsButton ipsButton_veryLight ipsButton_small {{if $current->user_edited == 'original'}}ipsButton_disabled{{endif}}' data-action="revert">{{if ! $current->user_edited}}{lang="delete"}{{else}}{lang="revert"}{{endif}}</a>
|
||||
<a href='{url="app=cms&module=pages&controller=templates&do=delete&t_location={$current->location}&t_key={$current->id}"}' class='ipsButton ipsButton_veryLight ipsButton_small {{if $current->user_edited == 'original'}}ipsButton_disabled{{endif}}' data-action="revert">{{if ! $current->user_edited}}{lang="delete"}{{else}}{lang="revert"}{{endif}}</a>
|
||||
</li>
|
||||
<li>
|
||||
<button type='submit' class='ipsButton ipsButton_primary ipsButton_small' data-action="save">{lang="save"}</button>
|
||||
@@ -814,10 +858,12 @@
|
||||
<a href="{$category->url()}" class='ipsSideMenu_item ipsTruncate ipsTruncate_line'><span class='ipsBadge ipsBadge_style1 ipsPos_right'>{expression="\IPS\cms\Records::contentCount( $category )"}</span><strong class='ipsType_normal'>{$category->_title}</strong></a>
|
||||
{{if $category->hasChildren()}}
|
||||
<ul class="ipsSideMenu_list">
|
||||
{{$counter = 0;}}
|
||||
{{foreach $category->children() as $idx => $subcategory}}
|
||||
{{$counter++;}}
|
||||
<li>
|
||||
{{if $idx >= 5}}
|
||||
<a href='{$category->url()}' class='ipsSideMenu_item'><span class='ipsType_light ipsType_small'>{lang="and_x_more" sprintf="count( $category->children() ) - 5"}</span></a>
|
||||
{{if $counter >= 5}}
|
||||
<a href='{$category->url()}' class='ipsSideMenu_item'><span class='ipsType_light ipsType_small'>{lang="and_x_more" pluralize="count( $category->children() ) - 4"}</span></a>
|
||||
{{break;}}
|
||||
{{else}}
|
||||
<a href="{$subcategory->url()}" class='ipsSideMenu_item ipsTruncate ipsTruncate_line'><strong class='ipsPos_right ipsType_small'>{expression="\IPS\cms\Records::contentCount( $subcategory )"}</strong>{$subcategory->_title}</a>
|
||||
@@ -849,16 +895,21 @@
|
||||
<h3 class='ipsWidget_title ipsType_reset'>{$title}</h3>
|
||||
{{if $orientation == 'vertical'}}
|
||||
<div class='ipsPad_half ipsWidget_inner'>
|
||||
<ul class='ipsDataList ipsDataList_reducedSpacing'>
|
||||
<ul class='ipsDataList ipsDataList_reducedSpacing ipsContained_container'>
|
||||
{{foreach $records as $record}}
|
||||
<li class='ipsDataItem'>
|
||||
<div class='ipsDataItem_icon ipsPos_top'>
|
||||
{template="userPhoto" group="global" app="core" params="$record->author(), 'tiny'"}
|
||||
</div>
|
||||
<div class='ipsDataItem_main'>
|
||||
<div class='ipsDataItem_main cWidgetComments'>
|
||||
<div class="ipsCommentCount ipsPos_right {{if ( $record->record_comments ) === 0}}ipsFaded{{endif}}" data-ipsTooltip title='{lang="replies_number" pluralize="$record->record_comments"}'>{expression="$record->record_comments"}</div>
|
||||
<a href="{$record->url()->setQueryString( 'do', 'getLastComment' )}" title='{lang="view_this_cmsrecord" sprintf="\IPS\Member::loggedIn()->language()->addToStack( 'content_db_lang_sl_' . $record::$customDatabaseId, FALSE ), $record->_title"}' class='ipsDataItem_title ipsType_break'>{wordbreak="$record->_title"}</a><br>
|
||||
<span class='ipsType_light ipsType_small'>{lang="byline_nodate" htmlsprintf="$record->author()->link()"} · {datetime="$record->mapped('date')"}</span>
|
||||
<div class='ipsType_break ipsContained'>
|
||||
<a href="{$record->url()->setQueryString( 'do', 'getLastComment' )}" title='{lang="view_this_cmsrecord" sprintf="\IPS\Member::loggedIn()->language()->addToStack( 'content_db_lang_sl_' . $record::$customDatabaseId, FALSE ), $record->_title"}' class='ipsDataItem_title'>{$record->_title}</a>
|
||||
</div>
|
||||
<p class='ipsType_reset ipsType_medium ipsType_blendLinks'>
|
||||
<span>{lang="byline_nodate" htmlsprintf="$record->author()->link()"}</span><br>
|
||||
<span class="ipsType_light">{datetime="$record->mapped('date')"}</span>
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
{{endforeach}}
|
||||
@@ -866,7 +917,7 @@
|
||||
</div>
|
||||
{{else}}
|
||||
<div class='ipsWidget_inner'>
|
||||
<ul class='ipsDataList'>
|
||||
<ul class='ipsDataList ipsContained_container'>
|
||||
{template="recordRow" group="listing" location="database" app="cms" themeClass="IPS\cms\Theme" params="null, null, $records"}
|
||||
</ul>
|
||||
</div>
|
||||
@@ -879,7 +930,7 @@
|
||||
{{foreach $items as $item}}
|
||||
<li class='ipsDataItem'>
|
||||
<div class='ipsDataItem_main'>
|
||||
<a href="{$item['link']}" target="_blank" class='ipsDataItem_title ipsType_break'>{wordbreak="$item['title']"}</a><br>
|
||||
<div class='ipsType_break ipsContained'><a href="{$item['link']}" target="_blank" rel="noopener noreferrer" class='ipsTruncate ipsTruncate_line'>{$item['title']}</a></div>
|
||||
<span class='ipsType_light ipsType_small'>{datetime="$item['date']"}</span>
|
||||
</div>
|
||||
</li>
|
||||
@@ -1148,6 +1199,18 @@
|
||||
|
||||
.ipsWidget.ipsWidget_horizontal[data-blockid^="app_cms"]:not(.ipsBox) {
|
||||
padding: 0px !important;
|
||||
}
|
||||
|
||||
#elCmsPageWrap .cWidgetContainer_managing ul {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
a.ipsPages_csv:after {
|
||||
content: ', ';
|
||||
}
|
||||
|
||||
a.ipsPages_csv:last-child:after {
|
||||
content: '';
|
||||
}</css>
|
||||
<css css_location="front" css_app="cms" css_attributes="" css_path="records" css_name="form.css">/* ----- */
|
||||
|
||||
@@ -1177,11 +1240,6 @@
|
||||
vertical-align: middle;
|
||||
}</css>
|
||||
<css css_location="front" css_app="cms" css_attributes="" css_path="records" css_name="list.css">/* ----- */
|
||||
.cCmsListing .ipsDataItem_lastPoster {
|
||||
padding: 10px 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.cCmsRecord_row h4.ipsDataItem_title {
|
||||
font-size: 14px !important;
|
||||
display: inline;
|
||||
@@ -1189,6 +1247,11 @@
|
||||
|
||||
.ipsDataItem_main span.ipsBadge.ipsPos_right {
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.ipsBadge img.ipsImage {
|
||||
max-height: 20px;
|
||||
max-width: 20px;
|
||||
}</css>
|
||||
<css css_location="front" css_app="cms" css_attributes="" css_path="records" css_name="record.css">/* ----- */
|
||||
.cCmsRecord_image {
|
||||
@@ -1210,6 +1273,11 @@ div[data-controller="core.front.core.commentsWrapper"] .ipsTabs {
|
||||
|
||||
.ipsList_inline span.ipsBadge.ipsPos_right {
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.ipsBadge img.ipsImage {
|
||||
max-height: 20px;
|
||||
max-width: 20px;
|
||||
}</css>
|
||||
<css css_location="admin" css_app="cms" css_attributes="" css_path="templates" css_name="templates.css"><![CDATA[/* ----- */
|
||||
|
||||
@@ -1235,6 +1303,7 @@ html[dir="rtl"] #elTemplateEditor_panelToolbar {
|
||||
#elTemplateEditor .CodeMirror {
|
||||
border-width: 0px !important;
|
||||
border-radius: 0px !important;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
#elTemplateEditor [data-role="editor"] {
|
||||
@@ -1300,13 +1369,17 @@ html[dir="rtl"] #elTemplateEditor_panelToolbar {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.cTemplateList a {
|
||||
.cTemplateList a:not(.ipsCms_templateOptions) {
|
||||
padding: 5px 0;
|
||||
display: block;
|
||||
position: relative;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.cTemplateList a[href*="location=database"]:not(.ipsCms_templateOptions) {
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.cTemplateList li {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
@@ -1316,26 +1389,26 @@ html[dir="rtl"] #elTemplateEditor_panelToolbar {
|
||||
}
|
||||
|
||||
|
||||
.cTemplateList li.cTemplateList_inactiveBranch > a:before,
|
||||
.cTemplateList li.cTemplateList_activeBranch > a:before {
|
||||
.cTemplateList li.cTemplateList_inactiveBranch > a:not(.ipsCms_templateOptions):before,
|
||||
.cTemplateList li.cTemplateList_activeBranch > a:not(.ipsCms_templateOptions):before {
|
||||
font-family: 'FontAwesome';
|
||||
display: inline-block;
|
||||
line-height: 6px;
|
||||
line-height: 7px;
|
||||
font-size: 14px;
|
||||
}
|
||||
html[dir="ltr"] .cTemplateList li.cTemplateList_inactiveBranch > a:before,
|
||||
html[dir="ltr"] .cTemplateList li.cTemplateList_activeBranch > a:before {
|
||||
html[dir="ltr"] .cTemplateList li.cTemplateList_inactiveBranch > a:not(.ipsCms_templateOptions):before,
|
||||
html[dir="ltr"] .cTemplateList li.cTemplateList_activeBranch > a:not(.ipsCms_templateOptions):before {
|
||||
content: '\f0da';
|
||||
margin-right: 7px;
|
||||
}
|
||||
html[dir="rtl"] .cTemplateList li.cTemplateList_inactiveBranch > a:before,
|
||||
html[dir="rtl"] .cTemplateList li.cTemplateList_activeBranch > a:before {
|
||||
html[dir="rtl"] .cTemplateList li.cTemplateList_inactiveBranch > a:not(.ipsCms_templateOptions):before,
|
||||
html[dir="rtl"] .cTemplateList li.cTemplateList_activeBranch > a:not(.ipsCms_templateOptions):before {
|
||||
content: '\f0d9';
|
||||
margin-left: 7px;
|
||||
}
|
||||
|
||||
html[dir="ltr"] .cTemplateList li.cTemplateList_activeBranch > a:before,
|
||||
html[dir="rtl"] .cTemplateList li.cTemplateList_activeBranch > a:before {
|
||||
html[dir="ltr"] .cTemplateList li.cTemplateList_activeBranch > a:not(.ipsCms_templateOptions):before,
|
||||
html[dir="rtl"] .cTemplateList li.cTemplateList_activeBranch > a:not(.ipsCms_templateOptions):before {
|
||||
content: '\f0d7';
|
||||
}
|
||||
|
||||
@@ -1343,17 +1416,17 @@ html[dir="rtl"] #elTemplateEditor_panelToolbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
html[dir="ltr"] .cTemplateList li a {
|
||||
html[dir="ltr"] .cTemplateList li a:not(.ipsCms_templateOptions) {
|
||||
padding-left: 15px;
|
||||
}
|
||||
html[dir="rtl"] .cTemplateList li a {
|
||||
html[dir="rtl"] .cTemplateList li a:not(.ipsCms_templateOptions) {
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
||||
html[dir="ltr"] .cTemplateList li li a {
|
||||
html[dir="ltr"] .cTemplateList li li a:not(.ipsCms_templateOptions) {
|
||||
padding-left: 30px;
|
||||
}
|
||||
html[dir="rtl"] .cTemplateList li li a {
|
||||
html[dir="rtl"] .cTemplateList li li a:not(.ipsCms_templateOptions) {
|
||||
padding-right: 30px;
|
||||
}
|
||||
|
||||
@@ -1371,7 +1444,21 @@ html[dir="rtl"] .cTemplateList li li a {
|
||||
padding-right: 70px;
|
||||
}
|
||||
|
||||
.cTemplateList li.cTemplateList_activeNode > a {
|
||||
a.ipsCms_templateOptions {
|
||||
float: right;
|
||||
display: inline-block;
|
||||
padding: 4px;
|
||||
color: #000000 !important;
|
||||
z-index: 1000;
|
||||
opacity: 0.1;
|
||||
{prefix="transition" value="0.4s all linear"}
|
||||
}
|
||||
|
||||
.cTemplateList:hover a.ipsCms_templateOptions {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.cTemplateList li.cTemplateList_activeNode > a:not(.ipsCms_templateOptions) {
|
||||
background: #748391;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user