Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -263,6 +263,11 @@ class _category extends \IPS\cms\Databases\Controller
|
||||
{
|
||||
$where = NULL;
|
||||
}
|
||||
|
||||
if( \IPS\Request::i()->advanced_search_submitted )
|
||||
{
|
||||
\IPS\Request::i()->csrfKey = \IPS\Session::i()->csrfKey;
|
||||
}
|
||||
|
||||
$table = new \IPS\Helpers\Table\Content( 'IPS\cms\Records' . \IPS\cms\Databases\Dispatcher::i()->databaseId, $category->url(), $where, $category, NULL, 'read', isset( \IPS\Request::i()->rss ) ? FALSE : TRUE );
|
||||
$table->tableTemplate = array( \IPS\cms\Theme::i()->getTemplate( $category->_template_listing, 'cms', 'database' ), 'categoryTable' );
|
||||
|
||||
@@ -139,7 +139,16 @@ class _record extends \IPS\Content\Controller
|
||||
|
||||
$record->save();
|
||||
$record->processAfterEdit( $values );
|
||||
|
||||
|
||||
$fieldObjects = $fieldsClass::data( NULL, $record->category_id ? $category : NULL );
|
||||
|
||||
foreach( $fieldObjects as $id => $row )
|
||||
{
|
||||
if ( $row->type == 'Item' )
|
||||
{
|
||||
$record->processItemFieldData( $row );
|
||||
}
|
||||
}
|
||||
\IPS\Output::i()->redirect( $record->url() );
|
||||
}
|
||||
}
|
||||
@@ -214,14 +223,14 @@ class _record extends \IPS\Content\Controller
|
||||
'author' => array(
|
||||
'@type' => 'Person',
|
||||
'name' => (string) \IPS\Member::load( $record->member_id )->name,
|
||||
'image' => (string) \IPS\Member::load( $record->member_id )->get_photo()
|
||||
'image' => (string) \IPS\Member::load( $record->member_id )->get_photo( TRUE, TRUE )
|
||||
),
|
||||
'publisher' => array(
|
||||
'@id' => \IPS\Settings::i()->base_url . '#organization',
|
||||
'member' => array(
|
||||
'@type' => "Person",
|
||||
'name' => \IPS\Member::load( $record->member_id )->name,
|
||||
'image' => (string) \IPS\Member::load( $record->member_id )->get_photo(),
|
||||
'image' => (string) \IPS\Member::load( $record->member_id )->get_photo( TRUE, TRUE ),
|
||||
)
|
||||
),
|
||||
'interactionStatistic' => array(
|
||||
@@ -258,7 +267,7 @@ class _record extends \IPS\Content\Controller
|
||||
}
|
||||
\IPS\Output::i()->jsonLd['article']['publisher']['logo'] = array(
|
||||
'@type' => 'ImageObject',
|
||||
'url' => $logo ? (string) $logo : (string) \IPS\Member::load( $record->member_id )->get_photo(),
|
||||
'url' => $logo ? (string) $logo : (string) \IPS\Member::load( $record->member_id )->get_photo( TRUE, TRUE ),
|
||||
);
|
||||
|
||||
/* Image is required */
|
||||
@@ -283,7 +292,7 @@ class _record extends \IPS\Content\Controller
|
||||
|
||||
\IPS\Output::i()->jsonLd['article']['image'] = array(
|
||||
'@type' => 'ImageObject',
|
||||
'url' => \IPS\Member::load( $record->member_id )->get_photo(),
|
||||
'url' => \IPS\Member::load( $record->member_id )->get_photo( TRUE, TRUE ),
|
||||
'width' => $photoVars[0],
|
||||
'height' => $photoVars[1]
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user