Version 4.7.8

This commit is contained in:
Neo committed 2025-12-19 16:10:42 -08:00
1 parent 7b7404e741
commit fd22d99e69
688 files changed
+19814 -10890

No files matched your search

+15
View File
@@ -172,6 +172,7 @@ class _Page extends \IPS\Node\Model implements \IPS\Node\Permissions
$this->template = '';
$this->full_path = '';
$this->js_css_objects = '';
$this->meta_index = TRUE;
}
/**
@@ -787,6 +788,15 @@ class _Page extends \IPS\Node\Model implements \IPS\Node\Permissions
$return['page_meta_keywords'] = new \IPS\Helpers\Form\TextArea( 'page_meta_keywords', $item ? $item->meta_keywords : '', FALSE, array(), NULL, NULL, NULL, 'page_meta_keywords' );
$return['page_meta_description'] = new \IPS\Helpers\Form\TextArea( 'page_meta_description', $item ? $item->meta_description : '', FALSE, array(), NULL, NULL, NULL, 'page_meta_description' );
$disabledIndex = ( $item AND $item->id AND !$item->canView(new \IPS\Member()));
$return['page_meta_index'] = new \IPS\Helpers\Form\YesNo('page_meta_index', !$disabledIndex ? ( $item ? $item->meta_index : TRUE ) : FALSE , FALSE, array( 'disabled' => $disabledIndex), NULL, NULL, NULL, 'page_meta_index' );
if( $disabledIndex )
{
\IPS\Member::loggedIn()->language()->words['page_meta_index_desc'] = \IPS\Member::loggedIn()->language()->addToStack('page_meta_index_desc_disabled');
}
\IPS\Output::i()->globalControllers[] = 'cms.admin.pages.form';
\IPS\Output::i()->jsFiles = array_merge( \IPS\Output::i()->jsFiles, \IPS\Output::i()->js( 'admin_pages.js', 'cms' ) );
@@ -2311,6 +2321,11 @@ class _Page extends \IPS\Node\Model implements \IPS\Node\Permissions
\IPS\Output::i()->metaTags['og:type'] = 'website';
}
if( !$this->meta_index )
{
\IPS\Output::i()->metaTags['robots'] = 'noindex';
}
/* Can only disable sidebar if HTML page */
if ( ! $this->show_sidebar and $this->type === 'html' )
{