Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -25,6 +25,7 @@ spl_autoload_register( function( $class )
|
||||
|
||||
$titleField = $databases[ $databaseId ]->field_title;
|
||||
$contentField = $databases[ $databaseId ]->field_content;
|
||||
$contentType = $databases[ $databaseId ]->key;
|
||||
$titleLang = 'content_db_lang_su_' . $databaseId;
|
||||
$includeInSearch = $databases[ $databaseId ]->search ? "TRUE" : "FALSE";
|
||||
|
||||
@@ -42,6 +43,7 @@ spl_autoload_register( function( $class )
|
||||
public static \$title = '{$titleLang}';
|
||||
public static \$module = 'records{$databaseId}';
|
||||
public static \$includeInSearch = {$includeInSearch};
|
||||
public static \$contentType = '{$contentType}';
|
||||
public static \$databaseColumnMap = array(
|
||||
'author' => 'member_id',
|
||||
'container' => 'category_id',
|
||||
@@ -185,7 +187,7 @@ EOF;
|
||||
if ( mb_substr( $class, 0, 47 ) === 'IPS\cms\extensions\core\EditorLocations\Records' and is_numeric( mb_substr( $class, 47, 1 ) ) )
|
||||
{
|
||||
$databaseId = intval( mb_substr( $class, 47 ) );
|
||||
eval( "namespace IPS\\cms\\extensions\\core\\EditorLocations; class Records{$databaseId} extends \\IPS\\cms\\extensions\\core\\EditorLocations\\Records { public static \$customDatabaseId = $databaseId; }" );
|
||||
eval( "namespace IPS\\cms\\extensions\\core\\EditorLocations; class Records{$databaseId} extends \\IPS\\cms\\extensions\\core\\EditorLocations\\Records { public static \$customDatabaseId = $databaseId; public static \$buttonLocation = TRUE; }" );
|
||||
}
|
||||
} );
|
||||
|
||||
@@ -467,7 +469,7 @@ EOF;
|
||||
$defaultWidgets[] = array(
|
||||
'app' => 'cms',
|
||||
'key' => 'Wysiwyg',
|
||||
'unique' => uniqid(),
|
||||
'unique' => mt_rand(),
|
||||
'configuration' => array( 'content' => $defaultContent )
|
||||
);
|
||||
|
||||
@@ -475,7 +477,7 @@ EOF;
|
||||
$defaultWidgets[] = array(
|
||||
'app' => 'cms',
|
||||
'key' => 'Database',
|
||||
'unique' => uniqid(),
|
||||
'unique' => mt_rand(),
|
||||
'configuration' => array( 'database' => $database->id )
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user