Skip to content
Open
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 admin/templates/getting-started-home.php
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ class="<?php echo esc_attr( $disabled_links ); ?>"
<div class="responsive-theme-feature-cards-content">
<p class="responsive-theme-home-settings-text fw-bolder"><?php esc_html_e( 'Upgrade to PRO', 'responsive' ); ?></p>
<p class="responsive-theme-home-desc-text "><?php esc_html_e('Upgrade to Cyberchimps Pro plan to unlock access to 150+ Premium Starter Templates and priority support.', 'responsive');?></p>
<button class="btn-upgrade" onclick="window.open('<?php echo esc_url('https://cyberchimps.com/pricing/?utm_source=wpdash&utm_medium=rtheme&utm_campaign=theme-home-tab&utm_content=upgrade'); ?>', '_blank')"><?php esc_html_e('Upgrade', 'responsive'); ?></button>
<button type="button" class="btn-upgrade" onclick="window.open('<?php echo esc_url('https://cyberchimps.com/pricing/?utm_source=wpdash&utm_medium=rtheme&utm_campaign=theme-home-tab&utm_content=upgrade'); ?>', '_blank')"><?php esc_html_e('Upgrade', 'responsive'); ?></button>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion admin/templates/getting-started-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
<p class="responsive-theme-setting-note"><strong><?php esc_html_e( 'Note', 'responsive' ); ?></strong> : <?php esc_html_e( 'Enable this option to hide White Label settings. Re-activate the Responsive Pro to enable this settings tab again.', 'responsive' ); ?></p>
</div>
<div class="responsive-theme-single-setting-section">
<button id="resp-theme-wl-settings-submit" class="button button-primary responsive-theme-setting-primary-btn" data-nonce="<?php echo esc_attr( wp_create_nonce( 'white_label_settings' ) ); ?>"><?php esc_html_e( 'Save Changes', 'responsive' ); ?></button>
<button type="button" id="resp-theme-wl-settings-submit" class="button button-primary responsive-theme-setting-primary-btn" data-nonce="<?php echo esc_attr( wp_create_nonce( 'white_label_settings' ) ); ?>"><?php esc_html_e( 'Save Changes', 'responsive' ); ?></button>
</div>
</div>
<?php
Expand Down
4 changes: 2 additions & 2 deletions comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

