Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 940c431

Browse files
committed
add phpdoc
1 parent 99ec011 commit 940c431

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed

core/vendor/class-wpm-site-origins.php core/vendor/class-wpm-pbso.php

+20-5
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,31 @@
1212
if ( defined( 'SITEORIGIN_PANELS_VERSION' ) ) {
1313

1414
/**
15-
* Class WPM_Site_Origins
15+
* Class WPM_PBSO
1616
* @package WPM\Core\Vendor
1717
* @category Vendor
1818
* @author VaLeXaR
1919
* @since 1.2.0
2020
*/
21-
class WPM_Site_Origins {
21+
class WPM_PBSO {
2222

2323
/**
24-
* WPM_Site_Origins constructor.
24+
* WPM_PBSO constructor.
2525
*/
2626
public function __construct() {
2727
add_filter( 'wpm_filter_old_panels_data_meta_value', array( $this, 'filter_old_value' ), 10, 2 );
2828
add_filter( 'wpm_panels_data_meta_config', array( $this, 'add_recursive_config' ), 10, 2 );
2929
add_filter( 'siteorigin_widgets_search_posts_results', 'wpm_translate_value' );
3030
}
3131

32-
32+
/**
33+
* Filter old values recursively
34+
*
35+
* @param $old_value
36+
* @param $meta_value
37+
*
38+
* @return mixed
39+
*/
3340
public function filter_old_value( $old_value, $meta_value ) {
3441
$new_old_value = $meta_value;
3542
$new_old_value['widgets'] = array();
@@ -61,6 +68,14 @@ public function filter_old_value( $old_value, $meta_value ) {
6168
}
6269

6370

71+
/**
72+
* Add config for values recursively
73+
*
74+
* @param $config
75+
* @param $meta_value
76+
*
77+
* @return mixed
78+
*/
6479
public function add_recursive_config( $config, $meta_value ) {
6580
if ( is_array( $meta_value ) && isset( $meta_value['widgets'] ) ) {
6681

@@ -82,5 +97,5 @@ public function add_recursive_config( $config, $meta_value ) {
8297
}
8398
}
8499

85-
new WPM_Site_Origins();
100+
new WPM_PBSO();
86101
}

core/vendor/class-wpm-vc.php

+14
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ public function __construct() {
3434
}
3535
}
3636

37+
38+
/**
39+
* Add lang param to url
40+
*
41+
* @param $link
42+
*
43+
* @return string
44+
*/
3745
public function append_lang_to_url( $link ) {
3846
return add_query_arg( 'lang', wpm_get_language(), $link );
3947
}
@@ -59,6 +67,8 @@ public function enqueue_js_frontend() {
5967
}
6068

6169
/**
70+
* Generate language switcher
71+
*
6272
* @return string
6373
*/
6474
public function generate_select_frontend() {
@@ -77,6 +87,8 @@ public function generate_select_frontend() {
7787
}
7888

7989
/**
90+
* Add menu item
91+
*
8092
* @param $list
8193
*
8294
* @return array
@@ -93,6 +105,8 @@ public function nav_controls_frontend( $list ) {
93105
}
94106

95107
/**
108+
* Generate edit link
109+
*
96110
* @param $link
97111
*
98112
* @return string
File renamed without changes.

0 commit comments

Comments
 (0)