add actual version
This commit is contained in:
@@ -148,7 +148,7 @@
|
||||
]
|
||||
);
|
||||
|
||||
add_theme_support( 'post-thumbnails', ['post', 'profile_article', 'anew', 'guest-author', 'yellow'] );
|
||||
add_theme_support( 'post-thumbnails', ['post', 'profile_article', 'anew', 'guest-author', 'yellow', 'journal_issue'] );
|
||||
|
||||
}
|
||||
|
||||
@@ -325,7 +325,21 @@
|
||||
$color = get_post_meta($data_object->ID, "_menu_item_color", true);
|
||||
$color = $color ? $color : "black";
|
||||
|
||||
$li_class = self::menu_classes[$args->theme_location]["li_class"] . implode(" ", $data_object->classes);
|
||||
//$li_class = self::menu_classes[$args->theme_location]["li_class"] . implode(" ", $data_object->classes);
|
||||
$li_class = self::menu_classes[$args->theme_location]["li_class"] ?? '';
|
||||
$classes_part = '';
|
||||
if (is_array($data_object->classes)) {
|
||||
$classes_part = implode(" ", $data_object->classes);
|
||||
} else {
|
||||
$classes_part = $data_object->classes ?? '';
|
||||
}
|
||||
$li_class .= ' ' . trim($classes_part);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$a_class = self::menu_classes[$args->theme_location]["a_class"];
|
||||
|
||||
$link_attr = ! empty( $data_object->attr_title ) ? ' title="' . esc_attr( $data_object->attr_title ) .'"' : '';
|
||||
@@ -1289,7 +1303,8 @@
|
||||
/**
|
||||
* Сжатие html
|
||||
*/
|
||||
require_once 'inc/compress-html.php';
|
||||
require_once get_theme_file_path('/inc/compress-html.php');
|
||||
//require_once 'inc/compress-html.php';
|
||||
//require_once __DIR__ . "/inc/compress-html.php";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user