Accordion - Version 1.1

Version Description

  • 17/11/2014 add confirmation before delete accordion content.
    • 17/11/2014 Update help page.
    • 17/11/2014 minor js error fixed.
Download this release

Release Info

Developer paratheme
Plugin Icon 128x128 Accordion
Version 1.1
Comparing to
See all releases

Code changes from version 1.0 to 1.1

ParaAdmin/cross-mark.png ADDED
Binary file
ParaAdmin/css/ParaAdmin.css ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "utf-8";
2
+ /* CSS Document */
3
+
4
+
5
+ /*Admin CSS*/
6
+
7
+ .para-settings {
8
+ margin: 20px 0;
9
+ }
10
+
11
+
12
+ .para-settings .option-box > textarea,
13
+ .para-settings .option-box > p
14
+ {
15
+ width:100%;
16
+ }
17
+
18
+ .para-settings .option-box > input {
19
+ width: 50%;
20
+ }
21
+
22
+
23
+ .para-settings h2 {
24
+ font-size: 20px;
25
+ font-weight: bold;
26
+ margin: 25px 0;
27
+ }
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+ .para-settings .option-box {
37
+ border-left: 3px solid rgb(255, 255, 255);
38
+ margin: 10px 0;
39
+ padding: 10px;
40
+ }
41
+
42
+
43
+
44
+ .para-settings .option-box:hover {
45
+ background: #e6e6e6;
46
+ border-left: 3px solid #11b063;
47
+ }
48
+
49
+
50
+ .para-settings .option-box .option-title {
51
+ font-size: 16px;
52
+ font-weight: bold;
53
+ }
54
+
55
+ .para-settings .option-box .option-info {
56
+ color: rgb(73, 147, 14);
57
+ font-size: 13px;
58
+ font-weight: normal;
59
+ margin: 10px 0;
60
+ }
61
+
62
+ .para-settings ul.tab-nav {
63
+ clear: both;
64
+ margin: 0;
65
+ padding: 0;
66
+ }
67
+
68
+ .para-settings ul.tab-nav li {
69
+ background: none repeat scroll 0 0 rgb(230, 230, 230);
70
+ border-left: 1px solid rgb(199, 199, 199);
71
+ cursor: pointer;
72
+ display: inline-block;
73
+ float: left;
74
+ margin: 0;
75
+ padding: 8px 15px;
76
+ }
77
+
78
+ .para-settings ul.tab-nav li.active{
79
+ background:#d8d6d6;
80
+ border-top:2px solid #11b063;
81
+ padding-top:6px;
82
+ font-weight: bold;
83
+ }
84
+ .para-settings ul.box {
85
+ clear: both;
86
+ margin: 0;
87
+ padding: 0;
88
+ }
89
+
90
+ .para-settings ul.box li.tab-box {
91
+ border: 1px solid rgb(153, 153, 153);
92
+ display: none;
93
+ margin: 0;
94
+ width: 100%;
95
+ }
96
+
97
+
98
+ .para-settings .hidden-mob {
99
+
100
+ display: none;
101
+
102
+ }
103
+
104
+
105
+ /* data-table */
106
+
107
+ .para-settings .data-table {
108
+ border: 1px solid rgb(199, 199, 199);
109
+ border-collapse: collapse;
110
+ }
111
+
112
+ .para-settings .data-table tr {
113
+ border-bottom: 1px solid rgb(199, 199, 199);
114
+ }
115
+
116
+
117
+ .para-settings .data-table th {
118
+ border-bottom: 2px solid rgb(253, 197, 28);
119
+ border-collapse: collapse;
120
+ padding: 10px 20px 10px 8px;
121
+ }
122
+
123
+
124
+ .para-settings .data-table td {
125
+ border-bottom: 1px solid rgb(199, 199, 199);
126
+ border-collapse: collapse;
127
+ padding: 10px 20px 10px 8px;
128
+ }
129
+
130
+ .para-settings .button {
131
+ margin: 20px 0;
132
+ }
133
+
134
+ .para-settings .success {
135
+ background: none repeat scroll 0 0 rgb(105, 221, 157);
136
+ padding: 5px 10px;
137
+ display:none;
138
+ }
139
+
140
+
141
+ /*para-form-table*/
142
+
143
+
144
+ .para-settings .para-form-table {
145
+
146
+ border-collapse: collapse;
147
+ }
148
+
149
+ .para-settings .para-form-table tr {
150
+
151
+ }
152
+
153
+
154
+ .para-settings .para-form-table th {
155
+ border-collapse: collapse;
156
+ padding: 10px 20px 10px 8px;
157
+ text-align: left;
158
+ vertical-align: top;
159
+ width: 200px;
160
+ }
161
+
162
+ .para-settings .para-form-table td {
163
+
164
+ border-collapse: collapse;
165
+ padding: 10px 20px 10px 8px;
166
+ }
167
+
168
+ .para-settings pre {
169
+
170
+ }
171
+
172
+
173
+ @media all and (max-width: 799px) {
174
+
175
+
176
+
177
+ .para-settings ul.tab-nav li {
178
+ display: block;
179
+ float: none;
180
+
181
+ }
182
+
183
+ .para-settings ul.tab-nav li.active{
184
+ font-weight: bold;
185
+ }
186
+
187
+
188
+
189
+ }
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
ParaAdmin/css/ParaIcons.css ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "utf-8";
2
+ /* CSS Document */
3
+
4
+
5
+ /*Admin CSS*/
6
+
7
+ .para-icons {
8
+ padding-left: 25px;
9
+
10
+ }
11
+
12
+ .para-icons.globe {
13
+ background: url("icons/globe.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
14
+
15
+ }
16
+
17
+ .para-icons.os-windows {
18
+ background: url("icons/os-windows.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
19
+
20
+ }
21
+
22
+
23
+ .para-icons.device-monitor {
24
+ background: url("icons/device-monitor.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
25
+
26
+ }
27
+
28
+ .para-icons.browser-firefox {
29
+ background: url("icons/browser-firefox.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
30
+
31
+ }
32
+
33
+
34
+ .para-icons.keywords {
35
+ background: url("icons/keywords.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
36
+
37
+ }
38
+
39
+ .para-icons.map-pin {
40
+ background: url("icons/map-pin.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
41
+
42
+ }
43
+
44
+
45
+
46
+ .para-icons.share-hub {
47
+ background: url("icons/share-hub.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
48
+
49
+ }
50
+
51
+ .para-icons.page {
52
+ background: url("icons/page.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
53
+
54
+ }
55
+
56
+ .para-icons.user-group {
57
+ background: url("icons/user-group.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
58
+
59
+ }
60
+
61
+ .para-icons.user-crowd {
62
+ background: url("icons/user-crowd.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
63
+
64
+ }
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
ParaAdmin/css/icons/browser-firefox.png ADDED
Binary file
ParaAdmin/css/icons/device-monitor.png ADDED
Binary file
ParaAdmin/css/icons/globe.png ADDED
Binary file
ParaAdmin/css/icons/keywords.png ADDED
Binary file
ParaAdmin/css/icons/map-pin.png ADDED
Binary file
ParaAdmin/css/icons/os-apple.png ADDED
Binary file
ParaAdmin/css/icons/os-windows.png ADDED
Binary file
ParaAdmin/css/icons/page.png ADDED
Binary file
ParaAdmin/css/icons/share-hub.png ADDED
Binary file
ParaAdmin/css/icons/user-crowd.png ADDED
Binary file
ParaAdmin/css/icons/user-group.png ADDED
Binary file
ParaAdmin/js/ParaAdmin.js ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ jQuery(document).ready(function($)
3
+ {
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+ $(document).on('click', '.tab-nav li', function()
13
+ {
14
+ $(".active").removeClass("active");
15
+ $(this).addClass("active");
16
+
17
+ var nav = $(this).attr("nav");
18
+
19
+ $(".box li.tab-box").css("display","none");
20
+ $(".box"+nav).css("display","block");
21
+
22
+ })
23
+
24
+
25
+
26
+ });
27
+
28
+
29
+
30
+
31
+
32
+
33
+
ParaAdmin/tik-mark.png ADDED
Binary file
accordions-help.php CHANGED
@@ -1,115 +1,125 @@
1
  <div class="wrap">
2
- <?php echo "<h2>".__(accordions_plugin_name.' Help')."</h2>";?>
 
 
 
 
 
 
3
  <br />
4
 
5
-
6
-
7
-
8
- <h3>Have any issue ?</h3>
9
-
10
- <p>Feel free to Contact with any issue for this plugin, , Ask any question via forum <a href="<?php echo accordions_qa_url; ?>"><?php echo accordions_qa_url; ?></a> <strong style="color:#139b50;">(free)</strong>
11
 
12
 
13
- </p>
14
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  <?php
16
-
17
- $accordions_customer_type = get_option('accordions_customer_type');
18
- $accordions_version = get_option('accordions_version');
19
-
20
-
21
  ?>
22
- <?php
23
- if($accordions_customer_type=="free")
24
- {
25
- echo '<p>You are using <strong> '.$accordions_customer_type.' version '.$accordions_version.'</strong> of <strong>'.accordions_plugin_name.'</strong>, To get more feature you could try our premium version. ';
26
-
27
- echo '<a href="'.accordions_pro_url.'">'.accordions_pro_url.'</a></p>';
28
-
29
-
30
- }
31
- elseif($accordions_customer_type=="pro")
32
- {
33
-
34
- echo '<p>Thanks for using <strong> '.$accordions_customer_type.' version '.$accordions_version.'</strong> of <strong>'.accordions_plugin_name.'</strong> </p>';
35
-
36
-
37
- }
38
-
39
- ?>
40
-
41
 
42
-
43
-
44
- <?php
45
- if($accordions_customer_type=="free")
46
- {
47
  ?>
48
- <br />
49
- <b>Premium Version Features</b><br />
50
-
51
- <ul class="accordions-pro-features">
52
-
53
- <li>Fully responsive and mobile ready.</li>
54
- <li>Unlimited accordions anywhere.</li>
55
- <li>Use via short-code.</li>
56
- <li>Different Theme.</li>
57
- <li>Background Image for accordions area.</li>
58
- <li>Custom Active accordions background color.</li>
59
- <li>Custom default background color.</li>
60
- <li>Custom font color and size for accordions header.</li>
61
- <li>Custom font color and size for accordions content.</li>
62
- </ul>
63
-
64
-
65
-
66
- </p>
67
-
68
 
69
 
70
- <?php
71
- }
72
-
73
- ?>
74
-
75
- <br />
76
- <h3>Please share this plugin with your friends?</h3>
77
- <table>
78
- <tr>
79
- <td width="100px">
80
- <!-- Place this tag in your head or just before your close body tag. -->
81
- <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script>
82
-
83
- <!-- Place this tag where you want the +1 button to render. -->
84
- <div class="g-plusone" data-size="medium" data-href="<?php echo accordions_share_url; ?>"></div>
85
-
86
- </td>
87
- <td width="100px">
88
- <iframe src="//www.facebook.com/plugins/like.php?href=<?php echo accordions_share_url; ?>&amp;width=100&amp;layout=button_count&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=21&amp;appId=743541755673761" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe>
89
-
90
- </td>
91
- <td width="100px">
92
-
93
 
94
-
95
-
96
-
97
- <a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php echo accordions_share_url; ?>" data-text="<?php echo accordions_plugin_name; ?>">Tweet</a>
98
- <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
99
- </td>
100
-
101
- </tr>
102
-
103
- </table>
104
-
105
 
106
-
107
- </div>
108
- <style type="text/css">
109
- .accordions-pro-features{}
110
-
111
- .accordions-pro-features li {
112
- list-style: disc inside none;
113
- }
114
-
115
- </style>
1
  <div class="wrap">
2
+ <?php echo "<h2>".__(accordions_plugin_name.' Help')."</h2>";
3
+
4
+ $accordions_customer_type = get_option('accordions_customer_type');
5
+ $accordions_version = get_option('accordions_version');
6
+
7
+
8
+ ?>
9
  <br />
10
 
 
 
 
 
 
 
11
 
12
 
13
+ <div class="para-settings">
14
+ <ul class="tab-nav">
15
+ <li nav="1" class="nav1 active">Help & Upgrade</li>
16
+ </ul> <!-- tab-nav end -->
17
+
18
+ <ul class="box">
19
+
20
+ <li style="display: block;" class="box1 tab-box active">
21
+ <div class="option-box">
22
+ <p class="option-title">Need Help ?</p>
23
+ <p class="option-info">Feel free to contact with any issue for this plugin, Ask any question via forum <a href="<?php echo accordions_qa_url; ?>"><?php echo accordions_qa_url; ?></a> <strong style="color:#139b50;">(free)</strong><br />
24
+
25
+
26
+
27
+
28
+ <?php
29
+
30
+
31
+ if($accordions_customer_type=="free")
32
+ {
33
+
34
+ echo 'You are using <strong> '.$accordions_customer_type.' version '.$accordions_version.'</strong> of <strong>'.accordions_plugin_name.'</strong>, To get more feature you could try our premium version. ';
35
+
36
+ echo '<br /><a href="'.accordions_pro_url.'">'.accordions_pro_url.'</a>';
37
+
38
+ }
39
+ else
40
+ {
41
+
42
+ echo 'Thanks for using <strong> premium version '.$accordions_version.'</strong> of <strong>'.accordions_plugin_name.'</strong> ';
43
+
44
+
45
+ }
46
+
47
+ ?>
48
+
49
+
50
+
51
+
52
+
53
+ </p>
54
+
55
+
56
+
57
+ </div>
58
+
59
+
60
+ <div class="option-box">
61
+ <p class="option-title">Submit Reviews...</p>
62
+ <p class="option-info">We are working hard to build some awesome plugins for you and spend thousand hour for plugins. we wish your three(3) minute by submitting five star reviews at wordpress.org. if you have any issue please submit at forum.</p>
63
+ <img class="accordions-pro-pricing" src="<?php echo accordions_plugin_url."css/five-star.png";?>" /><br />
64
+ <a target="_blank" href="<?php echo accordions_wp_reviews; ?>">
65
+ <?php echo accordions_wp_reviews; ?>
66
+ </a>
67
+
68
+
69
+
70
+ </div>
71
+
72
+ <div class="option-box">
73
+ <p class="option-title">Please Share</p>
74
+ <p class="option-info">If you like this plugin please share with your social share network.</p>
75
+ <?php
76
+
77
+ echo accordions_share_plugin();
78
+ ?>
79
+ </div>
80
+
81
+ <!--
82
+
83
+ <div class="option-box">
84
+ <p class="option-title">Video Tutorial</p>
85
+ <p class="option-info">Please watch this video tutorial.</p>
86
+ <iframe width="640" height="480" src="<?php echo accordions_tutorial_video_url; ?>" frameborder="0" allowfullscreen></iframe>
87
+ </div>
88
+
89
+
90
+ -->
91
+
92
+
93
  <?php
94
+ if($accordions_customer_type=="free")
95
+ {
 
 
 
96
  ?>
97
+
98
+
99
+ <div class="option-box">
100
+ <p class="option-title">Comparison</p>
101
+ <p class="option-info">You could try our premium version for more features.</p>
102
+ <a target="_blank" href="<?php echo accordions_pro_url; ?>">
103
+ <img class="accordions-pro-pricing" src="<?php echo accordions_plugin_url."css/accordions-pro-pricing.png";?>" />
104
+ </a>
105
+ </div>
106
+ <?php
107
+ }
 
 
 
 
 
 
 
 
108
 
 
 
 
 
 
109
  ?>
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+ </li>
 
 
 
 
 
 
 
 
 
 
 
119
 
120
 
121
+
122
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
 
 
 
 
 
 
 
 
 
 
 
 
124
 
125
+ </div> <!-- wrap end -->
 
 
 
 
 
 
 
 
 
accordions.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: Accordions
4
- Plugin URI: http://paratheme.com/items/accordions-html-css3-responsive-accordions-for-wordpress/
5
  Description: Fully responsive and mobile ready accordion grid for wordpress.
6
- Version: 1.0
7
  Author: paratheme
8
  Author URI: http://paratheme.com
9
  License: GPLv2 or later
@@ -12,14 +12,15 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
13
  define('accordions_plugin_url', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );
14
  define('accordions_plugin_dir', plugin_dir_path( __FILE__ ) );
15
- define('accordions_wp_url', 'http://wordpress.org/plugins/timeline-ultimate' );
16
- define('accordions_pro_url', 'http://paratheme.com' );
 
17
  define('accordions_demo_url', 'http://paratheme.com' );
18
  define('accordions_conatct_url', 'http://paratheme.com/contact' );
19
  define('accordions_qa_url', 'http://paratheme.com/qa/' );
20
  define('accordions_plugin_name', 'Accordions' );
21
  define('accordions_share_url', 'https://wordpress.org/plugins/accordions/' );
22
-
23
 
24
  require_once( plugin_dir_path( __FILE__ ) . 'includes/accordions-meta.php');
25
  require_once( plugin_dir_path( __FILE__ ) . 'includes/accordions-functions.php');
@@ -30,6 +31,7 @@ require_once( plugin_dir_path( __FILE__ ) . 'themes/flat/index.php');
30
 
31
 
32
 
 
33
  function accordions_paratheme_init_scripts()
34
  {
35
 
@@ -46,10 +48,19 @@ function accordions_paratheme_init_scripts()
46
  wp_enqueue_script( 'accordions_color_picker', plugins_url('/js/color-picker.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
47
  wp_enqueue_script('jquery-accordion', plugins_url( '/js/responsive-accordion.js' , __FILE__ ) , array( 'jquery' ));
48
 
 
 
 
 
 
 
 
 
 
49
 
50
  // Style for themes
51
  wp_enqueue_style('accordions-style-flat', accordions_plugin_url.'themes/flat/style.css');
52
-
53
 
54
  }
55
  add_action("init","accordions_paratheme_init_scripts");
@@ -60,7 +71,7 @@ register_activation_hook(__FILE__, 'accordions_paratheme_activation');
60
 
61
  function accordions_paratheme_activation()
62
  {
63
- $accordions_version= "1.0";
64
  update_option('accordions_version', $accordions_version); //update plugin version.
65
 
66
  $accordions_customer_type= "free"; //customer_type "free"
@@ -86,6 +97,18 @@ function accordions_paratheme_display($atts, $content = null ) {
86
  {
87
  $accordions_paratheme_display.= accordions_themes_flat($post_id);
88
  }
 
 
 
 
 
 
 
 
 
 
 
 
89
 
90
  return $accordions_paratheme_display;
91
 
1
  <?php
2
  /*
3
  Plugin Name: Accordions
4
+ Plugin URI: http://paratheme.com/items/accordions-html-css3-responsive-accordion-grid-for-wordpress/
5
  Description: Fully responsive and mobile ready accordion grid for wordpress.
6
+ Version: 1.1
7
  Author: paratheme
8
  Author URI: http://paratheme.com
9
  License: GPLv2 or later
12
 
13
  define('accordions_plugin_url', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );
14
  define('accordions_plugin_dir', plugin_dir_path( __FILE__ ) );
15
+ define('accordions_wp_url', 'https://wordpress.org/plugins/accordions/' );
16
+ define('accordions_wp_reviews', 'http://wordpress.org/support/view/plugin-reviews/accordions' );
17
+ define('accordions_pro_url','http://paratheme.com/items/accordions-html-css3-responsive-accordion-grid-for-wordpress/' );
18
  define('accordions_demo_url', 'http://paratheme.com' );
19
  define('accordions_conatct_url', 'http://paratheme.com/contact' );
20
  define('accordions_qa_url', 'http://paratheme.com/qa/' );
21
  define('accordions_plugin_name', 'Accordions' );
22
  define('accordions_share_url', 'https://wordpress.org/plugins/accordions/' );
23
+ define('accordions_tutorial_video_url', '//www.youtube.com/embed/8OiNCDavSQg?rel=0' );
24
 
25
  require_once( plugin_dir_path( __FILE__ ) . 'includes/accordions-meta.php');
26
  require_once( plugin_dir_path( __FILE__ ) . 'includes/accordions-functions.php');
31
 
32
 
33
 
34
+
35
  function accordions_paratheme_init_scripts()
36
  {
37
 
48
  wp_enqueue_script( 'accordions_color_picker', plugins_url('/js/color-picker.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
49
  wp_enqueue_script('jquery-accordion', plugins_url( '/js/responsive-accordion.js' , __FILE__ ) , array( 'jquery' ));
50
 
51
+
52
+ //ParaAdmin
53
+ wp_enqueue_style('ParaAdmin', accordions_plugin_url.'ParaAdmin/css/ParaAdmin.css');
54
+ wp_enqueue_style('ParaIcons', accordions_plugin_url.'ParaAdmin/css/ParaIcons.css');
55
+ wp_enqueue_script('ParaAdmin', plugins_url( 'ParaAdmin/js/ParaAdmin.js' , __FILE__ ) , array( 'jquery' ));
56
+
57
+
58
+
59
+
60
 
61
  // Style for themes
62
  wp_enqueue_style('accordions-style-flat', accordions_plugin_url.'themes/flat/style.css');
63
+
64
 
65
  }
66
  add_action("init","accordions_paratheme_init_scripts");
71
 
72
  function accordions_paratheme_activation()
73
  {
74
+ $accordions_version= "1.1";
75
  update_option('accordions_version', $accordions_version); //update plugin version.
76
 
77
  $accordions_customer_type= "free"; //customer_type "free"
97
  {
98
  $accordions_paratheme_display.= accordions_themes_flat($post_id);
99
  }
100
+ elseif($accordions_themes== "rounded")
101
+ {
102
+ $accordions_paratheme_display.= accordions_themes_rounded($post_id);
103
+ }
104
+ elseif($accordions_themes== "rounded_top")
105
+ {
106
+ $accordions_paratheme_display.= accordions_themes_rounded_top($post_id);
107
+ }
108
+
109
+
110
+
111
+
112
 
113
  return $accordions_paratheme_display;
114
 
css/accordions-pro-pricing.png ADDED
Binary file
css/five-star.png ADDED
Binary file
css/style.css CHANGED
@@ -6,127 +6,33 @@
6
 
7
  #accordions_metabox ul.accordions_bg_img_list{}
8
 
9
- #accordions_metabox ul.accordions_bg_img_list li{
10
  display: inline-block;
11
  margin: 5px;
12
  }
13
- #accordions_metabox ul.accordions_bg_img_list li.bg-selected{}
14
 
15
- #accordions_metabox ul.accordions_bg_img_list li img
16
- {border: 2px solid #ffffff;}
17
 
18
- #accordions_metabox ul.accordions_bg_img_list li.bg-selected img
19
- {
20
  border: 2px solid #ff5a11;
21
  }
22
 
23
 
24
 
25
-
26
-
27
- #accordions_metabox ul.tab-nav {
28
- clear: both;
29
- margin: 0;
30
- padding: 0;
31
- }
32
-
33
- #accordions_metabox ul.tab-nav li {
34
- background: #e6e6e6;
35
- cursor: pointer;
36
- display: inline-block;
37
- float: left;
38
- margin: 0;
39
- padding: 8px 15px;
40
- border-right: 1px solid rgb(198, 198, 198);
41
- }
42
-
43
- #accordions_metabox ul.tab-nav li:last-child {
44
- border-right: none;
45
- }
46
-
47
-
48
-
49
- #accordions_metabox ul.tab-nav li.active{
50
- background:#d8d6d6;
51
- border-top:3px solid #11b063;
52
- padding-top:6px;
53
- }
54
- #accordions_metabox ul.box {
55
- clear: both;
56
- margin: 0;
57
- padding: 0;
58
- }
59
-
60
- #accordions_metabox ul.box li.tab-box {
61
- border: 1px solid rgb(153, 153, 153);
62
- display: none;
63
- margin: 0;
64
- padding: 20px 0 10px 10px;
65
- width: 100%;
66
- }
67
-
68
-
69
-
70
-
71
- #accordions_metabox .accordions_loading_taxonomy_category {
72
- background: url("loading.gif") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
73
- height: 11px;
74
- margin-bottom: 20px;
75
- width: 30px;
76
- }
77
-
78
-
79
- #accordions_metabox div.accordions_taxonomy_category{}
80
-
81
-
82
- #accordions_metabox ul.content_source_area {
83
- margin-left: 15px;
84
- }
85
-
86
- #accordions_metabox ul.content_source_area li{}
87
-
88
-
89
- #accordions_metabox ul.content_source_area .content-source-box {
90
- display: none;
91
- }
92
-
93
- #accordions_metabox ul.content_source_area li div.active {
94
- background: none repeat scroll 0 0 #e6e6e6;
95
- border-left: 3px solid #11b063;
96
- display: block;
97
- margin: 10px 10px 0 20px;
98
- padding: 10px 0 10px 5px;
99
- }
100
-
101
- #accordions_metabox .tab-box td {
102
- border-left: 3px solid #fff;
103
- }
104
-
105
- #accordions_metabox .tab-box td:hover {
106
- background: #e6e6e6;
107
- border-left: 3px solid #11b063;
108
- }
109
-
110
-
111
- #accordions_metabox .tab-box > table {
112
- width: 100%;
113
- }
114
-
115
-
116
-
117
  #accordions_metabox .accordions-content tr{
118
 
119
  }
120
 
121
  #accordions_metabox .accordions-content td {
122
- border-left: 3px solid #64b88f;
123
- background:#f5f5f5;
 
124
  }
125
 
126
-
127
- #accordions_metabox .accordions-content input,
128
- #accordions_metabox .accordions-content textarea{
129
- width: 100%;
130
  }
131
 
132
 
@@ -134,9 +40,20 @@ background:#f5f5f5;
134
  background: none repeat scroll 0 0 rgb(221, 221, 221);
135
  border: 1px solid rgb(255, 255, 255);
136
  cursor: pointer;
 
137
  padding: 1px 5px;
 
138
  }
139
 
 
 
 
 
 
 
 
 
 
140
 
141
  /*CSS front page*/
142
 
6
 
7
  #accordions_metabox ul.accordions_bg_img_list{}
8
 
9
+ #accordions_metabox ul.accordions_bg_img_list li {
10
  display: inline-block;
11
  margin: 5px;
12
  }
13
+ #accordions_metabox ul.accordions_bg_img_list li.bg-selected {}
14
 
15
+ #accordions_metabox ul.accordions_bg_img_list li img{border: 2px solid #ffffff;}
 
16
 
17
+ #accordions_metabox ul.accordions_bg_img_list li.bg-selected img{
 
18
  border: 2px solid #ff5a11;
19
  }
20
 
21
 
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  #accordions_metabox .accordions-content tr{
24
 
25
  }
26
 
27
  #accordions_metabox .accordions-content td {
28
+ background: none repeat scroll 0 0 rgb(245, 245, 245);
29
+ border-left: 3px solid rgb(255, 255, 255);
30
+ padding-bottom: 15px;
31
  }
32
 
33
+ #accordions_metabox .accordions-content input, #accordions_metabox .accordions-content textarea {
34
+ margin-left: 10px;
35
+ width: 95%;
 
36
  }
37
 
38
 
40
  background: none repeat scroll 0 0 rgb(221, 221, 221);
41
  border: 1px solid rgb(255, 255, 255);
42
  cursor: pointer;
43
+ margin: 3px;
44
  padding: 1px 5px;
45
+ position: absolute;
46
  }
47
 
48
+ #accordions_metabox .accordions-content .removeaccordions:hover {
49
+ background: none repeat scroll 0 0 rgb(255, 134, 87);
50
+ }
51
+
52
+ #accordions_metabox .accordions-content .tab-new {
53
+ background: none repeat scroll 0 0 #a3dbff;
54
+ }
55
+
56
+
57
 
58
  /*CSS front page*/
59
 
includes/accordions-functions.php CHANGED
@@ -31,4 +31,42 @@ function accordions_paratheme_dark_color($input_color)
31
 
32
  }
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
31
 
32
  }
33
 
34
+
35
+
36
+
37
+
38
+
39
+
40
+ function accordions_share_plugin()
41
+ {
42
+
43
+ ?>
44
+ <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwordpress.org%2Fplugins%2Faccordions&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=true&amp;share=true&amp;height=80&amp;appId=652982311485932" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:80px;" allowTransparency="true"></iframe>
45
+
46
+ <br />
47
+ <!-- Place this tag in your head or just before your close body tag. -->
48
+ <script src="https://apis.google.com/js/platform.js" async defer></script>
49
+
50
+ <!-- Place this tag where you want the +1 button to render. -->
51
+ <div class="g-plusone" data-size="medium" data-annotation="inline" data-width="300" data-href="<?php echo accordions_share_url; ?>"></div>
52
+
53
+ <br />
54
+ <br />
55
+ <a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php echo accordions_share_url; ?>" data-text="<?php echo accordions_plugin_name; ?>" data-via="ParaTheme" data-hashtags="WordPress">Tweet</a>
56
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
57
+
58
+
59
+
60
+ <?php
61
+
62
+
63
+
64
+
65
+
66
+ }
67
+
68
+
69
+
70
+
71
+
72
 
includes/accordions-meta.php CHANGED
@@ -107,328 +107,248 @@ function meta_boxes_accordions_input( $post ) {
107
 
108
 
109
 
 
110
 
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
- <table class="form-table">
127
-
128
-
129
-
130
-
131
-
132
- <tr valign="top">
133
- <td >
134
-
135
- <strong>Shortcode</strong><br />
136
- <span style=" color:#22aa5d;font-size: 12px;">Copy this shortcode and paste on page or post where you want to display accordions, <br />Use PHP code to your themes file to display accordions.</span>
137
-
138
- <br /> <br />
139
  <textarea cols="50" rows="1" style="background:#bfefff" onClick="this.select();" >[accordions <?php echo ' id="'.$post->ID.'"';?> ]</textarea>
140
- <br /><br />
141
  PHP Code:<br />
142
  <textarea cols="50" rows="1" style="background:#bfefff" onClick="this.select();" ><?php echo '<?php echo do_shortcode("[accordions id='; echo "'".$post->ID."' ]"; echo '"); ?>'; ?></textarea>
143
 
144
- <br />
145
-
146
- </td>
147
- </tr>
148
-
149
-
150
-
151
-
152
-
153
-
154
- <tr valign="top">
155
-
156
- <td style="vertical-align:middle;">
157
 
158
- <ul class="tab-nav">
159
- <li nav="1" class="nav1 active">Accordions Options</li>
 
160
  <li nav="2" class="nav2">Style</li>
161
  <li nav="3" class="nav3">Content</li>
 
 
162
 
163
- </ul>
164
-
165
-
166
- <ul class="box">
167
  <li style="display: block;" class="box1 tab-box active">
168
- <table>
169
- <tr valign="top">
170
- <td style="vertical-align:middle;">
171
- <strong>Option's is empty(try other tab.)</strong><br /><br />
172
- </td>
173
- </tr>
174
-
175
- </table>
176
- </li>
177
- <li class="box2 tab-box">
178
 
179
- <table>
180
- <tr valign="top">
181
- <td style="vertical-align:middle;">
182
- <strong>Themes</strong><br /><br />
183
- <select name="accordions_themes" >
184
- <option class="accordions_themes_flat" value="flat" <?php if($accordions_themes=="flat")echo "selected"; ?>>Flat</option>
185
-
186
- </select>
187
- </td>
188
- </tr>
189
 
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
- <script>
202
- jQuery(document).ready(function(jQuery)
203
- {
204
- jQuery(".accordions_bg_img_list li").click(function()
205
- {
206
- jQuery('.accordions_bg_img_list li.bg-selected').removeClass('bg-selected');
207
- jQuery(this).addClass('bg-selected');
208
-
209
- var accordions_bg_img = jQuery(this).attr('data-url');
210
 
211
- jQuery('#accordions_bg_img').val(accordions_bg_img);
212
-
213
- })
214
-
215
-
216
- })
217
-
218
- </script>
219
-
220
-
221
-
222
-
223
-
224
-
225
- <tr valign="top">
226
-
227
- <td style="vertical-align:middle;">
228
-
229
- <strong>Background Image</strong><br /><br />
230
-
231
 
232
- <?php
233
 
234
 
235
 
236
- $dir_path = accordions_plugin_dir."css/bg/";
237
- $filenames=glob($dir_path."*.png*");
238
 
239
 
240
- $accordions_bg_img = get_post_meta( $post->ID, 'accordions_bg_img', true );
241
-
242
- if(empty($accordions_bg_img))
243
- {
244
- $accordions_bg_img = "";
245
- }
246
 
247
 
248
- $count=count($filenames);
 
 
 
 
 
 
 
 
 
249
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
 
251
- $i=0;
252
- echo "<ul class='accordions_bg_img_list' >";
253
-
254
- while($i<$count)
255
- {
256
- $filelink= str_replace($dir_path,"",$filenames[$i]);
257
-
258
- $filelink= accordions_plugin_url."css/bg/".$filelink;
259
-
260
 
261
- if($accordions_bg_img==$filelink)
262
  {
263
- echo '<li class="bg-selected" data-url="'.$filelink.'">';
264
  }
265
- else
 
 
 
 
 
 
 
 
266
  {
267
- echo '<li data-url="'.$filelink.'">';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268
  }
 
 
269
 
270
-
271
- echo "<img width='70px' height='50px' src='".$filelink."' />";
272
- echo "</li>";
273
- $i++;
274
- }
275
 
276
- echo "</ul>";
277
-
278
- echo "<input style='width:100%;' value='".$accordions_bg_img."' placeholder='Please select image or left blank' id='accordions_bg_img' name='accordions_bg_img' type='text' />";
279
-
280
-
281
-
282
- ?>
283
- </td>
284
- </tr>
285
-
286
-
287
-
288
-
289
- <tr valign="top">
290
-
291
- <td style="vertical-align:middle;">
292
 
293
- <strong>Icon set</strong><br /><br />
294
 
295
-
296
- <?php
297
-
298
-
299
-
300
- $dir_path = accordions_plugin_dir."css/icons/";
301
- $filenames=glob($dir_path."*.png*");
302
-
303
-
304
-
305
- $accordions_icons = get_post_meta( $post->ID, 'accordions_icons', true );
306
-
307
- if(empty($accordions_icons))
308
- {
309
- $accordions_icons = "";
310
- }
311
-
312
-
313
- $count=count($filenames);
314
 
315
-
316
- $i=0;
317
- echo "<select class='accordions_icons_list' name='accordions_icons' >";
318
-
319
- while($i<$count)
320
- {
321
- $filelink_name= str_replace($dir_path,"",$filenames[$i]);
322
-
323
- $filelink= accordions_plugin_url."css/icons/".$filelink_name;
324
-
325
- $icon_name = str_replace('.png', '', $filelink_name);
326
-
327
- if($accordions_icons==$icon_name)
328
  {
329
- echo '<option style="background:url('.$filelink.') no-repeat scroll 0 0 rgba(0, 0, 0, 0); padding-left:20px;" selected value="'.$icon_name.'">';
330
  }
331
- else
 
 
 
 
 
 
 
 
332
  {
333
- echo '<option style="background:url('.$filelink.') no-repeat scroll 0 0 rgba(0, 0, 0, 0); padding-left:20px;" value="'.$icon_name.'">';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
334
  }
 
 
335
 
336
-
337
-
338
- echo $icon_name."</option>";
339
- $i++;
340
- }
341
 
342
- echo "</select>";
 
 
 
 
 
343
 
 
 
 
 
 
 
 
 
 
344
 
345
-
346
-
347
-
348
- ?>
349
- </td>
350
- </tr>
351
-
352
- <!-- -->
353
 
354
- <tr valign="top">
355
- <td style="vertical-align:middle;">
356
- <strong>Default Background Color</strong><br /><br />
357
- <input type="text" name="accordions_default_bg_color" id="accordions_default_bg_color" value="<?php if(!empty($accordions_default_bg_color)) echo $accordions_default_bg_color; else echo "#01ce6a"; ?>" />
358
- </td>
359
- </tr>
360
 
361
 
 
 
 
 
 
 
 
362
 
363
- <tr valign="top">
364
- <td style="vertical-align:middle;">
365
- <strong>Active Background Color</strong><br /><br />
366
- <input type="text" name="accordions_active_bg_color" id="accordions_active_bg_color" value="<?php if(!empty($accordions_active_bg_color)) echo $accordions_active_bg_color; else echo "#02e576"; ?>" />
367
- </td>
368
- </tr>
369
 
 
 
 
 
 
370
 
371
 
 
 
 
 
 
372
 
373
- <tr valign="top">
374
- <td style="vertical-align:middle;">
375
- <strong>Accordions Header Font Color</strong><br /><br />
376
- <input type="text" name="accordions_items_title_color" id="accordions_items_title_color" value="<?php if(!empty($accordions_items_title_color)) echo $accordions_items_title_color; else echo "#28c8a8"; ?>" />
377
- </td>
378
- </tr>
379
 
380
 
381
- <tr valign="top">
382
- <td style="vertical-align:middle;">
383
- <strong>Accordions Header Font Size</strong><br /><br />
384
- <input type="text" name="accordions_items_title_font_size" placeholder="ex:14px number with px" id="accordions_items_title_font_size" value="<?php if(!empty($accordions_items_title_font_size)) echo $accordions_items_title_font_size; else echo "14px"; ?>" />
385
- </td>
386
- </tr>
387
-
388
-
389
-
390
-
391
- <tr valign="top">
392
- <td style="vertical-align:middle;">
393
- <strong>Accordions Content Font Color</strong><br /><br />
394
- <input type="text" name="accordions_items_content_color" id="accordions_items_content_color" value="<?php if(!empty($accordions_items_content_color)) echo $accordions_items_content_color; else echo "#fff"; ?>" />
395
- </td>
396
- </tr>
397
-
398
-
399
-
400
- <tr valign="top">
401
- <td style="vertical-align:middle;">
402
- <strong>Accordions Content Font Size</strong><br /><br />
403
- <input type="text" name="accordions_items_content_font_size" id="accordions_items_content_font_size" value="<?php if(!empty($accordions_items_content_font_size)) echo $accordions_items_content_font_size; else echo "13px"; ?>" />
404
- </td>
405
- </tr>
406
-
407
-
408
-
409
-
410
-
411
-
412
-
413
-
414
-
415
- </table>
416
-
417
-
418
  </li>
419
-
420
-
421
- <li class="box3 tab-box">
422
- <div class="accordions-content-buttons" >
423
- <div class="button add-accordions">Add</div>
424
- <br /> <br />
425
- </div>
426
-
427
-
428
-
429
-
430
-
431
- <table class="accordions-content">
432
 
433
  <?php
434
  $total_row = count($accordions_content_title);
@@ -470,38 +390,16 @@ function meta_boxes_accordions_input( $post ) {
470
 
471
 
472
  </table>
473
-
474
-
475
 
 
476
  </li>
477
-
478
-
479
-
480
-
481
-
482
-
483
-
484
- </ul>
485
-
486
 
 
487
 
488
- </td>
489
- </tr>
490
-
491
- </table>
492
-
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
 
504
 
 
505
 
506
 
507
 
107
 
108
 
109
 
110
+ <div class="para-settings">
111
 
112
+ <div class="option-box">
113
+ <p class="option-title">Shortcode</p>
114
+ <p class="option-info">Copy this shortcode and paste on page or post where you want to display accordions, Use PHP code to your themes file to display accordions.</p>
115
+ <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  <textarea cols="50" rows="1" style="background:#bfefff" onClick="this.select();" >[accordions <?php echo ' id="'.$post->ID.'"';?> ]</textarea>
117
+ <br />
118
  PHP Code:<br />
119
  <textarea cols="50" rows="1" style="background:#bfefff" onClick="this.select();" ><?php echo '<?php echo do_shortcode("[accordions id='; echo "'".$post->ID."' ]"; echo '"); ?>'; ?></textarea>
120
 
121
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
122
 
123
+
124
+ <ul class="tab-nav">
125
+ <li nav="1" class="nav1 active">Options</li>
126
  <li nav="2" class="nav2">Style</li>
127
  <li nav="3" class="nav3">Content</li>
128
+
129
+ </ul> <!-- tab-nav end -->
130
 
131
+ <ul class="box">
 
 
 
132
  <li style="display: block;" class="box1 tab-box active">
 
 
 
 
 
 
 
 
 
 
133
 
134
+ <div class="option-box">
135
+ <p class="option-title">Option's is empty(try other tab.)</p>
136
+ <p class="option-info"></p>
 
 
 
 
 
 
 
137
 
138
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
 
 
141
 
142
 
143
 
 
 
144
 
145
 
 
 
 
 
 
 
146
 
147
 
148
+ </li>
149
+ <li style="display: none;" class="box2 tab-box ">
150
+ <div class="option-box">
151
+ <p class="option-title">Themes</p>
152
+ <p class="option-info"></p>
153
+ <select name="accordions_themes" >
154
+ <option class="accordions_themes_flat" value="flat" <?php if($accordions_themes=="flat")echo "selected"; ?>>Flat</option>
155
+
156
+ </select>
157
+ </div>
158
 
159
+ <div class="option-box">
160
+ <p class="option-title">Background Image</p>
161
+ <p class="option-info"></p>
162
+ <script>
163
+ jQuery(document).ready(function(jQuery)
164
+ {
165
+ jQuery(".accordions_bg_img_list li").click(function()
166
+ {
167
+ jQuery('.accordions_bg_img_list li.bg-selected').removeClass('bg-selected');
168
+ jQuery(this).addClass('bg-selected');
169
+
170
+ var accordions_bg_img = jQuery(this).attr('data-url');
171
+
172
+ jQuery('#accordions_bg_img').val(accordions_bg_img);
173
+
174
+ })
175
+
176
+
177
+ })
178
+
179
+ </script>
180
+
181
 
182
+ <?php
183
+
184
+
185
+
186
+ $dir_path = accordions_plugin_dir."css/bg/";
187
+ $filenames=glob($dir_path."*.png*");
188
+
189
+
190
+ $accordions_bg_img = get_post_meta( $post->ID, 'accordions_bg_img', true );
191
 
192
+ if(empty($accordions_bg_img))
193
  {
194
+ $accordions_bg_img = "";
195
  }
196
+
197
+
198
+ $count=count($filenames);
199
+
200
+
201
+ $i=0;
202
+ echo "<ul class='accordions_bg_img_list' >";
203
+
204
+ while($i<$count)
205
  {
206
+ $filelink= str_replace($dir_path,"",$filenames[$i]);
207
+
208
+ $filelink= accordions_plugin_url."css/bg/".$filelink;
209
+
210
+
211
+ if($accordions_bg_img==$filelink)
212
+ {
213
+ echo '<li class="bg-selected" data-url="'.$filelink.'">';
214
+ }
215
+ else
216
+ {
217
+ echo '<li data-url="'.$filelink.'">';
218
+ }
219
+
220
+
221
+ echo "<img width='70px' height='50px' src='".$filelink."' />";
222
+ echo "</li>";
223
+ $i++;
224
  }
225
+
226
+ echo "</ul>";
227
 
228
+ echo "<input style='width:100%;' value='".$accordions_bg_img."' placeholder='Please select image or left blank' id='accordions_bg_img' name='accordions_bg_img' type='text' />";
 
 
 
 
229
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
 
 
231
 
232
+ ?>
233
+
234
+
235
+
236
+
237
+
238
+
239
+ </div>
 
 
 
 
 
 
 
 
 
 
 
240
 
241
+ <div class="option-box">
242
+ <p class="option-title">Icon set</p>
243
+ <p class="option-info"></p>
244
+ <?php
245
+
246
+ $dir_path = accordions_plugin_dir."css/icons/";
247
+ $filenames=glob($dir_path."*.png*");
248
+
249
+
250
+
251
+ $accordions_icons = get_post_meta( $post->ID, 'accordions_icons', true );
252
+
253
+ if(empty($accordions_icons))
254
  {
255
+ $accordions_icons = "";
256
  }
257
+
258
+
259
+ $count=count($filenames);
260
+
261
+
262
+ $i=0;
263
+ echo "<select class='accordions_icons_list' name='accordions_icons' >";
264
+
265
+ while($i<$count)
266
  {
267
+ $filelink_name= str_replace($dir_path,"",$filenames[$i]);
268
+
269
+ $filelink= accordions_plugin_url."css/icons/".$filelink_name;
270
+
271
+ $icon_name = str_replace('.png', '', $filelink_name);
272
+
273
+ if($accordions_icons==$icon_name)
274
+ {
275
+ echo '<option style="background:url('.$filelink.') no-repeat scroll 0 0 rgba(0, 0, 0, 0); padding-left:20px;" selected value="'.$icon_name.'">';
276
+ }
277
+ else
278
+ {
279
+ echo '<option style="background:url('.$filelink.') no-repeat scroll 0 0 rgba(0, 0, 0, 0); padding-left:20px;" value="'.$icon_name.'">';
280
+ }
281
+
282
+
283
+
284
+ echo $icon_name."</option>";
285
+ $i++;
286
  }
287
+
288
+ echo "</select>";
289
 
290
+
 
 
 
 
291
 
292
+
293
+
294
+ ?>
295
+
296
+ </div>
297
+
298
 
299
+ <div class="option-box">
300
+ <p class="option-title">Default Background Color</p>
301
+ <p class="option-info"></p>
302
+ <input type="text" name="accordions_default_bg_color" id="accordions_default_bg_color" value="<?php if(!empty($accordions_default_bg_color)) echo $accordions_default_bg_color; else echo "#01ce6a"; ?>" /> </div>
303
+
304
+ <div class="option-box">
305
+ <p class="option-title">Active Background Color</p>
306
+ <p class="option-info"></p>
307
+ <input type="text" name="accordions_active_bg_color" id="accordions_active_bg_color" value="<?php if(!empty($accordions_active_bg_color)) echo $accordions_active_bg_color; else echo "#02e576"; ?>" /> </div>
308
 
 
 
 
 
 
 
 
 
309
 
310
+ <div class="option-box">
311
+ <p class="option-title">Accordions Header Font Color</p>
312
+ <p class="option-info"></p>
313
+ <input type="text" name="accordions_items_title_color" id="accordions_items_title_color" value="<?php if(!empty($accordions_items_title_color)) echo $accordions_items_title_color; else echo "#28c8a8"; ?>" /> </div>
 
 
314
 
315
 
316
+ <div class="option-box">
317
+ <p class="option-title">Accordions Header Font Size</p>
318
+ <p class="option-info"></p>
319
+
320
+ <input type="text" name="accordions_items_title_font_size" placeholder="ex:14px number with px" id="accordions_items_title_font_size" value="<?php if(!empty($accordions_items_title_font_size)) echo $accordions_items_title_font_size; else echo "14px"; ?>" />
321
+
322
+ </div>
323
 
 
 
 
 
 
 
324
 
325
+ <div class="option-box">
326
+ <p class="option-title">Accordions Content Font Color</p>
327
+ <p class="option-info"></p>
328
+ <input type="text" name="accordions_items_content_color" id="accordions_items_content_color" value="<?php if(!empty($accordions_items_content_color)) echo $accordions_items_content_color; else echo "#fff"; ?>" />
329
+ </div>
330
 
331
 
332
+ <div class="option-box">
333
+ <p class="option-title">Accordions Content Font Size</p>
334
+ <p class="option-info"></p>
335
+ <input type="text" name="accordions_items_content_font_size" id="accordions_items_content_font_size" value="<?php if(!empty($accordions_items_content_font_size)) echo $accordions_items_content_font_size; else echo "13px"; ?>" />
336
+ </div>
337
 
 
 
 
 
 
 
338
 
339
 
340
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
  </li>
342
+ <li style="display: none;" class="box3 tab-box ">
343
+ <div class="option-box">
344
+ <p class="option-title">Content</p>
345
+ <p class="option-info"></p>
346
+
347
+ <div class="accordions-content-buttons" >
348
+ <div class="button add-accordions">Add</div>
349
+ <br />
350
+ </div>
351
+ <table width="100%" class="accordions-content">
 
 
 
352
 
353
  <?php
354
  $total_row = count($accordions_content_title);
390
 
391
 
392
  </table>
393
+
 
394
 
395
+ </div>
396
  </li>
 
 
 
 
 
 
 
 
 
397
 
398
+ </ul>
399
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
400
 
401
 
402
+ </div> <!-- para-settings -->
403
 
404
 
405
 
js/color-picker.js CHANGED
@@ -2,7 +2,7 @@
2
  {
3
 
4
 
5
- jQuery('#accordions_middle_circle_bg, #accordions_middle_line_bg, #accordions_items_content_color, #accordions_cart_bg, #accordions_items_title_color, #accordions_items_price_color, #accordions_cart_text_color, #accordions_slider_pagination_bg, #accordions_slider_pagination_text_color, #accordions_default_bg_color, #accordions_active_bg_color').wpColorPicker();
6
 
7
 
8
 
2
  {
3
 
4
 
5
+ jQuery('#accordions_default_bg_color, #accordions_active_bg_color, #accordions_items_title_color, #accordions_items_content_color').wpColorPicker();
6
 
7
 
8
 
js/scripts.js CHANGED
@@ -49,7 +49,17 @@ jQuery(document).ready(function($)
49
  }
50
 
51
 
52
- $(".accordions-content").append('<tr index="'+row+'" valign="top"><td style="vertical-align:middle;"><span class="removeaccordions">X</span><br/><br/><input width="100%" placeholder="accordions Header" type="text" name="accordions_content_title['+row+']" value="" /><br /><br /><textarea placeholder="accordions Content" name="accordions_content_body['+row+']" ></textarea></td></tr>');
 
 
 
 
 
 
 
 
 
 
53
 
54
  })
55
 
@@ -58,7 +68,10 @@ jQuery(document).ready(function($)
58
  $(document).on('click', '#accordions_metabox .removeaccordions', function()
59
  {
60
 
61
- $(this).parent().parent().remove();
 
 
 
62
 
63
 
64
 
49
  }
50
 
51
 
52
+ $(".accordions-content").append('<tr index="'+row+'" valign="top"><td class="tab-new" style="vertical-align:middle;"><span class="removeaccordions">X</span><br/><br/><input width="100%" placeholder="accordions Header" type="text" name="accordions_content_title['+row+']" value="" /><br /><br /><textarea placeholder="accordions Content" name="accordions_content_body['+row+']" ></textarea></td></tr>');
53
+
54
+
55
+
56
+ setTimeout(function(){
57
+
58
+ $(".accordions-content tr:last-child td").removeClass("tab-new");
59
+
60
+ }, 300);
61
+
62
+
63
 
64
  })
65
 
68
  $(document).on('click', '#accordions_metabox .removeaccordions', function()
69
  {
70
 
71
+ if (confirm('Do you really want to delete this tab ?')) {
72
+
73
+ $(this).parent().parent().remove();
74
+ }
75
 
76
 
77
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Accordion's ===
2
  Contributors: paratheme
3
  Donate link: http://paratheme.com
4
  Tags: accordion, accordions, Responsive accordions, accordions plugin, jQuery accordions, accordions short-code, accordions Widget, accordions plugin wordpress, accordions plugin jquery
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
- Stable tag: 1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -61,10 +61,18 @@ then paste this shortcode anywhere in your page to display accordions<br />
61
  == Screenshots ==
62
 
63
  1. screenshot-1
64
- 1. screenshot-2
 
 
 
 
65
 
66
  == Changelog ==
67
 
 
 
 
 
68
 
69
  = 1.0 =
70
  * 27/10/2014 Initial release.
1
+ === Accordion ===
2
  Contributors: paratheme
3
  Donate link: http://paratheme.com
4
  Tags: accordion, accordions, Responsive accordions, accordions plugin, jQuery accordions, accordions short-code, accordions Widget, accordions plugin wordpress, accordions plugin jquery
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
+ Stable tag: 1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
61
  == Screenshots ==
62
 
63
  1. screenshot-1
64
+ 2. screenshot-2
65
+ 3. screenshot-3
66
+ 4. screenshot-4
67
+
68
+
69
 
70
  == Changelog ==
71
 
72
+ = 1.1 =
73
+ * 17/11/2014 add confirmation before delete accordion content.
74
+ * 17/11/2014 Update help page.
75
+ * 17/11/2014 minor js error fixed.
76
 
77
  = 1.0 =
78
  * 27/10/2014 Initial release.