-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
2,470 additions
and
22 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
core/basic/zaso-bbpress-forum-index-widgets/styles/default.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@reset_margin: 0; | ||
@reset_padding: 0; | ||
|
||
@bbpress_forum_index_theme_pagination: default; | ||
@bbpress_forum_index_theme_search: default; | ||
@bbpress_forum_index_theme_breadcrumbs: default; | ||
|
||
.zaso-bbpress-forum-index { | ||
padding: @reset_margin; | ||
margin: @reset_padding; | ||
|
||
.bbp-search-form { | ||
display: @bbpress_forum_index_theme_search !important; | ||
} | ||
|
||
.bbp-pagination { | ||
display: @bbpress_forum_index_theme_pagination !important; | ||
} | ||
|
||
.bbp-breadcrumb { | ||
display: @bbpress_forum_index_theme_breadcrumbs !important; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
core/basic/zaso-bbpress-forum-index-widgets/tpl/default.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
/** | ||
* [ZASO] bbPress Forum Index Template | ||
* | ||
* @package Zen Addons for SiteOrigin Page Builder | ||
* @since 1.0.11 | ||
*/ | ||
?> | ||
|
||
<div <?php echo zaso_format_field_extra_id( $instance['extra_id'] ); ?> class="zaso-bbpress-forum-index <?php echo $instance['extra_class']; ?>"> | ||
<div class="zaso-bbpress-forum-index__block"> | ||
<?php echo do_shortcode( '[bbp-forum-index]' ); ?> | ||
</div> | ||
</div> |
102 changes: 102 additions & 0 deletions
102
core/basic/zaso-bbpress-forum-index-widgets/zaso-bbpress-forum-index-widgets.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?php | ||
/** | ||
* Widget Name: ZASO - bbPress Forum Index | ||
* Widget ID: zen-addons-siteorigin-bbpress-forum-index | ||
* Description: Display entire bbPress forum index. | ||
* Author: DopeThemes | ||
* Author URI: https://www.dopethemes.com/ | ||
*/ | ||
|
||
if( ! class_exists( 'Zen_Addons_SiteOrigin_BbPress_Forum_Index_Widget' ) ) : | ||
|
||
|
||
class Zen_Addons_SiteOrigin_BbPress_Forum_Index_Widget extends SiteOrigin_Widget { | ||
|
||
function __construct() { | ||
|
||
// ZASO field array. | ||
$zaso_bbpress_forum_index_field_array = array( | ||
'bbpress_forum_index_theme_pagination' => array( | ||
'type' => 'select', | ||
'label' => __( 'Show Pagination', 'zaso' ), | ||
'default' => 'block', | ||
'options' => array( | ||
'block' => __( 'Yes', 'zaso' ), | ||
'none' => __( 'No', 'zaso' ) | ||
) | ||
), | ||
'bbpress_forum_index_theme_breadcrumbs' => array( | ||
'type' => 'select', | ||
'label' => __( 'Show Breadcrumbs', 'zaso' ), | ||
'default' => 'block', | ||
'options' => array( | ||
'block' => __( 'Yes', 'zaso' ), | ||
'none' => __( 'No', 'zaso' ) | ||
) | ||
), | ||
'bbpress_forum_index_theme_search' => array( | ||
'type' => 'select', | ||
'label' => __( 'Show Search', 'zaso' ), | ||
'default' => 'block', | ||
'options' => array( | ||
'block' => __( 'Yes', 'zaso' ), | ||
'none' => __( 'No', 'zaso' ) | ||
) | ||
), | ||
'extra_id' => array( | ||
'type' => 'text', | ||
'label' => __( 'Extra ID', 'zaso' ), | ||
'description' => __( 'Add an extra ID.', 'zaso' ) | ||
), | ||
'extra_class' => array( | ||
'type' => 'text', | ||
'label' => __( 'Extra Class', 'zaso' ), | ||
'description' => __( 'Add an extra class for styling overrides.', 'zaso' ) | ||
) | ||
); | ||
|
||
// Add filter. | ||
$zaso_bbpress_forum_index_fields = apply_filters( 'zaso_bbpress_forum_index_fields', $zaso_bbpress_forum_index_field_array ); | ||
|
||
parent::__construct( | ||
'zen-addons-siteorigin-bbpress-forum-index', | ||
__( 'ZASO - bbPress Forum Index', 'zaso' ), | ||
array( | ||
'description' => __( 'Display entire bbPress forum index.', 'zaso' ), | ||
'help' => 'https://www.dopethemes.com/', | ||
'panels_groups' => array( 'zaso-plugin-widgets' ) | ||
), | ||
array(), | ||
$zaso_bbpress_forum_index_fields, | ||
ZASO_WIDGET_BASIC_DIR | ||
); | ||
|
||
} | ||
|
||
function get_less_variables( $instance ) { | ||
|
||
// return the goodies. | ||
return apply_filters( 'zaso_bbpress_forum_index_less_variables', array( | ||
'bbpress_forum_index_theme_pagination' => $instance['bbpress_forum_index_theme_pagination'], | ||
'bbpress_forum_index_theme_search' => $instance['bbpress_forum_index_theme_search'], | ||
'bbpress_forum_index_theme_breadcrumbs' => $instance['bbpress_forum_index_theme_breadcrumbs'] | ||
)); | ||
|
||
} | ||
|
||
function get_template_variables( $instance, $args ) { | ||
|
||
// return the goodies. | ||
return apply_filters( 'zaso_bbpress_forum_index_template_variables', array( | ||
'bbpress_forum_index_theme_pagination' => $instance['bbpress_forum_index_theme_pagination'], | ||
'bbpress_forum_index_theme_search' => $instance['bbpress_forum_index_theme_search'], | ||
'bbpress_forum_index_theme_breadcrumbs' => $instance['bbpress_forum_index_theme_breadcrumbs'] | ||
)); | ||
|
||
} | ||
|
||
} | ||
siteorigin_widget_register( 'zen-addons-siteorigin-bbpress-forum-index', __FILE__, 'Zen_Addons_SiteOrigin_BbPress_Forum_Index_Widget' ); | ||
|
||
|
||
endif; |
18 changes: 18 additions & 0 deletions
18
core/basic/zaso-bbpress-topic-index-widgets/styles/default.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@reset_margin: 0; | ||
@reset_padding: 0; | ||
|
||
@bbpress_topic_index_theme_pagination: default; | ||
@bbpress_topic_index_theme_search: default; | ||
|
||
.zaso-bbpress-topic-index { | ||
padding: @reset_margin; | ||
margin: @reset_padding; | ||
|
||
.bbp-search-form { | ||
display: @bbpress_topic_index_theme_search !important; | ||
} | ||
|
||
.bbp-pagination { | ||
display: @bbpress_topic_index_theme_pagination !important; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
core/basic/zaso-bbpress-topic-index-widgets/tpl/default.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
/** | ||
* [ZASO] bbPress Topic Index Template | ||
* | ||
* @package Zen Addons for SiteOrigin Page Builder | ||
* @since 1.0.11 | ||
*/ | ||
?> | ||
|
||
<div <?php echo zaso_format_field_extra_id( $instance['extra_id'] ); ?> class="zaso-bbpress-topic-index <?php echo $instance['extra_class']; ?>"> | ||
<div class="zaso-bbpress-topic-index__block <?php //echo $bbpress_topic_index_theme; ?>"> | ||
<?php echo do_shortcode( '[bbp-topic-index]' ); ?> | ||
</div> | ||
</div> |
103 changes: 103 additions & 0 deletions
103
core/basic/zaso-bbpress-topic-index-widgets/zaso-bbpress-topic-index-widgets.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<?php | ||
/** | ||
* Widget Name: ZASO - bbPress Topic Index | ||
* Widget ID: zen-addons-siteorigin-bbpress-topic-index | ||
* Description: Display recent 15 topics across all forums with optional pagination and search. | ||
* Author: DopeThemes | ||
* Author URI: https://www.dopethemes.com/ | ||
*/ | ||
|
||
if( ! class_exists( 'Zen_Addons_SiteOrigin_BbPress_Topic_Index_Widget' ) ) : | ||
|
||
|
||
class Zen_Addons_SiteOrigin_BbPress_Topic_Index_Widget extends SiteOrigin_Widget { | ||
|
||
function __construct() { | ||
|
||
// ZASO field array. | ||
$zaso_bbpress_topic_index_field_array = array( | ||
// 'bbpress_topic_index_theme' => array( | ||
// 'type' => 'select', | ||
// 'label' => __( 'Style Theme Preset', 'zaso' ), | ||
// 'default' => 'default', | ||
// 'options' => array( | ||
// 'default' => __( 'Inherit theme defaults', 'zaso' ), | ||
// 'dark' => __( 'Dark Theme', 'zaso' ), | ||
// 'light' => __( 'Light Theme', 'zaso' ) | ||
// ) | ||
// ), | ||
'bbpress_topic_index_theme_pagination' => array( | ||
'type' => 'select', | ||
'label' => __( 'Show Pagination', 'zaso' ), | ||
'default' => 'block', | ||
'options' => array( | ||
'block' => __( 'Yes', 'zaso' ), | ||
'none' => __( 'No', 'zaso' ) | ||
) | ||
), | ||
'bbpress_topic_index_theme_search' => array( | ||
'type' => 'select', | ||
'label' => __( 'Show Search', 'zaso' ), | ||
'default' => 'block', | ||
'options' => array( | ||
'block' => __( 'Yes', 'zaso' ), | ||
'none' => __( 'No', 'zaso' ) | ||
) | ||
), | ||
'extra_id' => array( | ||
'type' => 'text', | ||
'label' => __( 'Extra ID', 'zaso' ), | ||
'description' => __( 'Add an extra ID.', 'zaso' ) | ||
), | ||
'extra_class' => array( | ||
'type' => 'text', | ||
'label' => __( 'Extra Class', 'zaso' ), | ||
'description' => __( 'Add an extra class for styling overrides.', 'zaso' ) | ||
) | ||
); | ||
|
||
// Add filter. | ||
$zaso_bbpress_topic_index_fields = apply_filters( 'zaso_bbpress_topic_index_fields', $zaso_bbpress_topic_index_field_array ); | ||
|
||
parent::__construct( | ||
'zen-addons-siteorigin-bbpress-topic-index', | ||
__( 'ZASO - bbPress Topic Index', 'zaso' ), | ||
array( | ||
'description' => __( 'Display recent 15 topics across all forums with optional pagination and search.', 'zaso' ), | ||
'help' => 'https://www.dopethemes.com/', | ||
'panels_groups' => array( 'zaso-plugin-widgets' ) | ||
), | ||
array(), | ||
$zaso_bbpress_topic_index_fields, | ||
ZASO_WIDGET_BASIC_DIR | ||
); | ||
|
||
} | ||
|
||
function get_less_variables( $instance ) { | ||
|
||
// return the goodies. | ||
return apply_filters( 'zaso_bbpress_topic_index_less_variables', array( | ||
//'bbpress_topic_index_theme' => $instance['bbpress_topic_index_theme'], | ||
'bbpress_topic_index_theme_pagination' => $instance['bbpress_topic_index_theme_pagination'], | ||
'bbpress_topic_index_theme_search' => $instance['bbpress_topic_index_theme_search'] | ||
)); | ||
|
||
} | ||
|
||
function get_template_variables( $instance, $args ) { | ||
|
||
// return the goodies. | ||
return apply_filters( 'zaso_bbpress_topic_index_template_variables', array( | ||
//'bbpress_topic_index_theme' => $instance['bbpress_topic_index_theme'], | ||
'bbpress_topic_index_theme_pagination' => $instance['bbpress_topic_index_theme_pagination'], | ||
'bbpress_topic_index_theme_search' => $instance['bbpress_topic_index_theme_search'] | ||
)); | ||
|
||
} | ||
|
||
} | ||
siteorigin_widget_register( 'zen-addons-siteorigin-bbpress-topic-index', __FILE__, 'Zen_Addons_SiteOrigin_BbPress_Topic_Index_Widget' ); | ||
|
||
|
||
endif; |
43 changes: 43 additions & 0 deletions
43
core/basic/zaso-image-icon-group-widgets/styles/default.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@reset_margin: 0; | ||
@reset_padding: 0; | ||
|
||
@spacings_margin: default; | ||
@spacings_padding: default; | ||
|
||
.zaso-image-icon-group { | ||
padding: @reset_margin; | ||
margin: @reset_padding; | ||
|
||
&__list { | ||
padding: @reset_margin; | ||
margin: @reset_padding; | ||
list-style-type: none; | ||
} | ||
|
||
&__list.vertical { | ||
li { | ||
display: block; | ||
margin: @spacings_margin; | ||
padding: @spacings_padding; | ||
list-style: none; | ||
} | ||
} | ||
|
||
&__list.horizontal { | ||
li { | ||
display: inline-block; | ||
margin: @spacings_margin; | ||
padding: @spacings_padding; | ||
list-style: none; | ||
} | ||
} | ||
|
||
&__list.adapt { | ||
li { | ||
display: flex; | ||
margin: @spacings_margin; | ||
padding: @spacings_padding; | ||
list-style: none; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* [ZASO] Image Icon Group Template | ||
* | ||
* @package Zen Addons for SiteOrigin Page Builder | ||
* @since 1.0.11 | ||
*/ | ||
?> | ||
|
||
<div <?php echo zaso_format_field_extra_id( $instance['extra_id'] ); ?> class="zaso-image-icon-group <?php echo $instance['extra_class']; ?>"> | ||
<ul class="zaso-image-icon-group__list <?php echo $instance['image_icon_group_orientation']; ?>"> | ||
<?php foreach ( $instance['image_icon_group'] as $iig ) : ?> | ||
<?php $image_icon_group_photo = siteorigin_widgets_get_attachment_image_src( $iig['image_icon_group_photo'], 'full' )[0]; ?> | ||
<li class="zaso-image-icon-group__list-item"> | ||
<a class="zaso-image-icon-group__list-item-action" href="<?php echo sow_esc_url( $iig['image_icon_group_link'] ) ?>"> | ||
<img src="<?php echo $image_icon_group_photo; ?>" alt="<?php echo $iig['image_icon_group_title']; ?>" /> | ||
</a> | ||
</li> | ||
<?php endforeach; ?> | ||
</ul> | ||
</div> |
Oops, something went wrong.