<?php if ( have_comments() ) : ?>
<div class="comments-area">
<h3 id="comments">
<h2 id="comments">
<?php
$responsive_comment_count = get_comments_number();
if ( '1' === $responsive_comment_count ) {
Expand All @@ -55,7 +55,7 @@
);
}
?>
</h3>
</h2>

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<div class="navigation">
Expand Down
4 changes: 4 additions & 0 deletions core/includes/customizer/assets/min/css/toggle.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,8 @@
}
#customize-control-responsive_rp_excerpt_length .customize-control-title{
margin: 0;
}
#customize-control-responsive_footer_copyright_links_style .responsive-toggle-control-wrapper {
padding-top: 24px;
padding-bottom: 24px;
}
8 changes: 6 additions & 2 deletions core/includes/customizer/custom-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function responsive_customizer_styles() {
// Paragraph Margin Bottom.
$paragraph_margin_bottom = esc_html( get_theme_mod( 'responsive_paragraph_margin_bottom', '' ) );

$underline_content_links = esc_html( get_theme_mod( 'responsive_underline_content_links', false ) );
$underline_content_links = esc_html( get_theme_mod( 'responsive_underline_content_links', 1 ) );
// Site custom styles.

$container_max_width = esc_html( get_theme_mod( 'responsive_container_width', 1140 ) );
Expand Down Expand Up @@ -476,7 +476,7 @@ function responsive_customizer_styles() {

if ( $underline_content_links === '1' || $underline_content_links === true ) {
$custom_css .= '
.entry-content a:not(li > a),
.entry-content a,
.comment-content a:not(.comment-edit-link):not(li > a),
.woocommerce div.product .woocommerce-product-details__short-description a:not(li > a) {
text-decoration: underline;
Expand Down Expand Up @@ -5081,6 +5081,9 @@ function responsive_build_responsive_margin_spacing_css( $margin ) {

if(Responsive\Core\responsive_check_element_present_in_hfb('footer_copyright', 'footer'))
{
$copyright_links_val = get_theme_mod( 'responsive_footer_copyright_links_style', 1 );
$copyright_links_style = ( '1' == $copyright_links_val || true === $copyright_links_val ) ? 'underline' : 'none';

$custom_css .= "
.footer-layouts.copyright {
text-align: {$copyright_alignment};
Expand All @@ -5091,6 +5094,7 @@ function responsive_build_responsive_margin_spacing_css( $margin ) {
}
.footer-layouts.copyright a {
color: {$copyright_links_color};
text-decoration: {$copyright_links_style};
}
.footer-layouts.copyright a:hover {
color: {$copyright_links_hover_color};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ public function customizer_options( $wp_customize ) {
$footer_background_label = __( 'Links Color', 'responsive' );
responsive_color_control( $wp_customize, 'footer_copyright_links', $footer_background_label, 'responsive_footer_copyright', 70, Responsive\Core\get_responsive_customizer_defaults( 'footer_copyright_links' ), null, '', true, Responsive\Core\get_responsive_customizer_defaults( 'footer_copyright_links_hover' ), 'footer_copyright_links_hover' );

responsive_horizontal_separator_control($wp_customize, 'footer_copyright_links_separator', 1, 'responsive_footer_copyright', 74, 1, );

// Underline Content Links
responsive_toggle_control( $wp_customize, 'footer_copyright_links_style', esc_html__( 'Underline Links', 'responsive' ), 'responsive_footer_copyright', 78, true, '', 'refresh',
);

// Typography
$footer_copyright_typography_label = __( 'Copyright Font', 'responsive' );
responsive_typography_group_control( $wp_customize, 'footer_copyright_typography_group', $footer_copyright_typography_label, 'responsive_footer_layout', 80, 'footer_copyright_typography' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function customizer_options( $wp_customize ) {
esc_html__( 'Underline Content Links', 'responsive' ),
'responsive_typography',
32,
false,
true,
'',
'refresh',
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ public function elements() {
'defaults' => array(
'font-size' => '12px',
'line-height' => '1.75',
'text-transform' => 'uppercase',
),
),
'button' => array(
Expand Down
8 changes: 3 additions & 5 deletions core/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -819,9 +819,7 @@ function responsive_post_meta_data() {
'<i class="icon-calendar" aria-hidden="true"></i><span class="%1$s">' . esc_html_e( 'Posted on', 'responsive' ) . '</span>%2$s<span class="%3$s"> ' . esc_html_e( 'By', 'responsive' ) . ' </span>%4$s',
'meta-prep meta-prep-author posted',
sprintf(
'<a href="%1$s" aria-label="%2$s" title="%2$s" rel="bookmark"><time class="timestamp updated" datetime="%3$s">%4$s</time></a>',
esc_url( get_permalink() ),
esc_attr( get_the_title() ),
'<time class="timestamp updated" datetime="%1$s">%2$s</time>',
esc_html( get_the_date( 'c' ) ),
esc_html( get_the_date() )
),
Expand Down Expand Up @@ -1103,7 +1101,7 @@ function defaults() {
'header_border' => '#eaeaea',
'header_site_title' => '#333333',
'header_site_title_hover' => '#10659C',
'header_text' => '#999999',
'header_text' => '#333333',
'header_widget_text' => '#333333',
'header_widget_background' => '#ffffff',
'header_widget_border' => '#eaeaea',
Expand Down Expand Up @@ -1160,7 +1158,7 @@ function defaults() {
'h4_text' => '#333333',
'h5_text' => '#333333',
'h6_text' => '#333333',
'meta_text' => '#999999',
'meta_text' => '#0066CC',
'link' => '#0066CC',
'link_hover' => '#10659C',
'button' => '#0066CC',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,7 @@ public function responsive_get_related_single_post_meta_data($current_post_id)
'<i class="icon-calendar" aria-hidden="true"></i><span>' . esc_html_e('Posted on ', 'responsive') . '</span><span class="%1$s" itemprop="datePublished">%2$s</span>',
'meta-prep meta-prep-author posted',
sprintf(
'<a href="%1$s" aria-label="%2$s" title="%2$s" rel="bookmark"><time class="timestamp updated" datetime="%3$s" itemprop="dateModified">%4$s</time></a>',
esc_url(get_permalink()),
esc_attr(get_the_title()),
'<time class="timestamp updated" datetime="%1$s" itemprop="dateModified">%2$s</time>',
esc_html(get_the_date('c')),
esc_html(get_the_date())
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function responsive_render_off_canvas_panel() {
?>
</div>
<?php if ( 'fullscreen' === $mobile_menu_style || 'sidebar' === $mobile_menu_style ) : ?>
<button class="responsive-off-canvas-panel-close" aria-label="<?php esc_attr_e( 'Close Menu', 'responsive' ); ?>">
<button type="button" class="responsive-off-canvas-panel-close" aria-label="<?php esc_attr_e( 'Close Menu', 'responsive' ); ?>">
<i class="icon-times"></i>
</button>
<?php endif; ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ class Responsive_Theme_Background_Updater {
'responsive_theme_background_updater_mobile_header_widgets_6_2_9',
'responsive_theme_background_updater_off_canvas_menu_6_2_9',
'responsive_theme_background_updater_off_canvas_fonts_toggle_button_color_new_6_2_9'
)
),
'6.3.0' => array (
'responsive_theme_background_updater_accessibility_ready',
),
);

/**
Expand Down
6 changes: 6 additions & 0 deletions core/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,10 @@ body {
}
.admin-bar #page {
min-height: calc(100vh - 32px);
}
h1, h2, h3, h4, h5, h6 {
a {
color: inherit;
text-decoration: none;
}
}
28 changes: 28 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2761,3 +2761,31 @@ function responsive_theme_background_updater_off_canvas_fonts_toggle_button_colo
}
}
}

if ( ! function_exists( 'responsive_theme_background_updater_accessibility_ready' ) ) {

/**
* Runs the accessibility-ready backward compatibility update.
*
* Once completed, the update marks itself as done by setting
* `accessibility-ready-backward-done` to true inside the theme options.
*
* @return void
*/
function responsive_theme_background_updater_accessibility_ready() {
$responsive_options = Responsive\Core\responsive_get_options();

// Run only if not set OR false/empty
if ( empty( $responsive_options['accessibility-ready-backward-done'] ) ) {
$old_underline_content_links = get_theme_mod( 'responsive_underline_content_links' );
set_theme_mod( 'responsive_underline_content_links', $old_underline_content_links == '1' || $old_underline_content_links === true );

$old_meta_text_color = get_theme_mod( 'responsive_meta_text_color', '#999999' );
set_theme_mod( 'responsive_meta_text_color', $old_meta_text_color );
}

// Making backward compatibility update as done.
$responsive_options['accessibility-ready-backward-done'] = true;
update_option( 'responsive_theme_options', $responsive_options );
}
}
12 changes: 3 additions & 9 deletions partials/entry/meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
'<span class="%3$s">' . esc_html_e( 'By ', 'responsive' ) . '</span>%4$s',
'meta-prep meta-prep-author posted',
sprintf(
'<a href="%1$s" aria-label="%2$s" title="%2$s" rel="bookmark"><time class="timestamp updated" datetime="%3$s">%4$s</time></a>',
esc_url( get_permalink() ),
esc_attr( get_the_title() ),
'<time class="timestamp updated" datetime="%1$s">%2$s</time>',
esc_html( get_the_date( 'c' ) ),
esc_html( get_the_date() )
),
Expand Down Expand Up @@ -69,9 +67,7 @@
'<i class="icon-calendar" aria-hidden="true"></i><span>' . esc_html_e( 'Posted on ', 'responsive' ) . '</span><span class="%1$s" itemprop="datePublished">%2$s</span>',
'meta-prep meta-prep-author posted',
sprintf(
'<a href="%1$s" aria-label="%2$s" title="%2$s" rel="bookmark"><time class="timestamp updated" datetime="%3$s" itemprop="dateModified">%4$s</time></a>',
esc_url( get_permalink() ),
esc_attr( get_the_title() ),
'<time class="timestamp updated" datetime="%1$s" itemprop="dateModified">%2$s</time>',
esc_html( get_the_date( 'c' ) ),
esc_html( get_the_date() )
)
Expand All @@ -90,9 +86,7 @@
'<i class="icon-calendar" aria-hidden="true"></i><span>' . esc_html_e( 'Last updated on ', 'responsive' ) . '</span><span class="%1$s" itemprop="datePublished">%2$s</span>',
'meta-prep meta-prep-author posted',
sprintf(
'<a href="%1$s" aria-label="%2$s" title="%2$s" rel="bookmark"><time class="timestamp updated" datetime="%3$s" itemprop="dateModified">%4$s</time></a>',
esc_url( get_permalink() ),
esc_attr( get_the_title() ),
'<time class="timestamp updated" datetime="%1$s" itemprop="dateModified">%2$s</time>',
esc_html( get_the_modified_date( 'c' ) ),
esc_html( get_the_modified_date() )
)
Expand Down
8 changes: 2 additions & 6 deletions partials/single/meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@
'<i class="icon-calendar" aria-hidden="true"></i><span>' . esc_html_e( 'Posted on ', 'responsive' ) . '</span><span class="%1$s" itemprop="datePublished">%2$s</span>',
'meta-prep meta-prep-author posted',
sprintf(
'<a href="%1$s" aria-label="%2$s" title="%2$s" rel="bookmark"><time class="timestamp updated" datetime="%3$s" itemprop="dateModified">%4$s</time></a>',
esc_url( get_permalink() ),
esc_attr( get_the_title() ),
'<time class="timestamp updated" datetime="%1$s" itemprop="dateModified">%2$s</time>',
esc_html( get_the_date( 'c' ) ),
esc_html( get_the_date() )
)
Expand All @@ -84,9 +82,7 @@
'<i class="icon-calendar" aria-hidden="true"></i><span>' . esc_html_e( 'Last updated on ', 'responsive' ) . '</span><span class="%1$s" itemprop="datePublished">%2$s</span>',
'meta-prep meta-prep-author posted',
sprintf(
'<a href="%1$s" aria-label="%2$s" title="%2$s" rel="bookmark"><time class="timestamp updated" datetime="%3$s" itemprop="dateModified">%4$s</time></a>',
esc_url( get_permalink() ),
esc_attr( get_the_title() ),
'<time class="timestamp updated" datetime="%1$s" itemprop="dateModified">%2$s</time>',
esc_html( get_the_modified_date( 'c' ) ),
esc_html( get_the_modified_date() )
)
Expand Down
4 changes: 2 additions & 2 deletions searchform.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
}
$search_screen = get_theme_mod( 'search_style', 'search' );
?>
<form method="get" id="searchform" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<form role="search" method="get" id="searchform" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label class="screen-reader-text" for="s"><?php esc_html_e( 'Search for:', 'responsive' ); ?></label>
<div class="res-search-wrapper">
<input type="search" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search here &hellip;', 'responsive' ); ?>" />
<button type="submit" class="search-submit" value="Search"> <span class="res-search-icon icon-search"></span></button>
<button type="submit" class="search-submit" value="Search" aria-label="<?php esc_attr_e( 'Search', 'responsive' ); ?>"> <span class="res-search-icon icon-search"></span></button>
</div>
</form>
<?php
11 changes: 1 addition & 10 deletions template-parts/footer/footer_copyright.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,7 @@
)
?>
</span>
<a href= "
<?php
echo apply_filters(
'responsive_theme_footer_link',
esc_url( 'https://cyberchimps.com/')
);
?>
"
target="_blank"
>
<a href= "<?php echo apply_filters( 'responsive_theme_footer_link', esc_url( 'https://cyberchimps.com/') ); ?>" target="_blank" >
<?php
echo apply_filters(
'responsive_theme_footer_theme_text',
Expand Down
4 changes: 2 additions & 2 deletions template-parts/header/logo.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
>
<?php if ( $show_title ) : ?>
<?php if ( is_front_page() && is_home() ) : ?>
<h1 class="site-title" <?php responsive_schema_markup( 'site-title' ); ?>>
<span class="site-title" <?php responsive_schema_markup( 'site-title' ); ?>>
<a href="<?php echo esc_url( get_theme_mod( 'responsive_custom_logo_url', home_url( '/' ) ) ); ?>" rel="home">
<?php bloginfo( 'name' ); ?>
</a>
</h1>
</span>
<?php else : ?>
<span class="site-title">
<a href="<?php echo esc_url( get_theme_mod( 'responsive_custom_logo_url', home_url( '/' ) ) ); ?>" rel="home">
Expand Down
2 changes: 1 addition & 1 deletion template-parts/header/primary_navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

?>

<button class="menu-toggle" aria-controls="header-menu" aria-expanded="false"><?php echo $svg_markup; ?><span class="hamburger-menu-label"><?php printf( esc_html( $hamburger_menu_label ) ); ?></span><span class="screen-reader-text"><?php esc_html_e( 'Menu', 'responsive' ); ?></span></button>
<button type="button" class="menu-toggle" aria-controls="header-menu" aria-expanded="false"><?php echo $svg_markup; ?><span class="hamburger-menu-label"><?php printf( esc_html( $hamburger_menu_label ) ); ?></span><span class="screen-reader-text"><?php esc_html_e( 'Menu', 'responsive' ); ?></span></button>
<?php } ?>
<?php
$disable_menu = get_theme_mod( 'responsive_disable_menu', 0 );
Expand Down
6 changes: 3 additions & 3 deletions template-parts/header/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
if ( 'search-box' === $search_style ) {
?>
<div class="search-type-box responsive-header-inline-search">
<form method="get" id="searchform" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<form role="search" method="get" id="searchform" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label class="screen-reader-text" for="s"><?php esc_html_e( 'Search for:', 'responsive' ); ?></label>
<div class="res-search-wrapper responsive-header-search-icon-wrap">
<input type="search" class="search-field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search &hellip;', 'responsive' ); ?>" autocomplete="off" />
Expand All @@ -52,7 +52,7 @@
} else if( 'search' === $search_style ) {
?>
<div class="search-type-responsive-slide">
<form method="get" id="searchform" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<form role="search" method="get" id="searchform" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label class="screen-reader-text" for="s"><?php esc_html_e( 'Search for:', 'responsive' ); ?></label>
<div class="res-search-wrapper responsive-header-search-icon-wrap">
<input type="search" class="search-field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search &hellip;', 'responsive' ); ?>" autocomplete="off" />
Expand All @@ -79,7 +79,7 @@
<span id="search-close-<?php echo esc_attr( $unique_id ); ?>" class="search-close" data-search-close="<?php echo esc_attr( $unique_id ); ?>"></span>
<div class="full-screen-search-container">
<div class="container">
<form method="get" id="searchform" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<form role="search" method="get" id="searchform" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label class="screen-reader-text" for="s"><?php esc_html_e( 'Search for:', 'responsive' ); ?></label>
<div class="res-search-wrapper">
<input type="search" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search here &hellip;', 'responsive' ); ?>" autocomplete="off" />
Expand Down
2 changes: 1 addition & 1 deletion template-parts/header/toggle_button.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

?>
<div class="site-header-item site-header-focus-item site-header-item-toggle-button" data-section="responsive_customizer_header_toggle_button">
<button class="menu-toggle" aria-controls="responsive-off-canvas-panel" aria-expanded="false" aria-label="<?php esc_attr_e( 'Toggle Menu', 'responsive' ); ?>">
<button type="button" class="menu-toggle" aria-controls="responsive-off-canvas-panel" aria-expanded="false" aria-label="<?php esc_attr_e( 'Toggle Menu', 'responsive' ); ?>">
<?php echo $svg_markup; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
<?php if ( ! empty( $hamburger_menu_label ) ) : ?>
<span class="hamburger-menu-label"><?php echo esc_html( $hamburger_menu_label ); ?></span>
Expand Down