Version Description
- 03/06/2016 =
- Added: New shortcode -- Chart Bar
- Added: New shortcode -- Chart Doughnut
- Added: New shortcode -- Chart Line
- Added: New shortcode -- Chart Pie
Download this release
Release Info
Developer | magictheme |
Plugin | Magee Shortcodes |
Version | 1.5.5 |
Comparing to | |
See all releases |
Code changes from version 1.5.4 to 1.5.5
- Magee.php +2 -2
- assets/css/admin.css +66 -0
- assets/css/prettyPhoto.css +524 -524
- assets/js/admin.js +124 -7
- assets/js/chart.min.js +47 -0
- inc/core.php +91 -85
- inc/options.php +271 -4
- inc/popup.php +1 -57
- readme.txt +8 -2
- shortcodes/class-accordion.php +3 -1
- shortcodes/class-alert.php +3 -1
- shortcodes/class-audio.php +3 -1
- shortcodes/class-button.php +3 -1
- shortcodes/class-chart-bar.php +102 -0
- shortcodes/class-chart-doughnut.php +85 -0
- shortcodes/class-chart-line.php +98 -0
- shortcodes/class-chart-pie.php +85 -0
- shortcodes/class-column.php +3 -1
- shortcodes/class-countdowns.php +3 -2
- shortcodes/class-counter.php +3 -2
- shortcodes/class-custom-box.php +3 -1
- shortcodes/class-dailymotion.php +3 -1
- shortcodes/class-divider.php +3 -1
- shortcodes/class-document.php +3 -1
- shortcodes/class-dropcap.php +3 -1
- shortcodes/class-dummy-image.php +3 -1
- shortcodes/class-dummy-text.php +3 -1
- shortcodes/class-expand.php +3 -1
- shortcodes/class-feature-box.php +3 -1
- shortcodes/class-flip-box.php +3 -1
- shortcodes/class-heading.php +3 -1
- shortcodes/class-highlight.php +3 -1
- shortcodes/class-icon.php +3 -1
- shortcodes/class-image-compare.php +3 -1
- shortcodes/class-image-frame.php +12 -2
- shortcodes/class-label.php +3 -1
- shortcodes/class-list.php +3 -1
- shortcodes/class-menu.php +3 -1
- shortcodes/class-modal.php +3 -1
- shortcodes/class-panel.php +3 -1
- shortcodes/class-person.php +3 -1
- shortcodes/class-piechart.php +3 -1
- shortcodes/class-popover.php +3 -1
- shortcodes/class-progress.php +3 -2
- shortcodes/class-promo-box.php +3 -1
- shortcodes/class-pullquote.php +3 -1
- shortcodes/class-qrcode.php +3 -2
- shortcodes/class-quote.php +3 -1
- shortcodes/class-row.php +3 -1
- shortcodes/class-rss-feed.php +3 -1
- shortcodes/class-scheduled-content.php +3 -1
- shortcodes/class-section.php +3 -1
- shortcodes/class-slider.php +3 -1
- shortcodes/class-social.php +3 -1
- shortcodes/class-tabs.php +3 -1
- shortcodes/class-targeted-content.php +3 -1
- shortcodes/class-testimonial.php +3 -1
- shortcodes/class-timeline.php +3 -2
- shortcodes/class-tooltip.php +3 -1
- shortcodes/class-video.php +3 -1
- shortcodes/class-vimeo.php +3 -1
- shortcodes/class-widget-area.php +3 -1
- shortcodes/class-youtube.php +3 -1
Magee.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Magee Shortcodes
|
4 |
Plugin URI: http://www.mageewp.com/magee-shortcode.html
|
5 |
Description: Magee Shortcodes is WordPress plugin that provides a pack of shortcodes. With Magee Shortcodes, you can easily create accordion, buttons, boxes, columns, social and much more. They allow you to create so many different page layouts. You could quickly and easily built your own custom pages using all the various shortcodes that Magee Shortcodes includes.
|
6 |
-
Version: 1.5.
|
7 |
Author: MageeWP
|
8 |
Author URI: http://www.mageewp.com
|
9 |
Text Domain: magee-shortcodes
|
@@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) return;
|
|
14 |
if(!class_exists('Magee_Core') && !defined( 'MAGEE_SHORTCODE_LIB_DIR') ):
|
15 |
define( 'MAGEE_SHORTCODES_PATH', __FILE__ );
|
16 |
define( 'MAGEE_SHORTCODES_DIR_PATH', plugin_dir_path( __FILE__ ));
|
17 |
-
define( 'MAGEE_SHORTCODES_VER', '1.5.
|
18 |
|
19 |
require_once 'inc/core.php';
|
20 |
//require_once 'inc/options.php';
|
3 |
Plugin Name: Magee Shortcodes
|
4 |
Plugin URI: http://www.mageewp.com/magee-shortcode.html
|
5 |
Description: Magee Shortcodes is WordPress plugin that provides a pack of shortcodes. With Magee Shortcodes, you can easily create accordion, buttons, boxes, columns, social and much more. They allow you to create so many different page layouts. You could quickly and easily built your own custom pages using all the various shortcodes that Magee Shortcodes includes.
|
6 |
+
Version: 1.5.5
|
7 |
Author: MageeWP
|
8 |
Author URI: http://www.mageewp.com
|
9 |
Text Domain: magee-shortcodes
|
14 |
if(!class_exists('Magee_Core') && !defined( 'MAGEE_SHORTCODE_LIB_DIR') ):
|
15 |
define( 'MAGEE_SHORTCODES_PATH', __FILE__ );
|
16 |
define( 'MAGEE_SHORTCODES_DIR_PATH', plugin_dir_path( __FILE__ ));
|
17 |
+
define( 'MAGEE_SHORTCODES_VER', '1.5.5' );
|
18 |
|
19 |
require_once 'inc/core.php';
|
20 |
//require_once 'inc/options.php';
|
assets/css/admin.css
CHANGED
@@ -133,6 +133,26 @@ a.magee_shortcode_item i {
|
|
133 |
|
134 |
.TB_footer {
|
135 |
background-color: #f5f5f5;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
}
|
137 |
|
138 |
.magee-shortcode-actions {
|
@@ -464,6 +484,7 @@ a#TB_closeWindowButton .tb-close-icon:before {
|
|
464 |
margin: 0 -15px;
|
465 |
padding: 20px;
|
466 |
position: relative;
|
|
|
467 |
}
|
468 |
|
469 |
.magee_shortcodes_container .wp-picker-container input[type=text].wp-color-picker {
|
@@ -500,6 +521,51 @@ a#TB_closeWindowButton .tb-close-icon:before {
|
|
500 |
.example-link {
|
501 |
text-decoration: none;
|
502 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
503 |
.container{
|
504 |
max-width:100%;
|
505 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
|
134 |
.TB_footer {
|
135 |
background-color: #f5f5f5;
|
136 |
+
position:relative ;
|
137 |
+
}
|
138 |
+
|
139 |
+
.magee-shortcode-return {
|
140 |
+
position: absolute;
|
141 |
+
top: -50px;
|
142 |
+
right: 20px;
|
143 |
+
z-index: 100;
|
144 |
+
width: 30px;
|
145 |
+
height:30px;
|
146 |
+
background: #1F0707;
|
147 |
+
opacity: 0.5;
|
148 |
+
display:none;
|
149 |
+
text-align: center;
|
150 |
+
line-height: 30px;
|
151 |
+
color: #fff;
|
152 |
+
border-radius: 100%;
|
153 |
+
border: 2px solid #fff;
|
154 |
+
box-shadow: 1px 1px 5px #000;
|
155 |
+
cursor: pointer;
|
156 |
}
|
157 |
|
158 |
.magee-shortcode-actions {
|
484 |
margin: 0 -15px;
|
485 |
padding: 20px;
|
486 |
position: relative;
|
487 |
+
z-index:1000;
|
488 |
}
|
489 |
|
490 |
.magee_shortcodes_container .wp-picker-container input[type=text].wp-color-picker {
|
521 |
.example-link {
|
522 |
text-decoration: none;
|
523 |
}
|
524 |
+
.magee_shortcodes_container .wp-picker-container input[type=text].wp-color-picker {
|
525 |
+
max-width: 100%;
|
526 |
+
}
|
527 |
+
.magee_shortcodes_container .wp-picker-container {
|
528 |
+
width: 100%;
|
529 |
+
}
|
530 |
.container{
|
531 |
max-width:100%;
|
532 |
}
|
533 |
+
.magee-upload-container img{
|
534 |
+
max-width:100%;
|
535 |
+
}
|
536 |
+
|
537 |
+
.magee_shortcodes_container .iconpicker {
|
538 |
+
border: 1px solid #ddd;
|
539 |
+
background-color: #fff;
|
540 |
+
}
|
541 |
+
|
542 |
+
.iconpicker .fa {
|
543 |
+
width: 15px;
|
544 |
+
line-height: 15px;
|
545 |
+
border-width: 0;
|
546 |
+
font-size: 14px;
|
547 |
+
padding: 8px;
|
548 |
+
position: relative;
|
549 |
+
transition: .1s;
|
550 |
+
}
|
551 |
+
|
552 |
+
.iconpicker i:hover {
|
553 |
+
-webkit-transform: scale(1.8);
|
554 |
+
transform: scale(1.8);
|
555 |
+
}
|
556 |
+
.link-forum {
|
557 |
+
position: absolute;
|
558 |
+
top: 0;
|
559 |
+
right: 50px;
|
560 |
+
}
|
561 |
+
|
562 |
+
.link-doc {
|
563 |
+
position: absolute;
|
564 |
+
top: 0;
|
565 |
+
right: 110px;
|
566 |
+
}
|
567 |
+
.link-pro{
|
568 |
+
position: absolute;
|
569 |
+
top: 0;
|
570 |
+
right: 230px;
|
571 |
+
}
|
assets/css/prettyPhoto.css
CHANGED
@@ -1,525 +1,525 @@
|
|
1 |
-
/* ------------------------------------------------------------------------
|
2 |
-
This you can edit.
|
3 |
-
------------------------------------------------------------------------- */
|
4 |
-
|
5 |
-
/* ----------------------------------
|
6 |
-
Default Theme
|
7 |
-
----------------------------------- */
|
8 |
-
|
9 |
-
div.pp_default .pp_top,
|
10 |
-
div.pp_default .pp_top .pp_middle,
|
11 |
-
div.pp_default .pp_top .pp_left,
|
12 |
-
div.pp_default .pp_top .pp_right,
|
13 |
-
div.pp_default .pp_bottom,
|
14 |
-
div.pp_default .pp_bottom .pp_left,
|
15 |
-
div.pp_default .pp_bottom .pp_middle,
|
16 |
-
div.pp_default .pp_bottom .pp_right { height: 13px; }
|
17 |
-
|
18 |
-
div.pp_default .pp_top .pp_left { background: url(../images/prettyPhoto/default/sprite.png) -78px -93px no-repeat; } /* Top left corner */
|
19 |
-
div.pp_default .pp_top .pp_middle { background: url(../images/prettyPhoto/default/sprite_x.png) top left repeat-x; } /* Top pattern/color */
|
20 |
-
div.pp_default .pp_top .pp_right { background: url(../images/prettyPhoto/default/sprite.png) -112px -93px no-repeat; } /* Top right corner */
|
21 |
-
|
22 |
-
div.pp_default .pp_content .ppt { color: #f8f8f8; }
|
23 |
-
div.pp_default .pp_content_container .pp_left { background: url(../images/prettyPhoto/default/sprite_y.png) -7px 0 repeat-y; padding-left: 13px; }
|
24 |
-
div.pp_default .pp_content_container .pp_right { background: url(../images/prettyPhoto/default/sprite_y.png) top right repeat-y; padding-right: 13px; }
|
25 |
-
div.pp_default .pp_content { background-color: #fff; } /* Content background */
|
26 |
-
div.pp_default .pp_next:hover { background: url(../images/prettyPhoto/default/sprite_next.png) center right no-repeat; cursor: pointer; } /* Next button */
|
27 |
-
div.pp_default .pp_previous:hover { background: url(../images/prettyPhoto/default/sprite_prev.png) center left no-repeat; cursor: pointer; } /* Previous button */
|
28 |
-
div.pp_default .pp_expand { background: url(../images/prettyPhoto/default/sprite.png) 0 -29px no-repeat; cursor: pointer; width: 28px; height: 28px; } /* Expand button */
|
29 |
-
div.pp_default .pp_expand:hover { background: url(../images/prettyPhoto/default/sprite.png) 0 -56px no-repeat; cursor: pointer; } /* Expand button hover */
|
30 |
-
div.pp_default .pp_contract { background: url(../images/prettyPhoto/default/sprite.png) 0 -84px no-repeat; cursor: pointer; width: 28px; height: 28px; } /* Contract button */
|
31 |
-
div.pp_default .pp_contract:hover { background: url(../images/prettyPhoto/default/sprite.png) 0 -113px no-repeat; cursor: pointer; } /* Contract button hover */
|
32 |
-
div.pp_default .pp_close { width: 30px; height: 30px; background: url(../images/prettyPhoto/default/sprite.png) 2px 1px no-repeat; cursor: pointer; } /* Close button */
|
33 |
-
div.pp_default #pp_full_res .pp_inline { color: #000; }
|
34 |
-
div.pp_default .pp_gallery ul li a { background: url(../images/prettyPhoto/default/default_thumb.png) center center #f8f8f8; border:1px solid #aaa; }
|
35 |
-
div.pp_default .pp_gallery ul li a:hover,
|
36 |
-
div.pp_default .pp_gallery ul li.selected a { border-color: #fff; }
|
37 |
-
div.pp_default .pp_social { margin-top: 7px; }
|
38 |
-
|
39 |
-
div.pp_default .pp_gallery a.pp_arrow_previous,
|
40 |
-
div.pp_default .pp_gallery a.pp_arrow_next { position: static; left: auto; }
|
41 |
-
div.pp_default .pp_nav .pp_play,
|
42 |
-
div.pp_default .pp_nav .pp_pause { background: url(../images/prettyPhoto/default/sprite.png) -51px 1px no-repeat; height:30px; width:30px; }
|
43 |
-
div.pp_default .pp_nav .pp_pause { background-position: -51px -29px; }
|
44 |
-
div.pp_default .pp_details { position: relative; }
|
45 |
-
div.pp_default a.pp_arrow_previous,
|
46 |
-
div.pp_default a.pp_arrow_next { background: url(../images/prettyPhoto/default/sprite.png) -31px -3px no-repeat; height: 20px; margin: 4px 0 0 0; width: 20px; }
|
47 |
-
div.pp_default a.pp_arrow_next { left: 52px; background-position: -82px -3px; } /* The next arrow in the bottom nav */
|
48 |
-
div.pp_default .pp_content_container .pp_details { margin-top: 5px; }
|
49 |
-
div.pp_default .pp_nav { clear: none; height: 30px; width: 110px; position: relative; }
|
50 |
-
div.pp_default .pp_nav .currentTextHolder{ font-family: Georgia; font-style: italic; color:#999; font-size: 11px; left: 75px; line-height: 25px; margin: 0; padding: 0 0 0 10px; position: absolute; top: 2px; }
|
51 |
-
|
52 |
-
div.pp_default .pp_close:hover, div.pp_default .pp_nav .pp_play:hover, div.pp_default .pp_nav .pp_pause:hover, div.pp_default .pp_arrow_next:hover, div.pp_default .pp_arrow_previous:hover { opacity:0.7; }
|
53 |
-
|
54 |
-
div.pp_default .pp_description{ font-size: 11px; font-weight: bold; line-height: 14px; margin: 5px 50px 5px 0; }
|
55 |
-
|
56 |
-
div.pp_default .pp_bottom .pp_left { background: url(../images/prettyPhoto/default/sprite.png) -78px -127px no-repeat; } /* Bottom left corner */
|
57 |
-
div.pp_default .pp_bottom .pp_middle { background: url(../images/prettyPhoto/default/sprite_x.png) bottom left repeat-x; } /* Bottom pattern/color */
|
58 |
-
div.pp_default .pp_bottom .pp_right { background: url(../images/prettyPhoto/default/sprite.png) -112px -127px no-repeat; } /* Bottom right corner */
|
59 |
-
|
60 |
-
div.pp_default .pp_loaderIcon { background: url(../images/prettyPhoto/default/loader.gif) center center no-repeat; } /* Loader icon */
|
61 |
-
|
62 |
-
|
63 |
-
/* ----------------------------------
|
64 |
-
Light Rounded Theme
|
65 |
-
----------------------------------- */
|
66 |
-
|
67 |
-
|
68 |
-
div.light_rounded .pp_top .pp_left { background: url(../images/prettyPhoto/light_rounded/sprite.png) -88px -53px no-repeat; } /* Top left corner */
|
69 |
-
div.light_rounded .pp_top .pp_middle { background: #fff; } /* Top pattern/color */
|
70 |
-
div.light_rounded .pp_top .pp_right { background: url(../images/prettyPhoto/light_rounded/sprite.png) -110px -53px no-repeat; } /* Top right corner */
|
71 |
-
|
72 |
-
div.light_rounded .pp_content .ppt { color: #000; }
|
73 |
-
div.light_rounded .pp_content_container .pp_left,
|
74 |
-
div.light_rounded .pp_content_container .pp_right { background: #fff; }
|
75 |
-
div.light_rounded .pp_content { background-color: #fff; } /* Content background */
|
76 |
-
div.light_rounded .pp_next:hover { background: url(../images/prettyPhoto/light_rounded/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */
|
77 |
-
div.light_rounded .pp_previous:hover { background: url(../images/prettyPhoto/light_rounded/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */
|
78 |
-
div.light_rounded .pp_expand { background: url(../images/prettyPhoto/light_rounded/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */
|
79 |
-
div.light_rounded .pp_expand:hover { background: url(../images/prettyPhoto/light_rounded/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */
|
80 |
-
div.light_rounded .pp_contract { background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */
|
81 |
-
div.light_rounded .pp_contract:hover { background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */
|
82 |
-
div.light_rounded .pp_close { width: 75px; height: 22px; background: url(../images/prettyPhoto/light_rounded/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */
|
83 |
-
div.light_rounded .pp_details { position: relative; }
|
84 |
-
div.light_rounded .pp_description { margin-right: 85px; }
|
85 |
-
div.light_rounded #pp_full_res .pp_inline { color: #000; }
|
86 |
-
div.light_rounded .pp_gallery a.pp_arrow_previous,
|
87 |
-
div.light_rounded .pp_gallery a.pp_arrow_next { margin-top: 12px !important; }
|
88 |
-
div.light_rounded .pp_nav .pp_play { background: url(../images/prettyPhoto/light_rounded/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; }
|
89 |
-
div.light_rounded .pp_nav .pp_pause { background: url(../images/prettyPhoto/light_rounded/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; }
|
90 |
-
|
91 |
-
div.light_rounded .pp_arrow_previous { background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */
|
92 |
-
div.light_rounded .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; }
|
93 |
-
div.light_rounded .pp_arrow_next { background: url(../images/prettyPhoto/light_rounded/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */
|
94 |
-
div.light_rounded .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; }
|
95 |
-
|
96 |
-
div.light_rounded .pp_bottom .pp_left { background: url(../images/prettyPhoto/light_rounded/sprite.png) -88px -80px no-repeat; } /* Bottom left corner */
|
97 |
-
div.light_rounded .pp_bottom .pp_middle { background: #fff; } /* Bottom pattern/color */
|
98 |
-
div.light_rounded .pp_bottom .pp_right { background: url(../images/prettyPhoto/light_rounded/sprite.png) -110px -80px no-repeat; } /* Bottom right corner */
|
99 |
-
|
100 |
-
div.light_rounded .pp_loaderIcon { background: url(../images/prettyPhoto/light_rounded/loader.gif) center center no-repeat; } /* Loader icon */
|
101 |
-
|
102 |
-
/* ----------------------------------
|
103 |
-
Dark Rounded Theme
|
104 |
-
----------------------------------- */
|
105 |
-
|
106 |
-
div.dark_rounded .pp_top .pp_left { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -53px no-repeat; } /* Top left corner */
|
107 |
-
div.dark_rounded .pp_top .pp_middle { background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat; } /* Top pattern/color */
|
108 |
-
div.dark_rounded .pp_top .pp_right { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -53px no-repeat; } /* Top right corner */
|
109 |
-
|
110 |
-
div.dark_rounded .pp_content_container .pp_left { background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat-y; } /* Left Content background */
|
111 |
-
div.dark_rounded .pp_content_container .pp_right { background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top right repeat-y; } /* Right Content background */
|
112 |
-
div.dark_rounded .pp_content { background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat; } /* Content background */
|
113 |
-
div.dark_rounded .pp_next:hover { background: url(../images/prettyPhoto/dark_rounded/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */
|
114 |
-
div.dark_rounded .pp_previous:hover { background: url(../images/prettyPhoto/dark_rounded/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */
|
115 |
-
div.dark_rounded .pp_expand { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */
|
116 |
-
div.dark_rounded .pp_expand:hover { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */
|
117 |
-
div.dark_rounded .pp_contract { background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */
|
118 |
-
div.dark_rounded .pp_contract:hover { background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */
|
119 |
-
div.dark_rounded .pp_close { width: 75px; height: 22px; background: url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */
|
120 |
-
div.dark_rounded .pp_details { position: relative; }
|
121 |
-
div.dark_rounded .pp_description { margin-right: 85px; }
|
122 |
-
div.dark_rounded .currentTextHolder { color: #c4c4c4; }
|
123 |
-
div.dark_rounded .pp_description { color: #fff; }
|
124 |
-
div.dark_rounded #pp_full_res .pp_inline { color: #fff; }
|
125 |
-
div.dark_rounded .pp_gallery a.pp_arrow_previous,
|
126 |
-
div.dark_rounded .pp_gallery a.pp_arrow_next { margin-top: 12px !important; }
|
127 |
-
div.dark_rounded .pp_nav .pp_play { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; }
|
128 |
-
div.dark_rounded .pp_nav .pp_pause { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; }
|
129 |
-
|
130 |
-
div.dark_rounded .pp_arrow_previous { background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */
|
131 |
-
div.dark_rounded .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; }
|
132 |
-
div.dark_rounded .pp_arrow_next { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */
|
133 |
-
div.dark_rounded .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; }
|
134 |
-
|
135 |
-
div.dark_rounded .pp_bottom .pp_left { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -80px no-repeat; } /* Bottom left corner */
|
136 |
-
div.dark_rounded .pp_bottom .pp_middle { background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat; } /* Bottom pattern/color */
|
137 |
-
div.dark_rounded .pp_bottom .pp_right { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -80px no-repeat; } /* Bottom right corner */
|
138 |
-
|
139 |
-
div.dark_rounded .pp_loaderIcon { background: url(../images/prettyPhoto/dark_rounded/loader.gif) center center no-repeat; } /* Loader icon */
|
140 |
-
|
141 |
-
|
142 |
-
/* ----------------------------------
|
143 |
-
Dark Square Theme
|
144 |
-
----------------------------------- */
|
145 |
-
|
146 |
-
div.dark_square .pp_left ,
|
147 |
-
div.dark_square .pp_middle,
|
148 |
-
div.dark_square .pp_right,
|
149 |
-
div.dark_square .pp_content { background: #000; }
|
150 |
-
|
151 |
-
div.dark_square .currentTextHolder { color: #c4c4c4; }
|
152 |
-
div.dark_square .pp_description { color: #fff; }
|
153 |
-
div.dark_square .pp_loaderIcon { background: url(../images/prettyPhoto/dark_square/loader.gif) center center no-repeat; } /* Loader icon */
|
154 |
-
|
155 |
-
div.dark_square .pp_expand { background: url(../images/prettyPhoto/dark_square/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */
|
156 |
-
div.dark_square .pp_expand:hover { background: url(../images/prettyPhoto/dark_square/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */
|
157 |
-
div.dark_square .pp_contract { background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */
|
158 |
-
div.dark_square .pp_contract:hover { background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */
|
159 |
-
div.dark_square .pp_close { width: 75px; height: 22px; background: url(../images/prettyPhoto/dark_square/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */
|
160 |
-
div.dark_square .pp_details { position: relative; }
|
161 |
-
div.dark_square .pp_description { margin: 0 85px 0 0; }
|
162 |
-
div.dark_square #pp_full_res .pp_inline { color: #fff; }
|
163 |
-
div.dark_square .pp_gallery a.pp_arrow_previous,
|
164 |
-
div.dark_square .pp_gallery a.pp_arrow_next { margin-top: 12px !important; }
|
165 |
-
div.dark_square .pp_nav { clear: none; }
|
166 |
-
div.dark_square .pp_nav .pp_play { background: url(../images/prettyPhoto/dark_square/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; }
|
167 |
-
div.dark_square .pp_nav .pp_pause { background: url(../images/prettyPhoto/dark_square/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; }
|
168 |
-
|
169 |
-
div.dark_square .pp_arrow_previous { background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */
|
170 |
-
div.dark_square .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; }
|
171 |
-
div.dark_square .pp_arrow_next { background: url(../images/prettyPhoto/dark_square/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */
|
172 |
-
div.dark_square .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; }
|
173 |
-
|
174 |
-
div.dark_square .pp_next:hover { background: url(../images/prettyPhoto/dark_square/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */
|
175 |
-
div.dark_square .pp_previous:hover { background: url(../images/prettyPhoto/dark_square/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */
|
176 |
-
|
177 |
-
|
178 |
-
/* ----------------------------------
|
179 |
-
Light Square Theme
|
180 |
-
----------------------------------- */
|
181 |
-
|
182 |
-
div.light_square .pp_left ,
|
183 |
-
div.light_square .pp_middle,
|
184 |
-
div.light_square .pp_right,
|
185 |
-
div.light_square .pp_content { background: #fff; }
|
186 |
-
|
187 |
-
div.light_square .pp_content .ppt { color: #000; }
|
188 |
-
div.light_square .pp_expand { background: url(../images/prettyPhoto/light_square/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */
|
189 |
-
div.light_square .pp_expand:hover { background: url(../images/prettyPhoto/light_square/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */
|
190 |
-
div.light_square .pp_contract { background: url(../images/prettyPhoto/light_square/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */
|
191 |
-
div.light_square .pp_contract:hover { background: url(../images/prettyPhoto/light_square/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */
|
192 |
-
div.light_square .pp_close { width: 75px; height: 22px; background: url(../images/prettyPhoto/light_square/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */
|
193 |
-
div.light_square .pp_details { position: relative; }
|
194 |
-
div.light_square .pp_description { margin-right: 85px; }
|
195 |
-
div.light_square #pp_full_res .pp_inline { color: #000; }
|
196 |
-
div.light_square .pp_gallery a.pp_arrow_previous,
|
197 |
-
div.light_square .pp_gallery a.pp_arrow_next { margin-top: 12px !important; }
|
198 |
-
div.light_square .pp_nav .pp_play { background: url(../images/prettyPhoto/light_square/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; }
|
199 |
-
div.light_square .pp_nav .pp_pause { background: url(../images/prettyPhoto/light_square/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; }
|
200 |
-
|
201 |
-
div.light_square .pp_arrow_previous { background: url(../images/prettyPhoto/light_square/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */
|
202 |
-
div.light_square .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; }
|
203 |
-
div.light_square .pp_arrow_next { background: url(../images/prettyPhoto/light_square/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */
|
204 |
-
div.light_square .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; }
|
205 |
-
|
206 |
-
div.light_square .pp_next:hover { background: url(../images/prettyPhoto/light_square/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */
|
207 |
-
div.light_square .pp_previous:hover { background: url(../images/prettyPhoto/light_square/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */
|
208 |
-
|
209 |
-
div.light_square .pp_loaderIcon { background: url(../images/prettyPhoto/light_rounded/loader.gif) center center no-repeat; } /* Loader icon */
|
210 |
-
|
211 |
-
|
212 |
-
/* ----------------------------------
|
213 |
-
Facebook style Theme
|
214 |
-
----------------------------------- */
|
215 |
-
|
216 |
-
div.facebook .pp_top .pp_left { background: url(../images/prettyPhoto/facebook/sprite.png) -88px -53px no-repeat; } /* Top left corner */
|
217 |
-
div.facebook .pp_top .pp_middle { background: url(../images/prettyPhoto/facebook/contentPatternTop.png) top left repeat-x; } /* Top pattern/color */
|
218 |
-
div.facebook .pp_top .pp_right { background: url(../images/prettyPhoto/facebook/sprite.png) -110px -53px no-repeat; } /* Top right corner */
|
219 |
-
|
220 |
-
div.facebook .pp_content .ppt { color: #000; }
|
221 |
-
div.facebook .pp_content_container .pp_left { background: url(../images/prettyPhoto/facebook/contentPatternLeft.png) top left repeat-y; } /* Content background */
|
222 |
-
div.facebook .pp_content_container .pp_right { background: url(../images/prettyPhoto/facebook/contentPatternRight.png) top right repeat-y; } /* Content background */
|
223 |
-
div.facebook .pp_content { background: #fff; } /* Content background */
|
224 |
-
div.facebook .pp_expand { background: url(../images/prettyPhoto/facebook/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */
|
225 |
-
div.facebook .pp_expand:hover { background: url(../images/prettyPhoto/facebook/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */
|
226 |
-
div.facebook .pp_contract { background: url(../images/prettyPhoto/facebook/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */
|
227 |
-
div.facebook .pp_contract:hover { background: url(../images/prettyPhoto/facebook/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */
|
228 |
-
div.facebook .pp_close { width: 22px; height: 22px; background: url(../images/prettyPhoto/facebook/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */
|
229 |
-
div.facebook .pp_details { position: relative; }
|
230 |
-
div.facebook .pp_description { margin: 0 37px 0 0; }
|
231 |
-
div.facebook #pp_full_res .pp_inline { color: #000; }
|
232 |
-
div.facebook .pp_loaderIcon { background: url(../images/prettyPhoto/facebook/loader.gif) center center no-repeat; } /* Loader icon */
|
233 |
-
|
234 |
-
div.facebook .pp_arrow_previous { background: url(../images/prettyPhoto/facebook/sprite.png) 0 -71px no-repeat; height: 22px; margin-top: 0; width: 22px; } /* The previous arrow in the bottom nav */
|
235 |
-
div.facebook .pp_arrow_previous.disabled { background-position: 0 -96px; cursor: default; }
|
236 |
-
div.facebook .pp_arrow_next { background: url(../images/prettyPhoto/facebook/sprite.png) -32px -71px no-repeat; height: 22px; margin-top: 0; width: 22px; } /* The next arrow in the bottom nav */
|
237 |
-
div.facebook .pp_arrow_next.disabled { background-position: -32px -96px; cursor: default; }
|
238 |
-
div.facebook .pp_nav { margin-top: 0; }
|
239 |
-
div.facebook .pp_nav p { font-size: 15px; padding: 0 3px 0 4px; }
|
240 |
-
div.facebook .pp_nav .pp_play { background: url(../images/prettyPhoto/facebook/sprite.png) -1px -123px no-repeat; height: 22px; width: 22px; }
|
241 |
-
div.facebook .pp_nav .pp_pause { background: url(../images/prettyPhoto/facebook/sprite.png) -32px -123px no-repeat; height: 22px; width: 22px; }
|
242 |
-
|
243 |
-
div.facebook .pp_next:hover { background: url(../images/prettyPhoto/facebook/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */
|
244 |
-
div.facebook .pp_previous:hover { background: url(../images/prettyPhoto/facebook/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */
|
245 |
-
|
246 |
-
div.facebook .pp_bottom .pp_left { background: url(../images/prettyPhoto/facebook/sprite.png) -88px -80px no-repeat; } /* Bottom left corner */
|
247 |
-
div.facebook .pp_bottom .pp_middle { background: url(../images/prettyPhoto/facebook/contentPatternBottom.png) top left repeat-x; } /* Bottom pattern/color */
|
248 |
-
div.facebook .pp_bottom .pp_right { background: url(../images/prettyPhoto/facebook/sprite.png) -110px -80px no-repeat; } /* Bottom right corner */
|
249 |
-
|
250 |
-
|
251 |
-
/* ------------------------------------------------------------------------
|
252 |
-
DO NOT CHANGE
|
253 |
-
------------------------------------------------------------------------- */
|
254 |
-
|
255 |
-
div.pp_pic_holder a:focus { outline:none; }
|
256 |
-
|
257 |
-
div.pp_overlay {
|
258 |
-
background: #000;
|
259 |
-
display: none;
|
260 |
-
left: 0;
|
261 |
-
position: absolute;
|
262 |
-
top: 0;
|
263 |
-
width: 100%;
|
264 |
-
z-index:
|
265 |
-
}
|
266 |
-
|
267 |
-
div.pp_pic_holder {
|
268 |
-
display: none;
|
269 |
-
position: absolute;
|
270 |
-
width: 100px;
|
271 |
-
z-index:
|
272 |
-
}
|
273 |
-
|
274 |
-
|
275 |
-
.pp_top {
|
276 |
-
height: 20px;
|
277 |
-
position: relative;
|
278 |
-
}
|
279 |
-
* html .pp_top { padding: 0 20px; }
|
280 |
-
|
281 |
-
.pp_top .pp_left {
|
282 |
-
height: 20px;
|
283 |
-
left: 0;
|
284 |
-
position: absolute;
|
285 |
-
width: 20px;
|
286 |
-
}
|
287 |
-
.pp_top .pp_middle {
|
288 |
-
height: 20px;
|
289 |
-
left: 20px;
|
290 |
-
position: absolute;
|
291 |
-
right: 20px;
|
292 |
-
}
|
293 |
-
* html .pp_top .pp_middle {
|
294 |
-
left: 0;
|
295 |
-
position: static;
|
296 |
-
}
|
297 |
-
|
298 |
-
.pp_top .pp_right {
|
299 |
-
height: 20px;
|
300 |
-
left: auto;
|
301 |
-
position: absolute;
|
302 |
-
right: 0;
|
303 |
-
top: 0;
|
304 |
-
width: 20px;
|
305 |
-
}
|
306 |
-
|
307 |
-
.pp_content { height: 40px; min-width: 40px; }
|
308 |
-
* html .pp_content { width: 40px; }
|
309 |
-
|
310 |
-
.pp_fade { display: none; }
|
311 |
-
|
312 |
-
.pp_content_container {
|
313 |
-
position: relative;
|
314 |
-
text-align: left;
|
315 |
-
width: 100%;
|
316 |
-
}
|
317 |
-
|
318 |
-
.pp_content_container .pp_left { padding-left: 20px; }
|
319 |
-
.pp_content_container .pp_right { padding-right: 20px; }
|
320 |
-
|
321 |
-
.pp_content_container .pp_details {
|
322 |
-
float: left;
|
323 |
-
margin: 10px 0 2px 0;
|
324 |
-
}
|
325 |
-
.pp_description {
|
326 |
-
display: none;
|
327 |
-
margin: 0;
|
328 |
-
}
|
329 |
-
|
330 |
-
.pp_social { float: left; margin: 0; }
|
331 |
-
.pp_social .facebook { float: left; margin-left: 5px; width: 55px; overflow: hidden; }
|
332 |
-
.pp_social .twitter { float: left; }
|
333 |
-
|
334 |
-
.pp_nav {
|
335 |
-
clear: right;
|
336 |
-
float: left;
|
337 |
-
margin: 3px 10px 0 0;
|
338 |
-
}
|
339 |
-
|
340 |
-
.pp_nav p {
|
341 |
-
float: left;
|
342 |
-
margin: 2px 4px;
|
343 |
-
white-space: nowrap;
|
344 |
-
}
|
345 |
-
|
346 |
-
.pp_nav .pp_play,
|
347 |
-
.pp_nav .pp_pause {
|
348 |
-
float: left;
|
349 |
-
margin-right: 4px;
|
350 |
-
text-indent: -10000px;
|
351 |
-
}
|
352 |
-
|
353 |
-
a.pp_arrow_previous,
|
354 |
-
a.pp_arrow_next {
|
355 |
-
display: block;
|
356 |
-
float: left;
|
357 |
-
height: 15px;
|
358 |
-
margin-top: 3px;
|
359 |
-
overflow: hidden;
|
360 |
-
text-indent: -10000px;
|
361 |
-
width: 14px;
|
362 |
-
}
|
363 |
-
|
364 |
-
.pp_hoverContainer {
|
365 |
-
position: absolute;
|
366 |
-
top: 0;
|
367 |
-
width: 100%;
|
368 |
-
z-index: 2000;
|
369 |
-
}
|
370 |
-
|
371 |
-
.pp_gallery {
|
372 |
-
display: none;
|
373 |
-
left: 50%;
|
374 |
-
margin-top: -50px;
|
375 |
-
position: absolute;
|
376 |
-
z-index: 10000;
|
377 |
-
}
|
378 |
-
|
379 |
-
.pp_gallery div {
|
380 |
-
float: left;
|
381 |
-
overflow: hidden;
|
382 |
-
position: relative;
|
383 |
-
}
|
384 |
-
|
385 |
-
.pp_gallery ul {
|
386 |
-
float: left;
|
387 |
-
height: 35px;
|
388 |
-
margin: 0 0 0 5px;
|
389 |
-
padding: 0;
|
390 |
-
position: relative;
|
391 |
-
white-space: nowrap;
|
392 |
-
}
|
393 |
-
|
394 |
-
.pp_gallery ul a {
|
395 |
-
border: 1px #000 solid;
|
396 |
-
border: 1px rgba(0,0,0,0.5) solid;
|
397 |
-
display: block;
|
398 |
-
float: left;
|
399 |
-
height: 33px;
|
400 |
-
overflow: hidden;
|
401 |
-
}
|
402 |
-
|
403 |
-
.pp_gallery ul a:hover,
|
404 |
-
.pp_gallery li.selected a { border-color: #fff; }
|
405 |
-
|
406 |
-
.pp_gallery ul a img { border: 0; }
|
407 |
-
|
408 |
-
.pp_gallery li {
|
409 |
-
display: block;
|
410 |
-
float: left;
|
411 |
-
margin: 0 5px 0 0;
|
412 |
-
padding: 0;
|
413 |
-
}
|
414 |
-
|
415 |
-
.pp_gallery li.default a {
|
416 |
-
background: url(../images/prettyPhoto/facebook/default_thumbnail.gif) 0 0 no-repeat;
|
417 |
-
display: block;
|
418 |
-
height: 33px;
|
419 |
-
width: 50px;
|
420 |
-
}
|
421 |
-
|
422 |
-
.pp_gallery li.default a img { display: none; }
|
423 |
-
|
424 |
-
.pp_gallery .pp_arrow_previous,
|
425 |
-
.pp_gallery .pp_arrow_next {
|
426 |
-
margin-top: 7px !important;
|
427 |
-
}
|
428 |
-
|
429 |
-
a.pp_next {
|
430 |
-
background: url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;
|
431 |
-
display: block;
|
432 |
-
float: right;
|
433 |
-
height: 100%;
|
434 |
-
text-indent: -10000px;
|
435 |
-
width: 49%;
|
436 |
-
}
|
437 |
-
|
438 |
-
a.pp_previous {
|
439 |
-
background: url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;
|
440 |
-
display: block;
|
441 |
-
float: left;
|
442 |
-
height: 100%;
|
443 |
-
text-indent: -10000px;
|
444 |
-
width: 49%;
|
445 |
-
}
|
446 |
-
|
447 |
-
a.pp_expand,
|
448 |
-
a.pp_contract {
|
449 |
-
cursor: pointer;
|
450 |
-
display: none;
|
451 |
-
height: 20px;
|
452 |
-
position: absolute;
|
453 |
-
right: 30px;
|
454 |
-
text-indent: -10000px;
|
455 |
-
top: 10px;
|
456 |
-
width: 20px;
|
457 |
-
z-index: 20000;
|
458 |
-
}
|
459 |
-
|
460 |
-
a.pp_close {
|
461 |
-
position: absolute; right: 0; top: 0;
|
462 |
-
display: block;
|
463 |
-
line-height:22px;
|
464 |
-
text-indent: -10000px;
|
465 |
-
}
|
466 |
-
|
467 |
-
.pp_bottom {
|
468 |
-
height: 20px;
|
469 |
-
position: relative;
|
470 |
-
}
|
471 |
-
* html .pp_bottom { padding: 0 20px; }
|
472 |
-
|
473 |
-
.pp_bottom .pp_left {
|
474 |
-
height: 20px;
|
475 |
-
left: 0;
|
476 |
-
position: absolute;
|
477 |
-
width: 20px;
|
478 |
-
}
|
479 |
-
.pp_bottom .pp_middle {
|
480 |
-
height: 20px;
|
481 |
-
left: 20px;
|
482 |
-
position: absolute;
|
483 |
-
right: 20px;
|
484 |
-
}
|
485 |
-
* html .pp_bottom .pp_middle {
|
486 |
-
left: 0;
|
487 |
-
position: static;
|
488 |
-
}
|
489 |
-
|
490 |
-
.pp_bottom .pp_right {
|
491 |
-
height: 20px;
|
492 |
-
left: auto;
|
493 |
-
position: absolute;
|
494 |
-
right: 0;
|
495 |
-
top: 0;
|
496 |
-
width: 20px;
|
497 |
-
}
|
498 |
-
|
499 |
-
.pp_loaderIcon {
|
500 |
-
display: block;
|
501 |
-
height: 24px;
|
502 |
-
left: 50%;
|
503 |
-
margin: -12px 0 0 -12px;
|
504 |
-
position: absolute;
|
505 |
-
top: 50%;
|
506 |
-
width: 24px;
|
507 |
-
}
|
508 |
-
|
509 |
-
#pp_full_res {
|
510 |
-
line-height: 1 !important;
|
511 |
-
}
|
512 |
-
|
513 |
-
#pp_full_res .pp_inline {
|
514 |
-
text-align: left;
|
515 |
-
}
|
516 |
-
|
517 |
-
#pp_full_res .pp_inline p { margin: 0 0 15px 0; }
|
518 |
-
|
519 |
-
div.ppt {
|
520 |
-
color: #fff;
|
521 |
-
display: none;
|
522 |
-
font-size: 17px;
|
523 |
-
margin: 0 0 5px 15px;
|
524 |
-
z-index: 9999;
|
525 |
}
|
1 |
+
/* ------------------------------------------------------------------------
|
2 |
+
This you can edit.
|
3 |
+
------------------------------------------------------------------------- */
|
4 |
+
|
5 |
+
/* ----------------------------------
|
6 |
+
Default Theme
|
7 |
+
----------------------------------- */
|
8 |
+
|
9 |
+
div.pp_default .pp_top,
|
10 |
+
div.pp_default .pp_top .pp_middle,
|
11 |
+
div.pp_default .pp_top .pp_left,
|
12 |
+
div.pp_default .pp_top .pp_right,
|
13 |
+
div.pp_default .pp_bottom,
|
14 |
+
div.pp_default .pp_bottom .pp_left,
|
15 |
+
div.pp_default .pp_bottom .pp_middle,
|
16 |
+
div.pp_default .pp_bottom .pp_right { height: 13px; }
|
17 |
+
|
18 |
+
div.pp_default .pp_top .pp_left { background: url(../images/prettyPhoto/default/sprite.png) -78px -93px no-repeat; } /* Top left corner */
|
19 |
+
div.pp_default .pp_top .pp_middle { background: url(../images/prettyPhoto/default/sprite_x.png) top left repeat-x; } /* Top pattern/color */
|
20 |
+
div.pp_default .pp_top .pp_right { background: url(../images/prettyPhoto/default/sprite.png) -112px -93px no-repeat; } /* Top right corner */
|
21 |
+
|
22 |
+
div.pp_default .pp_content .ppt { color: #f8f8f8; }
|
23 |
+
div.pp_default .pp_content_container .pp_left { background: url(../images/prettyPhoto/default/sprite_y.png) -7px 0 repeat-y; padding-left: 13px; }
|
24 |
+
div.pp_default .pp_content_container .pp_right { background: url(../images/prettyPhoto/default/sprite_y.png) top right repeat-y; padding-right: 13px; }
|
25 |
+
div.pp_default .pp_content { background-color: #fff; } /* Content background */
|
26 |
+
div.pp_default .pp_next:hover { background: url(../images/prettyPhoto/default/sprite_next.png) center right no-repeat; cursor: pointer; } /* Next button */
|
27 |
+
div.pp_default .pp_previous:hover { background: url(../images/prettyPhoto/default/sprite_prev.png) center left no-repeat; cursor: pointer; } /* Previous button */
|
28 |
+
div.pp_default .pp_expand { background: url(../images/prettyPhoto/default/sprite.png) 0 -29px no-repeat; cursor: pointer; width: 28px; height: 28px; } /* Expand button */
|
29 |
+
div.pp_default .pp_expand:hover { background: url(../images/prettyPhoto/default/sprite.png) 0 -56px no-repeat; cursor: pointer; } /* Expand button hover */
|
30 |
+
div.pp_default .pp_contract { background: url(../images/prettyPhoto/default/sprite.png) 0 -84px no-repeat; cursor: pointer; width: 28px; height: 28px; } /* Contract button */
|
31 |
+
div.pp_default .pp_contract:hover { background: url(../images/prettyPhoto/default/sprite.png) 0 -113px no-repeat; cursor: pointer; } /* Contract button hover */
|
32 |
+
div.pp_default .pp_close { width: 30px; height: 30px; background: url(../images/prettyPhoto/default/sprite.png) 2px 1px no-repeat; cursor: pointer; } /* Close button */
|
33 |
+
div.pp_default #pp_full_res .pp_inline { color: #000; }
|
34 |
+
div.pp_default .pp_gallery ul li a { background: url(../images/prettyPhoto/default/default_thumb.png) center center #f8f8f8; border:1px solid #aaa; }
|
35 |
+
div.pp_default .pp_gallery ul li a:hover,
|
36 |
+
div.pp_default .pp_gallery ul li.selected a { border-color: #fff; }
|
37 |
+
div.pp_default .pp_social { margin-top: 7px; }
|
38 |
+
|
39 |
+
div.pp_default .pp_gallery a.pp_arrow_previous,
|
40 |
+
div.pp_default .pp_gallery a.pp_arrow_next { position: static; left: auto; }
|
41 |
+
div.pp_default .pp_nav .pp_play,
|
42 |
+
div.pp_default .pp_nav .pp_pause { background: url(../images/prettyPhoto/default/sprite.png) -51px 1px no-repeat; height:30px; width:30px; }
|
43 |
+
div.pp_default .pp_nav .pp_pause { background-position: -51px -29px; }
|
44 |
+
div.pp_default .pp_details { position: relative; }
|
45 |
+
div.pp_default a.pp_arrow_previous,
|
46 |
+
div.pp_default a.pp_arrow_next { background: url(../images/prettyPhoto/default/sprite.png) -31px -3px no-repeat; height: 20px; margin: 4px 0 0 0; width: 20px; }
|
47 |
+
div.pp_default a.pp_arrow_next { left: 52px; background-position: -82px -3px; } /* The next arrow in the bottom nav */
|
48 |
+
div.pp_default .pp_content_container .pp_details { margin-top: 5px; }
|
49 |
+
div.pp_default .pp_nav { clear: none; height: 30px; width: 110px; position: relative; }
|
50 |
+
div.pp_default .pp_nav .currentTextHolder{ font-family: Georgia; font-style: italic; color:#999; font-size: 11px; left: 75px; line-height: 25px; margin: 0; padding: 0 0 0 10px; position: absolute; top: 2px; }
|
51 |
+
|
52 |
+
div.pp_default .pp_close:hover, div.pp_default .pp_nav .pp_play:hover, div.pp_default .pp_nav .pp_pause:hover, div.pp_default .pp_arrow_next:hover, div.pp_default .pp_arrow_previous:hover { opacity:0.7; }
|
53 |
+
|
54 |
+
div.pp_default .pp_description{ font-size: 11px; font-weight: bold; line-height: 14px; margin: 5px 50px 5px 0; }
|
55 |
+
|
56 |
+
div.pp_default .pp_bottom .pp_left { background: url(../images/prettyPhoto/default/sprite.png) -78px -127px no-repeat; } /* Bottom left corner */
|
57 |
+
div.pp_default .pp_bottom .pp_middle { background: url(../images/prettyPhoto/default/sprite_x.png) bottom left repeat-x; } /* Bottom pattern/color */
|
58 |
+
div.pp_default .pp_bottom .pp_right { background: url(../images/prettyPhoto/default/sprite.png) -112px -127px no-repeat; } /* Bottom right corner */
|
59 |
+
|
60 |
+
div.pp_default .pp_loaderIcon { background: url(../images/prettyPhoto/default/loader.gif) center center no-repeat; } /* Loader icon */
|
61 |
+
|
62 |
+
|
63 |
+
/* ----------------------------------
|
64 |
+
Light Rounded Theme
|
65 |
+
----------------------------------- */
|
66 |
+
|
67 |
+
|
68 |
+
div.light_rounded .pp_top .pp_left { background: url(../images/prettyPhoto/light_rounded/sprite.png) -88px -53px no-repeat; } /* Top left corner */
|
69 |
+
div.light_rounded .pp_top .pp_middle { background: #fff; } /* Top pattern/color */
|
70 |
+
div.light_rounded .pp_top .pp_right { background: url(../images/prettyPhoto/light_rounded/sprite.png) -110px -53px no-repeat; } /* Top right corner */
|
71 |
+
|
72 |
+
div.light_rounded .pp_content .ppt { color: #000; }
|
73 |
+
div.light_rounded .pp_content_container .pp_left,
|
74 |
+
div.light_rounded .pp_content_container .pp_right { background: #fff; }
|
75 |
+
div.light_rounded .pp_content { background-color: #fff; } /* Content background */
|
76 |
+
div.light_rounded .pp_next:hover { background: url(../images/prettyPhoto/light_rounded/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */
|
77 |
+
div.light_rounded .pp_previous:hover { background: url(../images/prettyPhoto/light_rounded/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */
|
78 |
+
div.light_rounded .pp_expand { background: url(../images/prettyPhoto/light_rounded/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */
|
79 |
+
div.light_rounded .pp_expand:hover { background: url(../images/prettyPhoto/light_rounded/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */
|
80 |
+
div.light_rounded .pp_contract { background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */
|
81 |
+
div.light_rounded .pp_contract:hover { background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */
|
82 |
+
div.light_rounded .pp_close { width: 75px; height: 22px; background: url(../images/prettyPhoto/light_rounded/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */
|
83 |
+
div.light_rounded .pp_details { position: relative; }
|
84 |
+
div.light_rounded .pp_description { margin-right: 85px; }
|
85 |
+
div.light_rounded #pp_full_res .pp_inline { color: #000; }
|
86 |
+
div.light_rounded .pp_gallery a.pp_arrow_previous,
|
87 |
+
div.light_rounded .pp_gallery a.pp_arrow_next { margin-top: 12px !important; }
|
88 |
+
div.light_rounded .pp_nav .pp_play { background: url(../images/prettyPhoto/light_rounded/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; }
|
89 |
+
div.light_rounded .pp_nav .pp_pause { background: url(../images/prettyPhoto/light_rounded/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; }
|
90 |
+
|
91 |
+
div.light_rounded .pp_arrow_previous { background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */
|
92 |
+
div.light_rounded .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; }
|
93 |
+
div.light_rounded .pp_arrow_next { background: url(../images/prettyPhoto/light_rounded/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */
|
94 |
+
div.light_rounded .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; }
|
95 |
+
|
96 |
+
div.light_rounded .pp_bottom .pp_left { background: url(../images/prettyPhoto/light_rounded/sprite.png) -88px -80px no-repeat; } /* Bottom left corner */
|
97 |
+
div.light_rounded .pp_bottom .pp_middle { background: #fff; } /* Bottom pattern/color */
|
98 |
+
div.light_rounded .pp_bottom .pp_right { background: url(../images/prettyPhoto/light_rounded/sprite.png) -110px -80px no-repeat; } /* Bottom right corner */
|
99 |
+
|
100 |
+
div.light_rounded .pp_loaderIcon { background: url(../images/prettyPhoto/light_rounded/loader.gif) center center no-repeat; } /* Loader icon */
|
101 |
+
|
102 |
+
/* ----------------------------------
|
103 |
+
Dark Rounded Theme
|
104 |
+
----------------------------------- */
|
105 |
+
|
106 |
+
div.dark_rounded .pp_top .pp_left { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -53px no-repeat; } /* Top left corner */
|
107 |
+
div.dark_rounded .pp_top .pp_middle { background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat; } /* Top pattern/color */
|
108 |
+
div.dark_rounded .pp_top .pp_right { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -53px no-repeat; } /* Top right corner */
|
109 |
+
|
110 |
+
div.dark_rounded .pp_content_container .pp_left { background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat-y; } /* Left Content background */
|
111 |
+
div.dark_rounded .pp_content_container .pp_right { background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top right repeat-y; } /* Right Content background */
|
112 |
+
div.dark_rounded .pp_content { background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat; } /* Content background */
|
113 |
+
div.dark_rounded .pp_next:hover { background: url(../images/prettyPhoto/dark_rounded/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */
|
114 |
+
div.dark_rounded .pp_previous:hover { background: url(../images/prettyPhoto/dark_rounded/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */
|
115 |
+
div.dark_rounded .pp_expand { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */
|
116 |
+
div.dark_rounded .pp_expand:hover { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */
|
117 |
+
div.dark_rounded .pp_contract { background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */
|
118 |
+
div.dark_rounded .pp_contract:hover { background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */
|
119 |
+
div.dark_rounded .pp_close { width: 75px; height: 22px; background: url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */
|
120 |
+
div.dark_rounded .pp_details { position: relative; }
|
121 |
+
div.dark_rounded .pp_description { margin-right: 85px; }
|
122 |
+
div.dark_rounded .currentTextHolder { color: #c4c4c4; }
|
123 |
+
div.dark_rounded .pp_description { color: #fff; }
|
124 |
+
div.dark_rounded #pp_full_res .pp_inline { color: #fff; }
|
125 |
+
div.dark_rounded .pp_gallery a.pp_arrow_previous,
|
126 |
+
div.dark_rounded .pp_gallery a.pp_arrow_next { margin-top: 12px !important; }
|
127 |
+
div.dark_rounded .pp_nav .pp_play { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; }
|
128 |
+
div.dark_rounded .pp_nav .pp_pause { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; }
|
129 |
+
|
130 |
+
div.dark_rounded .pp_arrow_previous { background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */
|
131 |
+
div.dark_rounded .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; }
|
132 |
+
div.dark_rounded .pp_arrow_next { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */
|
133 |
+
div.dark_rounded .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; }
|
134 |
+
|
135 |
+
div.dark_rounded .pp_bottom .pp_left { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -80px no-repeat; } /* Bottom left corner */
|
136 |
+
div.dark_rounded .pp_bottom .pp_middle { background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat; } /* Bottom pattern/color */
|
137 |
+
div.dark_rounded .pp_bottom .pp_right { background: url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -80px no-repeat; } /* Bottom right corner */
|
138 |
+
|
139 |
+
div.dark_rounded .pp_loaderIcon { background: url(../images/prettyPhoto/dark_rounded/loader.gif) center center no-repeat; } /* Loader icon */
|
140 |
+
|
141 |
+
|
142 |
+
/* ----------------------------------
|
143 |
+
Dark Square Theme
|
144 |
+
----------------------------------- */
|
145 |
+
|
146 |
+
div.dark_square .pp_left ,
|
147 |
+
div.dark_square .pp_middle,
|
148 |
+
div.dark_square .pp_right,
|
149 |
+
div.dark_square .pp_content { background: #000; }
|
150 |
+
|
151 |
+
div.dark_square .currentTextHolder { color: #c4c4c4; }
|
152 |
+
div.dark_square .pp_description { color: #fff; }
|
153 |
+
div.dark_square .pp_loaderIcon { background: url(../images/prettyPhoto/dark_square/loader.gif) center center no-repeat; } /* Loader icon */
|
154 |
+
|
155 |
+
div.dark_square .pp_expand { background: url(../images/prettyPhoto/dark_square/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */
|
156 |
+
div.dark_square .pp_expand:hover { background: url(../images/prettyPhoto/dark_square/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */
|
157 |
+
div.dark_square .pp_contract { background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */
|
158 |
+
div.dark_square .pp_contract:hover { background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */
|
159 |
+
div.dark_square .pp_close { width: 75px; height: 22px; background: url(../images/prettyPhoto/dark_square/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */
|
160 |
+
div.dark_square .pp_details { position: relative; }
|
161 |
+
div.dark_square .pp_description { margin: 0 85px 0 0; }
|
162 |
+
div.dark_square #pp_full_res .pp_inline { color: #fff; }
|
163 |
+
div.dark_square .pp_gallery a.pp_arrow_previous,
|
164 |
+
div.dark_square .pp_gallery a.pp_arrow_next { margin-top: 12px !important; }
|
165 |
+
div.dark_square .pp_nav { clear: none; }
|
166 |
+
div.dark_square .pp_nav .pp_play { background: url(../images/prettyPhoto/dark_square/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; }
|
167 |
+
div.dark_square .pp_nav .pp_pause { background: url(../images/prettyPhoto/dark_square/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; }
|
168 |
+
|
169 |
+
div.dark_square .pp_arrow_previous { background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */
|
170 |
+
div.dark_square .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; }
|
171 |
+
div.dark_square .pp_arrow_next { background: url(../images/prettyPhoto/dark_square/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */
|
172 |
+
div.dark_square .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; }
|
173 |
+
|
174 |
+
div.dark_square .pp_next:hover { background: url(../images/prettyPhoto/dark_square/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */
|
175 |
+
div.dark_square .pp_previous:hover { background: url(../images/prettyPhoto/dark_square/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */
|
176 |
+
|
177 |
+
|
178 |
+
/* ----------------------------------
|
179 |
+
Light Square Theme
|
180 |
+
----------------------------------- */
|
181 |
+
|
182 |
+
div.light_square .pp_left ,
|
183 |
+
div.light_square .pp_middle,
|
184 |
+
div.light_square .pp_right,
|
185 |
+
div.light_square .pp_content { background: #fff; }
|
186 |
+
|
187 |
+
div.light_square .pp_content .ppt { color: #000; }
|
188 |
+
div.light_square .pp_expand { background: url(../images/prettyPhoto/light_square/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */
|
189 |
+
div.light_square .pp_expand:hover { background: url(../images/prettyPhoto/light_square/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */
|
190 |
+
div.light_square .pp_contract { background: url(../images/prettyPhoto/light_square/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */
|
191 |
+
div.light_square .pp_contract:hover { background: url(../images/prettyPhoto/light_square/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */
|
192 |
+
div.light_square .pp_close { width: 75px; height: 22px; background: url(../images/prettyPhoto/light_square/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */
|
193 |
+
div.light_square .pp_details { position: relative; }
|
194 |
+
div.light_square .pp_description { margin-right: 85px; }
|
195 |
+
div.light_square #pp_full_res .pp_inline { color: #000; }
|
196 |
+
div.light_square .pp_gallery a.pp_arrow_previous,
|
197 |
+
div.light_square .pp_gallery a.pp_arrow_next { margin-top: 12px !important; }
|
198 |
+
div.light_square .pp_nav .pp_play { background: url(../images/prettyPhoto/light_square/sprite.png) -1px -100px no-repeat; height: 15px; width: 14px; }
|
199 |
+
div.light_square .pp_nav .pp_pause { background: url(../images/prettyPhoto/light_square/sprite.png) -24px -100px no-repeat; height: 15px; width: 14px; }
|
200 |
+
|
201 |
+
div.light_square .pp_arrow_previous { background: url(../images/prettyPhoto/light_square/sprite.png) 0 -71px no-repeat; } /* The previous arrow in the bottom nav */
|
202 |
+
div.light_square .pp_arrow_previous.disabled { background-position: 0 -87px; cursor: default; }
|
203 |
+
div.light_square .pp_arrow_next { background: url(../images/prettyPhoto/light_square/sprite.png) -22px -71px no-repeat; } /* The next arrow in the bottom nav */
|
204 |
+
div.light_square .pp_arrow_next.disabled { background-position: -22px -87px; cursor: default; }
|
205 |
+
|
206 |
+
div.light_square .pp_next:hover { background: url(../images/prettyPhoto/light_square/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */
|
207 |
+
div.light_square .pp_previous:hover { background: url(../images/prettyPhoto/light_square/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */
|
208 |
+
|
209 |
+
div.light_square .pp_loaderIcon { background: url(../images/prettyPhoto/light_rounded/loader.gif) center center no-repeat; } /* Loader icon */
|
210 |
+
|
211 |
+
|
212 |
+
/* ----------------------------------
|
213 |
+
Facebook style Theme
|
214 |
+
----------------------------------- */
|
215 |
+
|
216 |
+
div.facebook .pp_top .pp_left { background: url(../images/prettyPhoto/facebook/sprite.png) -88px -53px no-repeat; } /* Top left corner */
|
217 |
+
div.facebook .pp_top .pp_middle { background: url(../images/prettyPhoto/facebook/contentPatternTop.png) top left repeat-x; } /* Top pattern/color */
|
218 |
+
div.facebook .pp_top .pp_right { background: url(../images/prettyPhoto/facebook/sprite.png) -110px -53px no-repeat; } /* Top right corner */
|
219 |
+
|
220 |
+
div.facebook .pp_content .ppt { color: #000; }
|
221 |
+
div.facebook .pp_content_container .pp_left { background: url(../images/prettyPhoto/facebook/contentPatternLeft.png) top left repeat-y; } /* Content background */
|
222 |
+
div.facebook .pp_content_container .pp_right { background: url(../images/prettyPhoto/facebook/contentPatternRight.png) top right repeat-y; } /* Content background */
|
223 |
+
div.facebook .pp_content { background: #fff; } /* Content background */
|
224 |
+
div.facebook .pp_expand { background: url(../images/prettyPhoto/facebook/sprite.png) -31px -26px no-repeat; cursor: pointer; } /* Expand button */
|
225 |
+
div.facebook .pp_expand:hover { background: url(../images/prettyPhoto/facebook/sprite.png) -31px -47px no-repeat; cursor: pointer; } /* Expand button hover */
|
226 |
+
div.facebook .pp_contract { background: url(../images/prettyPhoto/facebook/sprite.png) 0 -26px no-repeat; cursor: pointer; } /* Contract button */
|
227 |
+
div.facebook .pp_contract:hover { background: url(../images/prettyPhoto/facebook/sprite.png) 0 -47px no-repeat; cursor: pointer; } /* Contract button hover */
|
228 |
+
div.facebook .pp_close { width: 22px; height: 22px; background: url(../images/prettyPhoto/facebook/sprite.png) -1px -1px no-repeat; cursor: pointer; } /* Close button */
|
229 |
+
div.facebook .pp_details { position: relative; }
|
230 |
+
div.facebook .pp_description { margin: 0 37px 0 0; }
|
231 |
+
div.facebook #pp_full_res .pp_inline { color: #000; }
|
232 |
+
div.facebook .pp_loaderIcon { background: url(../images/prettyPhoto/facebook/loader.gif) center center no-repeat; } /* Loader icon */
|
233 |
+
|
234 |
+
div.facebook .pp_arrow_previous { background: url(../images/prettyPhoto/facebook/sprite.png) 0 -71px no-repeat; height: 22px; margin-top: 0; width: 22px; } /* The previous arrow in the bottom nav */
|
235 |
+
div.facebook .pp_arrow_previous.disabled { background-position: 0 -96px; cursor: default; }
|
236 |
+
div.facebook .pp_arrow_next { background: url(../images/prettyPhoto/facebook/sprite.png) -32px -71px no-repeat; height: 22px; margin-top: 0; width: 22px; } /* The next arrow in the bottom nav */
|
237 |
+
div.facebook .pp_arrow_next.disabled { background-position: -32px -96px; cursor: default; }
|
238 |
+
div.facebook .pp_nav { margin-top: 0; }
|
239 |
+
div.facebook .pp_nav p { font-size: 15px; padding: 0 3px 0 4px; }
|
240 |
+
div.facebook .pp_nav .pp_play { background: url(../images/prettyPhoto/facebook/sprite.png) -1px -123px no-repeat; height: 22px; width: 22px; }
|
241 |
+
div.facebook .pp_nav .pp_pause { background: url(../images/prettyPhoto/facebook/sprite.png) -32px -123px no-repeat; height: 22px; width: 22px; }
|
242 |
+
|
243 |
+
div.facebook .pp_next:hover { background: url(../images/prettyPhoto/facebook/btnNext.png) center right no-repeat; cursor: pointer; } /* Next button */
|
244 |
+
div.facebook .pp_previous:hover { background: url(../images/prettyPhoto/facebook/btnPrevious.png) center left no-repeat; cursor: pointer; } /* Previous button */
|
245 |
+
|
246 |
+
div.facebook .pp_bottom .pp_left { background: url(../images/prettyPhoto/facebook/sprite.png) -88px -80px no-repeat; } /* Bottom left corner */
|
247 |
+
div.facebook .pp_bottom .pp_middle { background: url(../images/prettyPhoto/facebook/contentPatternBottom.png) top left repeat-x; } /* Bottom pattern/color */
|
248 |
+
div.facebook .pp_bottom .pp_right { background: url(../images/prettyPhoto/facebook/sprite.png) -110px -80px no-repeat; } /* Bottom right corner */
|
249 |
+
|
250 |
+
|
251 |
+
/* ------------------------------------------------------------------------
|
252 |
+
DO NOT CHANGE
|
253 |
+
------------------------------------------------------------------------- */
|
254 |
+
|
255 |
+
div.pp_pic_holder a:focus { outline:none; }
|
256 |
+
|
257 |
+
div.pp_overlay {
|
258 |
+
background: #000;
|
259 |
+
display: none;
|
260 |
+
left: 0;
|
261 |
+
position: absolute;
|
262 |
+
top: 0;
|
263 |
+
width: 100%;
|
264 |
+
z-index: 100059;
|
265 |
+
}
|
266 |
+
|
267 |
+
div.pp_pic_holder {
|
268 |
+
display: none;
|
269 |
+
position: absolute;
|
270 |
+
width: 100px;
|
271 |
+
z-index: 100060;
|
272 |
+
}
|
273 |
+
|
274 |
+
|
275 |
+
.pp_top {
|
276 |
+
height: 20px;
|
277 |
+
position: relative;
|
278 |
+
}
|
279 |
+
* html .pp_top { padding: 0 20px; }
|
280 |
+
|
281 |
+
.pp_top .pp_left {
|
282 |
+
height: 20px;
|
283 |
+
left: 0;
|
284 |
+
position: absolute;
|
285 |
+
width: 20px;
|
286 |
+
}
|
287 |
+
.pp_top .pp_middle {
|
288 |
+
height: 20px;
|
289 |
+
left: 20px;
|
290 |
+
position: absolute;
|
291 |
+
right: 20px;
|
292 |
+
}
|
293 |
+
* html .pp_top .pp_middle {
|
294 |
+
left: 0;
|
295 |
+
position: static;
|
296 |
+
}
|
297 |
+
|
298 |
+
.pp_top .pp_right {
|
299 |
+
height: 20px;
|
300 |
+
left: auto;
|
301 |
+
position: absolute;
|
302 |
+
right: 0;
|
303 |
+
top: 0;
|
304 |
+
width: 20px;
|
305 |
+
}
|
306 |
+
|
307 |
+
.pp_content { height: 40px; min-width: 40px; }
|
308 |
+
* html .pp_content { width: 40px; }
|
309 |
+
|
310 |
+
.pp_fade { display: none; }
|
311 |
+
|
312 |
+
.pp_content_container {
|
313 |
+
position: relative;
|
314 |
+
text-align: left;
|
315 |
+
width: 100%;
|
316 |
+
}
|
317 |
+
|
318 |
+
.pp_content_container .pp_left { padding-left: 20px; }
|
319 |
+
.pp_content_container .pp_right { padding-right: 20px; }
|
320 |
+
|
321 |
+
.pp_content_container .pp_details {
|
322 |
+
float: left;
|
323 |
+
margin: 10px 0 2px 0;
|
324 |
+
}
|
325 |
+
.pp_description {
|
326 |
+
display: none;
|
327 |
+
margin: 0;
|
328 |
+
}
|
329 |
+
|
330 |
+
.pp_social { float: left; margin: 0; }
|
331 |
+
.pp_social .facebook { float: left; margin-left: 5px; width: 55px; overflow: hidden; }
|
332 |
+
.pp_social .twitter { float: left; }
|
333 |
+
|
334 |
+
.pp_nav {
|
335 |
+
clear: right;
|
336 |
+
float: left;
|
337 |
+
margin: 3px 10px 0 0;
|
338 |
+
}
|
339 |
+
|
340 |
+
.pp_nav p {
|
341 |
+
float: left;
|
342 |
+
margin: 2px 4px;
|
343 |
+
white-space: nowrap;
|
344 |
+
}
|
345 |
+
|
346 |
+
.pp_nav .pp_play,
|
347 |
+
.pp_nav .pp_pause {
|
348 |
+
float: left;
|
349 |
+
margin-right: 4px;
|
350 |
+
text-indent: -10000px;
|
351 |
+
}
|
352 |
+
|
353 |
+
a.pp_arrow_previous,
|
354 |
+
a.pp_arrow_next {
|
355 |
+
display: block;
|
356 |
+
float: left;
|
357 |
+
height: 15px;
|
358 |
+
margin-top: 3px;
|
359 |
+
overflow: hidden;
|
360 |
+
text-indent: -10000px;
|
361 |
+
width: 14px;
|
362 |
+
}
|
363 |
+
|
364 |
+
.pp_hoverContainer {
|
365 |
+
position: absolute;
|
366 |
+
top: 0;
|
367 |
+
width: 100%;
|
368 |
+
z-index: 2000;
|
369 |
+
}
|
370 |
+
|
371 |
+
.pp_gallery {
|
372 |
+
display: none;
|
373 |
+
left: 50%;
|
374 |
+
margin-top: -50px;
|
375 |
+
position: absolute;
|
376 |
+
z-index: 10000;
|
377 |
+
}
|
378 |
+
|
379 |
+
.pp_gallery div {
|
380 |
+
float: left;
|
381 |
+
overflow: hidden;
|
382 |
+
position: relative;
|
383 |
+
}
|
384 |
+
|
385 |
+
.pp_gallery ul {
|
386 |
+
float: left;
|
387 |
+
height: 35px;
|
388 |
+
margin: 0 0 0 5px;
|
389 |
+
padding: 0;
|
390 |
+
position: relative;
|
391 |
+
white-space: nowrap;
|
392 |
+
}
|
393 |
+
|
394 |
+
.pp_gallery ul a {
|
395 |
+
border: 1px #000 solid;
|
396 |
+
border: 1px rgba(0,0,0,0.5) solid;
|
397 |
+
display: block;
|
398 |
+
float: left;
|
399 |
+
height: 33px;
|
400 |
+
overflow: hidden;
|
401 |
+
}
|
402 |
+
|
403 |
+
.pp_gallery ul a:hover,
|
404 |
+
.pp_gallery li.selected a { border-color: #fff; }
|
405 |
+
|
406 |
+
.pp_gallery ul a img { border: 0; }
|
407 |
+
|
408 |
+
.pp_gallery li {
|
409 |
+
display: block;
|
410 |
+
float: left;
|
411 |
+
margin: 0 5px 0 0;
|
412 |
+
padding: 0;
|
413 |
+
}
|
414 |
+
|
415 |
+
.pp_gallery li.default a {
|
416 |
+
background: url(../images/prettyPhoto/facebook/default_thumbnail.gif) 0 0 no-repeat;
|
417 |
+
display: block;
|
418 |
+
height: 33px;
|
419 |
+
width: 50px;
|
420 |
+
}
|
421 |
+
|
422 |
+
.pp_gallery li.default a img { display: none; }
|
423 |
+
|
424 |
+
.pp_gallery .pp_arrow_previous,
|
425 |
+
.pp_gallery .pp_arrow_next {
|
426 |
+
margin-top: 7px !important;
|
427 |
+
}
|
428 |
+
|
429 |
+
a.pp_next {
|
430 |
+
background: url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;
|
431 |
+
display: block;
|
432 |
+
float: right;
|
433 |
+
height: 100%;
|
434 |
+
text-indent: -10000px;
|
435 |
+
width: 49%;
|
436 |
+
}
|
437 |
+
|
438 |
+
a.pp_previous {
|
439 |
+
background: url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;
|
440 |
+
display: block;
|
441 |
+
float: left;
|
442 |
+
height: 100%;
|
443 |
+
text-indent: -10000px;
|
444 |
+
width: 49%;
|
445 |
+
}
|
446 |
+
|
447 |
+
a.pp_expand,
|
448 |
+
a.pp_contract {
|
449 |
+
cursor: pointer;
|
450 |
+
display: none;
|
451 |
+
height: 20px;
|
452 |
+
position: absolute;
|
453 |
+
right: 30px;
|
454 |
+
text-indent: -10000px;
|
455 |
+
top: 10px;
|
456 |
+
width: 20px;
|
457 |
+
z-index: 20000;
|
458 |
+
}
|
459 |
+
|
460 |
+
a.pp_close {
|
461 |
+
position: absolute; right: 0; top: 0;
|
462 |
+
display: block;
|
463 |
+
line-height:22px;
|
464 |
+
text-indent: -10000px;
|
465 |
+
}
|
466 |
+
|
467 |
+
.pp_bottom {
|
468 |
+
height: 20px;
|
469 |
+
position: relative;
|
470 |
+
}
|
471 |
+
* html .pp_bottom { padding: 0 20px; }
|
472 |
+
|
473 |
+
.pp_bottom .pp_left {
|
474 |
+
height: 20px;
|
475 |
+
left: 0;
|
476 |
+
position: absolute;
|
477 |
+
width: 20px;
|
478 |
+
}
|
479 |
+
.pp_bottom .pp_middle {
|
480 |
+
height: 20px;
|
481 |
+
left: 20px;
|
482 |
+
position: absolute;
|
483 |
+
right: 20px;
|
484 |
+
}
|
485 |
+
* html .pp_bottom .pp_middle {
|
486 |
+
left: 0;
|
487 |
+
position: static;
|
488 |
+
}
|
489 |
+
|
490 |
+
.pp_bottom .pp_right {
|
491 |
+
height: 20px;
|
492 |
+
left: auto;
|
493 |
+
position: absolute;
|
494 |
+
right: 0;
|
495 |
+
top: 0;
|
496 |
+
width: 20px;
|
497 |
+
}
|
498 |
+
|
499 |
+
.pp_loaderIcon {
|
500 |
+
display: block;
|
501 |
+
height: 24px;
|
502 |
+
left: 50%;
|
503 |
+
margin: -12px 0 0 -12px;
|
504 |
+
position: absolute;
|
505 |
+
top: 50%;
|
506 |
+
width: 24px;
|
507 |
+
}
|
508 |
+
|
509 |
+
#pp_full_res {
|
510 |
+
line-height: 1 !important;
|
511 |
+
}
|
512 |
+
|
513 |
+
#pp_full_res .pp_inline {
|
514 |
+
text-align: left;
|
515 |
+
}
|
516 |
+
|
517 |
+
#pp_full_res .pp_inline p { margin: 0 0 15px 0; }
|
518 |
+
|
519 |
+
div.ppt {
|
520 |
+
color: #fff;
|
521 |
+
display: none;
|
522 |
+
font-size: 17px;
|
523 |
+
margin: 0 0 5px 15px;
|
524 |
+
z-index: 9999;
|
525 |
}
|
assets/js/admin.js
CHANGED
@@ -40,6 +40,8 @@ $(document).on("click",'a.magee_shortcode_item',function(){
|
|
40 |
form.find("#magee-shortcodes-settings .current_shortcode").text(shortcode);
|
41 |
form.find("#magee-shortcodes-settings #magee-shortcode").val(shortcode);
|
42 |
form.find("#magee-shortcodes-settings-inner").html(data);
|
|
|
|
|
43 |
var myOptions = {
|
44 |
change: function(event, ui){
|
45 |
$('.magee_shortcodes_container .wp-color-picker-field').each(function(){
|
@@ -184,7 +186,19 @@ $(document).on("click",'a.magee_shortcode_item',function(){
|
|
184 |
|
185 |
|
186 |
});
|
187 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
//date picker
|
189 |
$(".magee-form-datetime").combodate();
|
190 |
var year = $("select.year option:selected").text();
|
@@ -382,13 +396,116 @@ tb_remove();
|
|
382 |
|
383 |
|
384 |
});
|
385 |
-
|
|
|
386 |
var html = '<div class="param-item"><a id="child-shortcode-remove" href="#" class="child-clone-row-remove magee-shortcodes-button ">Remove</a></div>';
|
387 |
-
$clone = $(this).parents("#magee_shortcodes_container").
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
392 |
});
|
393 |
|
394 |
// type choose to show
|
40 |
form.find("#magee-shortcodes-settings .current_shortcode").text(shortcode);
|
41 |
form.find("#magee-shortcodes-settings #magee-shortcode").val(shortcode);
|
42 |
form.find("#magee-shortcodes-settings-inner").html(data);
|
43 |
+
//ADD clone source
|
44 |
+
$(".magee-shortcodes-settings-inner-clone").html(form.find(".column-shortcode-inner").html());
|
45 |
var myOptions = {
|
46 |
change: function(event, ui){
|
47 |
$('.magee_shortcodes_container .wp-color-picker-field').each(function(){
|
186 |
|
187 |
|
188 |
});
|
189 |
+
//return
|
190 |
+
$("#TB_ajaxContent").scroll(function(){
|
191 |
+
var scrollvalue = $(this).scrollTop();
|
192 |
+
if( scrollvalue >= 300 ){
|
193 |
+
$(".magee-shortcode-return").css("display","block");
|
194 |
+
}else{
|
195 |
+
$(".magee-shortcode-return").css("display","none");
|
196 |
+
}
|
197 |
+
|
198 |
+
});
|
199 |
+
$(".magee-shortcode-return").click(function(){
|
200 |
+
$("#TB_ajaxContent").animate({scrollTop:0},500);
|
201 |
+
});
|
202 |
//date picker
|
203 |
$(".magee-form-datetime").combodate();
|
204 |
var year = $("select.year option:selected").text();
|
396 |
|
397 |
|
398 |
});
|
399 |
+
// ADD control
|
400 |
+
$(document).on('click',"a.child-shortcode-add",function(){
|
401 |
var html = '<div class="param-item"><a id="child-shortcode-remove" href="#" class="child-clone-row-remove magee-shortcodes-button ">Remove</a></div>';
|
402 |
+
$clone = $(this).parents("#magee_shortcodes_container").find(".magee-shortcodes-settings-inner-clone").html();
|
403 |
+
//$clone.find('.wp-color-picker-field').wpColorPicker();
|
404 |
+
//$clone.removeClass("magee-shortcodes-settings-inner-clone hidden");
|
405 |
+
//$clone.addClass("column-shortcode-inner");
|
406 |
+
var count = $('.column-shortcode-inner').length;
|
407 |
+
var wraptext = '<div class="column-shortcode-inner">'+$clone+html+'</div>';
|
408 |
+
$(".shortcode-add").before(wraptext);
|
409 |
+
var myclone_Options = {
|
410 |
+
change: function(event, ui){
|
411 |
+
$('.magee_shortcodes_container .column-shortcode-inner').eq(count).find('.wp-color-picker-field').each(function(){
|
412 |
+
var color = $(this).parents('.wp-picker-container').eq(0).find('.wp-color-result').css("background-color");
|
413 |
+
$(this).css("background-color",color);
|
414 |
+
var top = parseInt($(this).parents('.wp-picker-container').find('a.iris-square-value').css("top").replace('px',''));
|
415 |
+
var percent = parseInt($(this).parents('.wp-picker-container').find('div.iris-slider-offset span').css("bottom"));
|
416 |
+
if(top < 87 && percent < 97){
|
417 |
+
$(this).css({"color":"black",'background-color':color});
|
418 |
+
}else{
|
419 |
+
$(this).css({"color":"white",'background-color':color});
|
420 |
+
}
|
421 |
+
});
|
422 |
+
},
|
423 |
+
defaultColor: true,
|
424 |
+
};
|
425 |
+
$('.magee_shortcodes_container .column-shortcode-inner').eq(count).find('.wp-color-picker-field').wpColorPicker(myclone_Options);
|
426 |
+
$('.magee_shortcodes_container .column-shortcode-inner').eq(count).find('.wp-color-picker-field').each(function(){
|
427 |
+
var color = $(this).attr('value');
|
428 |
+
$(this).css("background-color",color);
|
429 |
+
var since = 0 ;
|
430 |
+
var show = $(this);
|
431 |
+
$(this).parents('.wp-picker-container').find('.wp-picker-holder').mouseover(function(e){
|
432 |
+
since = 0;
|
433 |
+
event.cancelBubble=true;
|
434 |
+
});
|
435 |
+
$(this).parents('.wp-picker-container').find('.wp-picker-holder').mouseout(function(e){
|
436 |
+
since = 1;
|
437 |
+
event.cancelBubble=true;
|
438 |
+
});
|
439 |
+
$(document).mousedown(function(){
|
440 |
+
if(since == 1){
|
441 |
+
show.parents('.wp-picker-container').find('.wp-picker-holder').css("display","none");
|
442 |
+
}
|
443 |
+
});
|
444 |
+
$(this).click(function(){
|
445 |
+
$(this).parents('.wp-picker-container').find('.wp-picker-holder').css("display","block");
|
446 |
+
});
|
447 |
+
|
448 |
+
});
|
449 |
+
//input number controls
|
450 |
+
|
451 |
+
$('.magee_shortcodes_container .column-shortcode-inner').eq(count).find('.magee-form-number').each(function(){
|
452 |
+
var number_obj = $(this);
|
453 |
+
var number = parseInt($(this).attr('max'));
|
454 |
+
var total =parseInt($(this).parent('.field').find('.probar').width());
|
455 |
+
var op = total/number;
|
456 |
+
var val = parseInt($(this).val());
|
457 |
+
var left = op*val.toString();
|
458 |
+
$(this).parent('.field').find('.probar-control').css('left',left);
|
459 |
+
$(this).parents('.param-item').find('.probar').click(function(e){
|
460 |
+
e = e||window.event;
|
461 |
+
var x2 = e.clientX;
|
462 |
+
var x3 = $(this).parents('.param-item').find('.probar').offset().left;
|
463 |
+
|
464 |
+
var lv = (x2-x3)/total*100;
|
465 |
+
$(this).parents('.param-item').find('.probar-control').css('left',lv.toString()+'%');
|
466 |
+
number_obj.val(Math.round(parseInt($(this).parents('.param-item').find('.probar-control').css('left'))/op));
|
467 |
+
});
|
468 |
+
$(this).change(function(){
|
469 |
+
if(parseInt($(this).val()) > number){
|
470 |
+
$(this).parents('.param-item').find('.probar-control').css('left','100%');
|
471 |
+
}else{
|
472 |
+
newleft = op*parseInt($(this).val()).toString();
|
473 |
+
$(this).parents('.param-item').find('.probar-control').css('left',newleft);
|
474 |
+
}
|
475 |
+
});
|
476 |
+
var z = 0 ;
|
477 |
+
var x1,y1;
|
478 |
+
$(this).parents('.param-item').find('.probar-control').mousedown(function(e){
|
479 |
+
z = 1;
|
480 |
+
e = e||window.event;
|
481 |
+
x1 = $(this).parents('.param-item').find('.probar').offset().left;
|
482 |
+
y1 = x1 + total;
|
483 |
+
|
484 |
+
});
|
485 |
+
|
486 |
+
$(document).mousemove(function(e){
|
487 |
+
if(z == 1){
|
488 |
+
var e=e||window.event;
|
489 |
+
var x = e.clientX;
|
490 |
+
if(x>y1 || x< x1){
|
491 |
+
if(x>y1){
|
492 |
+
number_obj.parents('.param-item').find('.probar-control').css('left','100%') ;
|
493 |
+
}
|
494 |
+
if(x < x1){
|
495 |
+
number_obj.parents('.param-item').find('.probar-control').css('left','0%') ;
|
496 |
+
}
|
497 |
+
}else{
|
498 |
+
var pc = (x-x1)/total*100;
|
499 |
+
number_obj.parents('.param-item').find('.probar-control').css('left',pc.toString()+'%');
|
500 |
+
number_obj.val(Math.round(parseInt(number_obj.parents('.param-item').find('.probar-control').css('left'))/op));
|
501 |
+
}
|
502 |
+
}
|
503 |
+
|
504 |
+
});
|
505 |
+
$(document).mouseup(function(){
|
506 |
+
z = 0;
|
507 |
+
}) ;
|
508 |
+
});
|
509 |
});
|
510 |
|
511 |
// type choose to show
|
assets/js/chart.min.js
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Chart.js
|
3 |
+
* http://chartjs.org/
|
4 |
+
*
|
5 |
+
* Copyright 2013 Nick Downie
|
6 |
+
* Released under the MIT license
|
7 |
+
* https://github.com/nnnick/Chart.js/blob/master/LICENSE.md
|
8 |
+
*/
|
9 |
+
var Chart=function(s){function v(a,c,b){a=A((a-c.graphMin)/(c.steps*c.stepValue),1,0);return b*c.steps*a}function x(a,c,b,e){function h(){g+=f;var k=a.animation?A(d(g),null,0):1;e.clearRect(0,0,q,u);a.scaleOverlay?(b(k),c()):(c(),b(k));if(1>=g)D(h);else if("function"==typeof a.onAnimationComplete)a.onAnimationComplete()}var f=a.animation?1/A(a.animationSteps,Number.MAX_VALUE,1):1,d=B[a.animationEasing],g=a.animation?0:1;"function"!==typeof c&&(c=function(){});D(h)}function C(a,c,b,e,h,f){var d;a=
|
10 |
+
Math.floor(Math.log(e-h)/Math.LN10);h=Math.floor(h/(1*Math.pow(10,a)))*Math.pow(10,a);e=Math.ceil(e/(1*Math.pow(10,a)))*Math.pow(10,a)-h;a=Math.pow(10,a);for(d=Math.round(e/a);d<b||d>c;)a=d<b?a/2:2*a,d=Math.round(e/a);c=[];z(f,c,d,h,a);return{steps:d,stepValue:a,graphMin:h,labels:c}}function z(a,c,b,e,h){if(a)for(var f=1;f<b+1;f++)c.push(E(a,{value:(e+h*f).toFixed(0!=h%1?h.toString().split(".")[1].length:0)}))}function A(a,c,b){return!isNaN(parseFloat(c))&&isFinite(c)&&a>c?c:!isNaN(parseFloat(b))&&
|
11 |
+
isFinite(b)&&a<b?b:a}function y(a,c){var b={},e;for(e in a)b[e]=a[e];for(e in c)b[e]=c[e];return b}function E(a,c){var b=!/\W/.test(a)?F[a]=F[a]||E(document.getElementById(a).innerHTML):new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+a.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return c?
|
12 |
+
b(c):b}var r=this,B={linear:function(a){return a},easeInQuad:function(a){return a*a},easeOutQuad:function(a){return-1*a*(a-2)},easeInOutQuad:function(a){return 1>(a/=0.5)?0.5*a*a:-0.5*(--a*(a-2)-1)},easeInCubic:function(a){return a*a*a},easeOutCubic:function(a){return 1*((a=a/1-1)*a*a+1)},easeInOutCubic:function(a){return 1>(a/=0.5)?0.5*a*a*a:0.5*((a-=2)*a*a+2)},easeInQuart:function(a){return a*a*a*a},easeOutQuart:function(a){return-1*((a=a/1-1)*a*a*a-1)},easeInOutQuart:function(a){return 1>(a/=0.5)?
|
13 |
+
0.5*a*a*a*a:-0.5*((a-=2)*a*a*a-2)},easeInQuint:function(a){return 1*(a/=1)*a*a*a*a},easeOutQuint:function(a){return 1*((a=a/1-1)*a*a*a*a+1)},easeInOutQuint:function(a){return 1>(a/=0.5)?0.5*a*a*a*a*a:0.5*((a-=2)*a*a*a*a+2)},easeInSine:function(a){return-1*Math.cos(a/1*(Math.PI/2))+1},easeOutSine:function(a){return 1*Math.sin(a/1*(Math.PI/2))},easeInOutSine:function(a){return-0.5*(Math.cos(Math.PI*a/1)-1)},easeInExpo:function(a){return 0==a?1:1*Math.pow(2,10*(a/1-1))},easeOutExpo:function(a){return 1==
|
14 |
+
a?1:1*(-Math.pow(2,-10*a/1)+1)},easeInOutExpo:function(a){return 0==a?0:1==a?1:1>(a/=0.5)?0.5*Math.pow(2,10*(a-1)):0.5*(-Math.pow(2,-10*--a)+2)},easeInCirc:function(a){return 1<=a?a:-1*(Math.sqrt(1-(a/=1)*a)-1)},easeOutCirc:function(a){return 1*Math.sqrt(1-(a=a/1-1)*a)},easeInOutCirc:function(a){return 1>(a/=0.5)?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1)},easeInElastic:function(a){var c=1.70158,b=0,e=1;if(0==a)return 0;if(1==(a/=1))return 1;b||(b=0.3);e<Math.abs(1)?(e=1,c=b/4):c=b/(2*
|
15 |
+
Math.PI)*Math.asin(1/e);return-(e*Math.pow(2,10*(a-=1))*Math.sin((1*a-c)*2*Math.PI/b))},easeOutElastic:function(a){var c=1.70158,b=0,e=1;if(0==a)return 0;if(1==(a/=1))return 1;b||(b=0.3);e<Math.abs(1)?(e=1,c=b/4):c=b/(2*Math.PI)*Math.asin(1/e);return e*Math.pow(2,-10*a)*Math.sin((1*a-c)*2*Math.PI/b)+1},easeInOutElastic:function(a){var c=1.70158,b=0,e=1;if(0==a)return 0;if(2==(a/=0.5))return 1;b||(b=1*0.3*1.5);e<Math.abs(1)?(e=1,c=b/4):c=b/(2*Math.PI)*Math.asin(1/e);return 1>a?-0.5*e*Math.pow(2,10*
|
16 |
+
(a-=1))*Math.sin((1*a-c)*2*Math.PI/b):0.5*e*Math.pow(2,-10*(a-=1))*Math.sin((1*a-c)*2*Math.PI/b)+1},easeInBack:function(a){return 1*(a/=1)*a*(2.70158*a-1.70158)},easeOutBack:function(a){return 1*((a=a/1-1)*a*(2.70158*a+1.70158)+1)},easeInOutBack:function(a){var c=1.70158;return 1>(a/=0.5)?0.5*a*a*(((c*=1.525)+1)*a-c):0.5*((a-=2)*a*(((c*=1.525)+1)*a+c)+2)},easeInBounce:function(a){return 1-B.easeOutBounce(1-a)},easeOutBounce:function(a){return(a/=1)<1/2.75?1*7.5625*a*a:a<2/2.75?1*(7.5625*(a-=1.5/2.75)*
|
17 |
+
a+0.75):a<2.5/2.75?1*(7.5625*(a-=2.25/2.75)*a+0.9375):1*(7.5625*(a-=2.625/2.75)*a+0.984375)},easeInOutBounce:function(a){return 0.5>a?0.5*B.easeInBounce(2*a):0.5*B.easeOutBounce(2*a-1)+0.5}},q=s.canvas.width,u=s.canvas.height;window.devicePixelRatio&&(s.canvas.style.width=q+"px",s.canvas.style.height=u+"px",s.canvas.height=u*window.devicePixelRatio,s.canvas.width=q*window.devicePixelRatio,s.scale(window.devicePixelRatio,window.devicePixelRatio));this.PolarArea=function(a,c){r.PolarArea.defaults={scaleOverlay:!0,
|
18 |
+
scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleShowLine:!0,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowLabelBackdrop:!0,scaleBackdropColor:"rgba(255,255,255,0.75)",scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animation:!0,animationSteps:100,animationEasing:"easeOutBounce",
|
19 |
+
animateRotate:!0,animateScale:!1,onAnimationComplete:null};var b=c?y(r.PolarArea.defaults,c):r.PolarArea.defaults;return new G(a,b,s)};this.Radar=function(a,c){r.Radar.defaults={scaleOverlay:!1,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleShowLine:!0,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!1,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowLabelBackdrop:!0,scaleBackdropColor:"rgba(255,255,255,0.75)",
|
20 |
+
scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,angleShowLineOut:!0,angleLineColor:"rgba(0,0,0,.1)",angleLineWidth:1,pointLabelFontFamily:"'Arial'",pointLabelFontStyle:"normal",pointLabelFontSize:12,pointLabelFontColor:"#666",pointDot:!0,pointDotRadius:3,pointDotStrokeWidth:1,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,animation:!0,animationSteps:60,animationEasing:"easeOutQuart",onAnimationComplete:null};var b=c?y(r.Radar.defaults,c):r.Radar.defaults;return new H(a,b,s)};this.Pie=function(a,
|
21 |
+
c){r.Pie.defaults={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animation:!0,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,onAnimationComplete:null};var b=c?y(r.Pie.defaults,c):r.Pie.defaults;return new I(a,b,s)};this.Doughnut=function(a,c){r.Doughnut.defaults={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,percentageInnerCutout:50,animation:!0,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,
|
22 |
+
onAnimationComplete:null};var b=c?y(r.Doughnut.defaults,c):r.Doughnut.defaults;return new J(a,b,s)};this.Line=function(a,c){r.Line.defaults={scaleOverlay:!1,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,bezierCurve:!0,
|
23 |
+
pointDot:!0,pointDotRadius:4,pointDotStrokeWidth:2,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,animation:!0,animationSteps:60,animationEasing:"easeOutQuart",onAnimationComplete:null};var b=c?y(r.Line.defaults,c):r.Line.defaults;return new K(a,b,s)};this.Bar=function(a,c){r.Bar.defaults={scaleOverlay:!1,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",
|
24 |
+
scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,barShowStroke:!0,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,animation:!0,animationSteps:60,animationEasing:"easeOutQuart",onAnimationComplete:null};var b=c?y(r.Bar.defaults,c):r.Bar.defaults;return new L(a,b,s)};var G=function(a,c,b){var e,h,f,d,g,k,j,l,m;g=Math.min.apply(Math,[q,u])/2;g-=Math.max.apply(Math,[0.5*c.scaleFontSize,0.5*c.scaleLineWidth]);
|
25 |
+
d=2*c.scaleFontSize;c.scaleShowLabelBackdrop&&(d+=2*c.scaleBackdropPaddingY,g-=1.5*c.scaleBackdropPaddingY);l=g;d=d?d:5;e=Number.MIN_VALUE;h=Number.MAX_VALUE;for(f=0;f<a.length;f++)a[f].value>e&&(e=a[f].value),a[f].value<h&&(h=a[f].value);f=Math.floor(l/(0.66*d));d=Math.floor(0.5*(l/d));m=c.scaleShowLabels?c.scaleLabel:null;c.scaleOverride?(j={steps:c.scaleSteps,stepValue:c.scaleStepWidth,graphMin:c.scaleStartValue,labels:[]},z(m,j.labels,j.steps,c.scaleStartValue,c.scaleStepWidth)):j=C(l,f,d,e,h,
|
26 |
+
m);k=g/j.steps;x(c,function(){for(var a=0;a<j.steps;a++)if(c.scaleShowLine&&(b.beginPath(),b.arc(q/2,u/2,k*(a+1),0,2*Math.PI,!0),b.strokeStyle=c.scaleLineColor,b.lineWidth=c.scaleLineWidth,b.stroke()),c.scaleShowLabels){b.textAlign="center";b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily;var e=j.labels[a];if(c.scaleShowLabelBackdrop){var d=b.measureText(e).width;b.fillStyle=c.scaleBackdropColor;b.beginPath();b.rect(Math.round(q/2-d/2-c.scaleBackdropPaddingX),Math.round(u/2-k*(a+
|
27 |
+
1)-0.5*c.scaleFontSize-c.scaleBackdropPaddingY),Math.round(d+2*c.scaleBackdropPaddingX),Math.round(c.scaleFontSize+2*c.scaleBackdropPaddingY));b.fill()}b.textBaseline="middle";b.fillStyle=c.scaleFontColor;b.fillText(e,q/2,u/2-k*(a+1))}},function(e){var d=-Math.PI/2,g=2*Math.PI/a.length,f=1,h=1;c.animation&&(c.animateScale&&(f=e),c.animateRotate&&(h=e));for(e=0;e<a.length;e++)b.beginPath(),b.arc(q/2,u/2,f*v(a[e].value,j,k),d,d+h*g,!1),b.lineTo(q/2,u/2),b.closePath(),b.fillStyle=a[e].color,b.fill(),
|
28 |
+
c.segmentShowStroke&&(b.strokeStyle=c.segmentStrokeColor,b.lineWidth=c.segmentStrokeWidth,b.stroke()),d+=h*g},b)},H=function(a,c,b){var e,h,f,d,g,k,j,l,m;a.labels||(a.labels=[]);g=Math.min.apply(Math,[q,u])/2;d=2*c.scaleFontSize;for(e=l=0;e<a.labels.length;e++)b.font=c.pointLabelFontStyle+" "+c.pointLabelFontSize+"px "+c.pointLabelFontFamily,h=b.measureText(a.labels[e]).width,h>l&&(l=h);g-=Math.max.apply(Math,[l,1.5*(c.pointLabelFontSize/2)]);g-=c.pointLabelFontSize;l=g=A(g,null,0);d=d?d:5;e=Number.MIN_VALUE;
|
29 |
+
h=Number.MAX_VALUE;for(f=0;f<a.datasets.length;f++)for(m=0;m<a.datasets[f].data.length;m++)a.datasets[f].data[m]>e&&(e=a.datasets[f].data[m]),a.datasets[f].data[m]<h&&(h=a.datasets[f].data[m]);f=Math.floor(l/(0.66*d));d=Math.floor(0.5*(l/d));m=c.scaleShowLabels?c.scaleLabel:null;c.scaleOverride?(j={steps:c.scaleSteps,stepValue:c.scaleStepWidth,graphMin:c.scaleStartValue,labels:[]},z(m,j.labels,j.steps,c.scaleStartValue,c.scaleStepWidth)):j=C(l,f,d,e,h,m);k=g/j.steps;x(c,function(){var e=2*Math.PI/
|
30 |
+
a.datasets[0].data.length;b.save();b.translate(q/2,u/2);if(c.angleShowLineOut){b.strokeStyle=c.angleLineColor;b.lineWidth=c.angleLineWidth;for(var d=0;d<a.datasets[0].data.length;d++)b.rotate(e),b.beginPath(),b.moveTo(0,0),b.lineTo(0,-g),b.stroke()}for(d=0;d<j.steps;d++){b.beginPath();if(c.scaleShowLine){b.strokeStyle=c.scaleLineColor;b.lineWidth=c.scaleLineWidth;b.moveTo(0,-k*(d+1));for(var f=0;f<a.datasets[0].data.length;f++)b.rotate(e),b.lineTo(0,-k*(d+1));b.closePath();b.stroke()}c.scaleShowLabels&&
|
31 |
+
(b.textAlign="center",b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily,b.textBaseline="middle",c.scaleShowLabelBackdrop&&(f=b.measureText(j.labels[d]).width,b.fillStyle=c.scaleBackdropColor,b.beginPath(),b.rect(Math.round(-f/2-c.scaleBackdropPaddingX),Math.round(-k*(d+1)-0.5*c.scaleFontSize-c.scaleBackdropPaddingY),Math.round(f+2*c.scaleBackdropPaddingX),Math.round(c.scaleFontSize+2*c.scaleBackdropPaddingY)),b.fill()),b.fillStyle=c.scaleFontColor,b.fillText(j.labels[d],0,-k*(d+
|
32 |
+
1)))}for(d=0;d<a.labels.length;d++){b.font=c.pointLabelFontStyle+" "+c.pointLabelFontSize+"px "+c.pointLabelFontFamily;b.fillStyle=c.pointLabelFontColor;var f=Math.sin(e*d)*(g+c.pointLabelFontSize),h=Math.cos(e*d)*(g+c.pointLabelFontSize);b.textAlign=e*d==Math.PI||0==e*d?"center":e*d>Math.PI?"right":"left";b.textBaseline="middle";b.fillText(a.labels[d],f,-h)}b.restore()},function(d){var e=2*Math.PI/a.datasets[0].data.length;b.save();b.translate(q/2,u/2);for(var g=0;g<a.datasets.length;g++){b.beginPath();
|
33 |
+
b.moveTo(0,d*-1*v(a.datasets[g].data[0],j,k));for(var f=1;f<a.datasets[g].data.length;f++)b.rotate(e),b.lineTo(0,d*-1*v(a.datasets[g].data[f],j,k));b.closePath();b.fillStyle=a.datasets[g].fillColor;b.strokeStyle=a.datasets[g].strokeColor;b.lineWidth=c.datasetStrokeWidth;b.fill();b.stroke();if(c.pointDot){b.fillStyle=a.datasets[g].pointColor;b.strokeStyle=a.datasets[g].pointStrokeColor;b.lineWidth=c.pointDotStrokeWidth;for(f=0;f<a.datasets[g].data.length;f++)b.rotate(e),b.beginPath(),b.arc(0,d*-1*
|
34 |
+
v(a.datasets[g].data[f],j,k),c.pointDotRadius,2*Math.PI,!1),b.fill(),b.stroke()}b.rotate(e)}b.restore()},b)},I=function(a,c,b){for(var e=0,h=Math.min.apply(Math,[u/2,q/2])-5,f=0;f<a.length;f++)e+=a[f].value;x(c,null,function(d){var g=-Math.PI/2,f=1,j=1;c.animation&&(c.animateScale&&(f=d),c.animateRotate&&(j=d));for(d=0;d<a.length;d++){var l=j*a[d].value/e*2*Math.PI;b.beginPath();b.arc(q/2,u/2,f*h,g,g+l);b.lineTo(q/2,u/2);b.closePath();b.fillStyle=a[d].color;b.fill();c.segmentShowStroke&&(b.lineWidth=
|
35 |
+
c.segmentStrokeWidth,b.strokeStyle=c.segmentStrokeColor,b.stroke());g+=l}},b)},J=function(a,c,b){for(var e=0,h=Math.min.apply(Math,[u/2,q/2])-5,f=h*(c.percentageInnerCutout/100),d=0;d<a.length;d++)e+=a[d].value;x(c,null,function(d){var k=-Math.PI/2,j=1,l=1;c.animation&&(c.animateScale&&(j=d),c.animateRotate&&(l=d));for(d=0;d<a.length;d++){var m=l*a[d].value/e*2*Math.PI;b.beginPath();b.arc(q/2,u/2,j*h,k,k+m,!1);b.arc(q/2,u/2,j*f,k+m,k,!0);b.closePath();b.fillStyle=a[d].color;b.fill();c.segmentShowStroke&&
|
36 |
+
(b.lineWidth=c.segmentStrokeWidth,b.strokeStyle=c.segmentStrokeColor,b.stroke());k+=m}},b)},K=function(a,c,b){var e,h,f,d,g,k,j,l,m,t,r,n,p,s=0;g=u;b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily;t=1;for(d=0;d<a.labels.length;d++)e=b.measureText(a.labels[d]).width,t=e>t?e:t;q/a.labels.length<t?(s=45,q/a.labels.length<Math.cos(s)*t?(s=90,g-=t):g-=Math.sin(s)*t):g-=c.scaleFontSize;d=c.scaleFontSize;g=g-5-d;e=Number.MIN_VALUE;h=Number.MAX_VALUE;for(f=0;f<a.datasets.length;f++)for(l=
|
37 |
+
0;l<a.datasets[f].data.length;l++)a.datasets[f].data[l]>e&&(e=a.datasets[f].data[l]),a.datasets[f].data[l]<h&&(h=a.datasets[f].data[l]);f=Math.floor(g/(0.66*d));d=Math.floor(0.5*(g/d));l=c.scaleShowLabels?c.scaleLabel:"";c.scaleOverride?(j={steps:c.scaleSteps,stepValue:c.scaleStepWidth,graphMin:c.scaleStartValue,labels:[]},z(l,j.labels,j.steps,c.scaleStartValue,c.scaleStepWidth)):j=C(g,f,d,e,h,l);k=Math.floor(g/j.steps);d=1;if(c.scaleShowLabels){b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily;
|
38 |
+
for(e=0;e<j.labels.length;e++)h=b.measureText(j.labels[e]).width,d=h>d?h:d;d+=10}r=q-d-t;m=Math.floor(r/(a.labels.length-1));n=q-t/2-r;p=g+c.scaleFontSize/2;x(c,function(){b.lineWidth=c.scaleLineWidth;b.strokeStyle=c.scaleLineColor;b.beginPath();b.moveTo(q-t/2+5,p);b.lineTo(q-t/2-r-5,p);b.stroke();0<s?(b.save(),b.textAlign="right"):b.textAlign="center";b.fillStyle=c.scaleFontColor;for(var d=0;d<a.labels.length;d++)b.save(),0<s?(b.translate(n+d*m,p+c.scaleFontSize),b.rotate(-(s*(Math.PI/180))),b.fillText(a.labels[d],
|
39 |
+
0,0),b.restore()):b.fillText(a.labels[d],n+d*m,p+c.scaleFontSize+3),b.beginPath(),b.moveTo(n+d*m,p+3),c.scaleShowGridLines&&0<d?(b.lineWidth=c.scaleGridLineWidth,b.strokeStyle=c.scaleGridLineColor,b.lineTo(n+d*m,5)):b.lineTo(n+d*m,p+3),b.stroke();b.lineWidth=c.scaleLineWidth;b.strokeStyle=c.scaleLineColor;b.beginPath();b.moveTo(n,p+5);b.lineTo(n,5);b.stroke();b.textAlign="right";b.textBaseline="middle";for(d=0;d<j.steps;d++)b.beginPath(),b.moveTo(n-3,p-(d+1)*k),c.scaleShowGridLines?(b.lineWidth=c.scaleGridLineWidth,
|
40 |
+
b.strokeStyle=c.scaleGridLineColor,b.lineTo(n+r+5,p-(d+1)*k)):b.lineTo(n-0.5,p-(d+1)*k),b.stroke(),c.scaleShowLabels&&b.fillText(j.labels[d],n-8,p-(d+1)*k)},function(d){function e(b,c){return p-d*v(a.datasets[b].data[c],j,k)}for(var f=0;f<a.datasets.length;f++){b.strokeStyle=a.datasets[f].strokeColor;b.lineWidth=c.datasetStrokeWidth;b.beginPath();b.moveTo(n,p-d*v(a.datasets[f].data[0],j,k));for(var g=1;g<a.datasets[f].data.length;g++)c.bezierCurve?b.bezierCurveTo(n+m*(g-0.5),e(f,g-1),n+m*(g-0.5),
|
41 |
+
e(f,g),n+m*g,e(f,g)):b.lineTo(n+m*g,e(f,g));b.stroke();c.datasetFill?(b.lineTo(n+m*(a.datasets[f].data.length-1),p),b.lineTo(n,p),b.closePath(),b.fillStyle=a.datasets[f].fillColor,b.fill()):b.closePath();if(c.pointDot){b.fillStyle=a.datasets[f].pointColor;b.strokeStyle=a.datasets[f].pointStrokeColor;b.lineWidth=c.pointDotStrokeWidth;for(g=0;g<a.datasets[f].data.length;g++)b.beginPath(),b.arc(n+m*g,p-d*v(a.datasets[f].data[g],j,k),c.pointDotRadius,0,2*Math.PI,!0),b.fill(),b.stroke()}}},b)},L=function(a,
|
42 |
+
c,b){var e,h,f,d,g,k,j,l,m,t,r,n,p,s,w=0;g=u;b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily;t=1;for(d=0;d<a.labels.length;d++)e=b.measureText(a.labels[d]).width,t=e>t?e:t;q/a.labels.length<t?(w=45,q/a.labels.length<Math.cos(w)*t?(w=90,g-=t):g-=Math.sin(w)*t):g-=c.scaleFontSize;d=c.scaleFontSize;g=g-5-d;e=Number.MIN_VALUE;h=Number.MAX_VALUE;for(f=0;f<a.datasets.length;f++)for(l=0;l<a.datasets[f].data.length;l++)a.datasets[f].data[l]>e&&(e=a.datasets[f].data[l]),a.datasets[f].data[l]<
|
43 |
+
h&&(h=a.datasets[f].data[l]);f=Math.floor(g/(0.66*d));d=Math.floor(0.5*(g/d));l=c.scaleShowLabels?c.scaleLabel:"";c.scaleOverride?(j={steps:c.scaleSteps,stepValue:c.scaleStepWidth,graphMin:c.scaleStartValue,labels:[]},z(l,j.labels,j.steps,c.scaleStartValue,c.scaleStepWidth)):j=C(g,f,d,e,h,l);k=Math.floor(g/j.steps);d=1;if(c.scaleShowLabels){b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily;for(e=0;e<j.labels.length;e++)h=b.measureText(j.labels[e]).width,d=h>d?h:d;d+=10}r=q-d-t;m=
|
44 |
+
Math.floor(r/a.labels.length);s=(m-2*c.scaleGridLineWidth-2*c.barValueSpacing-(c.barDatasetSpacing*a.datasets.length-1)-(c.barStrokeWidth/2*a.datasets.length-1))/a.datasets.length;n=q-t/2-r;p=g+c.scaleFontSize/2;x(c,function(){b.lineWidth=c.scaleLineWidth;b.strokeStyle=c.scaleLineColor;b.beginPath();b.moveTo(q-t/2+5,p);b.lineTo(q-t/2-r-5,p);b.stroke();0<w?(b.save(),b.textAlign="right"):b.textAlign="center";b.fillStyle=c.scaleFontColor;for(var d=0;d<a.labels.length;d++)b.save(),0<w?(b.translate(n+
|
45 |
+
d*m,p+c.scaleFontSize),b.rotate(-(w*(Math.PI/180))),b.fillText(a.labels[d],0,0),b.restore()):b.fillText(a.labels[d],n+d*m+m/2,p+c.scaleFontSize+3),b.beginPath(),b.moveTo(n+(d+1)*m,p+3),b.lineWidth=c.scaleGridLineWidth,b.strokeStyle=c.scaleGridLineColor,b.lineTo(n+(d+1)*m,5),b.stroke();b.lineWidth=c.scaleLineWidth;b.strokeStyle=c.scaleLineColor;b.beginPath();b.moveTo(n,p+5);b.lineTo(n,5);b.stroke();b.textAlign="right";b.textBaseline="middle";for(d=0;d<j.steps;d++)b.beginPath(),b.moveTo(n-3,p-(d+1)*
|
46 |
+
k),c.scaleShowGridLines?(b.lineWidth=c.scaleGridLineWidth,b.strokeStyle=c.scaleGridLineColor,b.lineTo(n+r+5,p-(d+1)*k)):b.lineTo(n-0.5,p-(d+1)*k),b.stroke(),c.scaleShowLabels&&b.fillText(j.labels[d],n-8,p-(d+1)*k)},function(d){b.lineWidth=c.barStrokeWidth;for(var e=0;e<a.datasets.length;e++){b.fillStyle=a.datasets[e].fillColor;b.strokeStyle=a.datasets[e].strokeColor;for(var f=0;f<a.datasets[e].data.length;f++){var g=n+c.barValueSpacing+m*f+s*e+c.barDatasetSpacing*e+c.barStrokeWidth*e;b.beginPath();
|
47 |
+
b.moveTo(g,p);b.lineTo(g,p-d*v(a.datasets[e].data[f],j,k)+c.barStrokeWidth/2);b.lineTo(g+s,p-d*v(a.datasets[e].data[f],j,k)+c.barStrokeWidth/2);b.lineTo(g+s,p);c.barShowStroke&&b.stroke();b.closePath();b.fill()}}},b)},D=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){window.setTimeout(a,1E3/60)},F={}};
|
inc/core.php
CHANGED
@@ -92,6 +92,8 @@ function frontend_scripts() {
|
|
92 |
|
93 |
wp_enqueue_script( 'jquery.event.move', plugins_url( 'assets/js/jquery.event.move.js',MAGEE_SHORTCODES_PATH ), array( 'jquery'), '1.3.6', false );
|
94 |
wp_enqueue_script( 'jquery.twentytwenty', plugins_url( 'assets/js/jquery.twentytwenty.js',MAGEE_SHORTCODES_PATH ), array( 'jquery'), '', false );
|
|
|
|
|
95 |
|
96 |
wp_enqueue_script( 'magee-main', plugins_url( 'assets/js/magee-shortcodes.js',MAGEE_SHORTCODES_PATH ), array( 'jquery'),MAGEE_SHORTCODES_VER, true );
|
97 |
//wp_enqueue_script( 'magee-main', plugins_url( 'assets/js/main.js',MAGEE_SHORTCODES_PATH ), array( 'jquery'),MAGEE_SHORTCODES_VER, true );
|
@@ -128,13 +130,14 @@ function add_shortcodes_button($context) {
|
|
128 |
$magee_shortcodes = $this->magee_shortcodes;
|
129 |
|
130 |
if( isset($_POST['shortcode']) && isset($magee_shortcodes[$_POST['shortcode']]) ){
|
131 |
-
if( $magee_shortcodes[$_POST['shortcode']]['
|
132 |
echo '<h2 class="shortcode-name">'.$magee_shortcodes[$_POST['shortcode']]['popup_title'].'</h2>';
|
133 |
if(isset($magee_shortcodes[$_POST['shortcode']]['name'])){
|
134 |
echo '<div class="example-list">Want to know more about this shortcode? Check <a class="example-link" target="_blank" href="https://demo.mageewp.com/magee-shortcodes-demo/'.$magee_shortcodes[$_POST['shortcode']]['name'].'"> Examples of use</a>.</div>';
|
135 |
}
|
136 |
$this->popup = $_POST['shortcode'];
|
137 |
-
echo
|
|
|
138 |
echo '<div class="shortcode-add"><a href="#" class="child-shortcode-add">add</a></div>' ;
|
139 |
|
140 |
}else{
|
@@ -297,7 +300,7 @@ function get_sidebars() {
|
|
297 |
$list = plugins_url( 'assets/images/list.png',MAGEE_SHORTCODES_PATH );
|
298 |
//path to insert shortcode icon
|
299 |
$insert = plugins_url( 'assets/images/insert_shortcode.png',MAGEE_SHORTCODES_PATH );
|
300 |
-
echo '<div class="TB_footer" id="TB_footer"><div class="magee-shortcode-actions magee-shortcode-clearfix"><a class="button button-large magee-shortcodes-home" href="javascript:void(0);"><img src="'.$list.'"/></a><a class="button button-primary button-large magee-shortcodes-preview" ><img style="margin-bottom:-3px;margin-right:5px" src="'.$preview.'"/>'.__("Live Preview",'magee-shortcodes').'</a><a class="button button-primary button-large magee-shortcode-insert" href="javascript:void(0);"><img style="margin-bottom:-3px;margin-right:5px" src="'.$insert.'"/>'.__("Insert shortcode",'magee-shortcodes').'</a></div></div>';
|
301 |
exit(0);
|
302 |
}
|
303 |
|
@@ -334,19 +337,21 @@ function get_sidebars() {
|
|
334 |
}
|
335 |
endif;
|
336 |
|
337 |
-
if( $
|
338 |
-
|
339 |
-
if( count($_POST['attr'])>6){
|
340 |
-
|
341 |
$common = array_slice($_POST['attr'],count($_POST['attr'])-2,2) ;
|
342 |
array_splice($_POST['attr'],count($_POST['attr'])-2,2);
|
343 |
-
|
|
|
|
|
|
|
344 |
$i = '';
|
345 |
$copyshortcode = '';
|
346 |
for( $i=0;$i<count($loop);$i++){
|
347 |
-
|
|
|
348 |
|
349 |
-
$cshortcode = $magee_shortcodes[
|
350 |
$attrs = array();
|
351 |
$perattr = array_merge($loop[$i],$common);
|
352 |
|
@@ -366,31 +371,11 @@ function get_sidebars() {
|
|
366 |
}
|
367 |
}
|
368 |
$copyshortcode .= $cshortcode;
|
|
|
369 |
}
|
370 |
-
$shortcode = str_replace('{{child_shortcode}}',$copyshortcode,$shortcode);
|
371 |
-
|
372 |
-
}else{
|
373 |
-
$cparams = $magee_shortcodes['column']['child_shortcode']['params'];
|
374 |
-
|
375 |
-
$cshortcode = $magee_shortcodes['column']['child_shortcode']['shortcode'];
|
376 |
-
$attrs = array();
|
377 |
-
foreach( $_POST['attr'] as $attr){
|
378 |
|
379 |
-
$attrs[str_replace('magee_','',$attr['name'])] = $attr['value'];
|
380 |
-
}
|
381 |
-
foreach( $cparams as $cpkey => $cparam )
|
382 |
-
{
|
383 |
-
|
384 |
-
if( isset($attrs[$cpkey] )){
|
385 |
-
|
386 |
-
$cshortcode = str_replace('{{'.$cpkey.'}}',$attrs[$cpkey],$cshortcode);
|
387 |
-
|
388 |
-
}else{
|
389 |
-
$cshortcode = str_replace('{{'.$cpkey.'}}','',$cshortcode);
|
390 |
-
}
|
391 |
-
}
|
392 |
-
$shortcode = str_replace('{{child_shortcode}}',$cshortcode,$shortcode);
|
393 |
-
}
|
394 |
endif;
|
395 |
|
396 |
}
|
@@ -427,8 +412,9 @@ function get_sidebars() {
|
|
427 |
$this->append_output( "\n" . '<div id="_magee_shortcode" class="hidden">' . $this->shortcode . '</div>' );
|
428 |
$this->append_output( "\n" . '<div id="_magee_popup" class="hidden">' . $this->popup . '</div>' );
|
429 |
|
430 |
-
|
431 |
// filters and excutes params
|
|
|
432 |
foreach( $this->params as $pkey => $param )
|
433 |
{
|
434 |
|
@@ -754,7 +740,26 @@ function get_sidebars() {
|
|
754 |
break;
|
755 |
}
|
756 |
}
|
757 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
758 |
// checks if has a child shortcode
|
759 |
if( isset( $magee_shortcodes[$this->popup]['child_shortcode']) ){
|
760 |
|
@@ -843,7 +848,7 @@ function get_sidebars() {
|
|
843 |
|
844 |
foreach( $cparam['options'] as $value => $option )
|
845 |
{
|
846 |
-
$selected = (isset($
|
847 |
$output_child .= '<option value="' . $value . '"' . $selected . '>' . $option . '</option>' . "\n";
|
848 |
}
|
849 |
|
@@ -856,7 +861,19 @@ function get_sidebars() {
|
|
856 |
$this->append_output($output);
|
857 |
|
858 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
859 |
|
|
|
|
|
860 |
case 'checkbox' :
|
861 |
|
862 |
// prepare
|
@@ -896,9 +913,9 @@ function get_sidebars() {
|
|
896 |
case 'colorpicker' :
|
897 |
|
898 |
// prepare
|
899 |
-
$output_child = $
|
900 |
$output_child .= '<input type="text" class="magee-form-text magee-cinput wp-color-picker-field" name="' . $cpkey . '" id="' . $cpkey . '" value="' . $cparam['std'] . '" />' . "\n";
|
901 |
-
$output_child .= $
|
902 |
|
903 |
// append
|
904 |
$output .= $output_child;
|
@@ -908,23 +925,29 @@ function get_sidebars() {
|
|
908 |
|
909 |
case 'iconpicker' :
|
910 |
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
|
|
|
|
|
|
|
|
|
|
922 |
|
923 |
-
|
924 |
-
$
|
925 |
-
|
926 |
|
927 |
-
|
|
|
928 |
|
929 |
case 'size' :
|
930 |
|
@@ -950,7 +973,7 @@ function get_sidebars() {
|
|
950 |
|
951 |
|
952 |
|
953 |
-
|
954 |
}
|
955 |
|
956 |
return $output;
|
@@ -1029,19 +1052,22 @@ function say($all){
|
|
1029 |
}
|
1030 |
}
|
1031 |
endif;
|
1032 |
-
if( $_POST['name'] == 'column' ):
|
1033 |
|
1034 |
-
|
1035 |
-
|
1036 |
-
$common = array_slice($_POST['preview'],count($_POST['
|
1037 |
array_splice($_POST['preview'],count($_POST['preview'])-2,2);
|
1038 |
-
|
|
|
|
|
|
|
1039 |
$i = '';
|
1040 |
$copyshortcode = '';
|
1041 |
for( $i=0;$i<count($loop);$i++){
|
1042 |
-
|
|
|
1043 |
|
1044 |
-
$cshortcode = $magee_shortcodes[
|
1045 |
$attrs = array();
|
1046 |
$perattr = array_merge($loop[$i],$common);
|
1047 |
|
@@ -1061,31 +1087,9 @@ function say($all){
|
|
1061 |
}
|
1062 |
}
|
1063 |
$copyshortcode .= $cshortcode;
|
1064 |
-
}
|
1065 |
-
$shortcode = str_replace('{{child_shortcode}}',$copyshortcode,$shortcode);
|
1066 |
-
|
1067 |
-
}else{
|
1068 |
-
$cparams = $magee_shortcodes['column']['child_shortcode']['params'];
|
1069 |
-
|
1070 |
-
$cshortcode = $magee_shortcodes['column']['child_shortcode']['shortcode'];
|
1071 |
-
$attrs = array();
|
1072 |
-
foreach( $_POST['preview'] as $attr){
|
1073 |
-
|
1074 |
-
$attrs[str_replace('magee_','',$attr['name'])] = $attr['value'];
|
1075 |
-
}
|
1076 |
-
foreach( $cparams as $cpkey => $cparam )
|
1077 |
-
{
|
1078 |
-
|
1079 |
-
if( isset($attrs[$cpkey] )){
|
1080 |
|
1081 |
-
|
1082 |
-
|
1083 |
-
}else{
|
1084 |
-
$cshortcode = str_replace('{{'.$cpkey.'}}','',$cshortcode);
|
1085 |
-
}
|
1086 |
-
}
|
1087 |
-
$shortcode = str_replace('{{child_shortcode}}',$cshortcode,$shortcode);
|
1088 |
-
}
|
1089 |
endif;
|
1090 |
|
1091 |
|
@@ -1112,6 +1116,8 @@ function js(){
|
|
1112 |
$script .= "<script type='text/javascript' src=".plugins_url( 'assets/js/jquery.prettyPhoto.js',MAGEE_SHORTCODES_PATH )."></script>";
|
1113 |
$script .= "<script type='text/javascript' src=".plugins_url( 'assets/js/jquery.event.move.js',MAGEE_SHORTCODES_PATH )."></script>";
|
1114 |
$script .= "<script type='text/javascript' src=".plugins_url( 'assets/js/magee-shortcodes.js',MAGEE_SHORTCODES_PATH )."></script>";
|
|
|
|
|
1115 |
$script .= "<script type='text/javascript' src='https://f.vimeocdn.com/js/froogaloop2.min.js'></script>";
|
1116 |
echo $script;
|
1117 |
die();
|
92 |
|
93 |
wp_enqueue_script( 'jquery.event.move', plugins_url( 'assets/js/jquery.event.move.js',MAGEE_SHORTCODES_PATH ), array( 'jquery'), '1.3.6', false );
|
94 |
wp_enqueue_script( 'jquery.twentytwenty', plugins_url( 'assets/js/jquery.twentytwenty.js',MAGEE_SHORTCODES_PATH ), array( 'jquery'), '', false );
|
95 |
+
wp_enqueue_script( 'chart.min', plugins_url( 'assets/js/chart.min.js',MAGEE_SHORTCODES_PATH ), array( 'jquery'), '2.1.4', false );
|
96 |
+
wp_enqueue_script( 'moment', plugins_url( 'assets/js/moment.js',MAGEE_SHORTCODES_PATH ), array( 'jquery'),'2.12.0', false );
|
97 |
|
98 |
wp_enqueue_script( 'magee-main', plugins_url( 'assets/js/magee-shortcodes.js',MAGEE_SHORTCODES_PATH ), array( 'jquery'),MAGEE_SHORTCODES_VER, true );
|
99 |
//wp_enqueue_script( 'magee-main', plugins_url( 'assets/js/main.js',MAGEE_SHORTCODES_PATH ), array( 'jquery'),MAGEE_SHORTCODES_VER, true );
|
130 |
$magee_shortcodes = $this->magee_shortcodes;
|
131 |
|
132 |
if( isset($_POST['shortcode']) && isset($magee_shortcodes[$_POST['shortcode']]) ){
|
133 |
+
if( isset($magee_shortcodes[$_POST['shortcode']]['child_shortcode'])){
|
134 |
echo '<h2 class="shortcode-name">'.$magee_shortcodes[$_POST['shortcode']]['popup_title'].'</h2>';
|
135 |
if(isset($magee_shortcodes[$_POST['shortcode']]['name'])){
|
136 |
echo '<div class="example-list">Want to know more about this shortcode? Check <a class="example-link" target="_blank" href="https://demo.mageewp.com/magee-shortcodes-demo/'.$magee_shortcodes[$_POST['shortcode']]['name'].'"> Examples of use</a>.</div>';
|
137 |
}
|
138 |
$this->popup = $_POST['shortcode'];
|
139 |
+
echo self::formate_shortcode();
|
140 |
+
echo '<div class="column-shortcode-inner">'.self::formate_children_shortcode().'</div>';
|
141 |
echo '<div class="shortcode-add"><a href="#" class="child-shortcode-add">add</a></div>' ;
|
142 |
|
143 |
}else{
|
300 |
$list = plugins_url( 'assets/images/list.png',MAGEE_SHORTCODES_PATH );
|
301 |
//path to insert shortcode icon
|
302 |
$insert = plugins_url( 'assets/images/insert_shortcode.png',MAGEE_SHORTCODES_PATH );
|
303 |
+
echo '<div class="TB_footer" id="TB_footer"><div class="magee-shortcode-return">Top</div><div class="magee-shortcode-actions magee-shortcode-clearfix"><a class="button button-large magee-shortcodes-home" href="javascript:void(0);"><img src="'.$list.'"/></a><a class="button button-primary button-large magee-shortcodes-preview" ><img style="margin-bottom:-3px;margin-right:5px" src="'.$preview.'"/>'.__("Live Preview",'magee-shortcodes').'</a><a class="button button-primary button-large magee-shortcode-insert" href="javascript:void(0);"><img style="margin-bottom:-3px;margin-right:5px" src="'.$insert.'"/>'.__("Insert shortcode",'magee-shortcodes').'</a></div></div>';
|
304 |
exit(0);
|
305 |
}
|
306 |
|
337 |
}
|
338 |
endif;
|
339 |
|
340 |
+
if( isset($magee_shortcodes[$popup]['child_shortcode'])):
|
341 |
+
|
|
|
|
|
342 |
$common = array_slice($_POST['attr'],count($_POST['attr'])-2,2) ;
|
343 |
array_splice($_POST['attr'],count($_POST['attr'])-2,2);
|
344 |
+
$number = count($magee_shortcodes[$popup]['child_shortcode']['params']);
|
345 |
+
$expcet = count($magee_shortcodes[$popup]['params']);
|
346 |
+
array_splice($_POST['attr'],0,$expcet);
|
347 |
+
$loop = array_chunk($_POST['attr'],$number);
|
348 |
$i = '';
|
349 |
$copyshortcode = '';
|
350 |
for( $i=0;$i<count($loop);$i++){
|
351 |
+
|
352 |
+
$cparams = $magee_shortcodes[$popup]['child_shortcode']['params'];
|
353 |
|
354 |
+
$cshortcode = $magee_shortcodes[$popup]['child_shortcode']['shortcode'];
|
355 |
$attrs = array();
|
356 |
$perattr = array_merge($loop[$i],$common);
|
357 |
|
371 |
}
|
372 |
}
|
373 |
$copyshortcode .= $cshortcode;
|
374 |
+
|
375 |
}
|
376 |
+
$shortcode = str_replace('{{child_shortcode}}',$copyshortcode,$shortcode);
|
377 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
379 |
endif;
|
380 |
|
381 |
}
|
412 |
$this->append_output( "\n" . '<div id="_magee_shortcode" class="hidden">' . $this->shortcode . '</div>' );
|
413 |
$this->append_output( "\n" . '<div id="_magee_popup" class="hidden">' . $this->popup . '</div>' );
|
414 |
|
415 |
+
|
416 |
// filters and excutes params
|
417 |
+
if( $this->params ):
|
418 |
foreach( $this->params as $pkey => $param )
|
419 |
{
|
420 |
|
740 |
break;
|
741 |
}
|
742 |
}
|
743 |
+
endif;
|
744 |
+
|
745 |
+
|
746 |
+
}
|
747 |
+
|
748 |
+
return $output;
|
749 |
+
|
750 |
+
}
|
751 |
+
//children format shortcode
|
752 |
+
function formate_children_shortcode()
|
753 |
+
{
|
754 |
+
$magee_shortcodes = $this->magee_shortcodes;
|
755 |
+
|
756 |
+
// get config file
|
757 |
+
require_once( $this->conf );
|
758 |
+
$output = '';
|
759 |
+
unset($magee_shortcodes['shortcode-generator']['params']['select_shortcode']);
|
760 |
+
|
761 |
+
if( isset( $magee_shortcodes ) && is_array( $magee_shortcodes ) )
|
762 |
+
{
|
763 |
// checks if has a child shortcode
|
764 |
if( isset( $magee_shortcodes[$this->popup]['child_shortcode']) ){
|
765 |
|
848 |
|
849 |
foreach( $cparam['options'] as $value => $option )
|
850 |
{
|
851 |
+
$selected = (isset($cparam['std']) && $cparam['std'] == $value) ? 'selected="selected"' : '';
|
852 |
$output_child .= '<option value="' . $value . '"' . $selected . '>' . $option . '</option>' . "\n";
|
853 |
}
|
854 |
|
861 |
$this->append_output($output);
|
862 |
|
863 |
break;
|
864 |
+
|
865 |
+
case 'number':
|
866 |
+
|
867 |
+
// prepare
|
868 |
+
$output .= $row_start;;
|
869 |
+
$output .= '<div class="probar"><div class="probar-control"></div></div>'. "\n";;
|
870 |
+
$output .= '<input type="number" class="magee-form-number" name="'.$cpkey.'" id="'.$cpkey.'" max="'.$cparam['max'].'" min="'.$cparam['min'].'" step="1" value="'.$cparam['std'].'"/>'. "\n";
|
871 |
+
$output .= $row_end;
|
872 |
+
// append
|
873 |
+
$this->append_output( $output );
|
874 |
|
875 |
+
break;
|
876 |
+
|
877 |
case 'checkbox' :
|
878 |
|
879 |
// prepare
|
913 |
case 'colorpicker' :
|
914 |
|
915 |
// prepare
|
916 |
+
$output_child = $row_start;
|
917 |
$output_child .= '<input type="text" class="magee-form-text magee-cinput wp-color-picker-field" name="' . $cpkey . '" id="' . $cpkey . '" value="' . $cparam['std'] . '" />' . "\n";
|
918 |
+
$output_child .= $row_end;
|
919 |
|
920 |
// append
|
921 |
$output .= $output_child;
|
925 |
|
926 |
case 'iconpicker' :
|
927 |
|
928 |
+
// prepare
|
929 |
+
$output_child = $row_start;
|
930 |
+
$output_child .= '<div class="icon-val"><input type="text" class="magee-form-text magee-input" style="display:block" name="' . $cpkey . '" id="' . $cpkey . '" value="' . $cparam['std'] . '" />';
|
931 |
+
$output_child .= '<button type="button" id="custom_icon" class="button custom_icon">Icon Picker</button>'. "\n";
|
932 |
+
$output_child .= '<button type="button" id="insert-media-button" class="button magee-upload-button" data-editor="content" data-upid="' . $cpkey . '"><span class="wp-media-buttons-icon">'.__('Upload','magee-shortcodes-pro').'</span></button>' . "\n";
|
933 |
+
$output_child .= "</div>\n";
|
934 |
+
|
935 |
+
$output_child .= '<div class="iconpicker">';
|
936 |
+
|
937 |
+
|
938 |
+
foreach( $cparam['options'] as $value => $option ) {
|
939 |
+
|
940 |
+
$output_child .= '<i class="fa ' . $value . '" data-name="' . $value . '"></i>';
|
941 |
+
|
942 |
+
}
|
943 |
+
$output_child .= '</div>';
|
944 |
|
945 |
+
if(!isset($cparam['std'])) {
|
946 |
+
$cparam['std'] = '';
|
947 |
+
}
|
948 |
|
949 |
+
|
950 |
+
$output_child .= $row_end;
|
951 |
|
952 |
case 'size' :
|
953 |
|
973 |
|
974 |
|
975 |
|
976 |
+
}
|
977 |
}
|
978 |
|
979 |
return $output;
|
1052 |
}
|
1053 |
}
|
1054 |
endif;
|
|
|
1055 |
|
1056 |
+
if( isset($magee_shortcodes[$popup]['child_shortcode'])):
|
1057 |
+
|
1058 |
+
$common = array_slice($_POST['preview'],count($_POST['attr'])-2,2) ;
|
1059 |
array_splice($_POST['preview'],count($_POST['preview'])-2,2);
|
1060 |
+
$number = count($magee_shortcodes[$popup]['child_shortcode']['params']);
|
1061 |
+
$expcet = count($magee_shortcodes[$popup]['params']);
|
1062 |
+
array_splice($_POST['preview'],0,$expcet);
|
1063 |
+
$loop = array_chunk($_POST['preview'],$number);
|
1064 |
$i = '';
|
1065 |
$copyshortcode = '';
|
1066 |
for( $i=0;$i<count($loop);$i++){
|
1067 |
+
|
1068 |
+
$cparams = $magee_shortcodes[$popup]['child_shortcode']['params'];
|
1069 |
|
1070 |
+
$cshortcode = $magee_shortcodes[$popup]['child_shortcode']['shortcode'];
|
1071 |
$attrs = array();
|
1072 |
$perattr = array_merge($loop[$i],$common);
|
1073 |
|
1087 |
}
|
1088 |
}
|
1089 |
$copyshortcode .= $cshortcode;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1090 |
|
1091 |
+
}
|
1092 |
+
$shortcode = str_replace('{{child_shortcode}}',$copyshortcode,$shortcode);
|
|
|
|
|
|
|
|
|
|
|
|
|
1093 |
endif;
|
1094 |
|
1095 |
|
1116 |
$script .= "<script type='text/javascript' src=".plugins_url( 'assets/js/jquery.prettyPhoto.js',MAGEE_SHORTCODES_PATH )."></script>";
|
1117 |
$script .= "<script type='text/javascript' src=".plugins_url( 'assets/js/jquery.event.move.js',MAGEE_SHORTCODES_PATH )."></script>";
|
1118 |
$script .= "<script type='text/javascript' src=".plugins_url( 'assets/js/magee-shortcodes.js',MAGEE_SHORTCODES_PATH )."></script>";
|
1119 |
+
$script .= "<script type='text/javascript' src=".plugins_url( 'assets/js/chart.min.js',MAGEE_SHORTCODES_PATH )."></script>";
|
1120 |
+
$script .= "<script type='text/javascript' src=".plugins_url( 'assets/js/moment.js',MAGEE_SHORTCODES_PATH )."></script>";
|
1121 |
$script .= "<script type='text/javascript' src='https://f.vimeocdn.com/js/froogaloop2.min.js'></script>";
|
1122 |
echo $script;
|
1123 |
die();
|
inc/options.php
CHANGED
@@ -97,14 +97,14 @@ $magee_shortcodes['accordion'] = array(
|
|
97 |
)
|
98 |
),
|
99 |
'content' => array(
|
100 |
-
'std' => "
|
101 |
'type' => 'textarea',
|
102 |
'label' => __( 'Accordion Items', 'magee-shortcodes' ),
|
103 |
'desc' => __( 'Insert accordion items shortcode.', 'magee-shortcodes' ),
|
104 |
),
|
105 |
|
106 |
),
|
107 |
-
'shortcode' =>
|
108 |
'popup_title' => __( 'Accordion Shortcode', 'magee-shortcodes' ),
|
109 |
'name' => __('accordions-shortcode/','magee-shortocdes'),
|
110 |
|
@@ -410,6 +410,273 @@ $magee_shortcodes['button'] = array(
|
|
410 |
'name' => __('buttons-shortcode/','magee-shortocdes'),
|
411 |
);
|
412 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
413 |
|
414 |
/*******************************************************
|
415 |
* Columns Config
|
@@ -421,7 +688,7 @@ $magee_shortcodes['column'] = array(
|
|
421 |
'params' => array(
|
422 |
|
423 |
),
|
424 |
-
'shortcode' =>
|
425 |
'popup_title' => __( 'Column Shortcode', 'magee-shortcodes'),
|
426 |
'name' => __('columns-shortcode/','magee-shortocdes'),
|
427 |
'child_shortcode' => array(
|
@@ -465,7 +732,7 @@ $magee_shortcodes['column'] = array(
|
|
465 |
'desc' => __( 'Add an ID to the wrapping HTML element.', 'magee-shortcodes')
|
466 |
),
|
467 |
),
|
468 |
-
'shortcode' =>
|
469 |
)
|
470 |
|
471 |
);
|
97 |
)
|
98 |
),
|
99 |
'content' => array(
|
100 |
+
'std' => "[ms_accordion_item title='Accordion Item 1' icon='fa-flag' status='open']Accordion Item Content 1[/ms_accordion_item]\r\n[ms_accordion_item title='Accordion Item 2' icon='fa-star' status='close']Accordion Item Content 2[/ms_accordion_item]\r\n[ms_accordion_item title='Accordion Item 3' icon='fa-music' status='close']Accordion Item Content 3[/ms_accordion_item]\r\n",
|
101 |
'type' => 'textarea',
|
102 |
'label' => __( 'Accordion Items', 'magee-shortcodes' ),
|
103 |
'desc' => __( 'Insert accordion items shortcode.', 'magee-shortcodes' ),
|
104 |
),
|
105 |
|
106 |
),
|
107 |
+
'shortcode' => "[ms_accordion style=\"{{style}}\" type=\"{{type}}\" class=\"{{class}}\" id=\"{{id}}\"]\r\n{{content}}[/ms_accordion]",
|
108 |
'popup_title' => __( 'Accordion Shortcode', 'magee-shortcodes' ),
|
109 |
'name' => __('accordions-shortcode/','magee-shortocdes'),
|
110 |
|
410 |
'name' => __('buttons-shortcode/','magee-shortocdes'),
|
411 |
);
|
412 |
|
413 |
+
/*-----------------------------------------------------------------------------------*/
|
414 |
+
/* Chart Bar Config
|
415 |
+
/*-----------------------------------------------------------------------------------*/
|
416 |
+
|
417 |
+
$magee_shortcodes['chart_bar'] = array(
|
418 |
+
'no_preview' => true,
|
419 |
+
'icon' => 'fa-bar-chart',
|
420 |
+
'params' => array(
|
421 |
+
'width' => array(
|
422 |
+
'std' => '600',
|
423 |
+
'type' => 'number',
|
424 |
+
'max' => '1000',
|
425 |
+
'min' => '0',
|
426 |
+
'label' => __( 'Canvas Width','magee-shortcodes-pro'),
|
427 |
+
'desc' => '',
|
428 |
+
),
|
429 |
+
'height' => array(
|
430 |
+
'std' => '400',
|
431 |
+
'type' => 'number',
|
432 |
+
'max' => '1000',
|
433 |
+
'min' => '0',
|
434 |
+
'label' => __( 'Canvas Height','magee-shortcodes-pro'),
|
435 |
+
'desc' => '',
|
436 |
+
),
|
437 |
+
'class' => array(
|
438 |
+
'std' => '',
|
439 |
+
'type' => 'text',
|
440 |
+
'label' => __( 'CSS Class', 'magee-shortcodes-pro'),
|
441 |
+
'desc' => __( 'Add a class to the wrapping HTML element.', 'magee-shortcodes-pro')
|
442 |
+
),
|
443 |
+
'id' => array(
|
444 |
+
'std' => '',
|
445 |
+
'type' => 'text',
|
446 |
+
'label' => __( 'CSS ID', 'magee-shortcodes-pro'),
|
447 |
+
'desc' => __( 'Add an ID to the wrapping HTML element.', 'magee-shortcodes-pro')
|
448 |
+
),
|
449 |
+
'label' => array(
|
450 |
+
'std' => "'January','February','March','April','May','June'",
|
451 |
+
'type' => 'text',
|
452 |
+
'label' => __('Label For Line','magee-shortcodes-pro') ,
|
453 |
+
'desc' => __( 'separate multiple tags added to chart line with commas','magee-shortcodes-pro')
|
454 |
+
),
|
455 |
+
),
|
456 |
+
'shortcode' => "[ms_chart_bar width=\"{{width}}\" height=\"{{height}}\" class=\"{{class}}\" id=\"{{id}}\" label=\"{{label}}\"]\r\n{{child_shortcode}}[/ms_chart_bar]",
|
457 |
+
'popup_title' => __( 'Chart Bar Shortcode', 'magee-shortcodes-pro'),
|
458 |
+
'child_shortcode' => array(
|
459 |
+
'params' => array(
|
460 |
+
'data' => array(
|
461 |
+
'std' => '456,479,324,569,702,600',
|
462 |
+
'type' => 'text',
|
463 |
+
'label' => __( 'Data','magee-shortcodes-pro'),
|
464 |
+
'desc' => __( 'separate values for each set of data with commas','magee-shortcodes-pro')
|
465 |
+
),
|
466 |
+
'fillcolor' => array(
|
467 |
+
'std' => '#ACC284',
|
468 |
+
'type' => 'colorpicker',
|
469 |
+
'label' => __( 'Fill Color','magee-shortcodes-pro'),
|
470 |
+
'desc' => '',
|
471 |
+
),
|
472 |
+
'fillopacity' => array(
|
473 |
+
'std' => '0.4',
|
474 |
+
'type' => 'select',
|
475 |
+
'label' => __( 'Fill Opacity','magee-shortcodes-pro') ,
|
476 |
+
'desc' => '',
|
477 |
+
'options' => $opacity
|
478 |
+
),
|
479 |
+
'strokecolor' => array(
|
480 |
+
'std' => '#ACC26D',
|
481 |
+
'type' => 'colorpicker',
|
482 |
+
'label' => __( 'Stroke Color','magee-shortcodes-pro'),
|
483 |
+
'desc' => '',
|
484 |
+
),
|
485 |
+
'strokeopacity' => array(
|
486 |
+
'std' => '0.4',
|
487 |
+
'type' => 'select',
|
488 |
+
'label' => __( 'Stroke Opacity','magee-shortcodes-pro') ,
|
489 |
+
'desc' => '',
|
490 |
+
'options' => $opacity
|
491 |
+
),
|
492 |
+
),
|
493 |
+
'shortcode' => "[ms_bar data=\"{{data}}\" fillcolor=\"{{fillcolor}}\" fillopacity=\"{{fillopacity}}\" strokecolor=\"{{strokecolor}}\" strokeopacity=\"{{strokeopacity}}\"][/ms_bar]\r\n",
|
494 |
+
)
|
495 |
+
);
|
496 |
+
|
497 |
+
/*-----------------------------------------------------------------------------------*/
|
498 |
+
/* Chart Doughnut Config
|
499 |
+
/*-----------------------------------------------------------------------------------*/
|
500 |
+
|
501 |
+
$magee_shortcodes['chart_doughnut'] = array(
|
502 |
+
'no_preview' => true,
|
503 |
+
'icon' => 'fa-bar-chart',
|
504 |
+
'params' => array(
|
505 |
+
'width' => array(
|
506 |
+
'std' => '600',
|
507 |
+
'type' => 'number',
|
508 |
+
'max' => '1000',
|
509 |
+
'min' => '0',
|
510 |
+
'label' => __( 'Canvas Width','magee-shortcodes-pro'),
|
511 |
+
'desc' => '',
|
512 |
+
),
|
513 |
+
'height' => array(
|
514 |
+
'std' => '400',
|
515 |
+
'type' => 'number',
|
516 |
+
'max' => '1000',
|
517 |
+
'min' => '0',
|
518 |
+
'label' => __( 'Canvas Height','magee-shortcodes-pro'),
|
519 |
+
'desc' => '',
|
520 |
+
),
|
521 |
+
'class' => array(
|
522 |
+
'std' => '',
|
523 |
+
'type' => 'text',
|
524 |
+
'label' => __( 'CSS Class', 'magee-shortcodes-pro'),
|
525 |
+
'desc' => __( 'Add a class to the wrapping HTML element.', 'magee-shortcodes-pro')
|
526 |
+
),
|
527 |
+
'id' => array(
|
528 |
+
'std' => '',
|
529 |
+
'type' => 'text',
|
530 |
+
'label' => __( 'CSS ID', 'magee-shortcodes-pro'),
|
531 |
+
'desc' => __( 'Add an ID to the wrapping HTML element.', 'magee-shortcodes-pro')
|
532 |
+
),
|
533 |
+
'content' => array(
|
534 |
+
'std' => "[ms_doughnut value=\"20\" color=\"#878BB6\"]\r\n[ms_doughnut value=\"40\" color=\"#4ACAB4\"]\r\n[ms_doughnut value=\"10\" color=\"#FF8153\"]\r\n[ms_doughnut value=\"30\" color=\"#FFEA88\"]\r\n",
|
535 |
+
'type' => 'textarea',
|
536 |
+
'label' => __( 'Content', 'magee-shortcodes-pro'),
|
537 |
+
'desc' => __( '' ,'magee-shortcodes-pro'),
|
538 |
+
),
|
539 |
+
),
|
540 |
+
'shortcode' => "[ms_chart_doughnut width=\"{{width}}\" height=\"{{height}}\" class=\"{{class}}\" id=\"{{id}}\"]\r\n{{content}}[/ms_chart_doughnut]",
|
541 |
+
'popup_title' => __( 'Chart Doughnut Shortcode', 'magee-shortcodes-pro'),
|
542 |
+
);
|
543 |
+
|
544 |
+
/*-----------------------------------------------------------------------------------*/
|
545 |
+
/* Chart Line Config
|
546 |
+
/*-----------------------------------------------------------------------------------*/
|
547 |
+
|
548 |
+
$magee_shortcodes['chart_line'] = array(
|
549 |
+
'no_preview' => true,
|
550 |
+
'icon' => 'fa-bar-chart',
|
551 |
+
'params' => array(
|
552 |
+
'width' => array(
|
553 |
+
'std' => '600',
|
554 |
+
'type' => 'number',
|
555 |
+
'max' => '1000',
|
556 |
+
'min' => '0',
|
557 |
+
'label' => __( 'Canvas Width','magee-shortcodes-pro'),
|
558 |
+
'desc' => '',
|
559 |
+
),
|
560 |
+
'height' => array(
|
561 |
+
'std' => '400',
|
562 |
+
'type' => 'number',
|
563 |
+
'max' => '1000',
|
564 |
+
'min' => '0',
|
565 |
+
'label' => __( 'Canvas Height','magee-shortcodes-pro'),
|
566 |
+
'desc' => '',
|
567 |
+
),
|
568 |
+
'class' => array(
|
569 |
+
'std' => '',
|
570 |
+
'type' => 'text',
|
571 |
+
'label' => __( 'CSS Class', 'magee-shortcodes-pro'),
|
572 |
+
'desc' => __( 'Add a class to the wrapping HTML element.', 'magee-shortcodes-pro')
|
573 |
+
),
|
574 |
+
'id' => array(
|
575 |
+
'std' => '',
|
576 |
+
'type' => 'text',
|
577 |
+
'label' => __( 'CSS ID', 'magee-shortcodes-pro'),
|
578 |
+
'desc' => __( 'Add an ID to the wrapping HTML element.', 'magee-shortcodes-pro')
|
579 |
+
),
|
580 |
+
'label' => array(
|
581 |
+
'std' => "'January','February','March','April','May','June'",
|
582 |
+
'type' => 'text',
|
583 |
+
'label' => __('Label For Line','magee-shortcodes-pro') ,
|
584 |
+
'desc' => ''
|
585 |
+
),
|
586 |
+
),
|
587 |
+
'shortcode' => "[ms_chart_line width=\"{{width}}\" height=\"{{height}}\" class=\"{{class}}\" id=\"{{id}}\" label=\"{{label}}\"]\r\n{{child_shortcode}}[/ms_chart_line]",
|
588 |
+
'popup_title' => __( 'Chart Line Shortcode', 'magee-shortcodes-pro'),
|
589 |
+
'child_shortcode' => array(
|
590 |
+
'params' => array(
|
591 |
+
'data' => array(
|
592 |
+
'std' => '203,156,99,251,305,247',
|
593 |
+
'type' => 'text',
|
594 |
+
'label' => __( 'Data','magee-shortcodes-pro'),
|
595 |
+
'desc' => __( 'separate values for each set of data with commas','magee-shortcodes-pro')
|
596 |
+
),
|
597 |
+
'fillcolor' => array(
|
598 |
+
'std' => '#ACC284',
|
599 |
+
'type' => 'colorpicker',
|
600 |
+
'label' => __( 'Fill Color','magee-shortcodes-pro'),
|
601 |
+
'desc' => '',
|
602 |
+
),
|
603 |
+
'fillopacity' => array(
|
604 |
+
'std' => '0.4',
|
605 |
+
'type' => 'select',
|
606 |
+
'label' => __( 'Fill Opacity','magee-shortcodes-pro') ,
|
607 |
+
'desc' => '',
|
608 |
+
'options' => $opacity
|
609 |
+
),
|
610 |
+
'strokecolor' => array(
|
611 |
+
'std' => '#ACC26D',
|
612 |
+
'type' => 'colorpicker',
|
613 |
+
'label' => __( 'Stroke Color','magee-shortcodes-pro'),
|
614 |
+
'desc' => '',
|
615 |
+
),
|
616 |
+
'pointcolor' => array(
|
617 |
+
'std' => '#ffffff',
|
618 |
+
'type' => 'colorpicker',
|
619 |
+
'label' => __( 'Point Color','magee-shortcodes-pro'),
|
620 |
+
'desc' => '',
|
621 |
+
),
|
622 |
+
'pointstrokecolor' => array(
|
623 |
+
'std' => '#9DB86D',
|
624 |
+
'type' => 'colorpicker',
|
625 |
+
'label' => __( 'Point Stroke Color','magee-shortcodes-pro'),
|
626 |
+
'desc' => '',
|
627 |
+
),
|
628 |
+
),
|
629 |
+
'shortcode' => "[ms_line data=\"{{data}}\" fillcolor=\"{{fillcolor}}\" fillopacity=\"{{fillopacity}}\" strokecolor=\"{{strokecolor}}\" pointcolor=\"{{pointcolor}}\" pointstrokecolor=\"{{pointstrokecolor}}\"][/ms_line]\r\n",
|
630 |
+
)
|
631 |
+
);
|
632 |
+
|
633 |
+
/*-----------------------------------------------------------------------------------*/
|
634 |
+
/* Chart Pie Config
|
635 |
+
/*-----------------------------------------------------------------------------------*/
|
636 |
+
|
637 |
+
$magee_shortcodes['chart_pie'] = array(
|
638 |
+
'no_preview' => true,
|
639 |
+
'icon' => 'fa-bar-chart',
|
640 |
+
'params' => array(
|
641 |
+
'width' => array(
|
642 |
+
'std' => '600',
|
643 |
+
'type' => 'number',
|
644 |
+
'max' => '1000',
|
645 |
+
'min' => '0',
|
646 |
+
'label' => __( 'Canvas Width','magee-shortcodes-pro'),
|
647 |
+
'desc' => ''
|
648 |
+
),
|
649 |
+
'height' => array(
|
650 |
+
|
651 |
+
'std' => '400',
|
652 |
+
'type' => 'number',
|
653 |
+
'max' => '1000',
|
654 |
+
'min' => '0',
|
655 |
+
'label' => __( 'Canvas Height','magee-shortcodes-pro'),
|
656 |
+
'desc' => ''
|
657 |
+
),
|
658 |
+
'class' => array(
|
659 |
+
'std' => '',
|
660 |
+
'type' => 'text',
|
661 |
+
'label' => __( 'CSS Class', 'magee-shortcodes-pro'),
|
662 |
+
'desc' => __( 'Add a class to the wrapping HTML element.', 'magee-shortcodes-pro')
|
663 |
+
),
|
664 |
+
'id' => array(
|
665 |
+
'std' => '',
|
666 |
+
'type' => 'text',
|
667 |
+
'label' => __( 'CSS ID', 'magee-shortcodes-pro'),
|
668 |
+
'desc' => __( 'Add an ID to the wrapping HTML element.', 'magee-shortcodes-pro')
|
669 |
+
),
|
670 |
+
'content' => array(
|
671 |
+
'std' => "[ms_pie value=\"20\" color=\"#878BB6\"]\r\n[ms_pie value=\"40\" color=\"#4ACAB4\"]\r\n[ms_pie value=\"10\" color=\"#FF8153\"]\r\n[ms_pie value=\"30\" color=\"#FFEA88\"]\r\n",
|
672 |
+
'type' => 'textarea',
|
673 |
+
'label' => __( 'Content', 'magee-shortcodes-pro'),
|
674 |
+
'desc' => __( '' ,'magee-shortcodes-pro'),
|
675 |
+
),
|
676 |
+
),
|
677 |
+
'shortcode' => "[ms_chart_pie width=\"{{width}}\" height=\"{{height}}\" class=\"{{class}}\" id=\"{{id}}\"]\r\n{{content}}[/ms_chart_pie]",
|
678 |
+
'popup_title' => __( 'Chart Pie Shortcode', 'magee-shortcodes-pro')
|
679 |
+
);
|
680 |
|
681 |
/*******************************************************
|
682 |
* Columns Config
|
688 |
'params' => array(
|
689 |
|
690 |
),
|
691 |
+
'shortcode' => "[ms_row]\r\n{{child_shortcode}}[/ms_row]",
|
692 |
'popup_title' => __( 'Column Shortcode', 'magee-shortcodes'),
|
693 |
'name' => __('columns-shortcode/','magee-shortocdes'),
|
694 |
'child_shortcode' => array(
|
732 |
'desc' => __( 'Add an ID to the wrapping HTML element.', 'magee-shortcodes')
|
733 |
),
|
734 |
),
|
735 |
+
'shortcode' => "[ms_column style=\"{{style}}\" class=\"{{class}}\" id=\"{{id}}\"]{{content}}[/ms_column]\r\n",
|
736 |
)
|
737 |
|
738 |
);
|
inc/popup.php
CHANGED
@@ -38,61 +38,5 @@ global $magee_shortcodes;
|
|
38 |
</div>
|
39 |
</form>
|
40 |
<div class="clear"></div>
|
41 |
-
<div class="
|
42 |
-
<div id="_magee_cshortcode" class="hidden">[ms_column style="{{style}}" class="{{class}}" id="{{id}}"]{{content}}[/ms_column]</div>
|
43 |
-
<div class="param-item">
|
44 |
-
<div class="form-row row">
|
45 |
-
<div class="label"><span class="magee-form-label-title">Column Style</span>
|
46 |
-
<span class="magee-form-desc">Select the size of column.</span>
|
47 |
-
</div>
|
48 |
-
<div class="field">
|
49 |
-
<div class="magee-form-select-field"><select name="magee_style" id="magee_style" class="magee-form-select magee-input">
|
50 |
-
<option value="1/1">1/1</option>
|
51 |
-
<option value="1/2">1/2</option>
|
52 |
-
<option value="1/3">1/3</option>
|
53 |
-
<option value="1/4">1/4</option>
|
54 |
-
<option value="1/5">1/5</option>
|
55 |
-
<option value="1/6">1/6</option>
|
56 |
-
<option value="2/3">2/3</option>
|
57 |
-
<option value="2/5">2/5</option>
|
58 |
-
<option value="3/4">3/4</option>
|
59 |
-
<option value="3/5">3/5</option>
|
60 |
-
<option value="4/5">4/5</option>
|
61 |
-
<option value="5/6">5/6</option>
|
62 |
-
</select>
|
63 |
-
</div>
|
64 |
-
</div>
|
65 |
-
</div>
|
66 |
-
</div>
|
67 |
-
<div class="param-item">
|
68 |
-
<div class="form-row row">
|
69 |
-
<div class="label"><span class="magee-form-label-title"> Column Content</span>
|
70 |
-
<span class="magee-form-desc">Insert the column's content</span>
|
71 |
-
</div>
|
72 |
-
<div class="field">
|
73 |
-
<textarea rows="10" cols="30" name="magee_content" id="magee_content" class="magee-form-textarea magee-cinput">Column Content</textarea>
|
74 |
-
</div>
|
75 |
-
</div>
|
76 |
-
</div>
|
77 |
-
<div class="param-item">
|
78 |
-
<div class="form-row row">
|
79 |
-
<div class="label"><span class="magee-form-label-title">CSS Class</span>
|
80 |
-
<span class="magee-form-desc">Add a class to the wrapping HTML element.</span>
|
81 |
-
</div>
|
82 |
-
<div class="field">
|
83 |
-
<input type="text" class="magee-form-text magee-cinput" name="magee_class" id="magee_class" value="">
|
84 |
-
</div>
|
85 |
-
</div>
|
86 |
-
</div>
|
87 |
-
<div class="param-item">
|
88 |
-
<div class="form-row row">
|
89 |
-
<div class="label"><span class="magee-form-label-title">CSS ID</span>
|
90 |
-
<span class="magee-form-desc">Add an ID to the wrapping HTML element.</span>
|
91 |
-
</div>
|
92 |
-
<div class="field">
|
93 |
-
<input type="text" class="magee-form-text magee-cinput" name="magee_id" id="magee_id" value="">
|
94 |
-
</div>
|
95 |
-
</div>
|
96 |
-
</div>
|
97 |
-
</div>
|
98 |
</div>
|
38 |
</div>
|
39 |
</form>
|
40 |
<div class="clear"></div>
|
41 |
+
<div class="magee-shortcodes-settings-inner-clone hidden"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
</div>
|
readme.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
=== Magee Shortcodes ===
|
2 |
Contributors: magictheme
|
3 |
Donate link: http://www.mageewp.com/
|
4 |
-
Tags: shortcodes, shortcode, accordion, alert, button, column, custom box, countdowns, counter, divider, dropcap, feature box, flip box, highlight, list, modal, popover, tooltip, person, promo box, scocial, tab, testimonial, progress, piechart, timeline, panel, section, slider
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.5
|
7 |
Stable tag: 4.5
|
@@ -37,7 +37,7 @@ Magee Shortcodes is WordPress plugin that provides a pack of shortcodes. It is b
|
|
37 |
|
38 |
### Shortcode List
|
39 |
|
40 |
-
Accordion, Alert, Audio, Button, Column, Custom Box, Countdowns, Counter, Divider, Dropcap, Document, Dummy Text, Dummy Image, Dailymotion, Expand, Feature Box, Flip Box, Highlight, Heading, Icon, Image Frame, Image Compare, List, Label, Modal, Menu, Popover, Person, Promo Box, Piechart, Panel, Progress, Pullquote, QR Code, Quote, Slider, RSS Feed, Social, Section, Scheduled, Tooltip, Tab, Testimonial, Timeline, Targeted, Video, Vimeo, Youtube
|
41 |
|
42 |
|
43 |
== Installation ==
|
@@ -68,6 +68,12 @@ Activate plugin at "Plugins" administration page.
|
|
68 |
|
69 |
== Changelog ==
|
70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
= 1.5.4 - 31/05/2016 =
|
72 |
* Compatible with magee theme
|
73 |
|
1 |
=== Magee Shortcodes ===
|
2 |
Contributors: magictheme
|
3 |
Donate link: http://www.mageewp.com/
|
4 |
+
Tags: shortcodes, shortcode, accordion, alert, button, column, custom box, countdowns, counter, divider, dropcap, feature box, flip box, highlight, list, modal, popover, tooltip, person, promo box, scocial, tab, testimonial, progress, piechart, timeline, panel, section, slider, chart
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.5
|
7 |
Stable tag: 4.5
|
37 |
|
38 |
### Shortcode List
|
39 |
|
40 |
+
Accordion, Alert, Audio, Button, Column, Custom Box, Countdowns, Counter, Divider, Dropcap, Document, Dummy Text, Dummy Image, Dailymotion, Expand, Feature Box, Flip Box, Highlight, Heading, Icon, Image Frame, Image Compare, List, Label, Modal, Menu, Popover, Person, Promo Box, Piechart, Panel, Progress, Pullquote, QR Code, Quote, Slider, RSS Feed, Social, Section, Scheduled, Tooltip, Tab, Testimonial, Timeline, Targeted, Video, Vimeo, Youtube, Chart Bar, Chart Doughnut, Chart Line, Chart Pie
|
41 |
|
42 |
|
43 |
== Installation ==
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
= 1.5.5 - 03/06/2016 =
|
72 |
+
* Added: New shortcode -- Chart Bar
|
73 |
+
* Added: New shortcode -- Chart Doughnut
|
74 |
+
* Added: New shortcode -- Chart Line
|
75 |
+
* Added: New shortcode -- Chart Pie
|
76 |
+
|
77 |
= 1.5.4 - 31/05/2016 =
|
78 |
* Compatible with magee theme
|
79 |
|
shortcodes/class-accordion.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Accordion {
|
3 |
|
4 |
public static $args;
|
@@ -128,4 +129,5 @@ $this->num++;
|
|
128 |
|
129 |
}
|
130 |
|
131 |
-
new Magee_Accordion();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Accordion') ):
|
3 |
class Magee_Accordion {
|
4 |
|
5 |
public static $args;
|
129 |
|
130 |
}
|
131 |
|
132 |
+
new Magee_Accordion();
|
133 |
+
endif;
|
shortcodes/class-alert.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Alert {
|
3 |
|
4 |
public static $args;
|
@@ -91,4 +92,5 @@ class Magee_Alert {
|
|
91 |
|
92 |
}
|
93 |
|
94 |
-
new Magee_Alert();
|
|
1 |
<?php
|
2 |
+
if( !class_exists(' Magee_Alert') ):
|
3 |
class Magee_Alert {
|
4 |
|
5 |
public static $args;
|
92 |
|
93 |
}
|
94 |
|
95 |
+
new Magee_Alert();
|
96 |
+
endif;
|
shortcodes/class-audio.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Audio {
|
3 |
|
4 |
|
@@ -73,4 +74,5 @@ class Magee_Audio {
|
|
73 |
return $html;
|
74 |
}
|
75 |
}
|
76 |
-
new Magee_Audio();
|
|
1 |
<?php
|
2 |
+
if( !class_exists(' Magee_Audio') ):
|
3 |
class Magee_Audio {
|
4 |
|
5 |
|
74 |
return $html;
|
75 |
}
|
76 |
}
|
77 |
+
new Magee_Audio();
|
78 |
+
endif;
|
shortcodes/class-button.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Button {
|
3 |
|
4 |
public static $args;
|
@@ -190,4 +191,5 @@ class Magee_Button {
|
|
190 |
|
191 |
}
|
192 |
|
193 |
-
new Magee_Button();
|
|
1 |
<?php
|
2 |
+
if( !class_exists(' Magee_Button') ):
|
3 |
class Magee_Button {
|
4 |
|
5 |
public static $args;
|
191 |
|
192 |
}
|
193 |
|
194 |
+
new Magee_Button();
|
195 |
+
endif;
|
shortcodes/class-chart-bar.php
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if( !class_exists('Magee_Chart_Bar') ):
|
3 |
+
class Magee_Chart_Bar {
|
4 |
+
|
5 |
+
public static $args;
|
6 |
+
private $id;
|
7 |
+
/**
|
8 |
+
* Initiate the shortcode
|
9 |
+
*/
|
10 |
+
public function __construct() {
|
11 |
+
|
12 |
+
add_shortcode( 'ms_chart_bar', array( $this, 'render_parent' ) );
|
13 |
+
add_shortcode( 'ms_bar', array( $this, 'render_child' ) );
|
14 |
+
}
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Render the shortcode
|
18 |
+
* @param array $args Shortcode paramters
|
19 |
+
* @param string $content Content between shortcode
|
20 |
+
* @return string HTML output
|
21 |
+
*/
|
22 |
+
function render_parent( $args, $content = '') {
|
23 |
+
|
24 |
+
$defaults = Magee_Core::set_shortcode_defaults(
|
25 |
+
array(
|
26 |
+
'width' => '',
|
27 |
+
'height' => '',
|
28 |
+
'class' => '',
|
29 |
+
'id' => '',
|
30 |
+
'label' => '',
|
31 |
+
), $args
|
32 |
+
);
|
33 |
+
|
34 |
+
extract( $defaults );
|
35 |
+
self::$args = $defaults;
|
36 |
+
$uniqid = uniqid('bar-');
|
37 |
+
$this->id = $id.$uniqid;
|
38 |
+
|
39 |
+
$html = '<canvas id="'.esc_attr($this->id).'" width="'.esc_attr($width).'" height="'.esc_attr($height).'" class="'.esc_attr($class).'"></canvas>
|
40 |
+
<script>
|
41 |
+
if(document.getElementById(\'magee-sc-form-preview\')){
|
42 |
+
var buyers = document.getElementById(\'magee-sc-form-preview\').contentWindow.document.getElementById("'.$this->id.'").getContext(\'2d\');
|
43 |
+
}else{
|
44 |
+
var buyers = document.getElementById("'.$this->id.'").getContext(\'2d\');
|
45 |
+
}
|
46 |
+
var barData = {
|
47 |
+
labels : ['.do_shortcode($label).'],
|
48 |
+
datasets : ['.do_shortcode(Magee_Core::fix_shortcodes($content)).'
|
49 |
+
]
|
50 |
+
}
|
51 |
+
new Chart(buyers).Bar(barData);
|
52 |
+
|
53 |
+
</script>';
|
54 |
+
|
55 |
+
return $html;
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Render the child shortcode
|
60 |
+
* @param array $args Shortcode paramters
|
61 |
+
* @param string $content Content between shortcode
|
62 |
+
* @return string HTML output
|
63 |
+
*/
|
64 |
+
function render_child( $args, $content = '') {
|
65 |
+
|
66 |
+
$defaults = Magee_Core::set_shortcode_defaults(
|
67 |
+
array(
|
68 |
+
'data' =>'',
|
69 |
+
'fillcolor' =>'',
|
70 |
+
'fillopacity' =>'',
|
71 |
+
'strokecolor' =>'',
|
72 |
+
'strokeopacity' => '',
|
73 |
+
), $args
|
74 |
+
);
|
75 |
+
|
76 |
+
extract( $defaults );
|
77 |
+
self::$args = $defaults;
|
78 |
+
|
79 |
+
$fillcolor = str_replace('#','',$fillcolor);
|
80 |
+
if(strlen($fillcolor) == 6 ):
|
81 |
+
$r1 = hexdec(substr($fillcolor,0,2)) ;
|
82 |
+
$g1 = hexdec(substr($fillcolor,2,2)) ;
|
83 |
+
$b1 = hexdec(substr($fillcolor,4,2)) ;
|
84 |
+
endif;
|
85 |
+
$strokecolor = str_replace('#','',$strokecolor);
|
86 |
+
if(strlen($strokecolor) == 6 ):
|
87 |
+
$r2 = hexdec(substr($strokecolor,0,2)) ;
|
88 |
+
$g2 = hexdec(substr($strokecolor,2,2)) ;
|
89 |
+
$b2 = hexdec(substr($strokecolor,4,2)) ;
|
90 |
+
endif;
|
91 |
+
|
92 |
+
$html = '{
|
93 |
+
fillColor : "rgba('.$r1.','.$g1.','.$b1.','.esc_attr($fillopacity).')",
|
94 |
+
strokeColor : "rgba('.$r2.','.$g2.','.$b2.','.esc_attr($strokeopacity).')",
|
95 |
+
data : ['.$data.'],
|
96 |
+
},';
|
97 |
+
return $html;
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
new Magee_Chart_Bar();
|
102 |
+
endif;
|
shortcodes/class-chart-doughnut.php
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if( !class_exists('Magee_Chart_Doughnut') ):
|
3 |
+
class Magee_Chart_Doughnut {
|
4 |
+
|
5 |
+
public static $args;
|
6 |
+
private $id;
|
7 |
+
/**
|
8 |
+
* Initiate the shortcode
|
9 |
+
*/
|
10 |
+
public function __construct() {
|
11 |
+
|
12 |
+
add_shortcode( 'ms_chart_doughnut', array( $this, 'render_parent' ) );
|
13 |
+
add_shortcode( 'ms_doughnut', array( $this, 'render_child' ) );
|
14 |
+
}
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Render the shortcode
|
18 |
+
* @param array $args Shortcode paramters
|
19 |
+
* @param string $content Content between shortcode
|
20 |
+
* @return string HTML output
|
21 |
+
*/
|
22 |
+
function render_parent( $args, $content = '') {
|
23 |
+
|
24 |
+
$defaults = Magee_Core::set_shortcode_defaults(
|
25 |
+
array(
|
26 |
+
'width' => '',
|
27 |
+
'height' => '',
|
28 |
+
'class' => '',
|
29 |
+
'id' => '',
|
30 |
+
), $args
|
31 |
+
);
|
32 |
+
|
33 |
+
extract( $defaults );
|
34 |
+
self::$args = $defaults;
|
35 |
+
$uniqid = uniqid('doughnut-');
|
36 |
+
$this->id = $id.$uniqid;
|
37 |
+
|
38 |
+
$html = '<canvas id="'.esc_attr($this->id).'" width="'.esc_attr($width).'" height="'.esc_attr($height).'" class="'.esc_attr($class).'"></canvas>
|
39 |
+
<script>
|
40 |
+
if(document.getElementById(\'magee-sc-form-preview\')){
|
41 |
+
var buyers = document.getElementById(\'magee-sc-form-preview\').contentWindow.document.getElementById("'.$this->id.'").getContext(\'2d\');
|
42 |
+
}else{
|
43 |
+
var buyers = document.getElementById("'.$this->id.'").getContext(\'2d\');
|
44 |
+
}
|
45 |
+
var doughnutData = [
|
46 |
+
'.do_shortcode(Magee_Core::fix_shortcodes($content)).'
|
47 |
+
];
|
48 |
+
var doughnutOptions = {
|
49 |
+
segmentShowStroke : false,
|
50 |
+
animateScale : true
|
51 |
+
}
|
52 |
+
new Chart(buyers).Doughnut(doughnutData,doughnutOptions);
|
53 |
+
</script>';
|
54 |
+
|
55 |
+
return $html;
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Render the child shortcode
|
60 |
+
* @param array $args Shortcode paramters
|
61 |
+
* @param string $content Content between shortcode
|
62 |
+
* @return string HTML output
|
63 |
+
*/
|
64 |
+
function render_child( $args, $content = '') {
|
65 |
+
|
66 |
+
$defaults = Magee_Core::set_shortcode_defaults(
|
67 |
+
array(
|
68 |
+
'value' =>'',
|
69 |
+
'color' =>'',
|
70 |
+
), $args
|
71 |
+
);
|
72 |
+
|
73 |
+
extract( $defaults );
|
74 |
+
self::$args = $defaults;
|
75 |
+
|
76 |
+
$html = '{
|
77 |
+
value: '.esc_attr($value).',
|
78 |
+
color : "'.esc_attr($color).'",
|
79 |
+
},';
|
80 |
+
return $html;
|
81 |
+
}
|
82 |
+
}
|
83 |
+
|
84 |
+
new Magee_Chart_Doughnut();
|
85 |
+
endif;
|
shortcodes/class-chart-line.php
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if( !class_exists('Magee_Chart_Line') ):
|
3 |
+
class Magee_Chart_Line {
|
4 |
+
|
5 |
+
public static $args;
|
6 |
+
private $id;
|
7 |
+
/**
|
8 |
+
* Initiate the shortcode
|
9 |
+
*/
|
10 |
+
public function __construct() {
|
11 |
+
|
12 |
+
add_shortcode( 'ms_chart_line', array( $this, 'render_parent' ) );
|
13 |
+
add_shortcode( 'ms_line', array( $this, 'render_child' ) );
|
14 |
+
}
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Render the shortcode
|
18 |
+
* @param array $args Shortcode paramters
|
19 |
+
* @param string $content Content between shortcode
|
20 |
+
* @return string HTML output
|
21 |
+
*/
|
22 |
+
function render_parent( $args, $content = '') {
|
23 |
+
|
24 |
+
$defaults = Magee_Core::set_shortcode_defaults(
|
25 |
+
array(
|
26 |
+
'width' => '',
|
27 |
+
'height' => '',
|
28 |
+
'class' => '',
|
29 |
+
'id' => '',
|
30 |
+
'label' => '',
|
31 |
+
), $args
|
32 |
+
);
|
33 |
+
|
34 |
+
extract( $defaults );
|
35 |
+
self::$args = $defaults;
|
36 |
+
$uniqid = uniqid('line-');
|
37 |
+
$this->id = $id.$uniqid;
|
38 |
+
|
39 |
+
$html = '<canvas id="'.esc_attr($this->id).'" width="'.esc_attr($width).'" height="'.esc_attr($height).'" class="'.esc_attr($class).'"></canvas>
|
40 |
+
<script>
|
41 |
+
if(document.getElementById(\'magee-sc-form-preview\')){
|
42 |
+
var buyers = document.getElementById(\'magee-sc-form-preview\').contentWindow.document.getElementById("'.$this->id.'").getContext(\'2d\');
|
43 |
+
}else{
|
44 |
+
var buyers = document.getElementById("'.$this->id.'").getContext(\'2d\');
|
45 |
+
}
|
46 |
+
var buyerData = {
|
47 |
+
labels : ['.do_shortcode($label).'],
|
48 |
+
datasets : ['.do_shortcode(Magee_Core::fix_shortcodes($content)).'
|
49 |
+
]
|
50 |
+
}
|
51 |
+
new Chart(buyers).Line(buyerData);
|
52 |
+
</script>';
|
53 |
+
|
54 |
+
return $html;
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* Render the child shortcode
|
59 |
+
* @param array $args Shortcode paramters
|
60 |
+
* @param string $content Content between shortcode
|
61 |
+
* @return string HTML output
|
62 |
+
*/
|
63 |
+
function render_child( $args, $content = '') {
|
64 |
+
|
65 |
+
$defaults = Magee_Core::set_shortcode_defaults(
|
66 |
+
array(
|
67 |
+
'data' =>'',
|
68 |
+
'fillcolor' =>'',
|
69 |
+
'fillopacity' =>'',
|
70 |
+
'strokecolor' =>'',
|
71 |
+
'pointcolor' =>'',
|
72 |
+
'pointstrokecolor' =>'',
|
73 |
+
), $args
|
74 |
+
);
|
75 |
+
|
76 |
+
extract( $defaults );
|
77 |
+
self::$args = $defaults;
|
78 |
+
|
79 |
+
$fillcolor = str_replace('#','',$fillcolor);
|
80 |
+
if(strlen($fillcolor) == 6 ):
|
81 |
+
$r = hexdec(substr($fillcolor,0,2)) ;
|
82 |
+
$g = hexdec(substr($fillcolor,2,2)) ;
|
83 |
+
$b = hexdec(substr($fillcolor,4,2)) ;
|
84 |
+
endif;
|
85 |
+
|
86 |
+
$html = '{
|
87 |
+
fillColor : "rgba('.$r.','.$g.','.$b.','.esc_attr($fillopacity).')",
|
88 |
+
strokeColor : "'.$strokecolor.'",
|
89 |
+
pointColor : "'.$pointcolor.'",
|
90 |
+
pointStrokeColor : "'.$pointstrokecolor.'",
|
91 |
+
data : ['.$data.'],
|
92 |
+
},';
|
93 |
+
return $html;
|
94 |
+
}
|
95 |
+
}
|
96 |
+
|
97 |
+
new Magee_Chart_Line();
|
98 |
+
endif;
|
shortcodes/class-chart-pie.php
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if( !class_exists('Magee_Chart_Pie') ):
|
3 |
+
class Magee_Chart_Pie {
|
4 |
+
|
5 |
+
public static $args;
|
6 |
+
private $id;
|
7 |
+
/**
|
8 |
+
* Initiate the shortcode
|
9 |
+
*/
|
10 |
+
public function __construct() {
|
11 |
+
|
12 |
+
add_shortcode( 'ms_chart_pie', array( $this, 'render_parent' ) );
|
13 |
+
add_shortcode( 'ms_pie', array( $this, 'render_child' ) );
|
14 |
+
}
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Render the shortcode
|
18 |
+
* @param array $args Shortcode paramters
|
19 |
+
* @param string $content Content between shortcode
|
20 |
+
* @return string HTML output
|
21 |
+
*/
|
22 |
+
function render_parent( $args, $content = '') {
|
23 |
+
|
24 |
+
$defaults = Magee_Core::set_shortcode_defaults(
|
25 |
+
array(
|
26 |
+
'width' => '',
|
27 |
+
'height' => '',
|
28 |
+
'class' => '',
|
29 |
+
'id' => '',
|
30 |
+
), $args
|
31 |
+
);
|
32 |
+
|
33 |
+
extract( $defaults );
|
34 |
+
self::$args = $defaults;
|
35 |
+
$uniqid = uniqid('pie-');
|
36 |
+
$this->id = $id.$uniqid;
|
37 |
+
|
38 |
+
$html = '<canvas id="'.esc_attr($this->id).'" width="'.esc_attr($width).'" height="'.esc_attr($height).'" class="'.esc_attr($class).'"></canvas>
|
39 |
+
<script>
|
40 |
+
if(document.getElementById(\'magee-sc-form-preview\')){
|
41 |
+
var buyers = document.getElementById(\'magee-sc-form-preview\').contentWindow.document.getElementById("'.$this->id.'").getContext(\'2d\');
|
42 |
+
}else{
|
43 |
+
var buyers = document.getElementById("'.$this->id.'").getContext(\'2d\');
|
44 |
+
}
|
45 |
+
var pieData = [
|
46 |
+
'.do_shortcode(Magee_Core::fix_shortcodes($content)).'
|
47 |
+
];
|
48 |
+
var pieOptions = {
|
49 |
+
segmentShowStroke : false,
|
50 |
+
animateScale : true
|
51 |
+
}
|
52 |
+
new Chart(buyers).Pie(pieData,pieOptions);
|
53 |
+
</script>';
|
54 |
+
|
55 |
+
return $html;
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Render the child shortcode
|
60 |
+
* @param array $args Shortcode paramters
|
61 |
+
* @param string $content Content between shortcode
|
62 |
+
* @return string HTML output
|
63 |
+
*/
|
64 |
+
function render_child( $args, $content = '') {
|
65 |
+
|
66 |
+
$defaults = Magee_Core::set_shortcode_defaults(
|
67 |
+
array(
|
68 |
+
'value' =>'',
|
69 |
+
'color' =>'',
|
70 |
+
), $args
|
71 |
+
);
|
72 |
+
|
73 |
+
extract( $defaults );
|
74 |
+
self::$args = $defaults;
|
75 |
+
|
76 |
+
$html = '{
|
77 |
+
value: '.esc_attr($value).',
|
78 |
+
color : "'.esc_attr($color).'",
|
79 |
+
},';
|
80 |
+
return $html;
|
81 |
+
}
|
82 |
+
}
|
83 |
+
|
84 |
+
new Magee_Chart_Pie();
|
85 |
+
endif;
|
shortcodes/class-column.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Column {
|
3 |
|
4 |
public static $args;
|
@@ -78,4 +79,5 @@ class Magee_Column {
|
|
78 |
|
79 |
}
|
80 |
|
81 |
-
new Magee_Column();
|
|
1 |
<?php
|
2 |
+
if( !class_exists(' Magee_Column') ):
|
3 |
class Magee_Column {
|
4 |
|
5 |
public static $args;
|
79 |
|
80 |
}
|
81 |
|
82 |
+
new Magee_Column();
|
83 |
+
endif;
|
shortcodes/class-countdowns.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
|
4 |
class Magee_Countdowns {
|
5 |
|
6 |
public static $args;
|
@@ -136,4 +136,5 @@ class Magee_Countdowns {
|
|
136 |
|
137 |
}
|
138 |
|
139 |
-
new Magee_Countdowns();
|
|
1 |
<?php
|
2 |
|
3 |
+
if( !class_exists(' Magee_Countdowns') ):
|
4 |
class Magee_Countdowns {
|
5 |
|
6 |
public static $args;
|
136 |
|
137 |
}
|
138 |
|
139 |
+
new Magee_Countdowns();
|
140 |
+
endif;
|
shortcodes/class-counter.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
|
4 |
class Magee_Counter {
|
5 |
|
6 |
public static $args;
|
@@ -82,4 +82,5 @@ class Magee_Counter {
|
|
82 |
|
83 |
}
|
84 |
|
85 |
-
new Magee_Counter();
|
|
1 |
<?php
|
2 |
|
3 |
+
if( !class_exists('Magee_Counter') ):
|
4 |
class Magee_Counter {
|
5 |
|
6 |
public static $args;
|
82 |
|
83 |
}
|
84 |
|
85 |
+
new Magee_Counter();
|
86 |
+
endif;
|
shortcodes/class-custom-box.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Custom_Box {
|
3 |
|
4 |
public static $args;
|
@@ -47,4 +48,5 @@ class Magee_Custom_Box {
|
|
47 |
|
48 |
}
|
49 |
|
50 |
-
new Magee_Custom_Box();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Custom_Box') ):
|
3 |
class Magee_Custom_Box {
|
4 |
|
5 |
public static $args;
|
48 |
|
49 |
}
|
50 |
|
51 |
+
new Magee_Custom_Box();
|
52 |
+
endif;
|
shortcodes/class-dailymotion.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Dailymotion {
|
3 |
|
4 |
|
@@ -100,4 +101,5 @@ class Magee_Dailymotion {
|
|
100 |
|
101 |
}
|
102 |
|
103 |
-
new Magee_Dailymotion();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Dailymotion') ):
|
3 |
class Magee_Dailymotion {
|
4 |
|
5 |
|
101 |
|
102 |
}
|
103 |
|
104 |
+
new Magee_Dailymotion();
|
105 |
+
endif;
|
shortcodes/class-divider.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Divider {
|
3 |
|
4 |
public static $args;
|
@@ -131,4 +132,5 @@ class Magee_Divider {
|
|
131 |
|
132 |
}
|
133 |
|
134 |
-
new Magee_Divider();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Divider') ):
|
3 |
class Magee_Divider {
|
4 |
|
5 |
public static $args;
|
132 |
|
133 |
}
|
134 |
|
135 |
+
new Magee_Divider();
|
136 |
+
endif;
|
shortcodes/class-document.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Document {
|
3 |
|
4 |
public static $args;
|
@@ -75,4 +76,5 @@ class Magee_Document {
|
|
75 |
}
|
76 |
}
|
77 |
|
78 |
-
new Magee_Document();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Document') ):
|
3 |
class Magee_Document {
|
4 |
|
5 |
public static $args;
|
76 |
}
|
77 |
}
|
78 |
|
79 |
+
new Magee_Document();
|
80 |
+
endif;
|
shortcodes/class-dropcap.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Dropcap {
|
3 |
|
4 |
public static $args;
|
@@ -78,4 +79,5 @@ class Magee_Dropcap {
|
|
78 |
|
79 |
}
|
80 |
|
81 |
-
new Magee_Dropcap();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Dropcap') ):
|
3 |
class Magee_Dropcap {
|
4 |
|
5 |
public static $args;
|
79 |
|
80 |
}
|
81 |
|
82 |
+
new Magee_Dropcap();
|
83 |
+
endif;
|
shortcodes/class-dummy-image.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Dummy_Image {
|
3 |
|
4 |
public static $args;
|
@@ -46,4 +47,5 @@ class Magee_Dummy_Image {
|
|
46 |
|
47 |
}
|
48 |
|
49 |
-
new Magee_Dummy_Image();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Dummy_Image') ):
|
3 |
class Magee_Dummy_Image {
|
4 |
|
5 |
public static $args;
|
47 |
|
48 |
}
|
49 |
|
50 |
+
new Magee_Dummy_Image();
|
51 |
+
endif;
|
shortcodes/class-dummy-text.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Dummy_Text {
|
3 |
|
4 |
public static $args;
|
@@ -38,4 +39,5 @@ class Magee_Dummy_Text {
|
|
38 |
|
39 |
}
|
40 |
|
41 |
-
new Magee_Dummy_Text();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Dummy_Text') ):
|
3 |
class Magee_Dummy_Text {
|
4 |
|
5 |
public static $args;
|
39 |
|
40 |
}
|
41 |
|
42 |
+
new Magee_Dummy_Text();
|
43 |
+
endif;
|
shortcodes/class-expand.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Expand {
|
3 |
|
4 |
public static $args;
|
@@ -94,4 +95,5 @@ class Magee_Expand {
|
|
94 |
|
95 |
}
|
96 |
}
|
97 |
-
new Magee_Expand();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Expand') ):
|
3 |
class Magee_Expand {
|
4 |
|
5 |
public static $args;
|
95 |
|
96 |
}
|
97 |
}
|
98 |
+
new Magee_Expand();
|
99 |
+
endif;
|
shortcodes/class-feature-box.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Featurebox {
|
3 |
|
4 |
public static $args;
|
@@ -143,4 +144,5 @@ class Magee_Featurebox {
|
|
143 |
|
144 |
}
|
145 |
|
146 |
-
new Magee_Featurebox();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Featurebox') ):
|
3 |
class Magee_Featurebox {
|
4 |
|
5 |
public static $args;
|
144 |
|
145 |
}
|
146 |
|
147 |
+
new Magee_Featurebox();
|
148 |
+
endif;
|
shortcodes/class-flip-box.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Flip_Box {
|
3 |
|
4 |
public static $args;
|
@@ -75,4 +76,5 @@ class Magee_Flip_Box {
|
|
75 |
|
76 |
}
|
77 |
|
78 |
-
new Magee_Flip_Box();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Flip_Box') ):
|
3 |
class Magee_Flip_Box {
|
4 |
|
5 |
public static $args;
|
76 |
|
77 |
}
|
78 |
|
79 |
+
new Magee_Flip_Box();
|
80 |
+
endif;
|
shortcodes/class-heading.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Title {
|
3 |
|
4 |
public static $args;
|
@@ -128,4 +129,5 @@ class Magee_Title {
|
|
128 |
|
129 |
}
|
130 |
|
131 |
-
new Magee_Title();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Title') ):
|
3 |
class Magee_Title {
|
4 |
|
5 |
public static $args;
|
129 |
|
130 |
}
|
131 |
|
132 |
+
new Magee_Title();
|
133 |
+
endif;
|
shortcodes/class-highlight.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Highlight {
|
3 |
|
4 |
public static $args;
|
@@ -66,4 +67,5 @@ class Magee_Highlight {
|
|
66 |
|
67 |
}
|
68 |
|
69 |
-
new Magee_Highlight();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Highlight') ):
|
3 |
class Magee_Highlight {
|
4 |
|
5 |
public static $args;
|
67 |
|
68 |
}
|
69 |
|
70 |
+
new Magee_Highlight();
|
71 |
+
endif;
|
shortcodes/class-icon.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Icon {
|
3 |
|
4 |
public static $args;
|
@@ -59,4 +60,5 @@ class Magee_Icon {
|
|
59 |
|
60 |
}
|
61 |
|
62 |
-
new Magee_Icon();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Icon') ):
|
3 |
class Magee_Icon {
|
4 |
|
5 |
public static $args;
|
60 |
|
61 |
}
|
62 |
|
63 |
+
new Magee_Icon();
|
64 |
+
endif;
|
shortcodes/class-image-compare.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Image_Compare {
|
3 |
|
4 |
public static $args;
|
@@ -49,4 +50,5 @@ class Magee_Image_Compare {
|
|
49 |
|
50 |
}
|
51 |
|
52 |
-
new Magee_Image_Compare();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Image_Compare') ):
|
3 |
class Magee_Image_Compare {
|
4 |
|
5 |
public static $args;
|
50 |
|
51 |
}
|
52 |
|
53 |
+
new Magee_Image_Compare();
|
54 |
+
endif;
|
shortcodes/class-image-frame.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Image_Frame {
|
3 |
|
4 |
public static $args;
|
@@ -95,11 +96,20 @@ class Magee_Image_Frame {
|
|
95 |
|
96 |
endif;
|
97 |
$html .= '</div></div>';
|
98 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
|
100 |
return $html;
|
101 |
}
|
102 |
|
103 |
}
|
104 |
|
105 |
-
new Magee_Image_Frame();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Image_Frame') ):
|
3 |
class Magee_Image_Frame {
|
4 |
|
5 |
public static $args;
|
96 |
|
97 |
endif;
|
98 |
$html .= '</div></div>';
|
99 |
+
$html .= '<script>
|
100 |
+
jQuery(function($) {
|
101 |
+
if(jQuery("#magee-sc-form-preview").length>0){
|
102 |
+
|
103 |
+
$("#magee-sc-form-preview").contents().find("a[rel^=\'prettyPhoto\']").prettyPhoto();
|
104 |
+
}
|
105 |
+
});
|
106 |
+
|
107 |
+
</script>';
|
108 |
|
109 |
return $html;
|
110 |
}
|
111 |
|
112 |
}
|
113 |
|
114 |
+
new Magee_Image_Frame();
|
115 |
+
endif;
|
shortcodes/class-label.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Label {
|
3 |
|
4 |
|
@@ -39,4 +40,5 @@ class Magee_Label {
|
|
39 |
}
|
40 |
}
|
41 |
|
42 |
-
new Magee_Label();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Label') ):
|
3 |
class Magee_Label {
|
4 |
|
5 |
|
40 |
}
|
41 |
}
|
42 |
|
43 |
+
new Magee_Label();
|
44 |
+
endif;
|
shortcodes/class-list.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_List {
|
3 |
|
4 |
public static $args;
|
@@ -97,4 +98,5 @@ class Magee_List {
|
|
97 |
}
|
98 |
}
|
99 |
|
100 |
-
new Magee_List();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_List') ):
|
3 |
class Magee_List {
|
4 |
|
5 |
public static $args;
|
98 |
}
|
99 |
}
|
100 |
|
101 |
+
new Magee_List();
|
102 |
+
endif;
|
shortcodes/class-menu.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Menu {
|
3 |
|
4 |
public static $args;
|
@@ -40,4 +41,5 @@ class Magee_Menu {
|
|
40 |
}
|
41 |
}
|
42 |
|
43 |
-
new Magee_Menu();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Menu') ):
|
3 |
class Magee_Menu {
|
4 |
|
5 |
public static $args;
|
41 |
}
|
42 |
}
|
43 |
|
44 |
+
new Magee_Menu();
|
45 |
+
endif;
|
shortcodes/class-modal.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Modal {
|
3 |
|
4 |
public static $args;
|
@@ -131,4 +132,5 @@ class Magee_Modal {
|
|
131 |
|
132 |
}
|
133 |
|
134 |
-
new Magee_Modal();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Modal') ):
|
3 |
class Magee_Modal {
|
4 |
|
5 |
public static $args;
|
132 |
|
133 |
}
|
134 |
|
135 |
+
new Magee_Modal();
|
136 |
+
endif;
|
shortcodes/class-panel.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Panel {
|
3 |
|
4 |
public static $args;
|
@@ -67,4 +68,5 @@ class Magee_Panel {
|
|
67 |
|
68 |
}
|
69 |
|
70 |
-
new Magee_Panel();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Panel') ):
|
3 |
class Magee_Panel {
|
4 |
|
5 |
public static $args;
|
68 |
|
69 |
}
|
70 |
|
71 |
+
new Magee_Panel();
|
72 |
+
endif;
|
shortcodes/class-person.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Person {
|
3 |
|
4 |
public static $args;
|
@@ -157,4 +158,5 @@ class Magee_Person {
|
|
157 |
|
158 |
}
|
159 |
|
160 |
-
new Magee_Person();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Person') ):
|
3 |
class Magee_Person {
|
4 |
|
5 |
public static $args;
|
158 |
|
159 |
}
|
160 |
|
161 |
+
new Magee_Person();
|
162 |
+
endif;
|
shortcodes/class-piechart.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Piechart {
|
3 |
|
4 |
public static $args;
|
@@ -72,4 +73,5 @@ class Magee_Piechart {
|
|
72 |
|
73 |
}
|
74 |
|
75 |
-
new Magee_Piechart();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Piechart') ):
|
3 |
class Magee_Piechart {
|
4 |
|
5 |
public static $args;
|
73 |
|
74 |
}
|
75 |
|
76 |
+
new Magee_Piechart();
|
77 |
+
endif;
|
shortcodes/class-popover.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Popover {
|
3 |
|
4 |
public static $args;
|
@@ -78,4 +79,5 @@ class Magee_Popover {
|
|
78 |
|
79 |
}
|
80 |
|
81 |
-
new Magee_Popover();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Popover') ):
|
3 |
class Magee_Popover {
|
4 |
|
5 |
public static $args;
|
79 |
|
80 |
}
|
81 |
|
82 |
+
new Magee_Popover();
|
83 |
+
endif;
|
shortcodes/class-progress.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
|
4 |
class Magee_Progress {
|
5 |
|
6 |
public static $args;
|
@@ -105,4 +105,5 @@ class Magee_Progress {
|
|
105 |
|
106 |
}
|
107 |
|
108 |
-
new Magee_Progress();
|
|
1 |
<?php
|
2 |
|
3 |
+
if( !class_exists('Magee_Progress') ):
|
4 |
class Magee_Progress {
|
5 |
|
6 |
public static $args;
|
105 |
|
106 |
}
|
107 |
|
108 |
+
new Magee_Progress();
|
109 |
+
endif;
|
shortcodes/class-promo-box.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Promo_Box {
|
3 |
|
4 |
public static $args;
|
@@ -98,4 +99,5 @@ class Magee_Promo_Box {
|
|
98 |
|
99 |
}
|
100 |
|
101 |
-
new Magee_Promo_Box();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Promo_Box') ):
|
3 |
class Magee_Promo_Box {
|
4 |
|
5 |
public static $args;
|
99 |
|
100 |
}
|
101 |
|
102 |
+
new Magee_Promo_Box();
|
103 |
+
endif;
|
shortcodes/class-pullquote.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Pullquote {
|
3 |
|
4 |
public static $args;
|
@@ -42,4 +43,5 @@ class Magee_Pullquote {
|
|
42 |
}
|
43 |
}
|
44 |
|
45 |
-
new Magee_Pullquote();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Pullquote') ):
|
3 |
class Magee_Pullquote {
|
4 |
|
5 |
public static $args;
|
43 |
}
|
44 |
}
|
45 |
|
46 |
+
new Magee_Pullquote();
|
47 |
+
endif;
|
shortcodes/class-qrcode.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
class Magee_Qrcode
|
4 |
{
|
5 |
public static $args;
|
@@ -60,4 +60,5 @@ class Magee_Qrcode
|
|
60 |
}
|
61 |
}
|
62 |
|
63 |
-
new Magee_Qrcode();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Qrcode') ):
|
3 |
class Magee_Qrcode
|
4 |
{
|
5 |
public static $args;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
+
new Magee_Qrcode();
|
64 |
+
endif;
|
shortcodes/class-quote.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Quote {
|
3 |
|
4 |
public static $args;
|
@@ -42,4 +43,5 @@ class Magee_Quote {
|
|
42 |
}
|
43 |
}
|
44 |
|
45 |
-
new Magee_Quote();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Quote') ):
|
3 |
class Magee_Quote {
|
4 |
|
5 |
public static $args;
|
43 |
}
|
44 |
}
|
45 |
|
46 |
+
new Magee_Quote();
|
47 |
+
endif;
|
shortcodes/class-row.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Row {
|
3 |
|
4 |
public static $args;
|
@@ -41,4 +42,5 @@ class Magee_Row {
|
|
41 |
|
42 |
}
|
43 |
|
44 |
-
new Magee_Row();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Row') ):
|
3 |
class Magee_Row {
|
4 |
|
5 |
public static $args;
|
42 |
|
43 |
}
|
44 |
|
45 |
+
new Magee_Row();
|
46 |
+
endif;
|
shortcodes/class-rss-feed.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_RSS_feed {
|
3 |
|
4 |
public static $args;
|
@@ -61,4 +62,5 @@ class Magee_RSS_feed {
|
|
61 |
|
62 |
}
|
63 |
|
64 |
-
new Magee_RSS_feed();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_RSS_feed') ):
|
3 |
class Magee_RSS_feed {
|
4 |
|
5 |
public static $args;
|
62 |
|
63 |
}
|
64 |
|
65 |
+
new Magee_RSS_feed();
|
66 |
+
endif;
|
shortcodes/class-scheduled-content.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Scheduled_content {
|
3 |
|
4 |
public static $args;
|
@@ -174,4 +175,5 @@ class Magee_Scheduled_content {
|
|
174 |
|
175 |
}
|
176 |
|
177 |
-
new Magee_Scheduled_content();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Scheduled_content') ):
|
3 |
class Magee_Scheduled_content {
|
4 |
|
5 |
public static $args;
|
175 |
|
176 |
}
|
177 |
|
178 |
+
new Magee_Scheduled_content();
|
179 |
+
endif;
|
shortcodes/class-section.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Section {
|
3 |
|
4 |
public static $args;
|
@@ -382,4 +383,5 @@ class Magee_Section {
|
|
382 |
|
383 |
}
|
384 |
|
385 |
-
new Magee_Section();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Section') ):
|
3 |
class Magee_Section {
|
4 |
|
5 |
public static $args;
|
383 |
|
384 |
}
|
385 |
|
386 |
+
new Magee_Section();
|
387 |
+
endif;
|
shortcodes/class-slider.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Slider {
|
3 |
|
4 |
public static $args;
|
@@ -76,4 +77,5 @@ class Magee_Slider {
|
|
76 |
|
77 |
}
|
78 |
|
79 |
-
new Magee_Slider();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Slider') ):
|
3 |
class Magee_Slider {
|
4 |
|
5 |
public static $args;
|
77 |
|
78 |
}
|
79 |
|
80 |
+
new Magee_Slider();
|
81 |
+
endif;
|
shortcodes/class-social.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Social {
|
3 |
|
4 |
public static $args;
|
@@ -105,4 +106,5 @@ class Magee_Social {
|
|
105 |
|
106 |
}
|
107 |
|
108 |
-
new Magee_Social();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Social') ):
|
3 |
class Magee_Social {
|
4 |
|
5 |
public static $args;
|
106 |
|
107 |
}
|
108 |
|
109 |
+
new Magee_Social();
|
110 |
+
endif;
|
shortcodes/class-tabs.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Tabs {
|
3 |
|
4 |
public static $args;
|
@@ -151,4 +152,5 @@ class Magee_Tabs {
|
|
151 |
}
|
152 |
}
|
153 |
|
154 |
-
new Magee_Tabs();
|
|
1 |
<?php
|
2 |
+
if( !class_exists(' Magee_Tabs ') ):
|
3 |
class Magee_Tabs {
|
4 |
|
5 |
public static $args;
|
152 |
}
|
153 |
}
|
154 |
|
155 |
+
new Magee_Tabs();
|
156 |
+
endif;
|
shortcodes/class-targeted-content.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Targeted_content {
|
3 |
|
4 |
public static $args;
|
@@ -57,4 +58,5 @@ class Magee_Targeted_content {
|
|
57 |
|
58 |
}
|
59 |
|
60 |
-
new Magee_Targeted_content();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Targeted_content') ):
|
3 |
class Magee_Targeted_content {
|
4 |
|
5 |
public static $args;
|
58 |
|
59 |
}
|
60 |
|
61 |
+
new Magee_Targeted_content();
|
62 |
+
endif;
|
shortcodes/class-testimonial.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Testimonial {
|
3 |
|
4 |
public static $args;
|
@@ -57,4 +58,5 @@ class Magee_Testimonial {
|
|
57 |
|
58 |
}
|
59 |
|
60 |
-
new Magee_Testimonial();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Testimonial') ):
|
3 |
class Magee_Testimonial {
|
4 |
|
5 |
public static $args;
|
58 |
|
59 |
}
|
60 |
|
61 |
+
new Magee_Testimonial();
|
62 |
+
endif;
|
shortcodes/class-timeline.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
|
4 |
class Magee_Timeline {
|
5 |
|
@@ -89,4 +89,5 @@ class Magee_Timeline {
|
|
89 |
|
90 |
}
|
91 |
|
92 |
-
new Magee_Timeline();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Timeline') ):
|
3 |
|
4 |
class Magee_Timeline {
|
5 |
|
89 |
|
90 |
}
|
91 |
|
92 |
+
new Magee_Timeline();
|
93 |
+
endif;
|
shortcodes/class-tooltip.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Tooltip {
|
3 |
|
4 |
public static $args;
|
@@ -75,4 +76,5 @@ class Magee_Tooltip {
|
|
75 |
|
76 |
}
|
77 |
|
78 |
-
new Magee_Tooltip();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Tooltip') ):
|
3 |
class Magee_Tooltip {
|
4 |
|
5 |
public static $args;
|
76 |
|
77 |
}
|
78 |
|
79 |
+
new Magee_Tooltip();
|
80 |
+
endif;
|
shortcodes/class-video.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Video {
|
3 |
|
4 |
|
@@ -83,4 +84,5 @@ class Magee_Video {
|
|
83 |
|
84 |
}
|
85 |
|
86 |
-
new Magee_Video();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Video') ):
|
3 |
class Magee_Video {
|
4 |
|
5 |
|
84 |
|
85 |
}
|
86 |
|
87 |
+
new Magee_Video();
|
88 |
+
endif;
|
shortcodes/class-vimeo.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Vimeo {
|
3 |
|
4 |
|
@@ -168,4 +169,5 @@ window.$f=e}();
|
|
168 |
|
169 |
}
|
170 |
|
171 |
-
new Magee_Vimeo();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Vimeo') ):
|
3 |
class Magee_Vimeo {
|
4 |
|
5 |
|
169 |
|
170 |
}
|
171 |
|
172 |
+
new Magee_Vimeo();
|
173 |
+
endif;
|
shortcodes/class-widget-area.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Widget_Area {
|
3 |
|
4 |
|
@@ -55,4 +56,5 @@ class Magee_Widget_Area {
|
|
55 |
|
56 |
}
|
57 |
|
58 |
-
new Magee_Widget_Area();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Widget_Area') ):
|
3 |
class Magee_Widget_Area {
|
4 |
|
5 |
|
56 |
|
57 |
}
|
58 |
|
59 |
+
new Magee_Widget_Area();
|
60 |
+
endif;
|
shortcodes/class-youtube.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
class Magee_Youtube {
|
3 |
|
4 |
|
@@ -188,4 +189,5 @@ class Magee_Youtube {
|
|
188 |
|
189 |
}
|
190 |
|
191 |
-
new Magee_Youtube();
|
|
1 |
<?php
|
2 |
+
if( !class_exists('Magee_Youtube') ):
|
3 |
class Magee_Youtube {
|
4 |
|
5 |
|
189 |
|
190 |
}
|
191 |
|
192 |
+
new Magee_Youtube();
|
193 |
+
endif;
|