Skip to content

Commit

Permalink
2.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
webmandesign committed Mar 20, 2022
1 parent c6cf339 commit 1a74a3d
Show file tree
Hide file tree
Showing 10 changed files with 210 additions and 184 deletions.
5 changes: 5 additions & 0 deletions assets/images/svg/social-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Auberge Changelog

## 2.8.0, 20220320

### Added
- TikTok social icon

### Updated
- Recommended plugins list
- Improving HTML head code for better compatibility with SEO plugins
- Localization

### File updates
changelog.md
readme.txt
style.css
includes/plugins/one-click-demo-import/class-one-click-demo-import.php
includes/setup/setup.php
includes/tgmpa/plugins.php
languages/*.*


## 2.7.6, 20210317

### Update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 2.1
* @version 2.7.2
* @version 2.8.0
*
* Contents:
*
Expand Down Expand Up @@ -273,18 +273,16 @@ public static function before_widgets_import() {
* OCDI plugin admin page styles
*
* @since 2.1.1
* @version 2.1.1
* @version 2.8.0
*/
public static function styles() {

// Processing

// OCDI 2.0 styling fix

wp_add_inline_style(
'ocdi-main-css',
'.ocdi.about-wrap { max-width: 66em; }'
);
wp_add_inline_style(
'ocdi-main-css',
'.ocdi__content-container { max-width: 1024px; }'
);

} // /styles

Expand Down
72 changes: 51 additions & 21 deletions includes/setup/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0
* @version 2.7.2
* @version 2.8.0
*
* Contents:
*
Expand Down Expand Up @@ -271,7 +271,7 @@ function wm_helper_var( $variable, $key = null ) {
* Theme setup
*
* @since 1.0
* @version 2.6.0
* @version 2.8.0
*/
if ( ! function_exists( 'wm_setup' ) ) {
function wm_setup() {
Expand Down Expand Up @@ -377,11 +377,14 @@ function wm_setup() {
* @link https://codex.wordpress.org/Function_Reference/add_theme_support#HTML5
*/
add_theme_support( 'html5', array(
'comment-list',
'caption',
'comment-form',
'search-form',
'comment-list',
'gallery',
'caption',
'navigation-widgets',
'search-form',
'script',
'style',
) );

// Custom header
Expand Down Expand Up @@ -1388,39 +1391,65 @@ function wm_doctype() {


/**
* Website HEAD
* Meta charset.
*
* @since 2.8.0
* @version 2.8.0
*/
if ( ! function_exists( 'wm_charset' ) ) {
function wm_charset() {

// Output

echo '<meta charset="' . esc_attr( get_bloginfo( 'charset' ) ) . '">' . PHP_EOL;

}
} // /wm_charset

add_action( 'wp_head', 'wm_charset', 0 );



/**
* Website HEAD.
*
* @since 1.0
* @version 2.6.0
* @version 2.8.0
*/
if ( ! function_exists( 'wm_head' ) ) {
function wm_head() {

// Helper variables

$output = array();
// Output

echo '<meta name="viewport" content="width=device-width, initial-scale=1">' . PHP_EOL;
echo '<link rel="profile" href="http://gmpg.org/xfn/11">' . PHP_EOL;

// Processing
}
} // /wm_head

$output[10] = '<meta charset="' . esc_attr( get_bloginfo( 'charset' ) ) . '" />';
$output[20] = '<meta name="viewport" content="width=device-width, initial-scale=1" />';
$output[30] = '<link rel="profile" href="http://gmpg.org/xfn/11" />';
$output[40] = '<link rel="pingback" href="' . esc_attr( get_bloginfo( 'pingback_url' ) ) . '" />';
add_action( 'wp_head', 'wm_head', 1 );

// Filter output array

$output = apply_filters( 'wmhook_wm_head_output_array', $output );

/**
* Add a pingback url auto-discovery header for singularly identifiable articles.
*
* @since 2.8.0
* @version 2.8.0
*/
if ( ! function_exists( 'wm_head_pingback' ) ) {
function wm_head_pingback() {

// Output

echo implode( "\r\n", $output ) . "\r\n";
if ( is_singular() && pings_open() ) {
echo '<link rel="pingback" href="', esc_url( get_bloginfo( 'pingback_url' ) ), '">';
}

}
} // /wm_head
} // /wm_head_pingback

add_action( 'wp_head', 'wm_head', 1 );
add_action( 'wp_head', 'wm_head_pingback', 1 );



Expand Down Expand Up @@ -1594,7 +1623,7 @@ function wm_social_cache_flush() {
* Social links supported icons.
*
* @since 2.5.0
* @version 2.7.1
* @version 2.8.0
*/
function wm_social_links_icons() {

Expand Down Expand Up @@ -1635,6 +1664,7 @@ function wm_social_links_icons() {
'spotify.com' => 'spotify',
'stackoverflow.com' => 'stack-overflow',
'stumbleupon.com' => 'stumbleupon',
'tiktok.' => 'tiktok',
'trello.com' => 'trello',
'tripadvisor.' => 'tripadvisor',
'tumblr.com' => 'tumblr',
Expand Down
9 changes: 8 additions & 1 deletion includes/tgmpa/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0
* @version 2.1
* @version 2.8.0
*
* Contents:
*
Expand Down Expand Up @@ -67,6 +67,13 @@ function wm_plugins_suggestions() {
'required' => false,
),

'classic-widgets' => array(
'name' => esc_html_x( 'Classic Widgets', 'Plugin name.', 'auberge' ),
'description' => esc_html__( 'Improves widgets management screen.', 'auberge' ) . ' ' . esc_html__( 'Restores the previous WordPress widgets settings screens.', 'auberge' ) . ' ' . esc_html__( 'Sidebars and widgets are not going to be used in fully block themes in the future, so if your website still uses sidebars, it is better to use this plugin to enable classic user interface.', 'auberge' ),
'slug' => 'classic-widgets',
'required' => false,
),

) );


Expand Down
Loading

0 comments on commit 1a74a3d

Please sign in to comment.