Shortcodes and extra features for Phlox theme - Version 1.1.0

Version Description

Download this release

Release Info

Developer averta
Plugin Icon 128x128 Shortcodes and extra features for Phlox theme
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.9 to 1.1.0

README.txt CHANGED
@@ -6,7 +6,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
6
  Tags: banner SEO, shortcode, page-builder, siteorigin, auxin, framework, widget, element, phlox, averta, fullwidth, masonry, timeline
7
  Requires at least: 4.3
8
  Tested up to: 4.6.1
9
- Stable tag: 1.0.9
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl.html
12
 
@@ -140,6 +140,9 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-ele
140
 
141
  == Changelog ==
142
 
 
 
 
143
  = Version 1.0.9 / (6.10.2016) =
144
  - [New]: New shortcodes and widgets added
145
 
@@ -156,5 +159,5 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-ele
156
 
157
  == Upgrade Notice ==
158
 
159
- = 1.0.9 =
160
- - [New]: New shortcodes and widgets added
6
  Tags: banner SEO, shortcode, page-builder, siteorigin, auxin, framework, widget, element, phlox, averta, fullwidth, masonry, timeline
7
  Requires at least: 4.3
8
  Tested up to: 4.6.1
9
+ Stable tag: 1.1.0
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl.html
12
 
140
 
141
  == Changelog ==
142
 
143
+ = Version 1.1.0 / (22.10.2016) =
144
+ - [New]: Introducing blog timeline view
145
+
146
  = Version 1.0.9 / (6.10.2016) =
147
  - [New]: New shortcodes and widgets added
148
 
159
 
160
  == Upgrade Notice ==
161
 
162
+ = 1.1.0 =
163
+ - [New]: Introducing blog timeline view
auxin-elements.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Auxin Elements
13
  * Plugin URI: https://wordpress.org/plugins/auxin-elements/
14
  * Description: Powerful and comprehensive plugin that extends the functionality of Phlox theme by adding new shortcodes, widgets and options
15
- * Version: 1.0.9
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
12
  * Plugin Name: Auxin Elements
13
  * Plugin URI: https://wordpress.org/plugins/auxin-elements/
14
  * Description: Powerful and comprehensive plugin that extends the functionality of Phlox theme by adding new shortcodes, widgets and options
