| @@ -15,13 +15,13 @@ | ||
| 15 | 15 | return 'ama_ajax_forum'; |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | public function get_title(): string { |
| 19 | - return esc_html__( 'BBPC Ajax Forums', 'bbp-core' ); | |
| 19 | + return esc_html__( 'Ajax Forums (Forumax)', 'forumax' ); | |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | public function get_icon(): string { |
| 23 | - return 'bbpc_icon_ama_ajax_forum'; | |
| 23 | + return 'bbpc_icon_ama_ajax_forum eicon-posts-group'; | |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | public function get_keywords(): array { |
| 27 | 27 | return [ 'forum', 'ajax' ]; |
| @@ -27,13 +27,13 @@ | ||
| 27 | 27 | return [ 'forum', 'ajax' ]; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | public function get_categories(): array { |
| 31 | - return [ 'bbp-core' ]; | |
| 31 | + return [ 'forumax' ]; | |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | public function get_style_depends(): array { |
| 35 | - return [ 'bbpc-el-widgets' ]; | |
| 35 | + return [ 'bbpc-el-widgets', 'elegant-icon' ]; | |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | public function get_script_depends(): array { |
| 39 | 39 | return [ 'bbpc-ajax' ]; |
| @@ -42,16 +42,16 @@ | ||
| 42 | 42 | protected function register_controls(): void { |
| 43 | 43 | //========================== Filter Options =====================// |
| 44 | 44 | $this->start_controls_section( |
| 45 | 45 | 'filter_sec', [ |
| 46 | - 'label' => esc_html__( 'Filter Options', 'bbp-core' ), | |
| 46 | + 'label' => esc_html__( 'Filter Options', 'forumax' ), | |
| 47 | 47 | ] |
| 48 | 48 | ); |
| 49 | 49 | |
| 50 | 50 | $this->add_control( |
| 51 | 51 | 'ppp2', [ |
| 52 | - 'label' => esc_html__( 'Show Forums', 'bbp-core' ), | |
| 53 | - 'description' => esc_html__( 'Show the forums count at the initial view. Default is 9 forums in a row.', 'bbp-core' ), | |
| 52 | + 'label' => esc_html__( 'Show Forums', 'forumax' ), | |
| 53 | + 'description' => esc_html__( 'Show the forums count at the initial view. Default is 9 forums in a row.', 'forumax' ), | |
| 54 | 54 | 'type' => \Elementor\Controls_Manager::NUMBER, |
| 55 | 55 | 'default' => 9 |
| 56 | 56 | ] |
| 57 | 57 | ); |
| @@ -57,9 +57,9 @@ | ||
| 57 | 57 | ); |
| 58 | 58 | |
| 59 | 59 | $this->add_control( |
| 60 | 60 | 'order', [ |
| 61 | - 'label' => esc_html__( 'Order', 'bbp-core' ), | |
| 61 | + 'label' => esc_html__( 'Order', 'forumax' ), | |
| 62 | 62 | 'type' => \Elementor\Controls_Manager::SELECT, |
| 63 | 63 | 'options' => [ |
| 64 | 64 | 'ASC' => 'ASC', |
| 65 | 65 | 'DESC' => 'DESC' |
| @@ -71,12 +71,12 @@ | ||
| 71 | 71 | // button show hide switcher |
| 72 | 72 | $this->add_control( |
| 73 | 73 | 'filter_btns', |
| 74 | 74 | [ |
| 75 | - 'label' => esc_html__( 'Tab Filter', 'bbp-core' ), | |
| 75 | + 'label' => esc_html__( 'Tab Filter', 'forumax' ), | |
| 76 | 76 | 'type' => \Elementor\Controls_Manager::SWITCHER, |
| 77 | - 'label_on' => esc_html__( 'Show', 'bbp-core' ), | |
| 78 | - 'label_off' => esc_html__( 'Hide', 'bbp-core' ), | |
| 77 | + 'label_on' => esc_html__( 'Show', 'forumax' ), | |
| 78 | + 'label_off' => esc_html__( 'Hide', 'forumax' ), | |
| 79 | 79 | 'return_value' => 'yes', |
| 80 | 80 | 'default' => 'yes', |
| 81 | 81 | ] |
| 82 | 82 | ); |
| @@ -87,9 +87,9 @@ | ||
| 87 | 87 | * Styling section starts |
| 88 | 88 | */ |
| 89 | 89 | $this->start_controls_section( |
| 90 | 90 | 'styling_sec', [ |
| 91 | - 'label' => esc_html__( 'Title Style', 'bbp-core' ), | |
| 91 | + 'label' => esc_html__( 'Title Style', 'forumax' ), | |
| 92 | 92 | 'tab' => Controls_Manager::TAB_STYLE, |
| 93 | 93 | ] |
| 94 | 94 | ); |
| 95 | 95 | //forum title |
| @@ -95,9 +95,9 @@ | ||
| 95 | 95 | //forum title |
| 96 | 96 | $this->add_control( |
| 97 | 97 | 'forum_heading', |
| 98 | 98 | [ |
| 99 | - 'label' => esc_html__( 'Forum Title', 'bbp-core' ), | |
| 99 | + 'label' => esc_html__( 'Forum Title', 'forumax' ), | |
| 100 | 100 | 'type' => \Elementor\Controls_Manager::HEADING, |
| 101 | 101 | 'separator' => 'before', |
| 102 | 102 | ] |
| 103 | 103 | ); |
| @@ -105,9 +105,9 @@ | ||
| 105 | 105 | |
| 106 | 106 | $this->add_control( |
| 107 | 107 | 'forum_title_color', |
| 108 | 108 | [ |
| 109 | - 'label' => esc_html__( 'Color', 'bbp-core' ), | |
| 109 | + 'label' => esc_html__( 'Color', 'forumax' ), | |
| 110 | 110 | 'type' => \Elementor\Controls_Manager::COLOR, |
| 111 | 111 | 'selectors' => [ |
| 112 | 112 | '{{WRAPPER}} .single-forum-post-widget .post-title a' => 'color: {{VALUE}}', |
| 113 | 113 | ], |
| @@ -116,9 +116,9 @@ | ||
| 116 | 116 | |
| 117 | 117 | $this->add_control( |
| 118 | 118 | 'forum_title_hover_color', |
| 119 | 119 | [ |
| 120 | - 'label' => esc_html__( 'Hover Color', 'bbp-core' ), | |
| 120 | + 'label' => esc_html__( 'Hover Color', 'forumax' ), | |
| 121 | 121 | 'type' => \Elementor\Controls_Manager::COLOR, |
| 122 | 122 | 'selectors' => [ |
| 123 | 123 | '{{WRAPPER}} .single-forum-post-widget .post-title a:hover' => 'color: {{VALUE}}', |
| 124 | 124 | ], |
| @@ -136,9 +136,9 @@ | ||
| 136 | 136 | // Forum meta |
| 137 | 137 | $this->add_control( |
| 138 | 138 | 'forum_meta', |
| 139 | 139 | [ |
| 140 | - 'label' => esc_html__( 'Forum Meta', 'bbp-core' ), | |
| 140 | + 'label' => esc_html__( 'Forum Meta', 'forumax' ), | |
| 141 | 141 | 'type' => \Elementor\Controls_Manager::HEADING, |
| 142 | 142 | 'separator' => 'before', |
| 143 | 143 | ] |
| 144 | 144 | ); |
| @@ -145,9 +145,9 @@ | ||
| 145 | 145 | |
| 146 | 146 | $this->add_control( |
| 147 | 147 | 'forum_meta_color', |
| 148 | 148 | [ |
| 149 | - 'label' => esc_html__( 'Color', 'bbp-core' ), | |
| 149 | + 'label' => esc_html__( 'Color', 'forumax' ), | |
| 150 | 150 | 'type' => \Elementor\Controls_Manager::COLOR, |
| 151 | 151 | 'selectors' => [ |
| 152 | 152 | '{{WRAPPER}} .single-forum-post-widget .post-info .author,{{WRAPPER}} .single-forum-post-widget .post-info .post-time' => 'color: {{VALUE}}', |
| 153 | 153 | ], |
| @@ -166,9 +166,9 @@ | ||
| 166 | 166 | //parent forum |
| 167 | 167 | $this->add_control( |
| 168 | 168 | 'parent_forum', |
| 169 | 169 | [ |
| 170 | - 'label' => esc_html__( 'Parent Forum', 'bbp-core' ), | |
| 170 | + 'label' => esc_html__( 'Parent Forum', 'forumax' ), | |
| 171 | 171 | 'type' => \Elementor\Controls_Manager::HEADING, |
| 172 | 172 | 'separator' => 'before', |
| 173 | 173 | ] |
| 174 | 174 | ); |
| @@ -175,9 +175,9 @@ | ||
| 175 | 175 | |
| 176 | 176 | $this->add_control( |
| 177 | 177 | 'parent_forum_color', |
| 178 | 178 | [ |
| 179 | - 'label' => esc_html__( 'Color', 'bbp-core' ), | |
| 179 | + 'label' => esc_html__( 'Color', 'forumax' ), | |
| 180 | 180 | 'type' => \Elementor\Controls_Manager::COLOR, |
| 181 | 181 | 'selectors' => [ |
| 182 | 182 | '{{WRAPPER}} .post-content .post-category a' => 'color: {{VALUE}}', |
| 183 | 183 | ], |
| @@ -186,9 +186,9 @@ | ||
| 186 | 186 | |
| 187 | 187 | $this->add_control( |
| 188 | 188 | 'parent_forum_color_hover', |
| 189 | 189 | [ |
| 190 | - 'label' => esc_html__( 'Hover color', 'bbp-core' ), | |
| 190 | + 'label' => esc_html__( 'Hover color', 'forumax' ), | |
| 191 | 191 | 'type' => \Elementor\Controls_Manager::COLOR, |
| 192 | 192 | 'selectors' => [ |
| 193 | 193 | '{{WRAPPER}} .post-content .post-category a:hover' => 'color: {{VALUE}}', |
| 194 | 194 | ], |
| @@ -224,36 +224,36 @@ | ||
| 224 | 224 | ?> |
| 225 | 225 | <div class="post-filter-widget mb-20 wow fadeInUp"> |
| 226 | 226 | <div class="single-filter-item"> |
| 227 | 227 | <a href="#" id="all_filt" data-forum="all" class="data-active"> |
| 228 | - <i class="icon_grid-2x2"></i><?php esc_html_e( 'All', 'bbp-core' ) ?> | |
| 228 | + <i class="icon_grid-2x2"></i><?php esc_html_e( 'All', 'forumax' ) ?> | |
| 229 | 229 | </a> |
| 230 | 230 | </div> |
| 231 | 231 | <div class="single-filter-item"> |
| 232 | 232 | <a href="#" id="populer_filt" data-forum="popular"> |
| 233 | - <i class="icon_easel"></i><?php esc_html_e( 'Popular', 'bbp-core' ) ?> | |
| 233 | + <i class="icon_easel"></i><?php esc_html_e( 'Popular', 'forumax' ) ?> | |
| 234 | 234 | </a> |
| 235 | 235 | </div> |
| 236 | 236 | <div class="single-filter-item"> |
| 237 | 237 | <a href="#" id="featured_filt" data-forum="featured"> |
| 238 | - <i class="icon_ribbon_alt"></i><?php esc_html_e( 'Featured', 'bbp-core' ) ?> | |
| 238 | + <i class="icon_ribbon_alt"></i><?php esc_html_e( 'Featured', 'forumax' ) ?> | |
| 239 | 239 | </a> |
| 240 | 240 | </div> |
| 241 | 241 | <div class="single-filter-item"> |
| 242 | 242 | <a href="#" id="recent_filt" data-forum="recent"> |
| 243 | - <i class="icon_clock_alt"></i><?php esc_html_e( 'Recent', 'bbp-core' ) ?> | |
| 243 | + <i class="icon_clock_alt"></i><?php esc_html_e( 'Recent', 'forumax' ) ?> | |
| 244 | 244 | </a> |
| 245 | 245 | </div> |
| 246 | - <div class="single-filter-item"> | |
| 247 | - <a href="#" id="unsolved_filt" data-forum="unsolved"> | |
| 248 | - <i class="icon_close_alt2"></i><?php esc_html_e( 'Unsolved', 'bbp-core' ) ?> | |
| 249 | - </a> | |
| 250 | - </div> | |
| 251 | - <div class="single-filter-item"> | |
| 252 | - <a href="#" id="solved_filt" data-forum="solved"> | |
| 253 | - <i class="icon_check_alt2"></i><?php esc_html_e( 'Solved', 'bbp-core' ) ?> | |
| 254 | - </a> | |
| 255 | - </div> | |
| 246 | + <div class="single-filter-item"> | |
| 247 | + <a href="#" id="unloved_filt" data-forum="unloved"> | |
| 248 | + <i class="icon_close_alt2"></i><?php esc_html_e( 'Unloved', 'forumax' ) ?> | |
| 249 | + </a> | |
| 250 | + </div> | |
| 251 | + <div class="single-filter-item"> | |
| 252 | + <a href="#" id="loved_filt" data-forum="loved"> | |
| 253 | + <i class="icon_check_alt2"></i><?php esc_html_e( 'Loved', 'forumax' ) ?> | |
| 254 | + </a> | |
| 255 | + </div> | |
| 256 | 256 | </div> |
| 257 | 257 | <?php |
| 258 | 258 | endif; |
| 259 | 259 | ?> |
| @@ -273,10 +273,10 @@ | ||
| 273 | 273 | <h6><a href="<?php the_permalink(); ?>"> <?php the_title() ?> </a></h6> |
| 274 | 274 | </div> |
| 275 | 275 | <div class="post-info"> |
| 276 | 276 | <div class="author"> |
| 277 | - <img src="<?php echo esc_url( BBPC_IMG . 'forum_tab/user-circle-alt.svg' ); ?>" alt="<?php esc_attr_e( 'User circle alt icon', | |
| 278 | - 'bbp-core' ); ?>"> | |
| 277 | + <img src="<?php echo esc_url( FORUMAX_IMG . 'forum_tab/user-circle-alt.svg' ); ?>" alt="<?php esc_attr_e( 'User circle alt icon', | |
| 278 | + 'forumax' ); ?>"> | |
| 279 | 279 | <?php |
| 280 | 280 | echo wp_kses_post( bbp_get_topic_author_link( |
| 281 | 281 | array( |
| 282 | 282 | 'post_id' => $topic_id, |
| @@ -286,10 +286,10 @@ | ||
| 286 | 286 | ?> |
| 287 | 287 | </div> |
| 288 | 288 | |
| 289 | 289 | <div class="post-time"> |
| 290 | - <img src="<?php echo esc_url( BBPC_IMG . 'forum_tab/time-outline.svg' ); ?>" | |
| 291 | - alt="<?php esc_attr_e( 'Time outline icon', 'bbp-core' ); ?>"> | |
| 290 | + <img src="<?php echo esc_url( FORUMAX_IMG . 'forum_tab/time-outline.svg' ); ?>" | |
| 291 | + alt="<?php esc_attr_e( 'Time outline icon', 'forumax' ); ?>"> | |
| 292 | 292 | <?php bbp_forum_last_active_time( get_the_ID() ); ?> |
| 293 | 293 | </div> |
| 294 | 294 | </div> |
| 295 | 295 | |
| @@ -301,19 +301,19 @@ | ||
| 301 | 301 | </div> |
| 302 | 302 | </div> |
| 303 | 303 | <div class="post-reach"> |
| 304 | 304 | <div class="post-view"> |
| 305 | - <img src="<?php echo esc_url( BBPC_IMG . 'forum_tab/eye-outline.svg' ); ?>" alt="<?php esc_attr_e( 'Eye outline icon', 'bbp-core' ); ?>"> | |
| 305 | + <img src="<?php echo esc_url( FORUMAX_IMG . 'forum_tab/eye-outline.svg' ); ?>" alt="<?php esc_attr_e( 'Eye outline icon', 'forumax' ); ?>"> | |
| 306 | 306 | |
| 307 | 307 | <?php |
| 308 | - bbp_topic_view_count( $topic_id ); | |
| 308 | + forumax_topic_view_count( $topic_id ); | |
| 309 | 309 | echo ' '; |
| 310 | - esc_html_e( 'Views', 'bbp-core' ); | |
| 310 | + esc_html_e( 'Views', 'forumax' ); | |
| 311 | 311 | ?> |
| 312 | 312 | </div> |
| 313 | 313 | <div class="post-like"> |
| 314 | - <img src="<?php echo esc_url( BBPC_IMG . 'forum_tab/thumbs-up-outline.svg' ); ?>" | |
| 315 | - alt="<?php esc_attr_e( 'Thumbs-up outline icon', 'bbp-core' ); ?>"> | |
| 314 | + <img src="<?php echo esc_url( FORUMAX_IMG . 'forum_tab/thumbs-up-outline.svg' ); ?>" | |
| 315 | + alt="<?php esc_attr_e( 'Thumbs-up outline icon', 'forumax' ); ?>"> | |
| 316 | 316 | |
| 317 | 317 | <?php |
| 318 | 318 | if ( $vote_count ) { |
| 319 | 319 | echo esc_html( $vote_count ); |
| @@ -321,18 +321,18 @@ | ||
| 321 | 321 | echo "0"; |
| 322 | 322 | } |
| 323 | 323 | |
| 324 | 324 | echo ' '; |
| 325 | - esc_html_e( 'Likes', 'bbp-core' ); | |
| 325 | + esc_html_e( 'Likes', 'forumax' ); | |
| 326 | 326 | ?> |
| 327 | 327 | </div> |
| 328 | 328 | <div class="post-comment"> |
| 329 | - <img src="<?php echo esc_url( BBPC_IMG . 'forum_tab/chatbubbles-outline.svg' ); ?>" | |
| 330 | - alt="<?php esc_attr_e( 'Chat bubbles icon', 'bbp-core' ); ?>"> | |
| 329 | + <img src="<?php echo esc_url( FORUMAX_IMG . 'forum_tab/chatbubbles-outline.svg' ); ?>" | |
| 330 | + alt="<?php esc_attr_e( 'Chat bubbles icon', 'forumax' ); ?>"> | |
| 331 | 331 | <?php |
| 332 | 332 | bbp_topic_reply_count( $topic_id ); |
| 333 | 333 | echo ' '; |
| 334 | - esc_html_e( 'Replies', 'bbp-core' ); | |
| 334 | + esc_html_e( 'Replies', 'forumax' ); | |
| 335 | 335 | ?> |
| 336 | 336 | </div> |
| 337 | 337 | </div> |
| 338 | 338 | </div> |