<?php
namespace Buddy_Builder_Pro\WidgetsAddons\ProfileMember\Content\Notifications;
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
use Buddy_Builder_Pro\WidgetsAddons\Singleton;
use Elementor\Controls_Manager;
use Elementor\Group_Control_Border;
use Elementor\Group_Control_Box_Shadow;
use Elementor\Group_Control_Typography;
/**
* Class Table
*
* @package Buddy_Builder_Pro\WidgetsAddons\ProfileMember\Content\Notifications
*/
class Table extends Singleton {
/**
* Options name prefix
*/
const PREFIX = 'mp_content_notifications_content_';
/**
* Add widget settings
*
* @param \Buddy_Builder\Widgets\Base $widget
* @param array $conditions
*/
public function add_settings( \Buddy_Builder\Widgets\Base $widget, $conditions = [] ) {
$widget->start_controls_section(
self::PREFIX . 'table',
[
'label' => __( 'Table', 'stax-buddy-builder-pro' ),
'tab' => Controls_Manager::TAB_STYLE,
'conditions' => $conditions,
]
);
$widget->add_control(
self::PREFIX . 'table_bg_color',
[
'label' => __( 'Background', 'stax-buddy-builder-pro' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} table.notifications' => 'background-color: {{VALUE}}',
],
]
);
$widget->add_group_control(
Group_Control_Border::get_type(),
[
'name' => self::PREFIX . 'table_border',
'selector' => '{{WRAPPER}} table.notifications',
]
);
$widget->add_responsive_control(
self::PREFIX . 'table_margin',
[
'label' => __( 'Margin', 'stax-buddy-builder-pro' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', 'em', '%' ],
'selectors' => [
'{{WRAPPER}} table.notifications' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
bpb_elementor_heading( $widget, self::PREFIX . 'header_style_heading', __( 'Table Header', 'stax-buddy-builder-pro' ) );
$widget->add_responsive_control(
self::PREFIX . 'table_header_align',
[
'label' => __( 'Alignment', 'stax-buddy-builder-pro' ),
'type' => Controls_Manager::CHOOSE,
'options' => [
'left' => [
'title' => __( 'Left', 'stax-buddy-builder-pro' ),
'icon' => 'eicon-text-align-left',
],
'center' => [
'title' => __( 'Center', 'stax-buddy-builder-pro' ),
'icon' => 'eicon-text-align-center',
],
'right' => [
'title' => __( 'Right', 'stax-buddy-builder-pro' ),
'icon' => 'eicon-text-align-right',
],
],
'selectors' => [
'{{WRAPPER}} table.notifications thead th' => 'text-align: {{VALUE}};',
],
'default' => 'center',
]
);
$widget->add_group_control(
Group_Control_Typography::get_type(),
[
'name' => self::PREFIX . 'table_header_typo',
'label' => __( 'Typography', 'stax-buddy-builder-pro' ),
'selector' => '{{WRAPPER}} table.notifications thead th',
]
);
$widget->add_control(
self::PREFIX . 'table_header_color',
[
'label' => __( 'Color', 'stax-buddy-builder-pro' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} table.notifications thead th' => 'color: {{VALUE}}',
],
]
);
$widget->add_control(
self::PREFIX . 'table_header_bg_color',
[
'label' => __( 'Background', 'stax-buddy-builder-pro' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} table.notifications thead th' => 'background-color: {{VALUE}}',
],
]
);
$widget->add_group_control(
Group_Control_Border::get_type(),
[
'name' => self::PREFIX . 'table_header_border',
'selector' => '{{WRAPPER}} table.notifications thead th',
'separator' => 'before',
]
);
$widget->add_responsive_control(
self::PREFIX . 'table_header_padding',
[
'label' => __( 'Padding', 'stax-buddy-builder-pro' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', 'em', '%' ],
'separator' => 'before',
'selectors' => [
'{{WRAPPER}} table.notifications thead th' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$widget->add_control(
self::PREFIX . 'table_actions_header',
[
'label' => __( 'Table Actions(header)', 'stax-buddy-builder-pro' ),
'type' => Controls_Manager::HEADING,
'separator' => 'before',
]
);
$widget->add_responsive_control(
self::PREFIX . 'table_actions_header_align',
[
'label' => __( 'Alignment', 'stax-buddy-builder-pro' ),
'type' => Controls_Manager::CHOOSE,
'options' => [
'left' => [
'title' => __( 'Left', 'stax-buddy-builder-pro' ),
'icon' => 'eicon-text-align-left',
],
'center' => [
'title' => __( 'Center', 'stax-buddy-builder-pro' ),
'icon' => 'eicon-text-align-center',
],
'right' => [
'title' => __( 'Right', 'stax-buddy-builder-pro' ),
'icon' => 'eicon-text-align-right',
],
],
'selectors' => [
'{{WRAPPER}} table.notifications thead th.actions' => 'text-align: {{VALUE}};',
],
'default' => 'center',
]
);
bpb_elementor_heading( $widget, self::PREFIX . 'body_style_heading', __( 'Table Body', 'stax-buddy-builder-pro' ) );
$widget->add_group_control(
Group_Control_Typography::get_type(),
[
'name' => self::PREFIX . 'table_body_typo',
'label' => __( 'Typography', 'stax-buddy-builder-pro' ),
'selector' => '{{WRAPPER}} table.notifications tbody td',
]
);
$widget->start_controls_tabs( self::PREFIX . 'table_body_notifications_style' );
$widget->start_controls_tab(
self::PREFIX . 'table_body_row_normal_style',
[
'label' => __( 'Normal', 'stax-buddy-builder-pro' ),
]
);
$widget->add_control(
self::PREFIX . 'table_body_color',
[
'label' => __( 'Color', 'stax-buddy-builder-pro' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} table.notifications tbody td' => 'color: {{VALUE}}',
],
]
);
$widget->add_control(
self::PREFIX . 'table_body_odd_color',
[
'label' => __( 'Color (odd)', 'stax-buddy-builder-pro' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} table.notifications tbody tr:nth-child(odd) > td' => 'color: {{VALUE}}',
],
]
);
$widget->add_control(
self::PREFIX . 'table_body_link_color',
[
'label' => __( 'Link Color', 'stax-buddy-builder-pro' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} table.notifications tbody td a' => 'color: {{VALUE}}',
],
]
);
$widget->add_control(
self::PREFIX . 'table_body_link_odd_color',
[
'label' => __( 'Link Color (odd)', 'stax-buddy-builder-pro' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} table.notifications tbody tr:nth-child(odd) > td a' => 'color: {{VALUE}}',
],
]
);
$widget->add_control(
self::PREFIX . 'table_action_button_color',
[
'label' => __( 'Action Button Color', 'stax-buddy-builder-pro' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} table.notifications .notification-actions a' => 'color: {{VALUE}}',
],
]
);
$widget->add_control(
self::PREFIX . 'table_body_row_bg_color',
[
'label' => __( 'Background', 'stax-buddy-builder-pro' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} table.notifications tbody td' => 'background-color: {{VALUE}}',
],
]
);
$widget->add_control(
self::PREFIX . 'table_body_row_bg_odd_color',
[
'label' => __( 'Background (odd)', 'stax-buddy-builder-pro' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} table.notifications tbody tr:nth-
没有合适的资源?快使用搜索试试~ 我知道了~
【WordPress插件】2022年最新版完整功能demo+插件v1.6.2.zip
共321个文件
php:292个
jpg:10个
css:6个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 93 浏览量
2022-04-19
14:14:35
上传
评论 1
收藏 1.49MB ZIP 举报
温馨提示
"【WordPress插件】2022年最新版完整功能demo+插件v1.6.2 BuddyBuilder Pro - Great Features and options to Customize Your BuddyPress Community BuddyBuilder Pro - 为自定义BuddyPress社区的伟大功能和选项" ---------- 泰森云每天更新发布最新WordPress主题、HTML主题、WordPress插件、shopify主题、opencart主题、PHP项目源码、安卓项目源码、ios项目源码,更有超10000个资源可供选择,如有需要请站内联系。
资源推荐
资源详情
资源评论
收起资源包目录
【WordPress插件】2022年最新版完整功能demo+插件v1.6.2.zip (321个子文件)
messages.css 7KB
notifications.css 7KB
notifications.min.css 5KB
messages.min.css 5KB
elementor.css 700B
elementor.min.css 540B
photo-9.jpg 162KB
photo-4.jpg 157KB
photo-5.jpg 138KB
photo-7.jpg 138KB
photo-3.jpg 138KB
photo-6.jpg 127KB
photo-8.jpg 110KB
photo-2.jpg 78KB
photo-10.jpg 74KB
photo-1.jpg 62KB
messages.js 6KB
notifications.js 4KB
messages.css.map 12KB
notifications.css.map 12KB
elementor.css.map 1KB
elementor.css.min.map 0B
notifications.css.min.map 0B
messages.css.min.map 0B
Table.php 48KB
ApiManager.php 34KB
Filters.php 29KB
Edit.php 29KB
Comments.php 28KB
Messages.php 28KB
BuddybossSendInvites.php 28KB
BuddybossForm.php 26KB
Filters.php 24KB
Notifications.php 24KB
ChangeProfilePhoto.php 22KB
Photo.php 22KB
content.php 21KB
SingleAlbum.php 21KB
BuddybossSettings.php 20KB
ProfileDetails.php 20KB
PrivateMessage.php 19KB
BuddypressSettings.php 19KB
Plugin.php 19KB
AccountDetails.php 19KB
BuddybossSettings.php 18KB
BuddypressSettings.php 17KB
BuddypressMembers.php 17KB
Discussions.php 17KB
Requests.php 17KB
BuddybossPendingInvites.php 17KB
BuddybossInbox.php 16KB
BuddybossMembers.php 16KB
Send.php 16KB
Content.php 16KB
ReplyConversation.php 15KB
ComposeForm.php 15KB
BuddypressForm.php 15KB
BuddypressForm.php 15KB
ChangeCoverImage.php 15KB
CoverImage.php 15KB
BuddypressTableSettings.php 15KB
Navigation.php 14KB
Memberships.php 14KB
BuddybossEmailPreferencesSettings.php 14KB
BuddybossPrivacyPreferencesSettings.php 13KB
Invitations.php 13KB
Buttons.php 13KB
View.php 13KB
inbox.php 12KB
Photos.php 12KB
ElementorHooks.php 12KB
MemberXProfileField.php 12KB
BuddybossForm.php 11KB
BuddybossActivity.php 11KB
Requests.php 11KB
ActiveConversation.php 11KB
Buttons.php 11KB
SendInvites.php 11KB
LiveMessages.php 11KB
memberships.php 11KB
Photos.php 11KB
BuddybossMessages.php 10KB
BuddypressSettings.php 10KB
members.php 10KB
CoverImage.php 10KB
CoverImage.php 10KB
SiteDetails.php 10KB
Content.php 10KB
private-message.php 10KB
Navigation.php 9KB
MessageList.php 9KB
LiveNotifications.php 9KB
conditions.php 9KB
email.php 9KB
Friendships.php 9KB
Members.php 9KB
compose.php 9KB
friendships.php 9KB
members.php 9KB
LastActivity.php 9KB
共 321 条
- 1
- 2
- 3
- 4
资源评论
Lee达森
- 粉丝: 965
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功