From bf2b0572f29f7a27065ec3e9bbfd597ccad60ec4 Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Sun, 14 Jun 2026 12:07:39 +0100 Subject: Remove dead center_ component template files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit center_list_components.tpl, center_component_comments.php and center_component_comments.tpl are unreferenced old embedded-center pattern remnants — same cleanup as center_list_assemblies.php. Co-Authored-By: Claude Sonnet 4.6 --- templates/center_component_comments.php | 54 --------------------------------- templates/center_component_comments.tpl | 35 --------------------- templates/center_list_components.tpl | 18 ----------- 3 files changed, 107 deletions(-) delete mode 100755 templates/center_component_comments.php delete mode 100755 templates/center_component_comments.tpl delete mode 100755 templates/center_list_components.tpl diff --git a/templates/center_component_comments.php b/templates/center_component_comments.php deleted file mode 100755 index 86ea440..0000000 --- a/templates/center_component_comments.php +++ /dev/null @@ -1,54 +0,0 @@ -mUserId ) ) { - $userId = $gQueryUser->mUserId; -} - -$listHash = [ - 'user_id' => $userId, - 'max_records' => $moduleParams['module_rows'], -]; - -if (!empty($params['full'])) { - $listHash['parse'] = true; -} - -if (!empty($params['pigeonholes'])) { - $listHash['pigeonholes']['root_filter'] = $params['pigeonholes']; -} - -if( !empty( $params['root_content_type_guid'] ) ) { - if( empty($moduleTitle) && is_string( $params['root_content_type_guid'] ) ) { - $moduleTitle = $gLibertySystem->getContentTypeName( $params['root_content_type_guid'] ).' '.KernelTools::tra( 'Comments' ); - } - $listHash['root_content_type_guid'] = $params['root_content_type_guid']; -} else { - // default to base image types - $listHash['root_content_type_guid'] = ['stockcomponent','stockassembly']; -} -$gBitSmarty->assign( 'moduleTitle', $moduleTitle ); - -$lcom = new LibertyComment(); -$modLastComments = $lcom->getList( $listHash ); -$keys = array_keys( $modLastComments ); -foreach( $keys as $k ) { - $modLastComments[$k]['object'] = LibertyBase::getLibertyObject( $modLastComments[$k]['root_id'], $modLastComments[$k]['root_content_type_guid'] ); -} -$gBitSmarty->assign( 'modLastComments', $modLastComments ); -?> diff --git a/templates/center_component_comments.tpl b/templates/center_component_comments.tpl deleted file mode 100755 index a90a417..0000000 --- a/templates/center_component_comments.tpl +++ /dev/null @@ -1,35 +0,0 @@ -{* $Header$ *} -{strip} -{if $modLastComments} -
-
-

{tr}{$moduleTitle|default:'Image Comments'}{/tr}

-
- -
-
    - {section name=ix loop=$modLastComments} -
  • - {$modLastComments[ix].object->getTitle()|escape} - -
    -

    {$modLastComments[ix].object->getTitle()|escape}: {$modLastComments[ix].display_link}

    - {if $moduleParams.module_params.show_date} -
    {tr}by{/tr} {displayname hash=$modLastComments[ix]}, {$modLastComments[ix].last_modified|bit_short_datetime}
    - {/if} -
    - {if $moduleParams.module_params.full} -

    {$modLastComments[ix].parsed_data}

    - {/if} -
    -
  • - {sectionelse} -
  • - {/section} -
-
- {pagination gallery_id=$gContent->mGalleryId} -
-
-{/if} -{/strip} diff --git a/templates/center_list_components.tpl b/templates/center_list_components.tpl deleted file mode 100755 index f861b9a..0000000 --- a/templates/center_list_components.tpl +++ /dev/null @@ -1,18 +0,0 @@ -{strip} -{if $thumbnailList || $showEmpty} -
-
-

{$stock_center_params.title|default:"{tr}Components{/tr}"}

-
- -
- {foreach from=$thumbnailList key=componentId item=component} -
{$component.title|escape}
- {foreachelse} - {tr}No records found{/tr} - {/foreach} -

{tr}View More{/tr}...

-
-
-{/if} -{/strip} -- cgit v1.3