Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint & build #1147

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _g2/assets/css/common.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _g2/assets/css/common_editor.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _g2/assets/js/lightning.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _g2/design-skin/origin/css/editor.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _g2/design-skin/origin/css/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _g2/design-skin/origin2/css/editor.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion _g2/design-skin/origin2/css/style.css

Large diffs are not rendered by default.

24 changes: 6 additions & 18 deletions _g2/inc/vk-mobile-nav/package/class-vk-mobile-nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,11 @@ public static function menu_set_html() {
echo '<div class="vk-mobile-nav vk-mobile-nav-' . esc_attr( $option['slide_type'] ) . '" id="vk-mobile-nav">';
if ( is_active_sidebar( 'vk-mobile-nav-upper' ) ) {
dynamic_sidebar( 'vk-mobile-nav-upper' );
} else {
if ( current_user_can( 'edit_theme_options' ) ) {
} elseif ( current_user_can( 'edit_theme_options' ) ) {
echo '<div class="veu_adminEdit alert alert-info">';
echo '<p>' . sprintf( __( 'This is the widget area.<br>You can set widget item from [ <a href="%s">Appearance > Customize</a> ] Page -> "Widgets" panel -> "Mobile Nav Upper" Panel.', 'lightning' ), admin_url( 'customize.php' ) ) . '</p>';
echo '<p>' . __( '* This message is displayed only to users with editing authority.', 'lightning' ) . '</p>';
echo '</div>';
}
}

$menu_vk_mobile = wp_nav_menu(
Expand Down Expand Up @@ -140,31 +138,27 @@ public static function menu_set_html() {
echo $menu_vk_mobile;
} elseif ( $menu_theme_default ) {
echo $menu_theme_default;
} else {
if ( current_user_can( 'edit_theme_options' ) ) {
} elseif ( current_user_can( 'edit_theme_options' ) ) {
echo '<div class="veu_adminEdit alert alert-danger">';
echo '<p>' . sprintf( __( 'Menu is not set.<br>Please set menu from [ <a href="%s">Appearance > Customize</a> ] Page -> "Menus" panel -> Menu Locations "Mobile Navigation".', 'lightning' ), admin_url( 'customize.php' ) ) . '</p>';
echo '<p>' . __( '* This message is displayed only to users with editing authority.', 'lightning' ) . '</p>';
echo '</div>';
}
}

if ( is_active_sidebar( 'vk-mobile-nav-bottom' ) ) {
dynamic_sidebar( 'vk-mobile-nav-bottom' );
} else {
if ( current_user_can( 'edit_theme_options' ) ) {
} elseif ( current_user_can( 'edit_theme_options' ) ) {
echo '<div class="veu_adminEdit alert alert-info">';
echo '<p>' . sprintf( __( 'This is the widget area.<br>You can set widget item from [ <a href="%s">Appearance > Customize</a> ] Page -> "Widgets" panel -> "Mobile Nav Bottom" Panel.', 'lightning' ), admin_url( 'customize.php' ) ) . '</p>';
echo '<p>' . __( '* This message is displayed only to users with editing authority.', 'lightning' ) . '</p>';
echo '</div>';
}
}

echo '</div>';
}

/*
Load js & CSS
Load js & CSS
/*-------------------------------------------*/

public static function add_script() {
Expand Down Expand Up @@ -217,7 +211,7 @@ public static function default_options() {
}

/*
Customizer
Customizer
/*-------------------------------------------*/

public function customize_register( $wp_customize ) {
Expand Down Expand Up @@ -294,7 +288,7 @@ public function customize_register( $wp_customize ) {
);

/*
Add Edit Customize Link Btn
Add Edit Customize Link Btn
/*-------------------------------------------*/
$wp_customize->selective_refresh->add_partial(
'vk_mobile_nav_options[position]',
Expand All @@ -303,13 +297,7 @@ public function customize_register( $wp_customize ) {
'render_callback' => '',
)
);

} // function customize_register( $wp_customize ) {





} // class Vk_Mobile_Nav

// Store in global variable so that hook in class can be removed
Expand Down
2 changes: 1 addition & 1 deletion _g2/library/bootstrap-4/css/bootstrap.min.css

Large diffs are not rendered by default.

Loading
Loading