Version Description
- 27/10/2014 Initial release.
Download this release
Release Info
Developer | wpkids |
Plugin | Accordion |
Version | 1.0 |
Comparing to | |
See all releases |
Version 1.0
- accordions-help.php +115 -0
- accordions.php +130 -0
- css/bg/bgnoise_lg.png +0 -0
- css/bg/congruent_outline.png +0 -0
- css/bg/congruent_pentagon.png +0 -0
- css/bg/food.png +0 -0
- css/bg/giftly.png +0 -0
- css/bg/retina_wood.png +0 -0
- css/bg/skulls.png +0 -0
- css/bg/wood_pattern.png +0 -0
- css/icons/arrow-dark.png +0 -0
- css/icons/arrow-double.png +0 -0
- css/icons/arrow-naked.png +0 -0
- css/icons/arrow-thin.png +0 -0
- css/responsive-accordion.css +55 -0
- css/style.css +195 -0
- includes/accordions-functions.php +34 -0
- includes/accordions-meta.php +625 -0
- index.php +2 -0
- js/color-picker.js +10 -0
- js/responsive-accordion.js +43 -0
- js/scripts.js +76 -0
- readme.txt +70 -0
- themes/flat/images/star.png +0 -0
- themes/flat/index.php +102 -0
- themes/flat/style.css +55 -0
accordions-help.php
ADDED
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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; ?>&width=100&layout=button_count&action=like&show_faces=false&share=false&height=21&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>
|
accordions.php
ADDED
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
10 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
+
*/
|
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');
|
26 |
+
|
27 |
+
|
28 |
+
//Themes php files
|
29 |
+
require_once( plugin_dir_path( __FILE__ ) . 'themes/flat/index.php');
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
+
function accordions_paratheme_init_scripts()
|
34 |
+
{
|
35 |
+
|
36 |
+
|
37 |
+
|
38 |
+
wp_enqueue_script('jquery');
|
39 |
+
|
40 |
+
wp_enqueue_script('accordions_js', plugins_url( '/js/scripts.js' , __FILE__ ) , array( 'jquery' ));
|
41 |
+
|
42 |
+
wp_enqueue_style('accordions_style', accordions_plugin_url.'css/style.css');
|
43 |
+
wp_enqueue_style('responsive-accordion', accordions_plugin_url.'css/responsive-accordion.css');
|
44 |
+
|
45 |
+
wp_enqueue_style( 'wp-color-picker' );
|
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");
|
56 |
+
|
57 |
+
|
58 |
+
register_activation_hook(__FILE__, 'accordions_paratheme_activation');
|
59 |
+
|
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"
|
67 |
+
update_option('accordions_customer_type', $accordions_customer_type); //update plugin version.
|
68 |
+
}
|
69 |
+
|
70 |
+
|
71 |
+
function accordions_paratheme_display($atts, $content = null ) {
|
72 |
+
$atts = shortcode_atts(
|
73 |
+
array(
|
74 |
+
'id' => "",
|
75 |
+
|
76 |
+
), $atts);
|
77 |
+
|
78 |
+
|
79 |
+
$post_id = $atts['id'];
|
80 |
+
|
81 |
+
$accordions_themes = get_post_meta( $post_id, 'accordions_themes', true );
|
82 |
+
|
83 |
+
$accordions_paratheme_display ="";
|
84 |
+
|
85 |
+
if($accordions_themes== "flat")
|
86 |
+
{
|
87 |
+
$accordions_paratheme_display.= accordions_themes_flat($post_id);
|
88 |
+
}
|
89 |
+
|
90 |
+
return $accordions_paratheme_display;
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
+
}
|
95 |
+
|
96 |
+
add_shortcode('accordions', 'accordions_paratheme_display');
|
97 |
+
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
|
102 |
+
|
103 |
+
|
104 |
+
|
105 |
+
|
106 |
+
add_action('admin_menu', 'accordions_paratheme_menu_init');
|
107 |
+
|
108 |
+
|
109 |
+
|
110 |
+
function accordions_paratheme_menu_help(){
|
111 |
+
include('accordions-help.php');
|
112 |
+
}
|
113 |
+
|
114 |
+
|
115 |
+
|
116 |
+
|
117 |
+
|
118 |
+
function accordions_paratheme_menu_init()
|
119 |
+
{
|
120 |
+
|
121 |
+
|
122 |
+
add_submenu_page('edit.php?post_type=accordions', __('Help & Upgrade','menu-wpt'), __('Help & Upgrade','menu-wpt'), 'manage_options', 'accordions_paratheme_menu_help', 'accordions_paratheme_menu_help');
|
123 |
+
|
124 |
+
}
|
125 |
+
|
126 |
+
|
127 |
+
|
128 |
+
|
129 |
+
|
130 |
+
?>
|
css/bg/bgnoise_lg.png
ADDED
Binary file
|
css/bg/congruent_outline.png
ADDED
Binary file
|
css/bg/congruent_pentagon.png
ADDED
Binary file
|
css/bg/food.png
ADDED
Binary file
|
css/bg/giftly.png
ADDED
Binary file
|
css/bg/retina_wood.png
ADDED
Binary file
|
css/bg/skulls.png
ADDED
Binary file
|
css/bg/wood_pattern.png
ADDED
Binary file
|
css/icons/arrow-dark.png
ADDED
Binary file
|
css/icons/arrow-double.png
ADDED
Binary file
|
css/icons/arrow-naked.png
ADDED
Binary file
|
css/icons/arrow-thin.png
ADDED
Binary file
|
css/responsive-accordion.css
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Responsive Accordion v1.3, Copyright 2014, Joe Mottershaw, https://github.com/joemottershaw/
|
2 |
+
// ============================================================================================ */
|
3 |
+
|
4 |
+
/* Table of Contents
|
5 |
+
// ==================================================
|
6 |
+
// #Reset
|
7 |
+
// #Themes
|
8 |
+
|
9 |
+
|
10 |
+
/* #Reset
|
11 |
+
// ================================================== */
|
12 |
+
|
13 |
+
.responsive-accordion {
|
14 |
+
margin: 0 0 20px 0;
|
15 |
+
padding: 0;
|
16 |
+
|
17 |
+
}
|
18 |
+
|
19 |
+
.responsive-accordion li {
|
20 |
+
list-style: none outside none;
|
21 |
+
margin: 0 !important;
|
22 |
+
padding: 0;
|
23 |
+
}
|
24 |
+
|
25 |
+
.responsive-accordion li:last-child { margin-bottom: 0; }
|
26 |
+
|
27 |
+
.responsive-accordion li .responsive-accordion-head { cursor: pointer; }
|
28 |
+
|
29 |
+
.responsive-accordion li .responsive-accordion-head.active { font-weight: bold; }
|
30 |
+
|
31 |
+
|
32 |
+
/* #Themes
|
33 |
+
// ================================================== */
|
34 |
+
|
35 |
+
.responsive-accordion-default.responsive-accordion li .responsive-accordion-head {
|
36 |
+
padding: 10px 30px 10px 10px;
|
37 |
+
color: #0b8593;
|
38 |
+
line-height: normal;
|
39 |
+
position: relative;
|
40 |
+
text-align:left;
|
41 |
+
}
|
42 |
+
|
43 |
+
.responsive-accordion-default.responsive-accordion li .responsive-accordion-head i {
|
44 |
+
position: absolute;
|
45 |
+
top: 12px;
|
46 |
+
right: 10px;
|
47 |
+
}
|
48 |
+
|
49 |
+
.responsive-accordion-default.responsive-accordion li .responsive-accordion-panel {
|
50 |
+
border: 1px solid #DDD;
|
51 |
+
border-top: 0;
|
52 |
+
padding: 20px;
|
53 |
+
background: #FFF;
|
54 |
+
text-align: left;
|
55 |
+
}
|
css/style.css
ADDED
@@ -0,0 +1,195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@charset "utf-8";
|
2 |
+
/* CSS Document */
|
3 |
+
|
4 |
+
|
5 |
+
/*Admin CSS*/
|
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 |
+
|
133 |
+
#accordions_metabox .accordions-content .removeaccordions {
|
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 |
+
|
143 |
+
.accordions-container {
|
144 |
+
margin: 50px 0;
|
145 |
+
overflow: hidden;
|
146 |
+
padding: 30px;
|
147 |
+
position: relative;
|
148 |
+
text-align: center;
|
149 |
+
}
|
150 |
+
|
151 |
+
|
152 |
+
.responsive-accordion-icons {
|
153 |
+
height: 16px;
|
154 |
+
width: 16px;
|
155 |
+
}
|
156 |
+
|
157 |
+
.responsive-accordion-plus.arrow-double {
|
158 |
+
background: url("icons/arrow-double.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
|
159 |
+
}
|
160 |
+
.responsive-accordion-minus.arrow-double{
|
161 |
+
background: url("icons/arrow-double.png") no-repeat scroll 0 -16px rgba(0, 0, 0, 0);
|
162 |
+
}
|
163 |
+
|
164 |
+
|
165 |
+
|
166 |
+
.responsive-accordion-plus.arrow-dark {
|
167 |
+
background: url("icons/arrow-dark.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
|
168 |
+
}
|
169 |
+
.responsive-accordion-minus.arrow-dark{
|
170 |
+
background: url("icons/arrow-dark.png") no-repeat scroll 0 -16px rgba(0, 0, 0, 0);
|
171 |
+
}
|
172 |
+
|
173 |
+
.responsive-accordion-plus.arrow-naked {
|
174 |
+
background: url("icons/arrow-naked.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
|
175 |
+
}
|
176 |
+
.responsive-accordion-minus.arrow-naked{
|
177 |
+
background: url("icons/arrow-naked.png") no-repeat scroll 0 -16px rgba(0, 0, 0, 0);
|
178 |
+
}
|
179 |
+
|
180 |
+
.responsive-accordion-plus.arrow-round-inside-2 {
|
181 |
+
background: url("icons/arrow-round-inside-2.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
|
182 |
+
}
|
183 |
+
.responsive-accordion-minus.arrow-round-inside-2{
|
184 |
+
background: url("icons/arrow-round-inside-2.png") no-repeat scroll 0 -16px rgba(0, 0, 0, 0);
|
185 |
+
}
|
186 |
+
|
187 |
+
.responsive-accordion-plus.arrow-thin {
|
188 |
+
background: url("icons/arrow-thin.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
|
189 |
+
}
|
190 |
+
.responsive-accordion-minus.arrow-thin{
|
191 |
+
background: url("icons/arrow-thin.png") no-repeat scroll 0 -16px rgba(0, 0, 0, 0);
|
192 |
+
}
|
193 |
+
|
194 |
+
|
195 |
+
|
includes/accordions-functions.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
function accordions_paratheme_dark_color($input_color)
|
7 |
+
{
|
8 |
+
if(empty($input_color))
|
9 |
+
{
|
10 |
+
return "";
|
11 |
+
}
|
12 |
+
else
|
13 |
+
{
|
14 |
+
$input = $input_color;
|
15 |
+
|
16 |
+
$col = Array(
|
17 |
+
hexdec(substr($input,1,2)),
|
18 |
+
hexdec(substr($input,3,2)),
|
19 |
+
hexdec(substr($input,5,2))
|
20 |
+
);
|
21 |
+
$darker = Array(
|
22 |
+
$col[0]/2,
|
23 |
+
$col[1]/2,
|
24 |
+
$col[2]/2
|
25 |
+
);
|
26 |
+
|
27 |
+
return "#".sprintf("%02X%02X%02X", $darker[0], $darker[1], $darker[2]);
|
28 |
+
}
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
+
}
|
33 |
+
|
34 |
+
|
includes/accordions-meta.php
ADDED
@@ -0,0 +1,625 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
function accordions_posttype_register() {
|
5 |
+
|
6 |
+
$labels = array(
|
7 |
+
'name' => _x('Accordions', 'accordions'),
|
8 |
+
'singular_name' => _x('Accordions', 'accordions'),
|
9 |
+
'add_new' => _x('New Accordions', 'accordions'),
|
10 |
+
'add_new_item' => __('New Accordions'),
|
11 |
+
'edit_item' => __('Edit Accordions'),
|
12 |
+
'new_item' => __('New Accordions'),
|
13 |
+
'view_item' => __('View Accordions'),
|
14 |
+
'search_items' => __('Search Accordions'),
|
15 |
+
'not_found' => __('Nothing found'),
|
16 |
+
'not_found_in_trash' => __('Nothing found in Trash'),
|
17 |
+
'parent_item_colon' => ''
|
18 |
+
);
|
19 |
+
|
20 |
+
$args = array(
|
21 |
+
'labels' => $labels,
|
22 |
+
'public' => true,
|
23 |
+
'publicly_queryable' => true,
|
24 |
+
'show_ui' => true,
|
25 |
+
'query_var' => true,
|
26 |
+
'menu_icon' => null,
|
27 |
+
'rewrite' => true,
|
28 |
+
'capability_type' => 'post',
|
29 |
+
'hierarchical' => false,
|
30 |
+
'menu_position' => null,
|
31 |
+
'supports' => array('title'),
|
32 |
+
'menu_icon' => 'dashicons-media-spreadsheet',
|
33 |
+
|
34 |
+
);
|
35 |
+
|
36 |
+
register_post_type( 'accordions' , $args );
|
37 |
+
|
38 |
+
}
|
39 |
+
|
40 |
+
add_action('init', 'accordions_posttype_register');
|
41 |
+
|
42 |
+
|
43 |
+
|
44 |
+
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Adds a box to the main column on the Post and Page edit screens.
|
48 |
+
*/
|
49 |
+
function meta_boxes_accordions()
|
50 |
+
{
|
51 |
+
$screens = array( 'accordions' );
|
52 |
+
foreach ( $screens as $screen )
|
53 |
+
{
|
54 |
+
add_meta_box('accordions_metabox',__( 'accordions Options','accordions' ),'meta_boxes_accordions_input', $screen);
|
55 |
+
}
|
56 |
+
}
|
57 |
+
add_action( 'add_meta_boxes', 'meta_boxes_accordions' );
|
58 |
+
|
59 |
+
|
60 |
+
function meta_boxes_accordions_input( $post ) {
|
61 |
+
|
62 |
+
global $post;
|
63 |
+
wp_nonce_field( 'meta_boxes_accordions_input', 'meta_boxes_accordions_input_nonce' );
|
64 |
+
|
65 |
+
|
66 |
+
$accordions_bg_img = get_post_meta( $post->ID, 'accordions_bg_img', true );
|
67 |
+
$accordions_themes = get_post_meta( $post->ID, 'accordions_themes', true );
|
68 |
+
$accordions_icons = get_post_meta( $post->ID, 'accordions_icons', true );
|
69 |
+
|
70 |
+
$accordions_default_bg_color = get_post_meta( $post->ID, 'accordions_default_bg_color', true );
|
71 |
+
$accordions_active_bg_color = get_post_meta( $post->ID, 'accordions_active_bg_color', true );
|
72 |
+
|
73 |
+
$accordions_items_title_color = get_post_meta( $post->ID, 'accordions_items_title_color', true );
|
74 |
+
$accordions_items_title_font_size = get_post_meta( $post->ID, 'accordions_items_title_font_size', true );
|
75 |
+
|
76 |
+
$accordions_items_content_color = get_post_meta( $post->ID, 'accordions_items_content_color', true );
|
77 |
+
$accordions_items_content_font_size = get_post_meta( $post->ID, 'accordions_items_content_font_size', true );
|
78 |
+
|
79 |
+
$accordions_items_thumb_size = get_post_meta( $post->ID, 'accordions_items_thumb_size', true );
|
80 |
+
$accordions_items_thumb_max_hieght = get_post_meta( $post->ID, 'accordions_items_thumb_max_hieght', true );
|
81 |
+
|
82 |
+
$accordions_content_title = get_post_meta( $post->ID, 'accordions_content_title', true );
|
83 |
+
$accordions_content_body = get_post_meta( $post->ID, 'accordions_content_body', true );
|
84 |
+
|
85 |
+
|
86 |
+
|
87 |
+
|
88 |
+
|
89 |
+
|
90 |
+
|
91 |
+
|
92 |
+
|
93 |
+
$accordions_customer_type = get_option('accordions_customer_type');
|
94 |
+
|
95 |
+
if($accordions_customer_type=="free")
|
96 |
+
{
|
97 |
+
echo '';
|
98 |
+
|
99 |
+
}
|
100 |
+
elseif($accordions_customer_type=="pro")
|
101 |
+
{
|
102 |
+
//premium customer support.
|
103 |
+
}
|
104 |
+
|
105 |
+
?>
|
106 |
+
|
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);
|
435 |
+
|
436 |
+
if(empty($accordions_content_title))
|
437 |
+
{
|
438 |
+
$accordions_content_title = array(0);
|
439 |
+
}
|
440 |
+
|
441 |
+
foreach ($accordions_content_title as $index => $accordions_title)
|
442 |
+
{
|
443 |
+
|
444 |
+
|
445 |
+
?>
|
446 |
+
<tr index='<?php echo $index; ?>' valign="top">
|
447 |
+
|
448 |
+
<td style="vertical-align:middle;">
|
449 |
+
<span class="removeaccordions">X</span>
|
450 |
+
<br/><br/>
|
451 |
+
<input width="100%" placeholder="accordions Header" type="text" name="accordions_content_title[<?php echo $index; ?>]" value="<?php if(!empty($accordions_title)) echo $accordions_title; ?>" />
|
452 |
+
<br /><br />
|
453 |
+
<textarea placeholder="accordions Content" name="accordions_content_body[<?php echo $index; ?>]" ><?php if(!empty($accordions_content_body[$index])) echo $accordions_content_body[$index]; ?></textarea>
|
454 |
+
</td>
|
455 |
+
</tr>
|
456 |
+
<?php
|
457 |
+
|
458 |
+
|
459 |
+
}
|
460 |
+
|
461 |
+
?>
|
462 |
+
|
463 |
+
|
464 |
+
|
465 |
+
|
466 |
+
|
467 |
+
|
468 |
+
|
469 |
+
|
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 |
+
|
508 |
+
<?php
|
509 |
+
|
510 |
+
|
511 |
+
|
512 |
+
}
|
513 |
+
|
514 |
+
/**
|
515 |
+
* When the post is saved, saves our custom data.
|
516 |
+
*
|
517 |
+
* @param int $post_id The ID of the post being saved.
|
518 |
+
*/
|
519 |
+
function meta_boxes_accordions_save( $post_id ) {
|
520 |
+
|
521 |
+
/*
|
522 |
+
* We need to verify this came from the our screen and with proper authorization,
|
523 |
+
* because save_post can be triggered at other times.
|
524 |
+
*/
|
525 |
+
|
526 |
+
// Check if our nonce is set.
|
527 |
+
if ( ! isset( $_POST['meta_boxes_accordions_input_nonce'] ) )
|
528 |
+
return $post_id;
|
529 |
+
|
530 |
+
$nonce = $_POST['meta_boxes_accordions_input_nonce'];
|
531 |
+
|
532 |
+
// Verify that the nonce is valid.
|
533 |
+
if ( ! wp_verify_nonce( $nonce, 'meta_boxes_accordions_input' ) )
|
534 |
+
return $post_id;
|
535 |
+
|
536 |
+
// If this is an autosave, our form has not been submitted, so we don't want to do anything.
|
537 |
+
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
|
538 |
+
return $post_id;
|
539 |
+
|
540 |
+
|
541 |
+
|
542 |
+
/* OK, its safe for us to save the data now. */
|
543 |
+
|
544 |
+
// Sanitize user input.
|
545 |
+
$accordions_bg_img = sanitize_text_field( $_POST['accordions_bg_img'] );
|
546 |
+
$accordions_themes = sanitize_text_field( $_POST['accordions_themes'] );
|
547 |
+
$accordions_icons = sanitize_text_field( $_POST['accordions_icons'] );
|
548 |
+
|
549 |
+
$accordions_default_bg_color = sanitize_text_field( $_POST['accordions_default_bg_color'] );
|
550 |
+
$accordions_active_bg_color = sanitize_text_field( $_POST['accordions_active_bg_color'] );
|
551 |
+
|
552 |
+
|
553 |
+
$accordions_items_title_color = sanitize_text_field( $_POST['accordions_items_title_color'] );
|
554 |
+
$accordions_items_title_font_size = sanitize_text_field( $_POST['accordions_items_title_font_size'] );
|
555 |
+
|
556 |
+
$accordions_items_content_color = sanitize_text_field( $_POST['accordions_items_content_color'] );
|
557 |
+
$accordions_items_content_font_size = sanitize_text_field( $_POST['accordions_items_content_font_size'] );
|
558 |
+
|
559 |
+
$accordions_items_thumb_size = sanitize_text_field( $_POST['accordions_items_thumb_size'] );
|
560 |
+
$accordions_items_thumb_max_hieght = sanitize_text_field( $_POST['accordions_items_thumb_max_hieght'] );
|
561 |
+
|
562 |
+
$accordions_content_title = stripslashes_deep( $_POST['accordions_content_title'] );
|
563 |
+
$accordions_content_body = stripslashes_deep( $_POST['accordions_content_body'] );
|
564 |
+
|
565 |
+
|
566 |
+
|
567 |
+
|
568 |
+
|
569 |
+
|
570 |
+
// Update the meta field in the database.
|
571 |
+
update_post_meta( $post_id, 'accordions_bg_img', $accordions_bg_img );
|
572 |
+
update_post_meta( $post_id, 'accordions_themes', $accordions_themes );
|
573 |
+
update_post_meta( $post_id, 'accordions_icons', $accordions_icons );
|
574 |
+
|
575 |
+
update_post_meta( $post_id, 'accordions_default_bg_color', $accordions_default_bg_color );
|
576 |
+
update_post_meta( $post_id, 'accordions_active_bg_color', $accordions_active_bg_color );
|
577 |
+
|
578 |
+
|
579 |
+
update_post_meta( $post_id, 'accordions_items_title_color', $accordions_items_title_color );
|
580 |
+
update_post_meta( $post_id, 'accordions_items_title_font_size', $accordions_items_title_font_size );
|
581 |
+
|
582 |
+
update_post_meta( $post_id, 'accordions_items_content_color', $accordions_items_content_color );
|
583 |
+
update_post_meta( $post_id, 'accordions_items_content_font_size', $accordions_items_content_font_size );
|
584 |
+
|
585 |
+
update_post_meta( $post_id, 'accordions_items_thumb_size', $accordions_items_thumb_size );
|
586 |
+
update_post_meta( $post_id, 'accordions_items_thumb_max_hieght', $accordions_items_thumb_max_hieght );
|
587 |
+
|
588 |
+
update_post_meta( $post_id, 'accordions_content_title', $accordions_content_title );
|
589 |
+
update_post_meta( $post_id, 'accordions_content_body', $accordions_content_body );
|
590 |
+
|
591 |
+
|
592 |
+
|
593 |
+
|
594 |
+
|
595 |
+
|
596 |
+
|
597 |
+
}
|
598 |
+
add_action( 'save_post', 'meta_boxes_accordions_save' );
|
599 |
+
|
600 |
+
|
601 |
+
|
602 |
+
|
603 |
+
|
604 |
+
|
605 |
+
|
606 |
+
|
607 |
+
|
608 |
+
|
609 |
+
|
610 |
+
|
611 |
+
|
612 |
+
|
613 |
+
|
614 |
+
|
615 |
+
|
616 |
+
|
617 |
+
|
618 |
+
|
619 |
+
|
620 |
+
|
621 |
+
|
622 |
+
|
623 |
+
|
624 |
+
|
625 |
+
?>
|
index.php
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// silence is golden.
|
js/color-picker.js
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function(jQuery)
|
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 |
+
|
9 |
+
|
10 |
+
});
|
js/responsive-accordion.js
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// Responsive Accordion v1.3, Copyright 2014, Joe Mottershaw, https://github.com/joemottershaw/
|
2 |
+
// ============================================================================================
|
3 |
+
|
4 |
+
jQuery(document).ready(function($) {
|
5 |
+
$('.responsive-accordion').each(function() {
|
6 |
+
// Set Expand/Collapse Icons
|
7 |
+
$('.responsive-accordion-minus', this).hide();
|
8 |
+
|
9 |
+
// Hide panels
|
10 |
+
$('.responsive-accordion-panel', this).hide();
|
11 |
+
|
12 |
+
// Bind the click event handler
|
13 |
+
$('.responsive-accordion-head', this).click(function(e) {
|
14 |
+
// Get elements
|
15 |
+
var thisAccordion = $(this).parent().parent(),
|
16 |
+
thisHead = $(this),
|
17 |
+
thisPlus = thisHead.find('.responsive-accordion-plus'),
|
18 |
+
thisMinus = thisHead.find('.responsive-accordion-minus'),
|
19 |
+
thisPanel = thisHead.siblings('.responsive-accordion-panel');
|
20 |
+
|
21 |
+
// Reset all plus/mins symbols on all headers
|
22 |
+
thisAccordion.find('.responsive-accordion-plus').show();
|
23 |
+
thisAccordion.find('.responsive-accordion-minus').hide();
|
24 |
+
|
25 |
+
// Reset all head/panels active statuses except for current
|
26 |
+
thisAccordion.find('.responsive-accordion-head').not(this).removeClass('active');
|
27 |
+
thisAccordion.find('.responsive-accordion-panel').not(this).removeClass('active').slideUp();
|
28 |
+
|
29 |
+
// Toggle current head/panel active statuses
|
30 |
+
if (thisHead.hasClass('active')) {
|
31 |
+
thisHead.removeClass('active');
|
32 |
+
thisPlus.show();
|
33 |
+
thisMinus.hide();
|
34 |
+
thisPanel.removeClass('active').slideUp();
|
35 |
+
} else {
|
36 |
+
thisHead.addClass('active');
|
37 |
+
thisPlus.hide();
|
38 |
+
thisMinus.show();
|
39 |
+
thisPanel.addClass('active').slideDown();
|
40 |
+
}
|
41 |
+
});
|
42 |
+
});
|
43 |
+
});
|
js/scripts.js
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
jQuery(document).ready(function($)
|
3 |
+
{
|
4 |
+
|
5 |
+
|
6 |
+
$(document).on('click', '.tab-nav li', function()
|
7 |
+
{
|
8 |
+
$(".active").removeClass("active");
|
9 |
+
$(this).addClass("active");
|
10 |
+
|
11 |
+
var nav = $(this).attr("nav");
|
12 |
+
|
13 |
+
$(".box li.tab-box").css("display","none");
|
14 |
+
$(".box"+nav).css("display","block");
|
15 |
+
|
16 |
+
})
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
$(document).on('click', '.accordions_content_source', function()
|
22 |
+
{
|
23 |
+
var source = $(this).val();
|
24 |
+
var source_id = $(this).attr("id");
|
25 |
+
|
26 |
+
$(".content-source-box.active").removeClass("active");
|
27 |
+
$(".content-source-box."+source_id).addClass("active");
|
28 |
+
|
29 |
+
})
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
+
$(document).on('click', '.accordions-content-buttons .add-accordions', function()
|
35 |
+
{
|
36 |
+
|
37 |
+
var row = $(".accordions-content tr:last-child").attr("index");
|
38 |
+
|
39 |
+
|
40 |
+
if($.isNumeric(row))
|
41 |
+
{
|
42 |
+
var row = parseInt(row)+1;
|
43 |
+
|
44 |
+
}
|
45 |
+
|
46 |
+
else
|
47 |
+
{
|
48 |
+
var row = 0;
|
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 |
+
|
56 |
+
|
57 |
+
|
58 |
+
$(document).on('click', '#accordions_metabox .removeaccordions', function()
|
59 |
+
{
|
60 |
+
|
61 |
+
$(this).parent().parent().remove();
|
62 |
+
|
63 |
+
|
64 |
+
|
65 |
+
})
|
66 |
+
|
67 |
+
|
68 |
+
|
69 |
+
});
|
70 |
+
|
71 |
+
|
72 |
+
|
73 |
+
|
74 |
+
|
75 |
+
|
76 |
+
|
readme.txt
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
|
11 |
+
HTML & CSS3 responsive accordions for WordPress.
|
12 |
+
|
13 |
+
== Description ==
|
14 |
+
|
15 |
+
|
16 |
+
Accordions is pure HTML & CSS3 responsive accordion grid for WordPress. By this plugin you can display unlimited accordion grid at same page via short-code.
|
17 |
+
|
18 |
+
|
19 |
+
### Accordions by http://paratheme.com
|
20 |
+
|
21 |
+
<br />
|
22 |
+
|
23 |
+
|
24 |
+
<strong>Plugin Features</strong><br />
|
25 |
+
|
26 |
+
* Fully responsive and mobile ready.
|
27 |
+
* Unlimited accordions anywhere.
|
28 |
+
* Use via short-code.
|
29 |
+
* Different Theme.
|
30 |
+
* Easy input field for accordions content.
|
31 |
+
* Background Image for accordions area.
|
32 |
+
* Custom Active accordions background color.
|
33 |
+
* Custom default background color.
|
34 |
+
* Custom font color and size for accordions header.
|
35 |
+
* Custom font color and size for accordions content.
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
+
|
40 |
+
== Installation ==
|
41 |
+
|
42 |
+
1. Install as regular WordPress plugin.<br />
|
43 |
+
2. Go your plugin setting via WordPress Dashboard and find "<strong>Accordions</strong>" activate it.<br />
|
44 |
+
|
45 |
+
After activate plugin you will see "Accordions" menu at left side on WordPress dashboard click "New Accordions" and use the options field "Accordions Options"<br />
|
46 |
+
|
47 |
+
<br />
|
48 |
+
<strong>How to use on page or post</strong><br />
|
49 |
+
When accordions options setup done please publish accordions<br />
|
50 |
+
|
51 |
+
and then copy shortcode from top of <strong>Accordions Options</strong> `[accordions id="1234" ]`<br />
|
52 |
+
|
53 |
+
then paste this shortcode anywhere in your page to display accordions<br />
|
54 |
+
|
55 |
+
|
56 |
+
|
57 |
+
|
58 |
+
|
59 |
+
|
60 |
+
|
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.
|
themes/flat/images/star.png
ADDED
Binary file
|
themes/flat/index.php
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function accordions_themes_flat($post_id)
|
4 |
+
{
|
5 |
+
|
6 |
+
|
7 |
+
$accordions_themes = get_post_meta( $post_id, 'accordions_themes', true );
|
8 |
+
$accordions_bg_img = get_post_meta( $post_id, 'accordions_bg_img', true );
|
9 |
+
$accordions_icons = get_post_meta( $post_id, 'accordions_icons', true );
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
$accordions_default_bg_color = get_post_meta( $post_id, 'accordions_default_bg_color', true );
|
14 |
+
$accordions_active_bg_color = get_post_meta( $post_id, 'accordions_active_bg_color', true );
|
15 |
+
|
16 |
+
$accordions_items_title_color = get_post_meta( $post_id, 'accordions_items_title_color', true );
|
17 |
+
$accordions_items_title_font_size = get_post_meta( $post_id, 'accordions_items_title_font_size', true );
|
18 |
+
|
19 |
+
$accordions_items_content_color = get_post_meta( $post_id, 'accordions_items_content_color', true );
|
20 |
+
$accordions_items_content_font_size = get_post_meta( $post_id, 'accordions_items_content_font_size', true );
|
21 |
+
|
22 |
+
|
23 |
+
$accordions_items_thumb_size = get_post_meta( $post_id, 'accordions_items_thumb_size', true );
|
24 |
+
$accordions_items_thumb_max_hieght = get_post_meta( $post_id, 'accordions_items_thumb_max_hieght', true );
|
25 |
+
|
26 |
+
$accordions_ribbon_name = get_post_meta( $post_id, 'accordions_ribbon_name', true );
|
27 |
+
|
28 |
+
$accordions_content_title = get_post_meta( $post_id, 'accordions_content_title', true );
|
29 |
+
$accordions_content_body = get_post_meta( $post_id, 'accordions_content_body', true );
|
30 |
+
|
31 |
+
|
32 |
+
$accordions_body = '';
|
33 |
+
$accordions_body = '<style type="text/css"></style>';
|
34 |
+
|
35 |
+
|
36 |
+
|
37 |
+
$accordions_body .= '
|
38 |
+
<div id="accordions-'.$post_id.'" class="accordions-container accordions-'.$accordions_themes.'" style="background-image:url('.$accordions_bg_img.')">';
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
$accordions_body.= '<ul class="responsive-accordion responsive-accordion-default">';
|
43 |
+
|
44 |
+
|
45 |
+
|
46 |
+
foreach ($accordions_content_title as $index => $accordions_title)
|
47 |
+
{
|
48 |
+
$accordions_body.= '<li>';
|
49 |
+
$accordions_body.= '<div class="responsive-accordion-head">'.$accordions_title.'<i class="responsive-accordion-icons responsive-accordion-plus '.$accordions_icons.'"></i><i class="responsive-accordion-icons responsive-accordion-minus '.$accordions_icons.'"></i></div>';
|
50 |
+
$accordions_body.= '<div class="responsive-accordion-panel">'.$accordions_content_body[$index];
|
51 |
+
|
52 |
+
$accordions_body.= '</div>';
|
53 |
+
$accordions_body.= '</li>';
|
54 |
+
}
|
55 |
+
|
56 |
+
|
57 |
+
$accordions_body.= '</ul>';
|
58 |
+
|
59 |
+
$accordions_body .= '</div>';
|
60 |
+
|
61 |
+
|
62 |
+
$accordions_body .= '<style type="text/css">
|
63 |
+
|
64 |
+
#accordions-'.$post_id.' .responsive-accordion-head{
|
65 |
+
color:'.$accordions_items_title_color.';
|
66 |
+
font-size:'.$accordions_items_title_font_size.';
|
67 |
+
background:'.$accordions_default_bg_color.';
|
68 |
+
border-bottom: 1px solid'.accordions_paratheme_dark_color($accordions_default_bg_color).';
|
69 |
+
}
|
70 |
+
|
71 |
+
#accordions-'.$post_id.' .responsive-accordion-head.active{
|
72 |
+
background: '.$accordions_active_bg_color.';
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
|
77 |
+
</style>';
|
78 |
+
|
79 |
+
|
80 |
+
|
81 |
+
$accordions_body .= "<script type='text/javascript'>
|
82 |
+
|
83 |
+
</script>";
|
84 |
+
|
85 |
+
|
86 |
+
|
87 |
+
return $accordions_body;
|
88 |
+
|
89 |
+
|
90 |
+
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
+
|
95 |
+
|
96 |
+
|
97 |
+
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
|
102 |
+
}
|
themes/flat/style.css
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@charset "utf-8";
|
2 |
+
/* CSS Document */
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
|
8 |
+
|
9 |
+
.accordions-flat {
|
10 |
+
margin: 0 !important;
|
11 |
+
}
|
12 |
+
|
13 |
+
.accordions-flat ul.responsive-accordion{}
|
14 |
+
|
15 |
+
|
16 |
+
.accordions-flat ul.responsive-accordion li{}
|
17 |
+
|
18 |
+
|
19 |
+
.accordions-flat ul.responsive-accordion li .responsive-accordion-head {
|
20 |
+
background: none repeat scroll 0 0 rgb(47, 182, 116);
|
21 |
+
border-bottom: 1px solid rgb(54, 228, 143);
|
22 |
+
}
|
23 |
+
|
24 |
+
|
25 |
+
|
26 |
+
.accordions-flat ul.responsive-accordion li .responsive-accordion-panel{}
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
+
|
35 |
+
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
|
44 |
+
|
45 |
+
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
+
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
|