Skip to content

Commit

Permalink
chore(deps): updates BuddyBoss theme from 2.4.00 -> 2.7.30
Browse files Browse the repository at this point in the history
  • Loading branch information
Genyus committed Nov 23, 2024
1 parent b8e394b commit 9563150
Show file tree
Hide file tree
Showing 871 changed files with 80,254 additions and 135,287 deletions.
50 changes: 50 additions & 0 deletions web/app/themes/buddyboss-theme/academy/single-course.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php
/**
* The Template for displaying all single courses.
*
* This template can be overridden by copying it to yourtheme/academy/single-course.php.
*
* the readme will list any important changes.
*
* @since 2.6.00
* @version 1.0.0
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}

academy_get_header( 'course' );

/**
* @hook - academy/templates/before_main_content
*/
do_action( 'academy/templates/before_main_content', 'single-course.php' );
?>

<div class="academy-single-course">
<div class="academy-container">
<div class="academy-row">
<?php
while ( have_posts() ) :
the_post();
Academy\Helper::get_template_part( 'content', 'single-course' );

endwhile; // end of the loop.

/**
* @hook - academy/templates/single_course_sidebar
* @hooked academy_single_course_sidebar - 10
*/
do_action( 'academy/templates/single_course_sidebar' );
?>
</div>
</div>
</div>
<?php
/**
* @hook - academy/templates/after_main_content
*/
do_action( 'academy/templates/after_main_content', 'single-course.php' );

academy_get_footer( 'course' );
14 changes: 7 additions & 7 deletions web/app/themes/buddyboss-theme/archive-sfwd-courses.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

get_header();