15
+ * Version: 1.1.0
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
includes/classes/class-auxin-siteorigin-widget.php CHANGED
@@ -176,7 +176,8 @@ class Auxin_SiteOrigin_Widget extends SiteOrigin_Widget {
176
  if ( ! isset( $so_fields[ $repeater_name ] ) ) {
177
  $so_fields[ $repeater_name ] = array(
178
  'type' => 'repeater',
179
- 'label' => $field['repeater'],
 
180
  'hide' => true,
181
  'fields' => array()
182
  );
176
  if ( ! isset( $so_fields[ $repeater_name ] ) ) {
177
  $so_fields[ $repeater_name ] = array(
178
  'type' => 'repeater',
179
+ 'label' => (isset($field['repeater-label']))? $field['repeater-label'] : $field['repeater'],
180
+ 'item_name' => (isset($field['section-name']))? $field['section-name'] : "Item",
181
  'hide' => true,
182
  'fields' => array()
183
  );
includes/define.php CHANGED
@@ -12,7 +12,7 @@ if( ! defined( 'THEME_NAME' ) ){
12
  }
13
 
14
 
15
- define( 'AUXELS_VERSION' , '1.0.9' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
  define( 'AUXELS_TEXT_DOMAIN' , 'auxin-elements' );
12
  }
13
 
14
 
15
+ define( 'AUXELS_VERSION' , '1.1.0' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
  define( 'AUXELS_TEXT_DOMAIN' , 'auxin-elements' );
includes/elements/about-widget.php CHANGED
@@ -40,14 +40,14 @@ function get_auxin_about_widget( $master_array ) {
40
  'as_child' => '',
41
  'params' => array(
42
  array(
 
 
43
  'param_name' => 'title',
44
  'type' => 'textfield',
45
  'value' => '',
46
  'def_value' => '',
47
  'holder' => 'textfield',
48
  'class' => 'id',
49
- 'heading' => __('Title','auxin-elements' ),
50
- 'description' => '',
51
  'admin_label' => true,
52
  'dependency' => '',
53
  'weight' => '',
@@ -55,13 +55,13 @@ function get_auxin_about_widget( $master_array ) {
55
  'edit_field_class' => ''
56
  ),
57
  array(
 
 
58
  'param_name' => 'name',
59
  'type' => 'textfield',
60
  'value' => '',
61
  'holder' => 'textfield',
62
  'class' => 'title',
63
- 'heading' => __('Name','auxin-elements' ),
64
- 'description' => __('The name which appears in about widget.', 'auxin-elements' ),
65
  'admin_label' => true,
66
  'dependency' => '',
67
  'weight' => '',
@@ -69,27 +69,27 @@ function get_auxin_about_widget( $master_array ) {
69
  'edit_field_class' => ''
70
  ),
71
  array(
 
 
72
  'param_name' => 'skills',
73
  'type' => 'textfield',
74
  'value' => '',
75
  'holder' => 'textfield',
76
  'class' => 'skills',
77
- 'heading' => __('Skills','auxin-elements' ),
78
- 'description' => __('It appears below the name.', 'auxin-elements' ),
79
  'admin_label' => true,
80
  'weight' => '',
81
  'group' => '',
82
  'edit_field_class' => ''
83
  ),
84
  array(
 
 
85
  'param_name' => 'info',
86
  'type' => 'textarea_html',
87
  'def_value' => '',
88
  'value' => '',
89
  'holder' => 'div',
90
  'class' => 'info',
91
- 'heading' => __('Info','auxin-elements' ),
92
- 'description' => __('Biographical info or any other content.', 'auxin-elements' ),
93
  'admin_label' => false,
94
  'dependency' => '',
95
  'weight' => '',
@@ -97,14 +97,14 @@ function get_auxin_about_widget( $master_array ) {
97
  'edit_field_class' => ''
98
  ),
99
  array(
 
 
100
  'param_name' => 'about_image',
101
  'type' => 'attach_image',
102
  'value' => '',
103
  'def_value' => '',
104
  'holder' => 'textfield',
105
  'class' => 'about_image',
106
- 'heading' => __('Image','auxin-elements' ),
107
- 'description' => __('It appears above the name.', 'auxin-elements' ),
108
  'admin_label' => true,
109
  'dependency' => '',
110
  'weight' => '',
@@ -112,6 +112,8 @@ function get_auxin_about_widget( $master_array ) {
112
  'edit_field_class' => ''
113
  ),
114
  array(
 
 
115
  'param_name' => 'image_style',
116
  'type' => 'dropdown',
117
  'def_value' => 'circle',
@@ -121,8 +123,6 @@ function get_auxin_about_widget( $master_array ) {
121
  ),
122
  'holder' => 'dropdown',
123
  'class' => 'image_style',
124
- 'heading' => __('Image style','auxin-elements' ),
125
- 'description' => '',
126
  'admin_label' => true,
127
  'dependency' => '',
128
  'weight' => '',
@@ -130,14 +130,14 @@ function get_auxin_about_widget( $master_array ) {
130
  'edit_field_class' => ''
131
  ),
132
  array(
 
 
133
  'param_name' => 'align_center',
134
  'type' => 'aux_switch',
135
  'def_value' => '',
136
  'value' => '1',
137
  'holder' => 'dropdown',
138
  'class' => 'align_center',
139
- 'heading' => __('Align center texts', 'auxin-elements' ),
140
- 'description' => '',
141
  'admin_label' => true,
142
  'dependency' => '',
143
  'weight' => '',
@@ -145,14 +145,14 @@ function get_auxin_about_widget( $master_array ) {
145
  'edit_field_class' => ''
146
  ),
147
  array(
 
 
148
  'param_name' => 'show_socials',
149
  'type' => 'aux_switch',
150
  'def_value' => '',
151
  'value' => '0',
152
  'holder' => 'dropdown',
153
  'class' => 'show_socials',
154
- 'heading' => __('Show socials below the info','auxin-elements' ),
155
- 'description' => '',
156
  'admin_label' => true,
157
  'dependency' => '',
158
  'weight' => '',
@@ -160,14 +160,14 @@ function get_auxin_about_widget( $master_array ) {
160
  'edit_field_class' => ''
161
  ),
162
  array(
 
 
163
  'param_name' => 'extra_classes',
164
  'type' => 'textfield',
165
  'value' => '',
166
  'def_value' => '',
167
  'holder' => 'textfield',
168
  'class' => 'extra_classes',
169
- 'heading' => __('Extra class name','auxin-elements' ),
170
- 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'auxin-elements' ),
171
  'admin_label' => true,
172
  'dependency' => '',
173
  'weight' => '',
40
  'as_child' => '',
41
  'params' => array(
42
  array(
43
+ 'heading' => __('Title','auxin-elements' ),
44
+ 'description' => '',
45
  'param_name' => 'title',
46
  'type' => 'textfield',
47
  'value' => '',
48
  'def_value' => '',
49
  'holder' => 'textfield',
50
  'class' => 'id',
 
 
51
  'admin_label' => true,
52
  'dependency' => '',
53
  'weight' => '',
55
  'edit_field_class' => ''
56
  ),
57
  array(
58
+ 'heading' => __('Name','auxin-elements' ),
59
+ 'description' => __('The name which appears in about widget.', 'auxin-elements' ),
60
  'param_name' => 'name',
61
  'type' => 'textfield',
62
  'value' => '',
63
  'holder' => 'textfield',
64
  'class' => 'title',
 
 
65
  'admin_label' => true,
66
  'dependency' => '',
67
  'weight' => '',
69
  'edit_field_class' => ''
70
  ),
71
  array(
72
+ 'heading' => __('Skills','auxin-elements' ),
73
+ 'description' => __('It appears below the name.', 'auxin-elements' ),
74
  'param_name' => 'skills',
75
  'type' => 'textfield',
76
  'value' => '',
77
  'holder' => 'textfield',
78
  'class' => 'skills',
 
 
79
  'admin_label' => true,
80
  'weight' => '',
81
  'group' => '',
82
  'edit_field_class' => ''
83
  ),
84
  array(
85
+ 'heading' => __('Info','auxin-elements' ),
86
+ 'description' => __('Biographical info or any other content.', 'auxin-elements' ),
87
  'param_name' => 'info',
88
  'type' => 'textarea_html',
89
  'def_value' => '',
90
  'value' => '',
91
  'holder' => 'div',
92
  'class' => 'info',
 
 
93
  'admin_label' => false,
94
  'dependency' => '',
95
  'weight' => '',
97
  'edit_field_class' => ''
98
  ),
99
  array(
100
+ 'heading' => __('Image','auxin-elements' ),
101
+ 'description' => __('It appears above the name.', 'auxin-elements' ),
102
  'param_name' => 'about_image',
103
  'type' => 'attach_image',
104
  'value' => '',
105
  'def_value' => '',
106
  'holder' => 'textfield',
107
  'class' => 'about_image',
 
 
108
  'admin_label' => true,
109
  'dependency' => '',
110
  'weight' => '',
112
  'edit_field_class' => ''
113
  ),
114
  array(
115
+ 'heading' => __('Image style','auxin-elements' ),
116
+ 'description' => '',
117
  'param_name' => 'image_style',
118
  'type' => 'dropdown',
119
  'def_value' => 'circle',
123
  ),
124
  'holder' => 'dropdown',
125
  'class' => 'image_style',
 
 
126
  'admin_label' => true,
127
  'dependency' => '',
128
  'weight' => '',
130
  'edit_field_class' => ''
131
  ),
132
  array(
133
+ 'heading' => __('Align center texts', 'auxin-elements' ),
134
+ 'description' => '',
135
  'param_name' => 'align_center',
136
  'type' => 'aux_switch',
137
  'def_value' => '',
138
  'value' => '1',
139
  'holder' => 'dropdown',
140
  'class' => 'align_center',
 
 
141
  'admin_label' => true,
142
  'dependency' => '',
143
  'weight' => '',
145
  'edit_field_class' => ''
146
  ),
147
  array(
148
+ 'heading' => __('Show socials below the info','auxin-elements' ),
149
+ 'description' => '',
150
  'param_name' => 'show_socials',
151
  'type' => 'aux_switch',
152
  'def_value' => '',
153
  'value' => '0',
154
  'holder' => 'dropdown',
155
  'class' => 'show_socials',
 
 
156
  'admin_label' => true,
157
  'dependency' => '',
158
  'weight' => '',
160
  'edit_field_class' => ''
161
  ),
162
  array(
163
+ 'heading' => __('Extra class name','auxin-elements' ),
164
+ 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'auxin-elements' ),
165
  'param_name' => 'extra_classes',
166
  'type' => 'textfield',
167
  'value' => '',
168
  'def_value' => '',
169
  'holder' => 'textfield',
170
  'class' => 'extra_classes',
 
 
171
  'admin_label' => true,
172
  'dependency' => '',
173
  'weight' => '',
includes/elements/accordion-api.php ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Accordion element if site origin bundle plugin is activaited
4
+ *
5
+ *
6
+ * @package auxin-elements
7
+ * @license LICENSE.txt
8
+ * @author
9
+ * @link https://bitbucket.org/averta/
10
+ * @copyright (c) 2010-2016
11
+ */
12
+
13
+ function auxin_get_new_accordion_master_array( $master_array ) {
14
+
15
+ $master_array['aux_accordion'] = array(
16
+ 'name' => __('[Phlox] Accordion ', 'auxin-elements'),
17
+ 'auxin_output_callback' => 'auxin_widget_accordion_callback',
18
+ 'base' => 'aux_accordion',
19
+ 'description' => __('Collapsible content', 'auxin-elements'),
20
+ 'class' => 'aux-widget-accordion widget-toggle',
21
+ 'show_settings_on_create' => true,
22
+ 'weight' => 1,
23
+ 'category' => THEME_NAME,
24
+ 'group' => '',
25
+ 'so_api' => true,
26
+ 'admin_enqueue_js' => '',
27
+ 'admin_enqueue_css' => '',
28
+ 'front_enqueue_js' => '',
29
+ 'front_enqueue_css' => '',
30
+ 'icon' => 'auxin-element auxin-accordion',
31
+ 'custom_markup' => '',
32
+ 'js_view' => '',
33
+ 'html_template' => '',
34
+ 'deprecated' => '',
35
+ 'content_element' => '',
36
+ 'as_parent' => '',
37
+ 'as_child' => '',
38
+ 'params' => array(
39
+ array(
40
+ 'heading' => __('Title','auxin-elements'),
41
+ 'description' => __('Accordion title, leave it empty if you don`t need title.', 'auxin-elements'),
42
+ 'param_name' => 'title',
43
+ 'type' => 'textfield',
44
+ 'value' => '',
45
+ 'holder' => 'textfield',
46
+ 'class' => 'title',
47
+ 'admin_label' => true,
48
+ 'dependency' => '',
49
+ 'weight' => '',
50
+ 'group' => '' ,
51
+ 'edit_field_class' => ''
52
+ ),
53
+ array(
54
+ 'heading' => __('Type','auxin-elements'),
55
+ 'description' => __('Whether to show only 1 element opens at a time or multiple.','auxin-elements'),
56
+ 'param_name' => 'type',
57
+ 'type' => 'dropdown',
58
+ 'def_value' => 'true',
59
+ 'value' => array(
60
+ 'false' => __('Toggle', 'auxin-elements'),
61
+ 'true' => __('Accordion', 'auxin-elements'),
62
+ ),
63
+ 'holder' => 'dropdown',
64
+ 'class' => 'type',
65
+ 'admin_label' => true,
66
+ 'dependency' => '',
67
+ 'weight' => '',
68
+ 'group' => '' ,
69
+ 'edit_field_class' => ''
70
+ ),
71
+ array(
72
+ 'heading' => __('Accordion label','auxin-elements'),
73
+ 'description' => __('Enter your accordion item label.', 'auxin-elements'),
74
+ 'repeater' => 'accordion',
75
+ 'repeater-label' => __('Accordion', 'auxin-elements'),
76
+ 'section-name' => __('Accordion Section', 'auxin-elements'),
77
+ 'param_name' => 'accordion_label',
78
+ 'type' => 'textfield',
79
+ 'value' => '',
80
+ 'holder' => 'textfield',
81
+ 'class' => 'accordion_label',
82
+ 'admin_label' => true,
83
+ 'dependency' => '',
84
+ 'weight' => '',
85
+ 'group' => '' ,
86
+ 'edit_field_class' => ''
87
+ ),
88
+ array(
89
+ 'heading' => __('Content', 'auxin-elements'),
90
+ 'description' => __('Enter your accordion item content.', 'auxin-elements'),
91
+ 'repeater' => 'accordion',
92
+ 'repeater-label' => __('Accordion', 'auxin-elements'),
93
+ 'section-name' => __('Accordion Section', 'auxin-elements'),
94
+ 'param_name' => 'content',
95
+ 'type' => 'textarea_html',
96
+ 'value' => '',
97
+ 'def_value' => '',
98
+ 'holder' => 'div',
99
+ 'class' => 'content',
100
+ 'admin_label' => true,
101
+ 'dependency' => '',
102
+ 'weight' => '',
103
+ 'group' => '',
104
+ 'edit_field_class' => ''
105
+ ),
106
+ array(
107
+ 'heading' => __('Extra class name','auxin-elements'),
108
+ 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'auxin-elements'),
109
+ 'param_name' => 'extra_classes',
110
+ 'type' => 'textfield',
111
+ 'value' => '',
112
+ 'def_value' => '',
113
+ 'holder' => 'textfield',
114
+ 'class' => 'extra_classes',
115
+ 'admin_label' => true,
116
+ 'dependency' => '',
117
+ 'weight' => '',
118
+ 'group' => '' ,
119
+ 'edit_field_class' => ''
120
+ )
121
+ )
122
+ );
123
+
124
+ return $master_array;
125
+ }
126
+
127
+ add_filter( 'auxin_master_array_shortcodes', 'auxin_get_new_accordion_master_array', 10, 1 );
128
+
129
+
130
+ /**
131
+ * Element without loop and column
132
+ * The front-end output of this element is returned by the following function
133
+ *
134
+ * @param array $atts The array containing the parsed values from shortcode, it should be same as defined params above.
135
+ * @param string $shortcode_content The shorcode content
136
+ * @return string The output of element markup
137
+ */
138
+ function auxin_widget_accordion_callback( $atts, $shortcode_content = null ){
139
+
140
+ // Defining default attributes
141
+ $default_atts = array(
142
+ 'title' => '', // header title
143
+ 'type' => 'true', // accordion/toggle
144
+ 'accordion' => '', // accordion/toggle
145
+ 'extra_classes' => '', // custom css class names for this element
146
+ 'custom_el_id' => '', // custom id attribute for this element
147
+ 'base_class' => 'aux-widget-accordion widget-toggle' // base class name for container
148
+ );
149
+
150
+ $result = auxin_get_widget_scafold( $atts, $default_atts, $shortcode_content );
151
+ extract( $result['parsed_atts'] );
152
+
153
+ // widget header ------------------------------
154
+ $output = $result['widget_header'];
155
+ $output .= $result['widget_title'];
156
+ $output .= '<div class="widget-inner ' .$extra_classes . '" data-toggle="' . $type . '">';
157
+
158
+ // widget custom output -----------------------
159
+ foreach ( $accordion as $key => $value ) {
160
+
161
+
162
+ $output .= '<section>';
163
+ $section_title = $value['accordion_label'];
164
+ $section_content = $value['content'];
165
+ $output .= '<h6 class="toggle-header">' . $section_title . '</h6>';
166
+ $output .= '<div class="toggle-content"><p>' . $section_content . '</p></div>';
167
+ $output .= '</section>';
168
+ }
169
+
170
+ $output .= '</div>'; // End od widget-toggle
171
+ $output .= $result['widget_footer'];
172
+
173
+ // widget footer ------------------------------
174
+
175
+ return $output;
176
+ }
includes/elements/accordion.php CHANGED
@@ -53,17 +53,11 @@ function auxin_get_new_accordion_master_array( $master_array ) {
53
  'heading' => __('Type','auxin-elements'),
54
  'description' => __('Whether to show only 1 element opens at a time or multiple.','auxin-elements'),
55
  'param_name' => 'type',
56
- 'type' => 'aux_visual_select',
57
- 'def_value' => 'accordion',
58
- 'choices' => array(
59
- 'false' => array(
60
- 'label' => __('Toggle', 'auxin-elements'),
61
- 'image' => AUX_URL . 'images/visual-select/toggle.svg'
62
- ),
63
- 'true' => array(
64
- 'label' => __('Accordion', 'auxin-elements'),
65
- 'image' => AUX_URL . 'images/visual-select/accordion.svg'
66
- )
67
  ),
68
  'holder' => 'dropdown',
69
  'class' => 'type',
53
  'heading' => __('Type','auxin-elements'),
54
  'description' => __('Whether to show only 1 element opens at a time or multiple.','auxin-elements'),
55
  'param_name' => 'type',
56
+ 'type' => 'dropdown',
57
+ 'def_value' => 'true',
58
+ 'value' => array(
59
+ 'false' => __('Toggle', 'auxin-elements'),
60
+ 'true' => __('Accordion', 'auxin-elements'),
 
 
 
 
 
 
61
  ),
62
  'holder' => 'dropdown',
63
  'class' => 'type',
includes/elements/button.php CHANGED
@@ -30,7 +30,7 @@ function auxin_get_button_master_array( $master_array ) {
30
  'admin_enqueue_css' => '',
31
  'front_enqueue_js' => '',
32
  'front_enqueue_css' => '',
33
- 'icon' => 'auxin-element auxin-image',
34
  'custom_markup' => '',
35
  'js_view' => '',
36
  'html_template' => '',
@@ -40,7 +40,7 @@ function auxin_get_button_master_array( $master_array ) {
40
  'as_child' => '',
41
  'params' => array(
42
  array(
43
- 'heading' => __('Button Label','auxin-elements' ),
44
  'description' => __('The label of button.','auxin-elements' ),
45
  'param_name' => 'label',
46
  'type' => 'textfield',
@@ -54,7 +54,7 @@ function auxin_get_button_master_array( $master_array ) {
54
  'edit_field_class' => ''
55
  ),
56
  array(
57
- 'heading' => __('Button Size','auxin-elements' ),
58
  'description' => '',
59
  'param_name' => 'size',
60
  'type' => 'dropdown',
@@ -202,7 +202,7 @@ function auxin_get_button_master_array( $master_array ) {
202
  'edit_field_class' => ''
203
  ),
204
  array(
205
- 'heading' => __('Color of Button','auxin-elements' ),
206
  'description' => '',
207
  'param_name' => 'color_name',
208
  'type' => 'dropdown',
30
  'admin_enqueue_css' => '',
31
  'front_enqueue_js' => '',
32
  'front_enqueue_css' => '',
33
+ 'icon' => 'auxin-element auxin-button',
34
  'custom_markup' => '',
35
  'js_view' => '',
36
  'html_template' => '',
40
  'as_child' => '',
41
  'params' => array(
42
  array(
43
+ 'heading' => __('Button label','auxin-elements' ),
44
  'description' => __('The label of button.','auxin-elements' ),
45
  'param_name' => 'label',
46
  'type' => 'textfield',
54
  'edit_field_class' => ''
55
  ),
56
  array(
57
+ 'heading' => __('Button size','auxin-elements' ),
58
  'description' => '',
59
  'param_name' => 'size',
60
  'type' => 'dropdown',
202
  'edit_field_class' => ''
203
  ),
204
  array(
205
+ 'heading' => __('Color of button','auxin-elements' ),
206
  'description' => '',
207
  'param_name' => 'color_name',
208
  'type' => 'dropdown',
includes/elements/contact-box.php CHANGED
@@ -91,7 +91,7 @@ function get_auxin_contact_box( $master_array ) {
91
  'edit_field_class' => ''
92
  ),
93
  array(
94
- 'heading' => __('Show Socials','auxin-elements'),
95
  'description' => __('Show socials below the info.','auxin-elements'),
96
  'param_name' => 'show_socials',
97
  'type' => 'aux_switch',
@@ -106,7 +106,7 @@ function get_auxin_contact_box( $master_array ) {
106
  'edit_field_class' => ''
107
  ),
108
  array(
109
- 'heading' => __('Show Map','auxin-elements'),
110
  'description' => __('Show map above the info.','auxin-elements'),
111
  'param_name' => 'show_map',
112
  'type' => 'aux_switch',
@@ -173,7 +173,7 @@ function get_auxin_contact_box( $master_array ) {
173
  'edit_field_class' => ''
174
  ),
175
  array(
176
- 'heading' => __('Map Type','auxin-elements'),
177
  'param_name' => 'type',
178
  'type' => 'dropdown',
179
  'def_value' => 'ROADMAP',
91
  'edit_field_class' => ''
92
  ),
93
  array(
94
+ 'heading' => __('Show socials','auxin-elements'),
95
  'description' => __('Show socials below the info.','auxin-elements'),
96
  'param_name' => 'show_socials',
97
  'type' => 'aux_switch',
106
  'edit_field_class' => ''
107
  ),
108
  array(
109
+ 'heading' => __('Show map','auxin-elements'),
110
  'description' => __('Show map above the info.','auxin-elements'),
111
  'param_name' => 'show_map',
112
  'type' => 'aux_switch',
173
  'edit_field_class' => ''
174
  ),
175
  array(
176
+ 'heading' => __('Map type','auxin-elements'),
177
  'param_name' => 'type',
178
  'type' => 'dropdown',
179
  'def_value' => 'ROADMAP',
includes/elements/divider.php CHANGED
@@ -40,7 +40,7 @@ function auxin_get_divider_master_array( $master_array ) {
40
  'as_child' => '',
41
  'params' => array(
42
  array(
43
- 'heading' => __('Divider Style','auxin-elements'),
44
  'description' => '',
45
  'param_name' => 'style',
46
  'type' => 'aux_visual_select',
@@ -76,7 +76,7 @@ function auxin_get_divider_master_array( $master_array ) {
76
  )
77
  ),
78
  array(
79
- 'heading' => __('Divider Width','auxin-elements'),
80
  'description' => __('Specifies the width size of divider.', 'auxin-elements'),
81
  'param_name' => 'width',
82
  'type' => 'dropdown',
40
  'as_child' => '',
41
  'params' => array(
42
  array(
43
+ 'heading' => __('Divider style','auxin-elements'),
44
  'description' => '',
45
  'param_name' => 'style',
46
  'type' => 'aux_visual_select',
76
  )
77
  ),
78
  array(
79
+ 'heading' => __('Divider width','auxin-elements'),
80
  'description' => __('Specifies the width size of divider.', 'auxin-elements'),
81
  'param_name' => 'width',
82
  'type' => 'dropdown',
includes/elements/dropcap.php CHANGED
@@ -39,7 +39,7 @@ function auxin_get_dropcap_master_array( $master_array ) {
39
  'as_child' => '',
40
  'params' => array(
41
  array(
42
- 'heading' => __('Dropcap Style','auxin-elements' ),
43
  'description' => '',
44
  'param_name' => 'style',
45
  'type' => 'aux_visual_select',
39
  'as_child' => '',
40
  'params' => array(
41
  array(
42
+ 'heading' => __('Dropcap style','auxin-elements' ),
43
  'description' => '',
44
  'param_name' => 'style',
45
  'type' => 'aux_visual_select',
includes/elements/facebook.php ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Divider element
4
+ *
5
+ *
6
+ * @package auxin-elements
7
+ * @license LICENSE.txt
8
+ * @author
9
+ * @link https://bitbucket.org/averta/
10
+ * @copyright (c) 2010-2016
11
+ */
12
+
13
+ function auxin_get_facebook_master_array( $master_array ) {
14
+
15
+ $master_array['aux_facebook'] = array(
16
+ 'name' => __('[Phlox] Custom Facebook Feed', 'auxin-elements' ),
17
+ 'auxin_output_callback' => 'auxin_widget_facebook_callback',
18
+ 'base' => 'aux_facebook',
19
+ 'description' => __('It uses Custom Facebook Feed plugin.', 'auxin-elements'),
20
+ 'class' => 'aux-widget-facebook',
21
+ 'show_settings_on_create' => true,
22
+ 'weight' => 1,
23
+ 'is_widget' => true,
24
+ 'is_shortcode' => true,
25
+ 'is_so' => true,
26
+ 'is_vc' => true,
27
+ 'category' => THEME_NAME,
28
+ 'group' => '',
29
+ 'admin_enqueue_js' => '',
30
+ 'admin_enqueue_css' => '',
31
+ 'front_enqueue_js' => '',
32
+ 'front_enqueue_css' => '',
33
+ 'icon' => 'auxin-element auxin-facebook',
34
+ 'custom_markup' => '',
35
+ 'js_view' => '',
36
+ 'html_template' => '',
37
+ 'deprecated' => '',
38
+ 'content_element' => '',
39
+ 'as_parent' => '',
40
+ 'as_child' => '',
41
+ 'params' => array(
42
+ array(
43
+ 'heading' => __('Page ID', 'auxin-elements'),
44
+ 'description' => sprintf(__('ID of your Facebook Page or Group. Use %sthis tool%s to help you in finding this.', 'auxin-elements'), '<a target="_blank" href="https://lookup-id.com/">','</a>'),
45
+ 'param_name' => 'id',
46
+ 'type' => 'textfield',
47
+ 'value' => '',
48
+ 'def_value' => '',
49
+ 'holder' => 'textfield',
50
+ 'class' => 'id',
51
+ 'admin_label' => false,
52
+ 'dependency' => '',
53
+ 'weight' => '',
54
+ 'group' => '' ,
55
+ 'edit_field_class' => ''
56
+ ),
57
+ array(
58
+ 'heading' => __('Page type', 'auxin-elements'),
59
+ 'description' => __('Specifies whether to display posts from a page or group.','auxin-elements'),
60
+ 'param_name' => 'pagetype',
61
+ 'type' => 'dropdown',
62
+ 'value' => array(
63
+ 'page' => __('Page' , 'auxin-elements'),
64
+ 'group' => __('Group', 'auxin-elements')
65
+ ),
66
+ 'def_value' => 'page',
67
+ 'holder' => 'dropdown',
68
+ 'class' => 'pagetype',
69
+ 'admin_label' => true,
70
+ 'dependency' => '',
71
+ 'weight' => '',
72
+ 'group' => '' ,
73
+ 'edit_field_class' => ''
74
+ ),
75
+ array(
76
+ 'heading' => __('Number of posts', 'auxin-elements'),
77
+ 'description' => __('The number of posts you wish to display.', 'auxin-elements'),
78
+ 'param_name' => 'num',
79
+ 'type' => 'textfield',
80
+ 'value' => '',
81
+ 'def_value' => '',
82
+ 'holder' => 'textfield',
83
+ 'class' => 'num',
84
+ 'admin_label' => false,
85
+ 'dependency' => '',
86
+ 'weight' => '',
87
+ 'group' => '' ,
88
+ 'edit_field_class' => ''
89
+ ),
90
+ array(
91
+ 'heading' => __('Display posts by others', 'auxin-elements'),
92
+ 'description' => __('Specifies to display posts by only the page owner, anyone who posts on your page, or only others who post on your page.', 'auxin-elements'),
93
+ 'param_name' => 'showpostsby',
94
+ 'type' => 'dropdown',
95
+ 'value' => array(
96
+ 'me' => __('Only the page owner' , 'auxin-elements'),
97
+ 'others' => __('Page owner and other people', 'auxin-elements'),
98
+ 'onlyothers' => __('Only other people', 'auxin-elements')
99
+ ),
100
+ 'def_value' => 'me',
101
+ 'holder' => 'dropdown',
102
+ 'class' => 'showpostsby',
103
+ 'admin_label' => true,
104
+ 'dependency' => '',
105
+ 'weight' => '',
106
+ 'group' => '' ,
107
+ 'edit_field_class' => ''
108
+ ),
109
+ array(
110
+ 'heading' => __('Post text length', 'auxin-elements'),
111
+ 'description' => __('The maximum character length of the post text.', 'auxin-elements'),
112
+ 'param_name' => 'textlength',
113
+ 'type' => 'textfield',
114
+ 'value' => '',
115
+ 'class' => 'textlength',
116
+ 'admin_label' => false,
117
+ 'dependency' => '',
118
+ 'weight' => '',
119
+ 'group' => '' ,
120
+ 'edit_field_class' => ''
121
+ ),
122
+ array(
123
+ 'heading' => __('Display post author', 'auxin-elements'),
124
+ 'description' => __('Enable it to display name and avatar of the post author.', 'auxin-elements'),
125
+ 'param_name' => 'showauthor',
126
+ 'type' => 'aux_switch',
127
+ 'value' => '1',
128
+ 'class' => 'showauthor',
129
+ 'admin_label' => false,
130
+ 'dependency' => '',
131
+ 'weight' => '',
132
+ 'group' => '' ,
133
+ 'edit_field_class' => ''
134
+ ),
135
+ array(
136
+ 'heading' => __('Display the feed header', 'auxin-elements'),
137
+ 'description' => __('Enable it to display a customizable header at the top of the feed.', 'auxin-elements'),
138
+ 'param_name' => 'showheader',
139
+ 'type' => 'aux_switch',
140
+ 'value' => '0',
141
+ 'class' => 'showheader',
142
+ 'admin_label' => false,
143
+ 'dependency' => '',
144
+ 'weight' => '',
145
+ 'group' => '' ,
146
+ 'edit_field_class' => ''
147
+ ),
148
+ array(
149
+ 'heading' => __('Ajax', 'auxin-elements'),
150
+ 'description' => __('Enable it for being loaded via Ajax.', 'auxin-elements'),
151
+ 'param_name' => 'ajax',
152
+ 'type' => 'aux_switch',
153
+ 'value' => '1',
154
+ 'class' => 'ajax',
155
+ 'admin_label' => false,
156
+ 'dependency' => '',
157
+ 'weight' => '',
158
+ 'group' => '' ,
159
+ 'edit_field_class' => ''
160
+ ),
161
+ array(
162
+ 'heading' => __('Extra class name','auxin-elements' ),
163
+ 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'auxin-elements' ),
164
+ 'param_name' => 'extra_classes',
165
+ 'type' => 'textfield',
166
+ 'value' => '',
167
+ 'def_value' => '',
168
+ 'holder' => 'textfield',
169
+ 'class' => 'extra_classes',
170
+ 'admin_label' => true,
171
+ 'dependency' => '',
172
+ 'weight' => '',
173
+ 'group' => 'Extras' ,
174
+ 'edit_field_class' => ''
175
+ )
176
+ )
177
+ );
178
+
179
+ return $master_array;
180
+ }
181
+
182
+ add_filter( 'auxin_master_array_shortcodes', 'auxin_get_facebook_master_array', 10, 1 );
183
+
184
+ function auxin_widget_facebook_callback( $atts, $shortcode_content = null ){
185
+
186
+ $default_atts = array(
187
+ 'id' => '',
188
+ 'pagetype' => 'page',
189
+ 'num' => '',
190
+ 'showpostsby' => 'me',
191
+ 'textlength' => '',
192
+ 'showauthor' => '1',
193
+ 'showheader' => '0',
194
+ 'ajax' => '1',
195
+ 'extra_classes' => '',
196
+ 'custom_el_id' => '',
197
+ 'base_class' => 'aux-widget-facebook'
198
+ );
199
+
200
+ $result = auxin_get_widget_scafold( $atts, $default_atts, $shortcode_content );
201
+ extract( $result['parsed_atts'] );
202
+
203
+ $facebook_shortcode = "";
204
+
205
+ ob_start();
206
+
207
+ $pagetype = 'pagetype="' . $pagetype . '"';
208
+ $showpostsby = 'showpostsby="' . $showpostsby . '"';
209
+ if( ! empty( $id ) ) {
210
+ $id = 'id="' . $id . '"';
211
+ }
212
+ if( ! empty( $num ) ) {
213
+ $num = 'num="' . $num . '"';
214
+ }
215
+ if( ! empty( $textlength ) ) {
216
+ $textlength = 'textlength="' . $textlength . '"';
217
+ }
218
+ if( ! empty( $extra_classes ) ) {
219
+ $extra_classes = 'class="' . $extra_classes . '"';
220
+ }
221
+
222
+ if( empty( $showauthor ) ){
223
+ $showauthor = "false";
224
+ } else {
225
+ $showauthor = "ture";
226
+ }
227
+ $showauthor = 'showauthor="' . $showauthor .'"';
228
+
229
+ if( empty( $showheader ) ){
230
+ $showheader = "false";
231
+ } else {
232
+ $showheader = "ture";
233
+ }
234
+ $showheader = 'showheader="' . $showheader .'"';
235
+
236
+ if( empty( $ajax ) ){
237
+ $ajax = "false";
238
+ } else {
239
+ $ajax = "ture";
240
+ }
241
+ $ajax = 'ajax="' . $ajax .'"';
242
+
243
+ $facebook_shortcode = '[custom-facebook-feed ' . $id . ' ' . $num . ' ' . $textlength . ' ' . $pagetype . ' ' . $showpostsby . ' ' . $showauthor . ' ' . $ajax . ' ' . $extra_classes . ' ' . $showheader .']';
244
+
245
+ echo do_shortcode( $facebook_shortcode );
246
+
247
+ return ob_get_clean();
248
+
249
+ }
250
+
includes/elements/flickr.php ADDED
@@ -0,0 +1,360 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Divider element
4
+ *
5
+ *
6
+ * @package auxin-elements
7
+ * @license LICENSE.txt
8
+ * @author
9
+ * @link https://bitbucket.org/averta/
10
+ * @copyright (c) 2010-2016
11
+ */
12
+
13
+ function auxin_get_flickr_master_array( $master_array ) {
14
+
15
+ $master_array['aux_flickr'] = array(
16
+ 'name' => __('[Phlox] Flickr Justified Gallery', 'auxin-elements' ),
17
+ 'auxin_output_callback' => 'auxin_widget_flickr_callback',
18
+ 'base' => 'aux_flickr',
19
+ 'description' => __('It uses Flickr Justified Gallery plugin.', 'auxin-elements'),
20
+ 'class' => 'aux-widget-flickr',
21
+ 'show_settings_on_create' => true,
22
+ 'weight' => 1,
23
+ 'is_widget' => true,
24
+ 'is_shortcode' => true,
25
+ 'is_so' => true,
26
+ 'is_vc' => true,
27
+ 'category' => THEME_NAME,
28
+ 'group' => '',
29
+ 'admin_enqueue_js' => '',
30
+ 'admin_enqueue_css' => '',
31
+ 'front_enqueue_js' => '',
32
+ 'front_enqueue_css' => '',
33
+ 'icon' => 'auxin-element auxin-flickr',
34
+ 'custom_markup' => '',
35
+ 'js_view' => '',
36
+ 'html_template' => '',
37
+ 'deprecated' => '',
38
+ 'content_element' => '',
39
+ 'as_parent' => '',
40
+ 'as_child' => '',
41
+ 'params' => array(
42
+ array(
43
+ 'heading' => __('User ID', 'auxin-elements'),
44
+ 'description' => sprintf(__('Displays the photostream of the specified user, no matter what is the default user ID in the settings. Remember that you can use %sidgettr%s to retrieve the user_id.', 'auxin-elements'), '<a href="http://idgettr.com/">','</a>'),
45
+ 'param_name' => 'user_id',
46
+ 'type' => 'textfield',
47
+ 'value' => '',
48
+ 'def_value' => '',
49
+ 'holder' => 'textfield',
50
+ 'class' => 'user_id',
51
+ 'admin_label' => false,
52
+ 'dependency' => '',
53
+ 'weight' => '',
54
+ 'group' => '' ,
55
+ 'edit_field_class' => ''
56
+ ),
57
+ array(
58
+ 'heading' => __('Flickr image type', 'auxin-elements'),
59
+ 'description' => '',
60
+ 'param_name' => 'flickr_type',
61
+ 'type' => 'dropdown',
62
+ 'value' => array(
63
+ 'photostream' => __('Photostream' , 'auxin-elements'),
64
+ 'galleries' => __('Galleries', 'auxin-elements'),
65
+ 'album' => __('Album', 'auxin-elements'), // flickr set
66
+ 'group' => __('Group pools', 'auxin-elements'),
67
+ 'tags' => __('Tags', 'auxin-elements'),
68
+ ),
69
+ 'def_value' => 'none',
70
+ 'holder' => 'dropdown',
71
+ 'class' => 'flickr_type',
72
+ 'admin_label' => true,
73
+ 'dependency' => '',
74
+ 'weight' => '',
75
+ 'group' => '' ,
76
+ 'edit_field_class' => ''
77
+ ),
78
+ array(
79
+ 'heading' => __('Gallery ID', 'auxin-elements'),
80
+ 'description' => __('To show the photos of a particular gallery, you need to know its id. For example, the id of the gallery located in the URL: http://www.flickr.com/photos/miro-mannino/galleries/72157636382842016/ is: 72157636382842016', 'auxin-elements'),
81
+ 'param_name' => 'gallery_id',
82
+ 'type' => 'textfield',
83
+ 'value' => '',
84
+ 'def_value' => '',
85
+ 'holder' => 'textfield',
86
+ 'class' => 'gallery_id',
87
+ 'admin_label' => false,
88
+ 'dependency' => array(
89
+ 'element' => 'flickr_type',
90
+ 'value' => 'galleries'
91
+ ),
92
+ 'weight' => '',
93
+ 'group' => '' ,
94
+ 'edit_field_class' => ''
95
+ ),
96
+ array(
97
+ 'heading' => __('Album ID', 'auxin-elements'),
98
+ 'description' => __('To show the photos of a particular photo set (also called "album"), you need to know its photoset_id. For example, the photoset_id of the photo set located in the URL: http://www.flickr.com/photos/miro-mannino/sets/72157629228993613/ is: 72157629228993613', 'auxin-elements'),
99
+ 'param_name' => 'photoset_id',
100
+ 'type' => 'textfield',
101
+ 'value' => '',
102
+ 'def_value' => '',
103
+ 'holder' => 'textfield',
104
+ 'class' => 'photoset_id',
105
+ 'admin_label' => false,
106
+ 'dependency' => array(
107
+ 'element' => 'flickr_type',
108
+ 'value' => 'album'
109
+ ),
110
+ 'weight' => '',
111
+ 'group' => '' ,
112
+ 'edit_field_class' => ''
113
+ ),
114
+ array(
115
+ 'heading' => __('Group pools', 'auxin-elements'),
116
+ 'description' => sprintf(__('Display photos of a particular group pool, you need to know the group id, that you can retrieve using %sidgettr%s.', 'auxin-elements'), '<a target="_blank" href="http://idgettr.com/">','</a>'),
117
+ 'param_name' => 'group_id',
118
+ 'type' => 'textfield',
119
+ 'value' => '',
120
+ 'def_value' => '',
121
+ 'holder' => 'textfield',
122
+ 'class' => 'group_id',
123
+ 'admin_label' => false,
124
+ 'dependency' => array(
125
+ 'element' => 'flickr_type',
126
+ 'value' => 'group'
127
+ ),
128
+ 'weight' => '',
129
+ 'group' => '' ,
130
+ 'edit_field_class' => ''
131
+ ),
132
+ array(
133
+ 'heading' => __('Tags', 'auxin-elements'),
134
+ 'description' => __('Display photos that have some particular tags, Seprate words with , for example: cat, square, nikon', 'auxin-elements'),
135
+ 'param_name' => 'tags',
136
+ 'type' => 'textfield',
137
+ 'value' => '',
138
+ 'def_value' => '',
139
+ 'holder' => 'textfield',
140
+ 'class' => 'tags',
141
+ 'admin_label' => false,
142
+ 'dependency' => array(
143
+ 'element' => 'flickr_type',
144
+ 'value' => 'tags'
145
+ ),
146
+ 'weight' => '',
147
+ 'group' => '' ,
148
+ 'edit_field_class' => ''
149
+ ),
150
+ array(
151
+ 'heading' => __('Lightbox','auxin-elements'),
152
+ 'description' => __('In case of using Colorbox or Swipebox, you need to enable it on Flickr Justified Gallery plugin settings.','auxin-elements'),
153
+ 'param_name' => 'lightbox',
154
+ 'type' => 'dropdown',
155
+ 'value' => array(
156
+ 'none' => __('None' , 'auxin-elements'),
157
+ 'colorbox' => __('Colorbox', 'auxin-elements'),
158
+ 'swipebox' => __('Swipebox', 'auxin-elements'),
159
+ ),
160
+ 'def_value' => 'none',
161
+ 'holder' => 'dropdown',
162
+ 'class' => 'lightbox',
163
+ 'admin_label' => true,
164
+ 'dependency' => '',
165
+ 'weight' => '',
166
+ 'group' => '' ,
167
+ 'edit_field_class' => ''
168
+ ),
169
+ array(
170
+ 'heading' => __('Images height', 'auxin-elements'),
171
+ 'description' => __('You can use the this option to set images height in px.', 'auxin-elements'),
172
+ 'param_name' => 'images_height',
173
+ 'type' => 'textfield',
174
+ 'value' => '',
175
+ 'def_value' => '',
176
+ 'holder' => 'textfield',
177
+ 'class' => 'images_height',
178
+ 'admin_label' => false,
179
+ 'dependency' => '',
180
+ 'weight' => '',
181
+ 'group' => '' ,
182
+ 'edit_field_class' => ''
183
+ ),
184
+ array(
185
+ 'heading' => __('Max number of photos','auxin-elements'),
186
+ 'description' => __('Maximum number of photos. Please note if pagination option is activaited then this options is used as maximum number of photos per page.', 'auxin-elements'),
187
+ 'param_name' => 'max_num_photos',
188
+ 'type' => 'textfield',
189
+ 'value' => '',
190
+ 'def_value' => '',
191
+ 'holder' => 'textfield',
192
+ 'class' => 'max_num_photos',
193
+ 'admin_label' => false,
194
+ 'dependency' => '',
195
+ 'weight' => '',
196
+ 'group' => '' ,
197
+ 'edit_field_class' => ''
198
+ ),
199
+ array(
200
+ 'heading' => __('Pagination','auxin-elements'),
201
+ 'description' => '',
202
+ 'param_name' => 'pagination',
203
+ 'type' => 'dropdown',
204
+ 'value' => array(
205
+ 'none' => __('None' , 'auxin-elements'),
206
+ 'prevnext' => __('Previous and Next', 'auxin-elements'),
207
+ 'numbers' => __('Page Numbers', 'auxin-elements'),
208
+ ),
209
+ 'def_value' => 'none',
210
+ 'holder' => 'dropdown',
211
+ 'class' => 'pagination',
212
+ 'admin_label' => true,
213
+ 'dependency' => '',
214
+ 'weight' => '',
215
+ 'group' => '' ,
216
+ 'edit_field_class' => ''
217
+ ),
218
+ array(
219
+ 'heading' => __('Fixed height', 'auxin-elements'),
220
+ 'description' => __('Each row has the same height, but the images will be cut more.', 'auxin-elements'),
221
+ 'param_name' => 'fixed_height',
222
+ 'type' => 'aux_switch',
223
+ 'value' => '0',
224
+ 'class' => 'fixed_height',
225
+ 'admin_label' => false,
226
+ 'dependency' => '',
227
+ 'weight' => '',
228
+ 'group' => '' ,
229
+ 'edit_field_class' => ''
230
+ ),
231
+ array(
232
+ 'heading' => __('Randomize images order', 'auxin-elements'),
233
+ 'description' => '',
234
+ 'param_name' => 'randomize',
235
+ 'type' => 'aux_switch',
236
+ 'value' => '0',
237
+ 'class' => 'randomize',
238
+ 'admin_label' => 0,
239
+ 'dependency' => '',
240
+ 'weight' => '',
241
+ 'group' => '' ,
242
+ 'edit_field_class' => ''
243
+ ),
244
+ array(
245
+ 'heading' => __('Margin between the images','auxin-elements'),
246
+ 'description' => __('Specifies the space between images.', 'auxin-elements'),
247
+ 'param_name' => 'margins',
248
+ 'type' => 'textfield',
249
+ 'value' => '',
250
+ 'def_value' => '',
251
+ 'holder' => 'textfield',
252
+ 'class' => 'margins',
253
+ 'admin_label' => false,
254
+ 'dependency' => '',
255
+ 'weight' => '',
256
+ 'group' => '' ,
257
+ 'edit_field_class' => ''
258
+ )
259
+ )
260
+ );
261
+
262
+ return $master_array;
263
+ }
264
+
265
+ add_filter( 'auxin_master_array_shortcodes', 'auxin_get_flickr_master_array', 10, 1 );
266
+
267
+ function auxin_widget_flickr_callback( $atts, $shortcode_content = null ){
268
+
269
+ $default_atts = array(
270
+ 'user_id' => '',
271
+ 'flickr_type' => 'photostream',
272
+ 'gallery_id' => '',
273
+ 'photoset_id' => '',
274
+ 'group_id' => '',
275
+ 'tags' => '',
276
+ 'max_num_photos' => '',
277
+ 'images_height' => '',
278
+ 'lightbox' => 'none',
279
+ 'pagination' => 'none',
280
+ 'margins' => '',
281
+ 'fixed_height' => false,
282
+ 'randomize' => false,
283
+ 'custom_el_id' => '',
284
+ 'base_class' => 'aux-widget-flickr'
285
+ );
286
+
287
+ $result = auxin_get_widget_scafold( $atts, $default_atts, $shortcode_content );
288
+ extract( $result['parsed_atts'] );
289
+
290
+ $shortcode_name = "";
291
+ $justify_shortcode = "";
292
+
293
+ ob_start();
294
+
295
+
296
+ switch ($flickr_type) {
297
+ case 'photostream':
298
+ $shortcode_name = "flickr_photostream";
299
+ break;
300
+ case 'galleries':
301
+ $shortcode_name = 'flickr_gallery id="' . $gallery_id . '"';
302
+ break;
303
+ case 'album':
304
+ $shortcode_name = 'flickr_set id="' . $photoset_id . '"';
305
+ break;
306
+ case 'group':
307
+ $shortcode_name = 'flickr_group id="' . $group_id . '"';
308
+ break;
309
+ case 'tags':
310
+ $shortcode_name = 'flickr_tags tags="' . $tags . '"';
311
+ break;
312
+ }
313
+
314
+ if( ! empty( $user_id ) ) {
315
+ $user_id = 'user_id="' . $user_id . '"';
316
+ }
317
+
318
+ if( ! empty( $pagination ) ) {
319
+ $pagination = 'pagination="' . $pagination . '"';
320
+ }
321
+
322
+ if( ! empty( $max_num_photos ) ) {
323
+ $max_num_photos = 'max_num_photos="' . $max_num_photos . '"';
324
+ }
325
+
326
+ if( ! empty( $images_height ) ) {
327
+ $images_height = 'images_height="' . $images_height . '"';
328
+ }
329
+
330
+
331
+ if( ! empty( $lightbox ) ) {
332
+ $lightbox = 'lightbox="' . $lightbox . '"';
333
+ }
334
+
335
+ if( ! empty( $margins ) ) {
336
+ $margins = 'margins="' . $margins . '"';
337
+ }
338
+
339
+ if( empty( $fixed_height ) ){
340
+ $fixed_height = 0;
341
+ } else {
342
+ $fixed_height = 1;
343
+ }
344
+ $fixed_height = 'fixed_height="' . $fixed_height .'"';
345
+
346
+ if( empty( $randomize ) ){
347
+ $randomize = 0;
348
+ } else {
349
+ $randomize = 1;
350
+ }
351
+ $randomize = 'randomize="' . $randomize .'"';
352
+
353
+ $justify_shortcode = '[' . $shortcode_name . ' ' . $user_id . ' ' . $images_height . ' ' . $margins . ' ' . $fixed_height . ' ' . $max_num_photos . ' ' . $randomize . ' ' . $lightbox . ' ' . $pagination . ']';
354
+
355
+ echo do_shortcode( $justify_shortcode );
356
+
357
+ return ob_get_clean();
358
+
359
+ }
360
+
includes/elements/gallery.php CHANGED
@@ -254,7 +254,7 @@ function auxin_get_gallery_master_array( $master_array ) {
254
  'edit_field_class' => ''
255
  ),
256
  array(
257
- 'heading' => __('Extra CSS class','auxin-elements'),
258
  'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'auxin-elements'),
259
  'param_name' => 'extra_classes',
260
  'type' => 'textfield',
254
  'edit_field_class' => ''
255
  ),
256
  array(
257
+ 'heading' => __('Extra class name','auxin-elements'),
258
  'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'auxin-elements'),
259
  'param_name' => 'extra_classes',
260
  'type' => 'textfield',
includes/elements/gmap.php CHANGED
@@ -94,7 +94,7 @@ function auxin_get_gmap_master_array( $master_array ) {
94
  'edit_field_class' => ''
95
  ),
96
  array(
97
- 'heading' => __('Map Type','auxin-elements' ),
98
  'description' => '',
99
  'param_name' => 'type',
100
  'type' => 'dropdown',
@@ -109,7 +109,7 @@ function auxin_get_gmap_master_array( $master_array ) {
109
  'edit_field_class' => ''
110
  ),
111
  array(
112
- 'heading' => __('Map Style','auxin-elements' ),
113
  'description' => __('This feild allow you to customize the presentation of the standard Google base maps. You can find many preset styles in ', 'auxin-elements' ) .
114
  '<a href="https://snazzymaps.com/" target="_blank">' . __('this website.', 'auxin-elements' ) . '</a>' ,
115
  'param_name' => 'style',
@@ -125,7 +125,7 @@ function auxin_get_gmap_master_array( $master_array ) {
125
  )
126
  ),
127
  array(
128
- 'heading' => __('Marker Info','auxin-elements' ),
129
  'description' => __('Marker popup text, leave it empty if you don\'t need it.', 'auxin-elements' ),
130
  'param_name' => 'marker_info',
131
  'type' => 'textfield',
94
  'edit_field_class' => ''
95
  ),
96
  array(
97
+ 'heading' => __('Map type','auxin-elements' ),
98
  'description' => '',
99
  'param_name' => 'type',
100
  'type' => 'dropdown',
109
  'edit_field_class' => ''
110
  ),
111
  array(
112
+ 'heading' => __('Map style','auxin-elements' ),
113
  'description' => __('This feild allow you to customize the presentation of the standard Google base maps. You can find many preset styles in ', 'auxin-elements' ) .
114
  '<a href="https://snazzymaps.com/" target="_blank">' . __('this website.', 'auxin-elements' ) . '</a>' ,
115
  'param_name' => 'style',
125
  )
126
  ),
127
  array(
128
+ 'heading' => __('Marker info','auxin-elements' ),
129
  'description' => __('Marker popup text, leave it empty if you don\'t need it.', 'auxin-elements' ),
130
  'param_name' => 'marker_info',
131
  'type' => 'textfield',
includes/elements/highlight.php CHANGED
@@ -39,13 +39,13 @@ function auxin_get_highlight_master_array( $master_array ) {
39
  'as_child' => '',
40
  'params' => array(
41
  array(
 
 
42
  'param_name' => 'style',
43
  'type' => 'aux_visual_select',
44
  'std' => "aux-highlight-red",
45
  'holder' => 'dropdown',
46
  'class' => 'style',
47
- 'heading' => __('Divider Style','auxin-elements' ),
48
- 'description' => __('The style of divider','auxin-elements' ),
49
  'admin_label' => true,
50
  'dependency' => '',
51
  'weight' => '',
@@ -75,14 +75,14 @@ function auxin_get_highlight_master_array( $master_array ) {
75
  )
76
  ),
77
  array(
 
 
78
  'param_name' => 'content',
79
  'type' => 'textarea_html',
80
  'value' => '',
81
  'def_value' => '',
82
  'holder' => 'div',
83
  'class' => 'content',
84
- 'heading' => __('Content','auxin-elements' ),
85
- 'description' => __('Enter the text to be highlighted.', 'auxin-elements' ),
86
  'admin_label' => true,
87
  'dependency' => '',
88
  'weight' => '',
@@ -91,14 +91,14 @@ function auxin_get_highlight_master_array( $master_array ) {
91
  ),
92
 
93
  array(
 
 
94
  'param_name' => 'extra_classes',
95
  'type' => 'textfield',
96
  'value' => '',
97
  'def_value' => '',
98
  'holder' => 'textfield',
99
  'class' => 'extra_classes',
100
- 'heading' => __('Extra class name','auxin-elements' ),
101
- 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'auxin-elements' ),
102
  'admin_label' => true,
103
  'dependency' => '',
104
  'weight' => '',
39
  'as_child' => '',
40
  'params' => array(
41
  array(
42
+ 'heading' => __('Divider style','auxin-elements' ),
43
+ 'description' => __('The style of divider.','auxin-elements' ),
44
  'param_name' => 'style',
45
  'type' => 'aux_visual_select',
46
  'std' => "aux-highlight-red",
47
  'holder' => 'dropdown',
48
  'class' => 'style',
 
 
49
  'admin_label' => true,
50
  'dependency' => '',
51
  'weight' => '',
75
  )
76
  ),
77
  array(
78
+ 'heading' => __('Content','auxin-elements' ),
79
+ 'description' => __('Enter the text to be highlighted.', 'auxin-elements' ),
80
  'param_name' => 'content',
81
  'type' => 'textarea_html',
82
  'value' => '',
83
  'def_value' => '',
84
  'holder' => 'div',
85
  'class' => 'content',
 
 
86
  'admin_label' => true,
87
  'dependency' => '',
88
  'weight' => '',
91
  ),
92
 
93
  array(
94
+ 'heading' => __('Extra class name','auxin-elements' ),
95
+ 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'auxin-elements' ),
96
  'param_name' => 'extra_classes',
97
  'type' => 'textfield',
98
  'value' => '',
99
  'def_value' => '',
100
  'holder' => 'textfield',
101
  'class' => 'extra_classes',
 
 
102
  'admin_label' => true,
103
  'dependency' => '',
104
  'weight' => '',
includes/elements/image.php CHANGED
@@ -69,7 +69,7 @@ function auxin_get_image_master_array( $master_array ) {
69
  'edit_field_class' => ''
70
  ),
71
  array(
72
- 'heading' => __('Image Hover','auxin-elements' ),
73
  'description' => '',
74
  'param_name' => 'attach_id_hover',
75
  'type' => 'attach_image',
@@ -133,7 +133,7 @@ function auxin_get_image_master_array( $master_array ) {
133
  'edit_field_class' => ''
134
  ),
135
  array(
136
- 'heading' => __('Iconic Button','auxin-elements' ),
137
  'description' => '',
138
  'param_name' => 'icon',
139
  'type' => 'dropdown',
69
  'edit_field_class' => ''
70
  ),
71
  array(
72
+ 'heading' => __('Image hover','auxin-elements' ),
73
  'description' => '',
74
  'param_name' => 'attach_id_hover',
75
  'type' => 'attach_image',
133
  'edit_field_class' => ''
134
  ),
135
  array(
136
+ 'heading' => __('Iconic button','auxin-elements' ),
137
  'description' => '',
138
  'param_name' => 'icon',
139
  'type' => 'dropdown',
includes/elements/instagram-feed.php CHANGED
@@ -39,13 +39,13 @@ function auxin_get_instagram_master_array( $master_array ) {
39
  'as_child' => '',
40
  'params' => array(
41
  array(
 
 
42
  'param_name' => 'title',
43
  'type' => 'textfield',
44
  'value' => '',
45
  'holder' => 'textfield',
46
  'class' => 'title',
47
- 'heading' => __('Title','auxin-elements' ),
48
- 'description' => __('A title for instagram element', 'auxin-elements' ),
49
  'admin_label' => true,
50
  'dependency' => '',
51
  'weight' => '',
@@ -53,18 +53,18 @@ function auxin_get_instagram_master_array( $master_array ) {
53
  'edit_field_class' => ''
54
  ),
55
  array(
 
 
 
 
 
 
56
  'param_name' => 'id',
57
  'type' => 'textfield',
58
  'value' => '',
59
  'def_value' => '',
60
  'holder' => 'textfield',
61
  'class' => 'user_id',
62
- 'heading' => __('Instagram User ID','auxin-elements' ),
63
- 'description' => sprintf(
64
- __('Instagram User ID. Separate multiple IDs by commas. You can find the User ID with %sthis tool%s.', 'auxin-elements' ),
65
- '<a href="https://smashballoon.com/instagram-feed/find-instagram-user-id/" target="_blank">',
66
- '</a>'
67
- ),
68
  'admin_label' => true,
69
  'dependency' => '',
70
  'weight' => '',
@@ -72,14 +72,14 @@ function auxin_get_instagram_master_array( $master_array ) {
72
  'edit_field_class' => ''
73
  ),
74
  array(
 
 
75
  'param_name' => 'num',
76
  'type' => 'textfield',
77
  'value' => '',
78
  'def_value' => '',
79
  'holder' => 'textfield',
80
  'class' => 'num',
81
- 'heading' => __('Number of photo','auxin-elements' ),
82
- 'description' => __('Number of photos to display initially. Maximum is 33.','auxin-elements' ),
83
  'admin_label' => true,
84
  'dependency' => '',
85
  'weight' => '',
@@ -87,6 +87,8 @@ function auxin_get_instagram_master_array( $master_array ) {
87
  'edit_field_class' => ''
88
  ),
89
  array(
 
 
90
  'param_name' => 'imageres',
91
  'type' => 'dropdown',
92
  'def_value' => 'medium',
@@ -98,8 +100,6 @@ function auxin_get_instagram_master_array( $master_array ) {
98
  ),
99
  'holder' => 'dropdown',
100
  'class' => 'border',
101
- 'heading' => __('Resolution/size of the photos. ','auxin-elements' ),
102
- 'description' => '',
103
  'admin_label' => true,
104
  'dependency' => '',
105
  'weight' => '',
@@ -107,14 +107,14 @@ function auxin_get_instagram_master_array( $master_array ) {
107
  'edit_field_class' => ''
108
  ),
109
  array(
 
 
110
  'param_name' => 'cols',
111
  'type' => 'textfield',
112
  'value' => '',
113
  'def_value' => '',
114
  'holder' => 'textfield',
115
  'class' => 'columns',
116
- 'heading' => __('Columns','auxin-elements' ),
117
- 'description' => __('Number of columns in the feed. 1 - 10.','auxin-elements' ),
118
  'admin_label' => true,
119
  'dependency' => '',
120
  'weight' => '',
@@ -122,14 +122,14 @@ function auxin_get_instagram_master_array( $master_array ) {
122
  'edit_field_class' => ''
123
  ),
124
  array(
 
 
125
  'param_name' => 'imagepadding',
126
  'type' => 'textfield',
127
  'value' => '0',
128
  'def_value' => '0',
129
  'holder' => 'textfield',
130
  'class' => 'height',
131
- 'heading' => __('Spacing around the photos','auxin-elements' ),
132
- 'description' => '',
133
  'admin_label' => true,
134
  'dependency' => '',
135
  'weight' => '',
@@ -137,6 +137,8 @@ function auxin_get_instagram_master_array( $master_array ) {
137
  'edit_field_class' => ''
138
  ),
139
  array(
 
 
140
  'param_name' => 'imagepaddingunit',
141
  'type' => 'dropdown',
142
  'def_value' => 'px',
@@ -146,8 +148,6 @@ function auxin_get_instagram_master_array( $master_array ) {
146
  ),
147
  'holder' => 'dropdown',
148
  'class' => 'border',
149
- 'heading' => __('Unit of the spacing.','auxin-elements' ),
150
- 'description' => '',
151
  'admin_label' => true,
152
  'dependency' => '',
153
  'weight' => '',
@@ -188,14 +188,14 @@ function auxin_get_instagram_master_array( $master_array ) {
188
  // 'edit_field_class' => ''
189
  // ),
190
  array(
 
 
191
  'param_name' => 'height',
192
  'type' => 'textfield',
193
  'value' => '',
194
  'def_value' => '',
195
  'holder' => 'textfield',
196
  'class' => 'height',
197
- 'heading' => __('Height','auxin-elements' ),
198
- 'description' => __('The height of the feed','auxin-elements' ),
199
  'admin_label' => true,
200
  'dependency' => '',
201
  'weight' => '',
@@ -203,6 +203,8 @@ function auxin_get_instagram_master_array( $master_array ) {
203
  'edit_field_class' => ''
204
  ),
205
  array(
 
 
206
  'param_name' => 'heightunit',
207
  'type' => 'dropdown',
208
  'def_value' => 'px',
@@ -212,8 +214,6 @@ function auxin_get_instagram_master_array( $master_array ) {
212
  ),
213
  'holder' => 'dropdown',
214
  'class' => 'border',
215
- 'heading' => __('Unit of the height.','auxin-elements' ),
216
- 'description' => '',
217
  'admin_label' => true,
218
  'dependency' => '',
219
  'weight' => '',
@@ -221,14 +221,14 @@ function auxin_get_instagram_master_array( $master_array ) {
221
  'edit_field_class' => ''
222
  ),
223
  array(
 
 
224
  'param_name' => 'background',
225
  'type' => 'color',
226
  'value' => '',
227
  'def_value' => '',
228
  'holder' => 'textfield',
229
  'class' => 'background-color',
230
- 'heading' => __('Background color','auxin-elements' ),
231
- 'description' => '',
232
  'admin_label' => true,
233
  'dependency' => '',
234
  'weight' => '',
@@ -236,14 +236,14 @@ function auxin_get_instagram_master_array( $master_array ) {
236
  'edit_field_class' => ''
237
  ),
238
  array(
 
 
239
  'param_name' => 'showheader',
240
  'type' => 'aux_switch',
241
  'def_value' => '',
242
  'value' => '0',
243
  'holder' => 'dropdown',
244
  'class' => 'showheader',
245
- 'heading' => __('Show Header','auxin-elements' ),
246
- 'description' => __('Whether to show the feed header.', 'auxin-elements' ),
247
  'admin_label' => true,
248
  'dependency' => '',
249
  'weight' => '',
@@ -251,14 +251,14 @@ function auxin_get_instagram_master_array( $master_array ) {
251
  'edit_field_class' => ''
252
  ),
253
  array(
 
 
254
  'param_name' => 'showfollow',
255
  'type' => 'aux_switch',
256
  'def_value' => '',
257
  'value' => '0',
258
  'holder' => 'dropdown',
259
  'class' => 'showfollow',
260
- 'heading' => __('Show follow button','auxin-elements' ),
261
- 'description' => __('Whether to show the Follow on Instagram button.', 'auxin-elements' ),
262
  'admin_label' => true,
263
  'dependency' => '',
264
  'weight' => '',
@@ -266,14 +266,14 @@ function auxin_get_instagram_master_array( $master_array ) {
266
  'edit_field_class' => ''
267
  ),
268
  array(
 
 
269
  'param_name' => 'showbutton',
270
  'type' => 'aux_switch',
271
  'def_value' => '',
272
  'value' => '0',
273
  'holder' => 'dropdown',
274
  'class' => 'showbutton',
275
- 'heading' => __('Show Load More button','auxin-elements' ),
276
- 'description' => __(' Whether to show the Load More button.', 'auxin-elements' ),
277
  'admin_label' => true,
278
  'dependency' => '',
279
  'weight' => '',
@@ -281,14 +281,14 @@ function auxin_get_instagram_master_array( $master_array ) {
281
  'edit_field_class' => ''
282
  ),
283
  array(
 
 
284
  'param_name' => 'extra_classes',
285
  'type' => 'textfield',
286
  'value' => '',
287
  'def_value' => '',
288
  'holder' => 'textfield',
289
  'class' => 'extra_classes',
290
- 'heading' => __('Extra class name','auxin-elements' ),
291
- 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'auxin-elements' ),
292
  'admin_label' => true,
293
  'dependency' => '',
294
  'weight' => '',
39
  'as_child' => '',
40
  'params' => array(
41
  array(
42
+ 'heading' => __('Title','auxin-elements' ),
43
+ 'description' => __('A title for instagram element', 'auxin-elements' ),
44
  'param_name' => 'title',
45
  'type' => 'textfield',
46
  'value' => '',
47
  'holder' => 'textfield',
48
  'class' => 'title',
 
 
49
  'admin_label' => true,
50
  'dependency' => '',
51
  'weight' => '',
53
  'edit_field_class' => ''
54
  ),
55
  array(
56
+ 'heading' => __('Instagram user ID','auxin-elements' ),
57
+ 'description' => sprintf(
58
+ __('Instagram User ID. Separate multiple IDs by commas. You can find the User ID with %sthis tool%s.', 'auxin-elements' ),
59
+ '<a href="https://smashballoon.com/instagram-feed/find-instagram-user-id/" target="_blank">',
60
+ '</a>'
61
+ ),
62
  'param_name' => 'id',
63
  'type' => 'textfield',
64
  'value' => '',
65
  'def_value' => '',
66
  'holder' => 'textfield',
67
  'class' => 'user_id',
 
 
 
 
 
 
68
  'admin_label' => true,
69
  'dependency' => '',
70
  'weight' => '',
72
  'edit_field_class' => ''
73
  ),
74
  array(
75
+ 'heading' => __('Number of photo','auxin-elements' ),
76
+ 'description' => __('Number of photos to display initially. Maximum is 33.','auxin-elements' ),
77
  'param_name' => 'num',
78
  'type' => 'textfield',
79
  'value' => '',
80
  'def_value' => '',
81
  'holder' => 'textfield',
82
  'class' => 'num',
 
 
83
  'admin_label' => true,
84
  'dependency' => '',
85
  'weight' => '',
87
  'edit_field_class' => ''
88
  ),
89
  array(
90
+ 'heading' => __('Resolution/size of the photos. ','auxin-elements' ),
91
+ 'description' => '',
92
  'param_name' => 'imageres',
93
  'type' => 'dropdown',
94
  'def_value' => 'medium',
100
  ),
101
  'holder' => 'dropdown',
102
  'class' => 'border',
 
 
103
  'admin_label' => true,
104
  'dependency' => '',
105
  'weight' => '',
107
  'edit_field_class' => ''
108
  ),
109
  array(
110
+ 'heading' => __('Columns','auxin-elements' ),
111
+ 'description' => __('Number of columns in the feed. 1 - 10.','auxin-elements' ),
112
  'param_name' => 'cols',
113
  'type' => 'textfield',
114
  'value' => '',
115
  'def_value' => '',
116
  'holder' => 'textfield',
117
  'class' => 'columns',
 
 
118
  'admin_label' => true,
119
  'dependency' => '',
120
  'weight' => '',
122
  'edit_field_class' => ''
123
  ),
124
  array(
125
+ 'heading' => __('Spacing around the photos','auxin-elements' ),
126
+ 'description' => '',
127
  'param_name' => 'imagepadding',
128
  'type' => 'textfield',
129
  'value' => '0',
130
  'def_value' => '0',
131
  'holder' => 'textfield',
132
  'class' => 'height',