Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -109,7 +109,8 @@ abstract class _Controller
|
||||
*/
|
||||
protected function embed()
|
||||
{
|
||||
$title = \IPS\Member::loggedIn()->language()->addToStack('error_title');
|
||||
$title = \IPS\Member::loggedIn()->language()->addToStack('error_title');
|
||||
$content = null;
|
||||
|
||||
if( !isset( static::$contentModel ) )
|
||||
{
|
||||
@@ -198,6 +199,18 @@ abstract class _Controller
|
||||
\IPS\Output::i()->cssFiles = array_merge( \IPS\Output::i()->cssFiles, $embedCss );
|
||||
\IPS\Output::i()->cssFiles = array_merge( \IPS\Output::i()->cssFiles, \IPS\Theme::i()->css( 'styles/embeds.css', 'core', 'front' ) );
|
||||
|
||||
/* Seo Stuffs */
|
||||
\IPS\Output::i()->title = $title;
|
||||
|
||||
if( $content !== NULL )
|
||||
{
|
||||
\IPS\Output::i()->linkTags['canonical'] = (string) $content->url();
|
||||
}
|
||||
else
|
||||
{
|
||||
\IPS\Output::i()->metaTags['robots'] = 'noindex';
|
||||
}
|
||||
|
||||
\IPS\Output::i()->sendOutput( \IPS\Theme::i()->getTemplate( 'global', 'core', 'front' )->embedInternal( $output, $js ), 200, 'text/html', \IPS\Output::i()->httpHeaders );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user