Version Description
Upgrade normally via your Wordpress admin -> Plugins panel.
Download this release
Release Info
Developer | gn_themes |
Plugin | Shortcodes Ultimate |
Version | 2.4.0 |
Comparing to | |
See all releases |
Code changes from version 2.3.0 to 2.4.0
- css/admin.css +2 -1
- css/jcarousel.css +50 -0
- css/nivo-slider.css +0 -89
- css/nivoslider.css +81 -0
- css/style.css +4 -62
- images/demo/jcarousel.png +0 -0
- images/jcarousel/arrows.png +0 -0
- js/init.js +20 -1
- js/jcarousel.js +16 -0
- js/{jquery.nivo.slider.pack.js → nivoslider.js} +0 -0
- languages/shortcodes-ultimate-ru_RU.mo +0 -0
- languages/shortcodes-ultimate-ru_RU.po +68 -36
- lib/admin.php +16 -13
- lib/available.php +55 -2
- lib/shortcodes.php +103 -2
- readme.txt +7 -7
- shortcodes-ultimate.php +14 -32
css/admin.css
CHANGED
@@ -144,13 +144,14 @@
|
|
144 |
display: none;
|
145 |
}
|
146 |
|
|
|
147 |
.su-table-shortcodes small {
|
148 |
color: #aaa;
|
149 |
}
|
150 |
|
151 |
.su-table-demos img {
|
152 |
border: 1px solid #aaa;
|
153 |
-
margin
|
154 |
}
|
155 |
|
156 |
.su-table-shortcodes td,
|
144 |
display: none;
|
145 |
}
|
146 |
|
147 |
+
.su-table-demos small,
|
148 |
.su-table-shortcodes small {
|
149 |
color: #aaa;
|
150 |
}
|
151 |
|
152 |
.su-table-demos img {
|
153 |
border: 1px solid #aaa;
|
154 |
+
margin: 10px 0;
|
155 |
}
|
156 |
|
157 |
.su-table-shortcodes td,
|
css/jcarousel.css
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.su-carousel {
|
2 |
+
position: relative;
|
3 |
+
margin: 0 0 1.5em 0;
|
4 |
+
padding: 15px 40px;
|
5 |
+
background: #f0f0f0;
|
6 |
+
border-radius: 10px;
|
7 |
+
-moz-border-radius: 10px;
|
8 |
+
-webkit-border-radius: 10px;
|
9 |
+
}
|
10 |
+
.su-carousel .jcarousel-container {
|
11 |
+
position: relative;
|
12 |
+
}
|
13 |
+
.su-carousel .jcarousel-clip {
|
14 |
+
position: relative;
|
15 |
+
overflow: hidden;
|
16 |
+
}
|
17 |
+
.su-carousel li {
|
18 |
+
float: left;
|
19 |
+
display: block;
|
20 |
+
margin-right: 10px;
|
21 |
+
overflow: hidden;
|
22 |
+
list-style-type: none;
|
23 |
+
}
|
24 |
+
|
25 |
+
.su-carousel .jcarousel-prev {
|
26 |
+
position: absolute;
|
27 |
+
left: -32px;
|
28 |
+
top: 0;
|
29 |
+
width: 25px;
|
30 |
+
height: 100%;
|
31 |
+
background: 0 50% url(../images/jcarousel/arrows.png) no-repeat;
|
32 |
+
cursor: pointer;
|
33 |
+
}
|
34 |
+
.su-carousel .jcarousel-next {
|
35 |
+
position: absolute;
|
36 |
+
right: -32px;
|
37 |
+
top: 0;
|
38 |
+
width: 25px;
|
39 |
+
height: 100%;
|
40 |
+
background: 100% 50% url(../images/jcarousel/arrows.png) no-repeat;
|
41 |
+
cursor: pointer;
|
42 |
+
}
|
43 |
+
.su-carousel .jcarousel-prev:hover,
|
44 |
+
.su-carousel .jcarousel-next:hover {
|
45 |
+
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
|
46 |
+
filter: alpha(opacity=70);
|
47 |
+
-moz-opacity: 0.7;
|
48 |
+
-khtml-opacity: 0.7;
|
49 |
+
opacity: 0.7;
|
50 |
+
}
|
css/nivo-slider.css
DELETED
@@ -1,89 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* jQuery Nivo Slider v2.5.1
|
3 |
-
* http://nivo.dev7studios.com
|
4 |
-
*
|
5 |
-
* Copyright 2011, Gilbert Pellegrom
|
6 |
-
* Free to use and abuse under the MIT license.
|
7 |
-
* http://www.opensource.org/licenses/mit-license.php
|
8 |
-
*
|
9 |
-
* March 2010
|
10 |
-
*/
|
11 |
-
|
12 |
-
|
13 |
-
/* The Nivo Slider styles */
|
14 |
-
.nivoSlider {
|
15 |
-
position:relative;
|
16 |
-
}
|
17 |
-
.nivoSlider img {
|
18 |
-
position:absolute;
|
19 |
-
top:0px;
|
20 |
-
left:0px;
|
21 |
-
}
|
22 |
-
/* If an image is wrapped in a link */
|
23 |
-
.nivoSlider a.nivo-imageLink {
|
24 |
-
position:absolute;
|
25 |
-
top:0px;
|
26 |
-
left:0px;
|
27 |
-
width:100%;
|
28 |
-
height:100%;
|
29 |
-
border:0;
|
30 |
-
padding:0;
|
31 |
-
margin:0;
|
32 |
-
z-index:6;
|
33 |
-
display:none;
|
34 |
-
}
|
35 |
-
/* The slices and boxes in the Slider */
|
36 |
-
.nivo-slice {
|
37 |
-
display:block;
|
38 |
-
position:absolute;
|
39 |
-
z-index:5;
|
40 |
-
height:100%;
|
41 |
-
}
|
42 |
-
.nivo-box {
|
43 |
-
display:block;
|
44 |
-
position:absolute;
|
45 |
-
z-index:5;
|
46 |
-
}
|
47 |
-
/* Caption styles */
|
48 |
-
.nivo-caption {
|
49 |
-
position:absolute;
|
50 |
-
left:0px;
|
51 |
-
bottom:0px;
|
52 |
-
background:#000;
|
53 |
-
color:#fff;
|
54 |
-
opacity:0.8; /* Overridden by captionOpacity setting */
|
55 |
-
width:100%;
|
56 |
-
z-index:8;
|
57 |
-
}
|
58 |
-
.nivo-caption p {
|
59 |
-
padding:5px;
|
60 |
-
margin:0;
|
61 |
-
}
|
62 |
-
.nivo-caption a {
|
63 |
-
display:inline !important;
|
64 |
-
}
|
65 |
-
.nivo-html-caption {
|
66 |
-
display:none;
|
67 |
-
}
|
68 |
-
/* Direction nav styles (e.g. Next & Prev) */
|
69 |
-
.nivo-directionNav a {
|
70 |
-
position:absolute;
|
71 |
-
top:45%;
|
72 |
-
z-index:9;
|
73 |
-
cursor:pointer;
|
74 |
-
}
|
75 |
-
.nivo-prevNav {
|
76 |
-
left:0px;
|
77 |
-
}
|
78 |
-
.nivo-nextNav {
|
79 |
-
right:0px;
|
80 |
-
}
|
81 |
-
/* Control nav styles (e.g. 1,2,3...) */
|
82 |
-
.nivo-controlNav a {
|
83 |
-
position:relative;
|
84 |
-
z-index:9;
|
85 |
-
cursor:pointer;
|
86 |
-
}
|
87 |
-
.nivo-controlNav a.active {
|
88 |
-
font-weight:bold;
|
89 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/nivoslider.css
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.su-nivo-slider {
|
2 |
+
position: relative;
|
3 |
+
margin: 0 0 1.5em 0;
|
4 |
+
background: #f8f8f8 url(../images/nivo-slider/loading.gif) no-repeat 50% 50%;
|
5 |
+
}
|
6 |
+
.su-nivo-slider img {
|
7 |
+
position: absolute;
|
8 |
+
top: 0;
|
9 |
+
left: 0;
|
10 |
+
display: none;
|
11 |
+
}
|
12 |
+
.su-nivo-slider a {
|
13 |
+
display: block;
|
14 |
+
}
|
15 |
+
|
16 |
+
/* If an image is wrapped in a link */
|
17 |
+
.su-nivo-slider a.nivo-imageLink {
|
18 |
+
position: absolute;
|
19 |
+
left: 0;
|
20 |
+
top: 0;
|
21 |
+
width: 100%;
|
22 |
+
height: 100%;
|
23 |
+
border: 0;
|
24 |
+
padding: 0;
|
25 |
+
margin: 0;
|
26 |
+
z-index: 6;
|
27 |
+
display: none;
|
28 |
+
}
|
29 |
+
/* The slices and boxes in the Slider */
|
30 |
+
.su-nivo-slider .nivo-slice {
|
31 |
+
display: block;
|
32 |
+
position: absolute;
|
33 |
+
z-index: 5;
|
34 |
+
height: 100%;
|
35 |
+
}
|
36 |
+
.su-nivo-slider .nivo-box {
|
37 |
+
display: block;
|
38 |
+
position: absolute;
|
39 |
+
z-index: 5;
|
40 |
+
}
|
41 |
+
|
42 |
+
.su-nivo-slider .nivo-directionNav a {
|
43 |
+
position: absolute;
|
44 |
+
top: 50%;
|
45 |
+
display: block;
|
46 |
+
width: 30px;
|
47 |
+
height: 30px;
|
48 |
+
margin-top: -15px;
|
49 |
+
background: url(../images/nivo-slider/arrows.png) no-repeat;
|
50 |
+
text-indent: -9999px;
|
51 |
+
cursor: pointer;
|
52 |
+
z-index: 7;
|
53 |
+
}
|
54 |
+
.su-nivo-slider a.nivo-nextNav {
|
55 |
+
background-position: -30px 0;
|
56 |
+
right: 15px;
|
57 |
+
}
|
58 |
+
.su-nivo-slider a.nivo-prevNav {
|
59 |
+
left: 15px;
|
60 |
+
}
|
61 |
+
|
62 |
+
.su-nivo-slider .nivo-controlNav {
|
63 |
+
position: absolute;
|
64 |
+
right: 10px;
|
65 |
+
bottom: 10px;
|
66 |
+
z-index: 7;
|
67 |
+
}
|
68 |
+
.su-nivo-slider .nivo-controlNav a {
|
69 |
+
display: block;
|
70 |
+
width: 22px;
|
71 |
+
height: 22px;
|
72 |
+
background: url(../images/nivo-slider/bullets.png) no-repeat;
|
73 |
+
text-indent: -9999px;
|
74 |
+
margin-left: 3px;
|
75 |
+
float: left;
|
76 |
+
cursor: pointer;
|
77 |
+
}
|
78 |
+
.su-nivo-slider .nivo-controlNav a:hover,
|
79 |
+
.su-nivo-slider .nivo-controlNav a.active {
|
80 |
+
background-position: 0 -22px;
|
81 |
+
}
|
css/style.css
CHANGED
@@ -2,6 +2,10 @@
|
|
2 |
* Shortcodes Ultimate stylesheet
|
3 |
*/
|
4 |
|
|
|
|
|
|
|
|
|
5 |
/* Spacer */
|
6 |
.su-spacer {
|
7 |
display: block;
|
@@ -461,68 +465,6 @@
|
|
461 |
background: #fff !important;
|
462 |
}
|
463 |
|
464 |
-
/* Nivo slider */
|
465 |
-
.su-nivo-slider {
|
466 |
-
position: relative;
|
467 |
-
margin: 0 0 1.5em 0;
|
468 |
-
background: #f8f8f8 url(../images/nivo-slider/loading.gif) no-repeat 50% 50%;
|
469 |
-
}
|
470 |
-
.su-nivo-slider img {
|
471 |
-
position: absolute;
|
472 |
-
top: 0;
|
473 |
-
left: 0;
|
474 |
-
display: none;
|
475 |
-
}
|
476 |
-
.su-nivo-slider a {
|
477 |
-
border: 0;
|
478 |
-
display: block;
|
479 |
-
}
|
480 |
-
|
481 |
-
.nivo-controlNav {
|
482 |
-
position: absolute;
|
483 |
-
right: 10px;
|
484 |
-
bottom: 10px;
|
485 |
-
}
|
486 |
-
.nivo-controlNav a {
|
487 |
-
display: block;
|
488 |
-
width: 22px;
|
489 |
-
height: 22px;
|
490 |
-
background: url(../images/nivo-slider/bullets.png) no-repeat;
|
491 |
-
text-indent: -9999px;
|
492 |
-
border: 0;
|
493 |
-
margin-right: 3px;
|
494 |
-
float: left;
|
495 |
-
}
|
496 |
-
.nivo-controlNav a:hover,
|
497 |
-
.nivo-controlNav a.active {
|
498 |
-
background-position: 0 -22px;
|
499 |
-
}
|
500 |
-
|
501 |
-
.nivo-directionNav a {
|
502 |
-
display: block;
|
503 |
-
width: 30px;
|
504 |
-
height: 30px;
|
505 |
-
background: url(../images/nivo-slider/arrows.png) no-repeat;
|
506 |
-
text-indent: -9999px;
|
507 |
-
border: 0;
|
508 |
-
}
|
509 |
-
a.nivo-nextNav {
|
510 |
-
background-position: -30px 0;
|
511 |
-
right: 15px;
|
512 |
-
}
|
513 |
-
a.nivo-prevNav {
|
514 |
-
left: 15px;
|
515 |
-
}
|
516 |
-
|
517 |
-
.nivo-caption {
|
518 |
-
text-shadow: none;
|
519 |
-
font-family: Helvetica, Arial, sans-serif;
|
520 |
-
}
|
521 |
-
.nivo-caption a {
|
522 |
-
color: #efe9d1;
|
523 |
-
text-decoration: underline;
|
524 |
-
}
|
525 |
-
|
526 |
/* Document */
|
527 |
.su-document {
|
528 |
border: none !important;
|
2 |
* Shortcodes Ultimate stylesheet
|
3 |
*/
|
4 |
|
5 |
+
.su-error {
|
6 |
+
color: #f03;
|
7 |
+
}
|
8 |
+
|
9 |
/* Spacer */
|
10 |
.su-spacer {
|
11 |
display: block;
|
465 |
background: #fff !important;
|
466 |
}
|
467 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
468 |
/* Document */
|
469 |
.su-document {
|
470 |
border: none !important;
|
images/demo/jcarousel.png
ADDED
Binary file
|
images/jcarousel/arrows.png
ADDED
Binary file
|
js/init.js
CHANGED
@@ -24,4 +24,23 @@ jQuery(document).ready(function($) {
|
|
24 |
// Tables
|
25 |
$('.su-table tr:even').addClass('su-even');
|
26 |
|
27 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
// Tables
|
25 |
$('.su-table tr:even').addClass('su-even');
|
26 |
|
27 |
+
});
|
28 |
+
|
29 |
+
function mycarousel_initCallback(carousel) {
|
30 |
+
|
31 |
+
// Disable autoscrolling if the user clicks the prev or next button.
|
32 |
+
carousel.buttonNext.bind('click', function() {
|
33 |
+
carousel.startAuto(0);
|
34 |
+
});
|
35 |
+
|
36 |
+
carousel.buttonPrev.bind('click', function() {
|
37 |
+
carousel.startAuto(0);
|
38 |
+
});
|
39 |
+
|
40 |
+
// Pause autoscrolling if the user moves with the cursor over the clip.
|
41 |
+
carousel.clip.hover(function() {
|
42 |
+
carousel.stopAuto();
|
43 |
+
}, function() {
|
44 |
+
carousel.startAuto();
|
45 |
+
});
|
46 |
+
}
|
js/jcarousel.js
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* jCarousel - Riding carousels with jQuery
|
3 |
+
* http://sorgalla.com/jcarousel/
|
4 |
+
*
|
5 |
+
* Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com)
|
6 |
+
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
7 |
+
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
8 |
+
*
|
9 |
+
* Built on top of the jQuery library
|
10 |
+
* http://jquery.com
|
11 |
+
*
|
12 |
+
* Inspired by the "Carousel Component" by Bill Scott
|
13 |
+
* http://billwscott.com/carousel/
|
14 |
+
*/
|
15 |
+
|
16 |
+
(function(g){var q={vertical:!1,rtl:!1,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,setupCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,animationStepCallback:null,buttonNextHTML:"<div></div>",buttonPrevHTML:"<div></div>",buttonNextEvent:"click",buttonPrevEvent:"click", buttonNextCallback:null,buttonPrevCallback:null,itemFallbackDimension:null},m=!1;g(window).bind("load.jcarousel",function(){m=!0});g.jcarousel=function(a,c){this.options=g.extend({},q,c||{});this.autoStopped=this.locked=!1;this.buttonPrevState=this.buttonNextState=this.buttonPrev=this.buttonNext=this.list=this.clip=this.container=null;if(!c||c.rtl===void 0)this.options.rtl=(g(a).attr("dir")||g("html").attr("dir")||"").toLowerCase()=="rtl";this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical? this.options.rtl?"right":"left":"top";for(var b="",d=a.className.split(" "),f=0;f<d.length;f++)if(d[f].indexOf("jcarousel-skin")!=-1){g(a).removeClass(d[f]);b=d[f];break}a.nodeName.toUpperCase()=="UL"||a.nodeName.toUpperCase()=="OL"?(this.list=g(a),this.clip=this.list.parents(".jcarousel-clip"),this.container=this.list.parents(".jcarousel-container")):(this.container=g(a),this.list=this.container.find("ul,ol").eq(0),this.clip=this.container.find(".jcarousel-clip"));if(this.clip.size()===0)this.clip= this.list.wrap("<div></div>").parent();if(this.container.size()===0)this.container=this.clip.wrap("<div></div>").parent();b!==""&&this.container.parent()[0].className.indexOf("jcarousel-skin")==-1&&this.container.wrap('<div class=" '+b+'"></div>');this.buttonPrev=g(".jcarousel-prev",this.container);if(this.buttonPrev.size()===0&&this.options.buttonPrevHTML!==null)this.buttonPrev=g(this.options.buttonPrevHTML).appendTo(this.container);this.buttonPrev.addClass(this.className("jcarousel-prev"));this.buttonNext= g(".jcarousel-next",this.container);if(this.buttonNext.size()===0&&this.options.buttonNextHTML!==null)this.buttonNext=g(this.options.buttonNextHTML).appendTo(this.container);this.buttonNext.addClass(this.className("jcarousel-next"));this.clip.addClass(this.className("jcarousel-clip")).css({position:"relative"});this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,margin:0,padding:0}).css(this.options.rtl?"right":"left",0);this.container.addClass(this.className("jcarousel-container")).css({position:"relative"}); !this.options.vertical&&this.options.rtl&&this.container.addClass("jcarousel-direction-rtl").attr("dir","rtl");var j=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible):null,b=this.list.children("li"),e=this;if(b.size()>0){var h=0,i=this.options.offset;b.each(function(){e.format(this,i++);h+=e.dimension(this,j)});this.list.css(this.wh,h+100+"px");if(!c||c.size===void 0)this.options.size=b.size()}this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display", "block");this.funcNext=function(){e.next()};this.funcPrev=function(){e.prev()};this.funcResize=function(){e.resizeTimer&&clearTimeout(e.resizeTimer);e.resizeTimer=setTimeout(function(){e.reload()},100)};this.options.initCallback!==null&&this.options.initCallback(this,"init");!m&&g.browser.safari?(this.buttons(!1,!1),g(window).bind("load.jcarousel",function(){e.setup()})):this.setup()};var f=g.jcarousel;f.fn=f.prototype={jcarousel:"0.2.8"};f.fn.extend=f.extend=g.extend;f.fn.extend({setup:function(){this.prevLast= this.prevFirst=this.last=this.first=null;this.animating=!1;this.tail=this.resizeTimer=this.timer=null;this.inTail=!1;if(!this.locked){this.list.css(this.lt,this.pos(this.options.offset)+"px");var a=this.pos(this.options.start,!0);this.prevFirst=this.prevLast=null;this.animate(a,!1);g(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize);this.options.setupCallback!==null&&this.options.setupCallback(this)}},reset:function(){this.list.empty();this.list.css(this.lt, "0px");this.list.css(this.wh,"10px");this.options.initCallback!==null&&this.options.initCallback(this,"reset");this.setup()},reload:function(){this.tail!==null&&this.inTail&&this.list.css(this.lt,f.intval(this.list.css(this.lt))+this.tail);this.tail=null;this.inTail=!1;this.options.reloadCallback!==null&&this.options.reloadCallback(this);if(this.options.visible!==null){var a=this,c=Math.ceil(this.clipping()/this.options.visible),b=0,d=0;this.list.children("li").each(function(f){b+=a.dimension(this, c);f+1<a.first&&(d=b)});this.list.css(this.wh,b+"px");this.list.css(this.lt,-d+"px")}this.scroll(this.first,!1)},lock:function(){this.locked=!0;this.buttons()},unlock:function(){this.locked=!1;this.buttons()},size:function(a){if(a!==void 0)this.options.size=a,this.locked||this.buttons();return this.options.size},has:function(a,c){if(c===void 0||!c)c=a;if(this.options.size!==null&&c>this.options.size)c=this.options.size;for(var b=a;b<=c;b++){var d=this.get(b);if(!d.length||d.hasClass("jcarousel-item-placeholder"))return!1}return!0}, get:function(a){return g(">.jcarousel-item-"+a,this.list)},add:function(a,c){var b=this.get(a),d=0,p=g(c);if(b.length===0)for(var j,e=f.intval(a),b=this.create(a);;){if(j=this.get(--e),e<=0||j.length){e<=0?this.list.prepend(b):j.after(b);break}}else d=this.dimension(b);p.get(0).nodeName.toUpperCase()=="LI"?(b.replaceWith(p),b=p):b.empty().append(c);this.format(b.removeClass(this.className("jcarousel-item-placeholder")),a);p=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible): null;d=this.dimension(b,p)-d;a>0&&a<this.first&&this.list.css(this.lt,f.intval(this.list.css(this.lt))-d+"px");this.list.css(this.wh,f.intval(this.list.css(this.wh))+d+"px");return b},remove:function(a){var c=this.get(a);if(c.length&&!(a>=this.first&&a<=this.last)){var b=this.dimension(c);a<this.first&&this.list.css(this.lt,f.intval(this.list.css(this.lt))+b+"px");c.remove();this.list.css(this.wh,f.intval(this.list.css(this.wh))-b+"px")}},next:function(){this.tail!==null&&!this.inTail?this.scrollTail(!1): this.scroll((this.options.wrap=="both"||this.options.wrap=="last")&&this.options.size!==null&&this.last==this.options.size?1:this.first+this.options.scroll)},prev:function(){this.tail!==null&&this.inTail?this.scrollTail(!0):this.scroll((this.options.wrap=="both"||this.options.wrap=="first")&&this.options.size!==null&&this.first==1?this.options.size:this.first-this.options.scroll)},scrollTail:function(a){if(!this.locked&&!this.animating&&this.tail){this.pauseAuto();var c=f.intval(this.list.css(this.lt)), c=!a?c-this.tail:c+this.tail;this.inTail=!a;this.prevFirst=this.first;this.prevLast=this.last;this.animate(c)}},scroll:function(a,c){!this.locked&&!this.animating&&(this.pauseAuto(),this.animate(this.pos(a),c))},pos:function(a,c){var b=f.intval(this.list.css(this.lt));if(this.locked||this.animating)return b;this.options.wrap!="circular"&&(a=a<1?1:this.options.size&&a>this.options.size?this.options.size:a);for(var d=this.first>a,g=this.options.wrap!="circular"&&this.first<=1?1:this.first,j=d?this.get(g): this.get(this.last),e=d?g:g-1,h=null,i=0,k=!1,l=0;d?--e>=a:++e<a;){h=this.get(e);k=!h.length;if(h.length===0&&(h=this.create(e).addClass(this.className("jcarousel-item-placeholder")),j[d?"before":"after"](h),this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(e<=0||e>this.options.size)))j=this.get(this.index(e)),j.length&&(h=this.add(e,j.clone(!0)));j=h;l=this.dimension(h);k&&(i+=l);if(this.first!==null&&(this.options.wrap=="circular"||e>=1&&(this.options.size===null||e<= this.options.size)))b=d?b+l:b-l}for(var g=this.clipping(),m=[],o=0,n=0,j=this.get(a-1),e=a;++o;){h=this.get(e);k=!h.length;if(h.length===0){h=this.create(e).addClass(this.className("jcarousel-item-placeholder"));if(j.length===0)this.list.prepend(h);else j[d?"before":"after"](h);if(this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(e<=0||e>this.options.size))j=this.get(this.index(e)),j.length&&(h=this.add(e,j.clone(!0)))}j=h;l=this.dimension(h);if(l===0)throw Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting..."); this.options.wrap!="circular"&&this.options.size!==null&&e>this.options.size?m.push(h):k&&(i+=l);n+=l;if(n>=g)break;e++}for(h=0;h<m.length;h++)m[h].remove();i>0&&(this.list.css(this.wh,this.dimension(this.list)+i+"px"),d&&(b-=i,this.list.css(this.lt,f.intval(this.list.css(this.lt))-i+"px")));i=a+o-1;if(this.options.wrap!="circular"&&this.options.size&&i>this.options.size)i=this.options.size;if(e>i){o=0;e=i;for(n=0;++o;){h=this.get(e--);if(!h.length)break;n+=this.dimension(h);if(n>=g)break}}e=i-o+ 1;this.options.wrap!="circular"&&e<1&&(e=1);if(this.inTail&&d)b+=this.tail,this.inTail=!1;this.tail=null;if(this.options.wrap!="circular"&&i==this.options.size&&i-o+1>=1&&(d=f.intval(this.get(i).css(!this.options.vertical?"marginRight":"marginBottom")),n-d>g))this.tail=n-g-d;if(c&&a===this.options.size&&this.tail)b-=this.tail,this.inTail=!0;for(;a-- >e;)b+=this.dimension(this.get(a));this.prevFirst=this.first;this.prevLast=this.last;this.first=e;this.last=i;return b},animate:function(a,c){if(!this.locked&& !this.animating){this.animating=!0;var b=this,d=function(){b.animating=!1;a===0&&b.list.css(b.lt,0);!b.autoStopped&&(b.options.wrap=="circular"||b.options.wrap=="both"||b.options.wrap=="last"||b.options.size===null||b.last<b.options.size||b.last==b.options.size&&b.tail!==null&&!b.inTail)&&b.startAuto();b.buttons();b.notify("onAfterAnimation");if(b.options.wrap=="circular"&&b.options.size!==null)for(var c=b.prevFirst;c<=b.prevLast;c++)c!==null&&!(c>=b.first&&c<=b.last)&&(c<1||c>b.options.size)&&b.remove(c)}; this.notify("onBeforeAnimation");if(!this.options.animation||c===!1)this.list.css(this.lt,a+"px"),d();else{var f=!this.options.vertical?this.options.rtl?{right:a}:{left:a}:{top:a},d={duration:this.options.animation,easing:this.options.easing,complete:d};if(g.isFunction(this.options.animationStepCallback))d.step=this.options.animationStepCallback;this.list.animate(f,d)}}},startAuto:function(a){if(a!==void 0)this.options.auto=a;if(this.options.auto===0)return this.stopAuto();if(this.timer===null){this.autoStopped= !1;var c=this;this.timer=window.setTimeout(function(){c.next()},this.options.auto*1E3)}},stopAuto:function(){this.pauseAuto();this.autoStopped=!0},pauseAuto:function(){if(this.timer!==null)window.clearTimeout(this.timer),this.timer=null},buttons:function(a,c){if(a==null&&(a=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="first"||this.options.size===null||this.last<this.options.size),!this.locked&&(!this.options.wrap||this.options.wrap=="first")&&this.options.size!==null&& this.last>=this.options.size))a=this.tail!==null&&!this.inTail;if(c==null&&(c=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="last"||this.first>1),!this.locked&&(!this.options.wrap||this.options.wrap=="last")&&this.options.size!==null&&this.first==1))c=this.tail!==null&&this.inTail;var b=this;this.buttonNext.size()>0?(this.buttonNext.unbind(this.options.buttonNextEvent+".jcarousel",this.funcNext),a&&this.buttonNext.bind(this.options.buttonNextEvent+".jcarousel",this.funcNext), this.buttonNext[a?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",a?!1:!0),this.options.buttonNextCallback!==null&&this.buttonNext.data("jcarouselstate")!=a&&this.buttonNext.each(function(){b.options.buttonNextCallback(b,this,a)}).data("jcarouselstate",a)):this.options.buttonNextCallback!==null&&this.buttonNextState!=a&&this.options.buttonNextCallback(b,null,a);this.buttonPrev.size()>0?(this.buttonPrev.unbind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev), c&&this.buttonPrev.bind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),this.buttonPrev[c?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",c?!1:!0),this.options.buttonPrevCallback!==null&&this.buttonPrev.data("jcarouselstate")!=c&&this.buttonPrev.each(function(){b.options.buttonPrevCallback(b,this,c)}).data("jcarouselstate",c)):this.options.buttonPrevCallback!==null&&this.buttonPrevState!=c&&this.options.buttonPrevCallback(b,null,c);this.buttonNextState= a;this.buttonPrevState=c},notify:function(a){var c=this.prevFirst===null?"init":this.prevFirst<this.first?"next":"prev";this.callback("itemLoadCallback",a,c);this.prevFirst!==this.first&&(this.callback("itemFirstInCallback",a,c,this.first),this.callback("itemFirstOutCallback",a,c,this.prevFirst));this.prevLast!==this.last&&(this.callback("itemLastInCallback",a,c,this.last),this.callback("itemLastOutCallback",a,c,this.prevLast));this.callback("itemVisibleInCallback",a,c,this.first,this.last,this.prevFirst, this.prevLast);this.callback("itemVisibleOutCallback",a,c,this.prevFirst,this.prevLast,this.first,this.last)},callback:function(a,c,b,d,f,j,e){if(!(this.options[a]==null||typeof this.options[a]!="object"&&c!="onAfterAnimation")){var h=typeof this.options[a]=="object"?this.options[a][c]:this.options[a];if(g.isFunction(h)){var i=this;if(d===void 0)h(i,b,c);else if(f===void 0)this.get(d).each(function(){h(i,this,d,b,c)});else for(var a=function(a){i.get(a).each(function(){h(i,this,a,b,c)})},k=d;k<=f;k++)k!== null&&!(k>=j&&k<=e)&&a(k)}}},create:function(a){return this.format("<li></li>",a)},format:function(a,c){for(var a=g(a),b=a.get(0).className.split(" "),d=0;d<b.length;d++)b[d].indexOf("jcarousel-")!=-1&&a.removeClass(b[d]);a.addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+c)).css({"float":this.options.rtl?"right":"left","list-style":"none"}).attr("jcarouselindex",c);return a},className:function(a){return a+" "+a+(!this.options.vertical?"-horizontal":"-vertical")}, dimension:function(a,c){var b=g(a);if(c==null)return!this.options.vertical?b.outerWidth(!0)||f.intval(this.options.itemFallbackDimension):b.outerHeight(!0)||f.intval(this.options.itemFallbackDimension);else{var d=!this.options.vertical?c-f.intval(b.css("marginLeft"))-f.intval(b.css("marginRight")):c-f.intval(b.css("marginTop"))-f.intval(b.css("marginBottom"));g(b).css(this.wh,d+"px");return this.dimension(b)}},clipping:function(){return!this.options.vertical?this.clip[0].offsetWidth-f.intval(this.clip.css("borderLeftWidth"))- f.intval(this.clip.css("borderRightWidth")):this.clip[0].offsetHeight-f.intval(this.clip.css("borderTopWidth"))-f.intval(this.clip.css("borderBottomWidth"))},index:function(a,c){if(c==null)c=this.options.size;return Math.round(((a-1)/c-Math.floor((a-1)/c))*c)+1}});f.extend({defaults:function(a){return g.extend(q,a||{})},intval:function(a){a=parseInt(a,10);return isNaN(a)?0:a},windowLoaded:function(){m=!0}});g.fn.jcarousel=function(a){if(typeof a=="string"){var c=g(this).data("jcarousel"),b=Array.prototype.slice.call(arguments, 1);return c[a].apply(c,b)}else return this.each(function(){var b=g(this).data("jcarousel");b?(a&&g.extend(b.options,a),b.reload()):g(this).data("jcarousel",new f(this,a))})}})(jQuery);
|
js/{jquery.nivo.slider.pack.js → nivoslider.js}
RENAMED
File without changes
|
languages/shortcodes-ultimate-ru_RU.mo
CHANGED
Binary file
|
languages/shortcodes-ultimate-ru_RU.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: gn_themes\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2011-06-24
|
6 |
-
"PO-Revision-Date: 2011-06-24
|
7 |
"Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -14,31 +14,31 @@ msgstr ""
|
|
14 |
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
"X-Poedit-SearchPath-0: .\n"
|
16 |
|
17 |
-
#: shortcodes-ultimate.php:
|
18 |
#: lib/admin.php:26
|
19 |
msgid "Shortcodes Ultimate"
|
20 |
msgstr "Шорткоды"
|
21 |
|
22 |
-
#: shortcodes-ultimate.php:
|
23 |
msgid "Vladimir Anokhin"
|
24 |
msgstr "Владимир Анохин"
|
25 |
|
26 |
-
#: shortcodes-ultimate.php:
|
27 |
msgid "Provides support for many easy to use shortcodes"
|
28 |
msgstr "Предоставляет поддержку множества полезных шорткодов"
|
29 |
|
30 |
-
#: shortcodes-ultimate.php:
|
31 |
#: lib/admin.php:35
|
32 |
msgid "Settings"
|
33 |
msgstr "Настройки"
|
34 |
|
35 |
-
#: shortcodes-ultimate.php:
|
36 |
-
#: lib/admin.php:
|
37 |
msgid "Settings saved"
|
38 |
msgstr "Настройки сохранены"
|
39 |
|
40 |
-
#: shortcodes-ultimate.php:
|
41 |
-
#: lib/admin.php:
|
42 |
msgid "Custom CSS saved"
|
43 |
msgstr "Произвольные стили сохранены"
|
44 |
|
@@ -56,7 +56,7 @@ msgid "Custom CSS"
|
|
56 |
msgstr "Произвольные стили"
|
57 |
|
58 |
#: lib/admin.php:38
|
59 |
-
#: lib/admin.php:
|
60 |
msgid "Demo"
|
61 |
msgstr "Демо"
|
62 |
|
@@ -108,87 +108,89 @@ msgstr "5 звезд"
|
|
108 |
msgid "Review this plugin in your blog"
|
109 |
msgstr "Сделайте обзор этого плагина в своем блоге"
|
110 |
|
111 |
-
#: lib/admin.php:
|
112 |
-
#: lib/admin.php:
|
113 |
msgid "Saving..."
|
114 |
msgstr "Сохранение..."
|
115 |
|
116 |
-
#: lib/admin.php:
|
117 |
msgid "Disable custom formatting"
|
118 |
msgstr "Отключить специальное форматирование"
|
119 |
|
120 |
-
#: lib/admin.php:
|
121 |
msgid "Enable this option if you have some problems with other plugins or content formatting"
|
122 |
msgstr "Отметьте этот флажок, если у вас возникли пролемы совместимости с другими плагинами или форматированием контента"
|
123 |
|
124 |
-
#: lib/admin.php:
|
125 |
msgid "Compatibility mode"
|
126 |
msgstr "Режим совместимости"
|
127 |
|
128 |
-
#: lib/admin.php:
|
129 |
msgid "Enable this option if you have some problems with other plugins that uses similar shortcode names"
|
130 |
msgstr "Отметьте этот флажок, если у вас используются другие шорткоды с такими же именами. Все шорткоды этого плагина будут иметь такие имена"
|
131 |
|
132 |
-
#: lib/admin.php:
|
133 |
msgid "Forum topic"
|
134 |
msgstr "Тема на форуме (англ.)"
|
135 |
|
136 |
-
#: lib/admin.php:
|
137 |
msgid "Disable scripts"
|
138 |
msgstr "Отключить скрипты"
|
139 |
|
140 |
-
#: lib/admin.php:84
|
141 |
#: lib/admin.php:85
|
142 |
#: lib/admin.php:86
|
143 |
#: lib/admin.php:87
|
144 |
-
#: lib/admin.php:
|
145 |
-
#: lib/admin.php:
|
|
|
|
|
|
|
146 |
msgid "Disable"
|
147 |
msgstr "Отключить"
|
148 |
|
149 |
-
#: lib/admin.php:
|
150 |
msgid "Check scripts, that you want to exclude form wp_head section"
|
151 |
msgstr "Отметьте скрипты, которые вы хотите исключить в wp_head"
|
152 |
|
153 |
-
#: lib/admin.php:
|
154 |
-
#: lib/admin.php:
|
155 |
msgid "Be careful with this settings!"
|
156 |
msgstr "Будьте осторожны с этими настройками!"
|
157 |
|
158 |
-
#: lib/admin.php:
|
159 |
msgid "Disable styles"
|
160 |
msgstr "Отключить файлы стилей"
|
161 |
|
162 |
-
#: lib/admin.php:
|
163 |
msgid "Check stylesheets, that you want to exclude form wp_head section"
|
164 |
msgstr "Отметьте файлы стилей, которые вы хотите исключить в wp_head"
|
165 |
|
166 |
-
#: lib/admin.php:
|
167 |
msgid "Save settings"
|
168 |
msgstr "Сохранить настройки"
|
169 |
|
170 |
-
#: lib/admin.php:
|
171 |
msgid "You can add custom styles, that will override defaults"
|
172 |
msgstr "Вы можете добавить произвольные стили, которые заменят оригинальные стили для шорткодов"
|
173 |
|
174 |
-
#: lib/admin.php:
|
175 |
msgid "See original styles"
|
176 |
msgstr "Смотреть оригинальные стили"
|
177 |
|
178 |
-
#: lib/admin.php:
|
179 |
msgid "Save styles"
|
180 |
msgstr "Сохранить стили"
|
181 |
|
182 |
-
#: lib/admin.php:
|
183 |
-
#: lib/admin.php:
|
184 |
msgid "Shortcode"
|
185 |
msgstr "Шорткоды"
|
186 |
|
187 |
-
#: lib/admin.php:
|
188 |
msgid "Parameters"
|
189 |
msgstr "Параметры"
|
190 |
|
191 |
-
#: lib/admin.php:
|
192 |
msgid "Usage"
|
193 |
msgstr "Пример использования"
|
194 |
|
@@ -288,6 +290,7 @@ msgstr "Инфо блога"
|
|
288 |
|
289 |
#: lib/available.php:206
|
290 |
#: lib/available.php:664
|
|
|
291 |
msgid "Post/page ID"
|
292 |
msgstr "ID записи/страницы"
|
293 |
|
@@ -473,7 +476,6 @@ msgstr "Ссылка на медиа"
|
|
473 |
|
474 |
#: lib/available.php:591
|
475 |
#: lib/available.php:615
|
476 |
-
#: lib/available.php:639
|
477 |
msgid "Width"
|
478 |
msgstr "Ширина"
|
479 |
|
@@ -498,11 +500,16 @@ msgstr ".doc, .xls, .pdf просмотрщик от Google"
|
|
498 |
msgid "Slider width"
|
499 |
msgstr "Ширина слайдера"
|
500 |
|
|
|
|
|
|
|
|
|
501 |
#: lib/available.php:649
|
502 |
msgid "Slides links"
|
503 |
msgstr "Ссылки слайдов"
|
504 |
|
505 |
#: lib/available.php:654
|
|
|
506 |
msgid "Animation speed (1000 = 1 second)"
|
507 |
msgstr "Скорость анимации (1000 = 1 секунда)"
|
508 |
|
@@ -518,6 +525,30 @@ msgstr "Эффект анимации"
|
|
518 |
msgid "Nivo slider by attached to post images"
|
519 |
msgstr "Nivo slider из изображений записи"
|
520 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
521 |
#: lib/shortcodes.php:101
|
522 |
msgid "Top"
|
523 |
msgstr "Вверх"
|
@@ -535,6 +566,7 @@ msgid "Please specify media url"
|
|
535 |
msgstr "Укажите ссылку на медиа"
|
536 |
|
537 |
#: lib/shortcodes.php:501
|
|
|
538 |
msgid "no attached images, or only one attached image"
|
539 |
msgstr "не найдены загруженные изображения, или изображение всего одно"
|
540 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: gn_themes\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-06-24 15:09+0300\n"
|
6 |
+
"PO-Revision-Date: 2011-06-24 15:10+0300\n"
|
7 |
"Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
14 |
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
"X-Poedit-SearchPath-0: .\n"
|
16 |
|
17 |
+
#: shortcodes-ultimate.php:163
|
18 |
#: lib/admin.php:26
|
19 |
msgid "Shortcodes Ultimate"
|
20 |
msgstr "Шорткоды"
|
21 |
|
22 |
+
#: shortcodes-ultimate.php:163
|
23 |
msgid "Vladimir Anokhin"
|
24 |
msgstr "Владимир Анохин"
|
25 |
|
26 |
+
#: shortcodes-ultimate.php:163
|
27 |
msgid "Provides support for many easy to use shortcodes"
|
28 |
msgstr "Предоставляет поддержку множества полезных шорткодов"
|
29 |
|
30 |
+
#: shortcodes-ultimate.php:249
|
31 |
#: lib/admin.php:35
|
32 |
msgid "Settings"
|
33 |
msgstr "Настройки"
|
34 |
|
35 |
+
#: shortcodes-ultimate.php:262
|
36 |
+
#: lib/admin.php:62
|
37 |
msgid "Settings saved"
|
38 |
msgstr "Настройки сохранены"
|
39 |
|
40 |
+
#: shortcodes-ultimate.php:267
|
41 |
+
#: lib/admin.php:123
|
42 |
msgid "Custom CSS saved"
|
43 |
msgstr "Произвольные стили сохранены"
|
44 |
|
56 |
msgstr "Произвольные стили"
|
57 |
|
58 |
#: lib/admin.php:38
|
59 |
+
#: lib/admin.php:175
|
60 |
msgid "Demo"
|
61 |
msgstr "Демо"
|
62 |
|
108 |
msgid "Review this plugin in your blog"
|
109 |
msgstr "Сделайте обзор этого плагина в своем блоге"
|
110 |
|
111 |
+
#: lib/admin.php:61
|
112 |
+
#: lib/admin.php:122
|
113 |
msgid "Saving..."
|
114 |
msgstr "Сохранение..."
|
115 |
|
116 |
+
#: lib/admin.php:66
|
117 |
msgid "Disable custom formatting"
|
118 |
msgstr "Отключить специальное форматирование"
|
119 |
|
120 |
+
#: lib/admin.php:69
|
121 |
msgid "Enable this option if you have some problems with other plugins or content formatting"
|
122 |
msgstr "Отметьте этот флажок, если у вас возникли пролемы совместимости с другими плагинами или форматированием контента"
|
123 |
|
124 |
+
#: lib/admin.php:74
|
125 |
msgid "Compatibility mode"
|
126 |
msgstr "Режим совместимости"
|
127 |
|
128 |
+
#: lib/admin.php:77
|
129 |
msgid "Enable this option if you have some problems with other plugins that uses similar shortcode names"
|
130 |
msgstr "Отметьте этот флажок, если у вас используются другие шорткоды с такими же именами. Все шорткоды этого плагина будут иметь такие имена"
|
131 |
|
132 |
+
#: lib/admin.php:77
|
133 |
msgid "Forum topic"
|
134 |
msgstr "Тема на форуме (англ.)"
|
135 |
|
136 |
+
#: lib/admin.php:81
|
137 |
msgid "Disable scripts"
|
138 |
msgstr "Отключить скрипты"
|
139 |
|
|
|
140 |
#: lib/admin.php:85
|
141 |
#: lib/admin.php:86
|
142 |
#: lib/admin.php:87
|
143 |
+
#: lib/admin.php:88
|
144 |
+
#: lib/admin.php:89
|
145 |
+
#: lib/admin.php:100
|
146 |
+
#: lib/admin.php:101
|
147 |
+
#: lib/admin.php:102
|
148 |
msgid "Disable"
|
149 |
msgstr "Отключить"
|
150 |
|
151 |
+
#: lib/admin.php:92
|
152 |
msgid "Check scripts, that you want to exclude form wp_head section"
|
153 |
msgstr "Отметьте скрипты, которые вы хотите исключить в wp_head"
|
154 |
|
155 |
+
#: lib/admin.php:92
|
156 |
+
#: lib/admin.php:105
|
157 |
msgid "Be careful with this settings!"
|
158 |
msgstr "Будьте осторожны с этими настройками!"
|
159 |
|
160 |
+
#: lib/admin.php:96
|
161 |
msgid "Disable styles"
|
162 |
msgstr "Отключить файлы стилей"
|
163 |
|
164 |
+
#: lib/admin.php:105
|
165 |
msgid "Check stylesheets, that you want to exclude form wp_head section"
|
166 |
msgstr "Отметьте файлы стилей, которые вы хотите исключить в wp_head"
|
167 |
|
168 |
+
#: lib/admin.php:111
|
169 |
msgid "Save settings"
|
170 |
msgstr "Сохранить настройки"
|
171 |
|
172 |
+
#: lib/admin.php:124
|
173 |
msgid "You can add custom styles, that will override defaults"
|
174 |
msgstr "Вы можете добавить произвольные стили, которые заменят оригинальные стили для шорткодов"
|
175 |
|
176 |
+
#: lib/admin.php:125
|
177 |
msgid "See original styles"
|
178 |
msgstr "Смотреть оригинальные стили"
|
179 |
|
180 |
+
#: lib/admin.php:128
|
181 |
msgid "Save styles"
|
182 |
msgstr "Сохранить стили"
|
183 |
|
184 |
+
#: lib/admin.php:138
|
185 |
+
#: lib/admin.php:174
|
186 |
msgid "Shortcode"
|
187 |
msgstr "Шорткоды"
|
188 |
|
189 |
+
#: lib/admin.php:139
|
190 |
msgid "Parameters"
|
191 |
msgstr "Параметры"
|
192 |
|
193 |
+
#: lib/admin.php:140
|
194 |
msgid "Usage"
|
195 |
msgstr "Пример использования"
|
196 |
|
290 |
|
291 |
#: lib/available.php:206
|
292 |
#: lib/available.php:664
|
293 |
+
#: lib/available.php:727
|
294 |
msgid "Post/page ID"
|
295 |
msgstr "ID записи/страницы"
|
296 |
|
476 |
|
477 |
#: lib/available.php:591
|
478 |
#: lib/available.php:615
|
|
|
479 |
msgid "Width"
|
480 |
msgstr "Ширина"
|
481 |
|
500 |
msgid "Slider width"
|
501 |
msgstr "Ширина слайдера"
|
502 |
|
503 |
+
#: lib/available.php:639
|
504 |
+
msgid "Slider height"
|
505 |
+
msgstr "Высота слайдера"
|
506 |
+
|
507 |
#: lib/available.php:649
|
508 |
msgid "Slides links"
|
509 |
msgstr "Ссылки слайдов"
|
510 |
|
511 |
#: lib/available.php:654
|
512 |
+
#: lib/available.php:722
|
513 |
msgid "Animation speed (1000 = 1 second)"
|
514 |
msgstr "Скорость анимации (1000 = 1 секунда)"
|
515 |
|
525 |
msgid "Nivo slider by attached to post images"
|
526 |
msgstr "Nivo slider из изображений записи"
|
527 |
|
528 |
+
#: lib/available.php:688
|
529 |
+
msgid "Carousel width"
|
530 |
+
msgstr "Ширина карусели"
|
531 |
+
|
532 |
+
#: lib/available.php:693
|
533 |
+
msgid "Carousel height"
|
534 |
+
msgstr "Высота карусели"
|
535 |
+
|
536 |
+
#: lib/available.php:698
|
537 |
+
msgid "Carousel background"
|
538 |
+
msgstr "Фон карусели"
|
539 |
+
|
540 |
+
#: lib/available.php:707
|
541 |
+
msgid "Number of items to show"
|
542 |
+
msgstr "Количество элементов для показа"
|
543 |
+
|
544 |
+
#: lib/available.php:717
|
545 |
+
msgid "Items links"
|
546 |
+
msgstr "Ссылки элементов"
|
547 |
+
|
548 |
+
#: lib/available.php:731
|
549 |
+
msgid "jCarousel by attached to post images"
|
550 |
+
msgstr "jCarousel из изображений записи"
|
551 |
+
|
552 |
#: lib/shortcodes.php:101
|
553 |
msgid "Top"
|
554 |
msgstr "Вверх"
|
566 |
msgstr "Укажите ссылку на медиа"
|
567 |
|
568 |
#: lib/shortcodes.php:501
|
569 |
+
#: lib/shortcodes.php:769
|
570 |
msgid "no attached images, or only one attached image"
|
571 |
msgstr "не найдены загруженные изображения, или изображение всего одно"
|
572 |
|
lib/admin.php
CHANGED
@@ -84,6 +84,7 @@
|
|
84 |
<td>
|
85 |
<p><label><input type="checkbox" name="su_disabled_scripts[jquery]" <?php echo ( isset( $disabled_scripts['jquery'] ) ) ? $checked : ''; ?> /> <?php _e( 'Disable', 'shortcodes-ultimate' ); ?> jQuery</label></p>
|
86 |
<p><label><input type="checkbox" name="su_disabled_scripts[nivo-slider]" <?php echo ( isset( $disabled_scripts['nivo-slider'] ) ) ? $checked : ''; ?> /> <?php _e( 'Disable', 'shortcodes-ultimate' ); ?> Nivo Slider</label></p>
|
|
|
87 |
<p><label><input type="checkbox" name="su_disabled_scripts[jwplayer]" <?php echo ( isset( $disabled_scripts['jwplayer'] ) ) ? $checked : ''; ?> /> <?php _e( 'Disable', 'shortcodes-ultimate' ); ?> JW Player</label></p>
|
88 |
<p><label><input type="checkbox" name="su_disabled_scripts[init]" <?php echo ( isset( $disabled_scripts['init'] ) ) ? $checked : ''; ?> /> <?php _e( 'Disable', 'shortcodes-ultimate' ); ?> Init</label></p>
|
89 |
</td>
|
@@ -97,6 +98,7 @@
|
|
97 |
<tr>
|
98 |
<td>
|
99 |
<p><label><input type="checkbox" name="su_disabled_styles[nivo-slider]" <?php echo ( isset( $disabled_styles['nivo-slider'] ) ) ? $checked : ''; ?> /> <?php _e( 'Disable', 'shortcodes-ultimate' ); ?> <code>nivo-slider.css</code></label></p>
|
|
|
100 |
<p><label><input type="checkbox" name="su_disabled_styles[style]" <?php echo ( isset( $disabled_styles['style'] ) ) ? $checked : ''; ?> /> <?php _e( 'Disable', 'shortcodes-ultimate' ); ?> <code>style.css</code></label></p>
|
101 |
</td>
|
102 |
<td>
|
@@ -152,9 +154,7 @@
|
|
152 |
echo $attr_name;
|
153 |
if ( $attr['values'] ) {
|
154 |
echo '="' . implode( '|', $attr['values'] ) . '"';
|
155 |
-
}
|
156 |
-
|
157 |
-
elseif ( $attr['default'] ) {
|
158 |
echo '="' . $attr['default'] . '"';
|
159 |
}
|
160 |
echo '<br/>';
|
@@ -163,9 +163,9 @@
|
|
163 |
</td>
|
164 |
<td><?php echo str_replace( '<br/>', '<br/>', htmlspecialchars( $shortcode['usage'] ) ); ?></td>
|
165 |
</tr>
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
</table>
|
170 |
</div>
|
171 |
<div class="su-pane">
|
@@ -174,16 +174,19 @@
|
|
174 |
<th width="100"><?php _e( 'Shortcode', 'shortcodes-ultimate' ); ?></th>
|
175 |
<th><?php _e( 'Demo', 'shortcodes-ultimate' ); ?></th>
|
176 |
</tr>
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
<tr>
|
181 |
-
<td
|
|
|
|
|
|
|
182 |
<td><img src="<?php echo su_plugin_url(); ?>/images/demo/<?php echo $id; ?>.png" width="530" alt="<?php echo $shortcode['name']; ?>" /></td>
|
183 |
</tr>
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
</table>
|
188 |
</div>
|
189 |
</div>
|
84 |
<td>
|
85 |
<p><label><input type="checkbox" name="su_disabled_scripts[jquery]" <?php echo ( isset( $disabled_scripts['jquery'] ) ) ? $checked : ''; ?> /> <?php _e( 'Disable', 'shortcodes-ultimate' ); ?> jQuery</label></p>
|
86 |
<p><label><input type="checkbox" name="su_disabled_scripts[nivo-slider]" <?php echo ( isset( $disabled_scripts['nivo-slider'] ) ) ? $checked : ''; ?> /> <?php _e( 'Disable', 'shortcodes-ultimate' ); ?> Nivo Slider</label></p>
|
87 |
+
<p><label><input type="checkbox" name="su_disabled_scripts[jcarousel]" <?php echo ( isset( $disabled_scripts['jcarousel'] ) ) ? $checked : ''; ?> /> <?php _e( 'Disable', 'shortcodes-ultimate' ); ?> jCarousel</label></p>
|
88 |
<p><label><input type="checkbox" name="su_disabled_scripts[jwplayer]" <?php echo ( isset( $disabled_scripts['jwplayer'] ) ) ? $checked : ''; ?> /> <?php _e( 'Disable', 'shortcodes-ultimate' ); ?> JW Player</label></p>
|
89 |
<p><label><input type="checkbox" name="su_disabled_scripts[init]" <?php echo ( isset( $disabled_scripts['init'] ) ) ? $checked : ''; ?> /> <?php _e( 'Disable', 'shortcodes-ultimate' ); ?> Init</label></p>
|
90 |
</td>
|
98 |
<tr>
|
99 |
<td>
|
100 |
<p><label><input type="checkbox" name="su_disabled_styles[nivo-slider]" <?php echo ( isset( $disabled_styles['nivo-slider'] ) ) ? $checked : ''; ?> /> <?php _e( 'Disable', 'shortcodes-ultimate' ); ?> <code>nivo-slider.css</code></label></p>
|
101 |
+
<p><label><input type="checkbox" name="su_disabled_styles[jcarousel]" <?php echo ( isset( $disabled_styles['jcarousel'] ) ) ? $checked : ''; ?> /> <?php _e( 'Disable', 'shortcodes-ultimate' ); ?> <code>jcarousel.css</code></label></p>
|
102 |
<p><label><input type="checkbox" name="su_disabled_styles[style]" <?php echo ( isset( $disabled_styles['style'] ) ) ? $checked : ''; ?> /> <?php _e( 'Disable', 'shortcodes-ultimate' ); ?> <code>style.css</code></label></p>
|
103 |
</td>
|
104 |
<td>
|
154 |
echo $attr_name;
|
155 |
if ( $attr['values'] ) {
|
156 |
echo '="' . implode( '|', $attr['values'] ) . '"';
|
157 |
+
} elseif ( $attr['default'] ) {
|
|
|
|
|
158 |
echo '="' . $attr['default'] . '"';
|
159 |
}
|
160 |
echo '<br/>';
|
163 |
</td>
|
164 |
<td><?php echo str_replace( '<br/>', '<br/>', htmlspecialchars( $shortcode['usage'] ) ); ?></td>
|
165 |
</tr>
|
166 |
+
<?php
|
167 |
+
}
|
168 |
+
?>
|
169 |
</table>
|
170 |
</div>
|
171 |
<div class="su-pane">
|
174 |
<th width="100"><?php _e( 'Shortcode', 'shortcodes-ultimate' ); ?></th>
|
175 |
<th><?php _e( 'Demo', 'shortcodes-ultimate' ); ?></th>
|
176 |
</tr>
|
177 |
+
<?php
|
178 |
+
foreach ( su_shortcodes() as $id => $shortcode ) {
|
179 |
+
?>
|
180 |
<tr>
|
181 |
+
<td>
|
182 |
+
<strong><?php echo $shortcode['name']; ?></strong><br/>
|
183 |
+
<small><?php echo $shortcode['desc']; ?></small>
|
184 |
+
</td>
|
185 |
<td><img src="<?php echo su_plugin_url(); ?>/images/demo/<?php echo $id; ?>.png" width="530" alt="<?php echo $shortcode['name']; ?>" /></td>
|
186 |
</tr>
|
187 |
+
<?php
|
188 |
+
}
|
189 |
+
?>
|
190 |
</table>
|
191 |
</div>
|
192 |
</div>
|
lib/available.php
CHANGED
@@ -636,7 +636,7 @@
|
|
636 |
'height' => array(
|
637 |
'values' => false,
|
638 |
'default' => '300',
|
639 |
-
'desc' => __( '
|
640 |
),
|
641 |
'link' => array(
|
642 |
'values' => array(
|
@@ -674,8 +674,61 @@
|
|
674 |
'desc' => __( 'Animation effect', 'shortcodes-ultimate' )
|
675 |
)
|
676 |
),
|
677 |
-
'usage' => '[nivo_slider]<br/>[nivo_slider width="
|
678 |
'desc' => __( 'Nivo slider by attached to post images', 'shortcodes-ultimate' )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
679 |
)
|
680 |
);
|
681 |
|
636 |
'height' => array(
|
637 |
'values' => false,
|
638 |
'default' => '300',
|
639 |
+
'desc' => __( 'Slider height', 'shortcodes-ultimate' )
|
640 |
),
|
641 |
'link' => array(
|
642 |
'values' => array(
|
674 |
'desc' => __( 'Animation effect', 'shortcodes-ultimate' )
|
675 |
)
|
676 |
),
|
677 |
+
'usage' => '[nivo_slider]<br/>[nivo_slider width="600" height="300" link="file" effect="boxRandom"]',
|
678 |
'desc' => __( 'Nivo slider by attached to post images', 'shortcodes-ultimate' )
|
679 |
+
),
|
680 |
+
# jcarousel
|
681 |
+
'jcarousel' => array(
|
682 |
+
'name' => 'jCarousel',
|
683 |
+
'type' => 'single',
|
684 |
+
'atts' => array(
|
685 |
+
'width' => array(
|
686 |
+
'values' => false,
|
687 |
+
'default' => '600',
|
688 |
+
'desc' => __( 'Carousel width', 'shortcodes-ultimate' )
|
689 |
+
),
|
690 |
+
'height' => array(
|
691 |
+
'values' => false,
|
692 |
+
'default' => '130',
|
693 |
+
'desc' => __( 'Carousel height', 'shortcodes-ultimate' )
|
694 |
+
),
|
695 |
+
'bg' => array(
|
696 |
+
'values' => false,
|
697 |
+
'default' => '#EEEEEE',
|
698 |
+
'desc' => __( 'Carousel background', 'shortcodes-ultimate' )
|
699 |
+
),
|
700 |
+
'items' => array(
|
701 |
+
'values' => array(
|
702 |
+
'3',
|
703 |
+
'4',
|
704 |
+
'5'
|
705 |
+
),
|
706 |
+
'default' => '3',
|
707 |
+
'desc' => __( 'Number of items to show', 'shortcodes-ultimate' )
|
708 |
+
),
|
709 |
+
'link' => array(
|
710 |
+
'values' => array(
|
711 |
+
'none',
|
712 |
+
'file',
|
713 |
+
'attachment',
|
714 |
+
'caption'
|
715 |
+
),
|
716 |
+
'default' => 'none',
|
717 |
+
'desc' => __( 'Items links', 'shortcodes-ultimate' )
|
718 |
+
),
|
719 |
+
'speed' => array(
|
720 |
+
'values' => false,
|
721 |
+
'default' => '400',
|
722 |
+
'desc' => __( 'Animation speed (1000 = 1 second)', 'shortcodes-ultimate' )
|
723 |
+
),
|
724 |
+
'p' => array(
|
725 |
+
'values' => false,
|
726 |
+
'default' => '',
|
727 |
+
'desc' => __( 'Post/page ID', 'shortcodes-ultimate' )
|
728 |
+
)
|
729 |
+
),
|
730 |
+
'usage' => '[jcarousel]<br/>[jcarousel width="600" height="130" link="file" items="5" bg="#EEEEEE" speed="400"]',
|
731 |
+
'desc' => __( 'jCarousel by attached to post images', 'shortcodes-ultimate' )
|
732 |
)
|
733 |
);
|
734 |
|
lib/shortcodes.php
CHANGED
@@ -37,7 +37,7 @@
|
|
37 |
* @param string $content
|
38 |
* @return string Output html
|
39 |
*/
|
40 |
-
function
|
41 |
extract( shortcode_atts( array(
|
42 |
'style' => 1
|
43 |
), $atts ) );
|
@@ -63,7 +63,7 @@
|
|
63 |
* @param string $content
|
64 |
* @return string Output html
|
65 |
*/
|
66 |
-
function
|
67 |
extract( shortcode_atts( array( 'title' => 'Tab %d' ), $atts ) );
|
68 |
$x = $GLOBALS['tab_count'];
|
69 |
$GLOBALS['tabs'][$x] = array( 'title' => sprintf( $title, $GLOBALS['tab_count'] ), 'content' => do_shortcode( $content ) );
|
@@ -670,4 +670,105 @@
|
|
670 |
return '<div class="su-feed">' . wp_rss( $url, $limit ) . '</div>';
|
671 |
}
|
672 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
673 |
?>
|
37 |
* @param string $content
|
38 |
* @return string Output html
|
39 |
*/
|
40 |
+
function su_tabs_shortcode( $atts, $content ) {
|
41 |
extract( shortcode_atts( array(
|
42 |
'style' => 1
|
43 |
), $atts ) );
|
63 |
* @param string $content
|
64 |
* @return string Output html
|
65 |
*/
|
66 |
+
function su_tab_shortcode( $atts, $content ) {
|
67 |
extract( shortcode_atts( array( 'title' => 'Tab %d' ), $atts ) );
|
68 |
$x = $GLOBALS['tab_count'];
|
69 |
$GLOBALS['tabs'][$x] = array( 'title' => sprintf( $title, $GLOBALS['tab_count'] ), 'content' => do_shortcode( $content ) );
|
670 |
return '<div class="su-feed">' . wp_rss( $url, $limit ) . '</div>';
|
671 |
}
|
672 |
|
673 |
+
/**
|
674 |
+
* Shortcode: jcarousel
|
675 |
+
*
|
676 |
+
* @param array $atts Shortcode attributes
|
677 |
+
* @param string $content
|
678 |
+
* @return string Output html
|
679 |
+
*/
|
680 |
+
function su_jcarousel_shortcode( $atts, $content = null ) {
|
681 |
+
extract( shortcode_atts( array(
|
682 |
+
'width' => 600,
|
683 |
+
'height' => 130,
|
684 |
+
'link' => false,
|
685 |
+
'items' => 3,
|
686 |
+
'speed' => 400,
|
687 |
+
'bg' => '#eee',
|
688 |
+
'p' => false
|
689 |
+
), $atts ) );
|
690 |
+
|
691 |
+
global $post;
|
692 |
+
$post_id = ( $p ) ? $p : $post->ID;
|
693 |
+
|
694 |
+
$args = array(
|
695 |
+
'post_type' => 'attachment',
|
696 |
+
'numberposts' => -1,
|
697 |
+
'order' => 'ASC',
|
698 |
+
'post_status' => null,
|
699 |
+
'post_parent' => $post_id
|
700 |
+
);
|
701 |
+
|
702 |
+
// Get attachments
|
703 |
+
$attachments = get_posts( $args );
|
704 |
+
|
705 |
+
// If has attachments
|
706 |
+
if ( count( $attachments ) > 1 ) {
|
707 |
+
|
708 |
+
$carousel_id = uniqid( 'su-jcarousel_' );
|
709 |
+
|
710 |
+
$width = $width - 80;
|
711 |
+
$height = $height - 30;
|
712 |
+
|
713 |
+
$item_width = round( ( $width - ( ( $items - 1 ) * 10 ) ) / $items );
|
714 |
+
|
715 |
+
$return = '
|
716 |
+
<script type="text/javascript">
|
717 |
+
jQuery(document).ready(function() {
|
718 |
+
jQuery("#' . $carousel_id . '").jcarousel({
|
719 |
+
auto: 2,
|
720 |
+
scroll: 1,
|
721 |
+
wrap: "circular",
|
722 |
+
animation: ' . $speed . ',
|
723 |
+
initCallback: mycarousel_initCallback
|
724 |
+
});
|
725 |
+
});
|
726 |
+
</script>
|
727 |
+
';
|
728 |
+
|
729 |
+
$return .= '<div class="su-carousel" style="width:' . $width . 'px;height:' . $height . 'px;background-color:' . $bg . '"><div class="su-carousel-shell"><ul id="' . $carousel_id . '">';
|
730 |
+
|
731 |
+
foreach ( $attachments as $attachment ) {
|
732 |
+
|
733 |
+
$title = apply_filters( 'the_title', $attachment->post_title );
|
734 |
+
$image = wp_get_attachment_image_src( $attachment->ID, 'full', false );
|
735 |
+
|
736 |
+
$return .= '<li style="width:' . $item_width . 'px;height:' . $height . 'px">';
|
737 |
+
|
738 |
+
// Link to file
|
739 |
+
if ( $link == 'file' ) {
|
740 |
+
$return .= '<a href="' . $image[0] . '" title="' . $title . '"><img src="' . su_plugin_url() . '/lib/timthumb.php?src=' . $image[0] . '&w=' . $width . '&h=' . $height . '&q=100&zc=1" width="' . $width . '" height="' . $height . '" alt="' . $title . '" /></a>';
|
741 |
+
}
|
742 |
+
|
743 |
+
// Link to attachment page
|
744 |
+
elseif ( $link == 'attachment' ) {
|
745 |
+
$return .= '<a href="' . get_permalink( $attachment->ID ) . '" title="' . $title . '"><img src="' . su_plugin_url() . '/lib/timthumb.php?src=' . $image[0] . '&w=' . $width . '&h=' . $height . '&q=100&zc=1" width="' . $width . '" height="' . $height . '" alt="' . $title . '" /></a>';
|
746 |
+
}
|
747 |
+
|
748 |
+
// Custom link
|
749 |
+
elseif ( $link == 'caption' ) {
|
750 |
+
if ( $attachment->post_excerpt ) {
|
751 |
+
$return .= '<a href="' . $attachment->post_excerpt . '" title="' . $title . '"><img src="' . su_plugin_url() . '/lib/timthumb.php?src=' . $image[0] . '&w=' . $width . '&h=' . $height . '&q=100&zc=1" width="' . $width . '" height="' . $height . '" alt="' . $title . '" /></a>';
|
752 |
+
} else {
|
753 |
+
$return .= '<img src="' . su_plugin_url() . '/lib/timthumb.php?src=' . $image[0] . '&w=' . $width . '&h=' . $height . '&q=100&zc=1" width="' . $width . '" height="' . $height . '" alt="' . $title . '" />';
|
754 |
+
}
|
755 |
+
}
|
756 |
+
|
757 |
+
// No link
|
758 |
+
else {
|
759 |
+
$return .= '<img src="' . su_plugin_url() . '/lib/timthumb.php?src=' . $image[0] . '&w=' . $width . '&h=' . $height . '&q=100&zc=1" width="' . $width . '" height="' . $height . '" alt="' . $title . '" />';
|
760 |
+
}
|
761 |
+
|
762 |
+
$return .= '</li>';
|
763 |
+
}
|
764 |
+
$return .= '</ul></div></div>';
|
765 |
+
}
|
766 |
+
|
767 |
+
// No attachments
|
768 |
+
else {
|
769 |
+
$return = '<p class="su-error"><strong>jCarousel:</strong> ' . __( 'no attached images, or only one attached image', 'shortcodes-ultimate' ) . '…</p>';
|
770 |
+
}
|
771 |
+
|
772 |
+
return $return;
|
773 |
+
}
|
774 |
?>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://ilovecode.ru/
|
|
4 |
Tags: shortcode, shortcodes, short code, shortcodes, tab, tabs, button, buttons, jquery, box, boxes, toggle, spoiler, column, columns, services, service, pullquote, list, lists, frame, images, image, links, fancy, fancy link, fancy links, fancy buttons, jquery tabs, accordeon, slider, nivo, nivo slider, plugin, admin, photoshop, gallery, bloginfo, list pages, sub pages, navigation, siblings pages, children pages, permalink, permalinks, feed, document, member, members, documents, rss
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.2
|
7 |
-
Stable tag: 2.
|
8 |
|
9 |
Provides support for multiple useful shortcodes
|
10 |
|
@@ -12,12 +12,8 @@ Provides support for multiple useful shortcodes
|
|
12 |
== Description ==
|
13 |
|
14 |
= In this version =
|
15 |
-
* New shortcode:
|
16 |
-
* New
|
17 |
-
* New shortcode: feed
|
18 |
-
* New attr: link="caption" for [nivo_slider]
|
19 |
-
* New attr: p for [subpages]
|
20 |
-
* New tabs style (style=3)
|
21 |
|
22 |
With this plugin you can easily add buttons, dividers, spacers, boxes, notes and much more
|
23 |
|
@@ -86,6 +82,10 @@ See your dashboard
|
|
86 |
|
87 |
== Changelog ==
|
88 |
|
|
|
|
|
|
|
|
|
89 |
= 2.2 =
|
90 |
* New shortcode: document
|
91 |
* New shortcode: members
|
4 |
Tags: shortcode, shortcodes, short code, shortcodes, tab, tabs, button, buttons, jquery, box, boxes, toggle, spoiler, column, columns, services, service, pullquote, list, lists, frame, images, image, links, fancy, fancy link, fancy links, fancy buttons, jquery tabs, accordeon, slider, nivo, nivo slider, plugin, admin, photoshop, gallery, bloginfo, list pages, sub pages, navigation, siblings pages, children pages, permalink, permalinks, feed, document, member, members, documents, rss
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.2
|
7 |
+
Stable tag: 2.4.0
|
8 |
|
9 |
Provides support for multiple useful shortcodes
|
10 |
|
12 |
== Description ==
|
13 |
|
14 |
= In this version =
|
15 |
+
* New shortcode: jcarousel
|
16 |
+
* New admin page: Demo
|
|
|
|
|
|
|
|
|
17 |
|
18 |
With this plugin you can easily add buttons, dividers, spacers, boxes, notes and much more
|
19 |
|
82 |
|
83 |
== Changelog ==
|
84 |
|
85 |
+
= 2.3 =
|
86 |
+
* New shortcode: jcarousel
|
87 |
+
* New admin page: Demo
|
88 |
+
|
89 |
= 2.2 =
|
90 |
* New shortcode: document
|
91 |
* New shortcode: members
|
shortcodes-ultimate.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: Shortcodes Ultimate
|
5 |
Plugin URI: http://ilovecode.ru/?p=122
|
6 |
-
Version: 2.
|
7 |
Author: Vladimir Anokhin
|
8 |
Author URI: http://ilovecode.ru/
|
9 |
Description: Provides support for many easy to use shortcodes
|
@@ -49,14 +49,16 @@
|
|
49 |
// Register styles
|
50 |
wp_register_style( 'shortcodes-ultimate', su_plugin_url() . '/css/style.css', false, su_get_version(), 'all' );
|
51 |
wp_register_style( 'shortcodes-ultimate-admin', su_plugin_url() . '/css/admin.css', false, su_get_version(), 'all' );
|
52 |
-
wp_register_style( 'nivo-slider', su_plugin_url() . '/css/
|
|
|
53 |
wp_register_style( 'codemirror', su_plugin_url() . '/css/codemirror.css', false, su_get_version(), 'all' );
|
54 |
wp_register_style( 'codemirror-css', su_plugin_url() . '/css/codemirror-css.css', false, su_get_version(), 'all' );
|
55 |
|
56 |
// Register scripts
|
57 |
wp_register_script( 'shortcodes-ultimate', su_plugin_url() . '/js/init.js', false, su_get_version(), false );
|
58 |
wp_register_script( 'shortcodes-ultimate-admin', su_plugin_url() . '/js/admin.js', false, su_get_version(), false );
|
59 |
-
wp_register_script( 'nivo-slider', su_plugin_url() . '/js/
|
|
|
60 |
wp_register_script( 'codemirror', su_plugin_url() . '/js/codemirror.js', false, su_get_version(), false );
|
61 |
wp_register_script( 'codemirror-css', su_plugin_url() . '/js/codemirror-css.js', false, su_get_version(), false );
|
62 |
wp_register_script( 'ajax-form', su_plugin_url() . '/js/jquery.form.js', false, su_get_version(), false );
|
@@ -72,6 +74,9 @@
|
|
72 |
if ( !isset( $disabled_styles['nivo-slider'] ) ) {
|
73 |
wp_enqueue_style( 'nivo-slider' );
|
74 |
}
|
|
|
|
|
|
|
75 |
if ( !isset( $disabled_styles['style'] ) ) {
|
76 |
wp_enqueue_style( 'shortcodes-ultimate' );
|
77 |
}
|
@@ -86,6 +91,9 @@
|
|
86 |
if ( !isset( $disabled_scripts['nivo-slider'] ) ) {
|
87 |
wp_enqueue_script( 'nivo-slider' );
|
88 |
}
|
|
|
|
|
|
|
89 |
if ( !isset( $disabled_scripts['init'] ) ) {
|
90 |
wp_enqueue_script( 'shortcodes-ultimate' );
|
91 |
}
|
@@ -108,35 +116,9 @@
|
|
108 |
}
|
109 |
|
110 |
// Register shortcodes
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
add_shortcode( su_compatibility_mode_prefix() . 'tab', 'su_tab' );
|
115 |
-
add_shortcode( su_compatibility_mode_prefix() . 'spoiler', 'su_spoiler_shortcode' );
|
116 |
-
add_shortcode( su_compatibility_mode_prefix() . 'divider', 'su_divider_shortcode' );
|
117 |
-
add_shortcode( su_compatibility_mode_prefix() . 'spacer', 'su_spacer_shortcode' );
|
118 |
-
add_shortcode( su_compatibility_mode_prefix() . 'quote', 'su_quote_shortcode' );
|
119 |
-
add_shortcode( su_compatibility_mode_prefix() . 'pullquote', 'su_pullquote_shortcode' );
|
120 |
-
add_shortcode( su_compatibility_mode_prefix() . 'highlight', 'su_highlight_shortcode' );
|
121 |
-
add_shortcode( su_compatibility_mode_prefix() . 'button', 'su_button_shortcode' );
|
122 |
-
add_shortcode( su_compatibility_mode_prefix() . 'fancy_link', 'su_fancy_link_shortcode' );
|
123 |
-
add_shortcode( su_compatibility_mode_prefix() . 'service', 'su_service_shortcode' );
|
124 |
-
add_shortcode( su_compatibility_mode_prefix() . 'box', 'su_box_shortcode' );
|
125 |
-
add_shortcode( su_compatibility_mode_prefix() . 'note', 'su_note_shortcode' );
|
126 |
-
add_shortcode( su_compatibility_mode_prefix() . 'list', 'su_list_shortcode' );
|
127 |
-
add_shortcode( su_compatibility_mode_prefix() . 'column', 'su_column_shortcode' );
|
128 |
-
add_shortcode( su_compatibility_mode_prefix() . 'media', 'su_media_shortcode' );
|
129 |
-
add_shortcode( su_compatibility_mode_prefix() . 'table', 'su_table_shortcode' );
|
130 |
-
add_shortcode( su_compatibility_mode_prefix() . 'photoshop', 'su_photoshop_shortcode' );
|
131 |
-
add_shortcode( su_compatibility_mode_prefix() . 'nivo_slider', 'su_nivo_slider_shortcode' );
|
132 |
-
add_shortcode( su_compatibility_mode_prefix() . 'permalink', 'su_permalink_shortcode' );
|
133 |
-
add_shortcode( su_compatibility_mode_prefix() . 'bloginfo', 'su_bloginfo_shortcode' );
|
134 |
-
add_shortcode( su_compatibility_mode_prefix() . 'subpages', 'su_subpages_shortcode' );
|
135 |
-
add_shortcode( su_compatibility_mode_prefix() . 'siblings', 'su_siblings_shortcode' );
|
136 |
-
add_shortcode( su_compatibility_mode_prefix() . 'menu', 'su_menu_shortcode' );
|
137 |
-
add_shortcode( su_compatibility_mode_prefix() . 'document', 'su_document_shortcode' );
|
138 |
-
add_shortcode( su_compatibility_mode_prefix() . 'members', 'su_members_shortcode' );
|
139 |
-
add_shortcode( su_compatibility_mode_prefix() . 'feed', 'su_feed_shortcode' );
|
140 |
}
|
141 |
|
142 |
add_action( 'init', 'su_plugin_init' );
|
3 |
/*
|
4 |
Plugin Name: Shortcodes Ultimate
|
5 |
Plugin URI: http://ilovecode.ru/?p=122
|
6 |
+
Version: 2.4.0
|
7 |
Author: Vladimir Anokhin
|
8 |
Author URI: http://ilovecode.ru/
|
9 |
Description: Provides support for many easy to use shortcodes
|
49 |
// Register styles
|
50 |
wp_register_style( 'shortcodes-ultimate', su_plugin_url() . '/css/style.css', false, su_get_version(), 'all' );
|
51 |
wp_register_style( 'shortcodes-ultimate-admin', su_plugin_url() . '/css/admin.css', false, su_get_version(), 'all' );
|
52 |
+
wp_register_style( 'nivo-slider', su_plugin_url() . '/css/nivoslider.css', false, su_get_version(), 'all' );
|
53 |
+
wp_register_style( 'jcarousel', su_plugin_url() . '/css/jcarousel.css', false, su_get_version(), 'all' );
|
54 |
wp_register_style( 'codemirror', su_plugin_url() . '/css/codemirror.css', false, su_get_version(), 'all' );
|
55 |
wp_register_style( 'codemirror-css', su_plugin_url() . '/css/codemirror-css.css', false, su_get_version(), 'all' );
|
56 |
|
57 |
// Register scripts
|
58 |
wp_register_script( 'shortcodes-ultimate', su_plugin_url() . '/js/init.js', false, su_get_version(), false );
|
59 |
wp_register_script( 'shortcodes-ultimate-admin', su_plugin_url() . '/js/admin.js', false, su_get_version(), false );
|
60 |
+
wp_register_script( 'nivo-slider', su_plugin_url() . '/js/nivoslider.js', false, su_get_version(), false );
|
61 |
+
wp_register_script( 'jcarousel', su_plugin_url() . '/js/jcarousel.js', false, su_get_version(), false );
|
62 |
wp_register_script( 'codemirror', su_plugin_url() . '/js/codemirror.js', false, su_get_version(), false );
|
63 |
wp_register_script( 'codemirror-css', su_plugin_url() . '/js/codemirror-css.js', false, su_get_version(), false );
|
64 |
wp_register_script( 'ajax-form', su_plugin_url() . '/js/jquery.form.js', false, su_get_version(), false );
|
74 |
if ( !isset( $disabled_styles['nivo-slider'] ) ) {
|
75 |
wp_enqueue_style( 'nivo-slider' );
|
76 |
}
|
77 |
+
if ( !isset( $disabled_styles['jcarousel'] ) ) {
|
78 |
+
wp_enqueue_style( 'jcarousel' );
|
79 |
+
}
|
80 |
if ( !isset( $disabled_styles['style'] ) ) {
|
81 |
wp_enqueue_style( 'shortcodes-ultimate' );
|
82 |
}
|
91 |
if ( !isset( $disabled_scripts['nivo-slider'] ) ) {
|
92 |
wp_enqueue_script( 'nivo-slider' );
|
93 |
}
|
94 |
+
if ( !isset( $disabled_scripts['jcarousel'] ) ) {
|
95 |
+
wp_enqueue_script( 'jcarousel' );
|
96 |
+
}
|
97 |
if ( !isset( $disabled_scripts['init'] ) ) {
|
98 |
wp_enqueue_script( 'shortcodes-ultimate' );
|
99 |
}
|
116 |
}
|
117 |
|
118 |
// Register shortcodes
|
119 |
+
foreach ( su_shortcodes() as $shortcode => $params ) {
|
120 |
+
add_shortcode( su_compatibility_mode_prefix() . $shortcode, 'su_' . $shortcode . '_shortcode' );
|
121 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
}
|
123 |
|
124 |
add_action( 'init', 'su_plugin_init' );
|