$view = get_option( 'bb_theme_learndash_grid_list', 'grid' );
$class_grid_active = ( $view === 'grid' ) ? 'active' : '';
$class_list_active = ( $view === 'list' ) ? 'active' : '';
$class_grid_show = ( $view === 'grid' ) ? 'grid-view bb-grid' : '';
$class_list_show = ( $view === 'list' ) ? 'list-view bb-list' : '';
$view = bb_theme_get_directory_layout_preference( 'ld-course' );
$class_grid_active = ( 'grid' === $view ) ? 'active' : '';
$class_list_active = ( 'list' === $view ) ? 'active' : '';
$class_grid_show = ( 'grid' === $view ) ? 'grid-view bb-grid' : '';
$class_list_show = ( 'list' === $view ) ? 'list-view bb-list' : '';
$courses_label = LearnDash_Custom_Label::get_label( 'courses' );
?>
<div id="primary" class="content-area">
Expand Down Expand Up @@ -50,7 +50,7 @@
$base_url = get_post_type_archive_link( 'sfwd-courses' );
foreach ( $navs as $nav => $text ) {
$selected_class = $nav == $current_nav ? 'selected' : '';
$url = $nav != 'all' ? add_query_arg( array( 'type' => $nav ), $base_url ) : $base_url;
$url = 'all' != $nav ? add_query_arg( array( 'type' => $nav ), $base_url ) : $base_url;
printf( "<li id='courses-{$nav}' class='{$selected_class}'><a href='%s'>%s</a></li>", $url, $text );
}
} else {
Expand All @@ -71,7 +71,7 @@
</div>
<?php if ( buddyboss_theme_get_option( 'learndash_course_index_show_categories_filter' ) ) : ?>
<div class="select-wrap">
<?php if ( trim( buddyboss_theme()->learndash_helper()->print_categories_options() ) !== '' ) { ?>
<?php if ( '' !== trim( buddyboss_theme()->learndash_helper()->print_categories_options() ) ) { ?>
<select id="sfwd_cats-order-by" name="filter-categories">
<?php echo buddyboss_theme()->learndash_helper()->print_categories_options(); ?>
</select>
Expand Down
129 changes: 129 additions & 0 deletions web/app/themes/buddyboss-theme/assets/css-rtl/academy.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
/* stylelint-disable scss/no-duplicate-mixins */
/* stylelint-enable */
:root {
--academy-primary-font: inherit !important;
--academy-secondary-font: inherit !important;
}

body[class*="academy"] a:focus {
box-shadow: none;
}
body[class*="academy"].page-template-academy-canvas-php {
height: auto;
}

.buddyboss-theme .media-frame .media-toolbar input[type="search"],
.buddyboss-theme .media-frame .media-toolbar select.attachment-filters {
height: auto;
}
.buddyboss-theme .media-frame .media-toolbar input[type="search"] {
padding-right: 35px;
}

.academy-editor__content-texteditor .interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs ul,
.academy-editor__content-texteditor .interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs ul li {
margin: 0;
}
.academy-editor__content-texteditor .interface-complementary-area .components-button:focus {
color: inherit;
background-color: inherit;
}

.academy-editor__content-meta .meta-field__body input[type="radio"],
.academy-react-modal input[type="radio"],
.academy-radio-options input[type="radio"] {
min-height: 1rem;
}

.academy-list-wrap input[type="checkbox"],
.academy-react-modal input[type="checkbox"] {
min-height: 1rem;
position: relative;
}
.academy-list-wrap input[type="checkbox"]:checked::before,
.academy-react-modal input[type="checkbox"]:checked::before {
margin: 0;
position: absolute;
top: 0;
right: 0;
width: 100%;
}

.academy-list-wrap .academy-bulk-actions .academy-select .academy-react-select__control .academy-react-select__value-container {
padding-bottom: 0;
}

.academy-react-select__control input {
height: auto;
}
.academy-react-select__control input:focus {
box-shadow: none;
}

.academy-calendar button {
color: inherit;
}
.academy-calendar button:disabled {
cursor: default;
}

.academyFrontendDashWrap .academy-topbar {
border-color: var(--bb-content-border-color);
}
.academyFrontendDashWrap .academy-dashboard-entry-content .academy-dashboard-data .academy-analytics-cards--card .academy-analytics-card--data {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.academyFrontendDashWrap .academy-list-wrap .rdt_Pagination select {
padding-left: 30px;
}
.academyFrontendDashWrap .academy-list-wrap .rdt_Pagination select + svg {
display: none;
}
.academyFrontendDashWrap .academy-list-wrap .academy-table-item-control {
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
}
.academyFrontendDashWrap .academy-dashboard-sidebar ul.academy-dashboard-menu li ul {
margin-bottom: 0;
}

.academy-dashboard__content .academy-editor__content > .entry-left {
width: 75%;
}
.academy-dashboard__content .academy-editor__content > .entry-right {
width: 25%;
}
.academy-dashboard__content .academy-editor__title-textfield {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.academy-dashboard__content .academy-editor__title-submit {
width: auto;
}

.academy-block-editor .components-panel__header.edit-post-sidebar__panel-tabs ul {
margin: 0;
}
.academy-block-editor .components-panel__header.edit-post-sidebar__panel-tabs ul li {
margin: 0;
}

.academy-courses__sidebar .academy-archive-course-search {
width: 100%;
}

@media only screen and (min-width: 990px) {
.academy-courses__header .academy-courses__header-filter > .academy-courses__header-ordering {
-webkit-box-flex: 0;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
padding-right: 25px;
}
.academy-courses__header .academy-courses__header-filter > .academy-courses__header-ordering .academy-courses__header-orderby {
width: 100%;
}
}

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

29 changes: 29 additions & 0 deletions web/app/themes/buddyboss-theme/assets/css-rtl/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -395,4 +395,33 @@
.bb-media-frame .attachments-browser .uploader-inline,
.bb-media-frame .attachments-browser .media-toolbar {
left: 363px;
}

.sfwd_options .ld-select2:not(.ld-select-multiple) .select2-container--learndash {
max-height: 34px;
}

.sfwd_options .ld-select2.ld-select-multiple .select2-container--learndash {
height: auto;
}

.sfwd_options .ld-select2.ld-select-multiple .select2-container--learndash ul.select2-selection__rendered {
padding-bottom: 5px;
}

ul.wp-block-social-links .components-button.wp-block-social-link-anchor .wp-block-social-link-label {
line-height: 21px;
}

ul.wp-block-social-links:not(.alignright):not(.aligncenter) .wp-block-social-link-label {
text-align: right;
}

ul.wp-block-social-links.alignright .wp-block-social-link-label {
text-align: left;
}

/* Customize Menu height issue */
#customize-theme-controls .accordion-section-title button.accordion-trigger {
height: auto;
}
Loading

0 comments on commit 9563150

Please sign in to comment.