Version Description
Upgrade normally via your Wordpress admin -> Plugins panel.
Download this release
Release Info
Developer | gn_themes |
Plugin | Shortcodes Ultimate |
Version | 2.7.0 |
Comparing to | |
See all releases |
Code changes from version 2.6.0 to 2.7.0
- css/style.css +11 -0
- images/demo/gmap.png +0 -0
- images/demo/private.png +0 -0
- languages/shortcodes-ultimate-ru_RU.mo +0 -0
- languages/shortcodes-ultimate-ru_RU.po +71 -53
- lib/available.php +32 -0
- lib/shortcodes.php +31 -0
- readme.txt +1 -1
- shortcodes-ultimate.php +1 -1
css/style.css
CHANGED
@@ -298,6 +298,17 @@
|
|
298 |
padding: 15px;
|
299 |
}
|
300 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
/* Highlight */
|
302 |
.su-highlight {
|
303 |
display: inline;
|
298 |
padding: 15px;
|
299 |
}
|
300 |
|
301 |
+
/* Private */
|
302 |
+
.su-private {
|
303 |
+
margin: 0 0 1.5em 0;
|
304 |
+
}
|
305 |
+
|
306 |
+
/* Gmap */
|
307 |
+
.su-gmap {
|
308 |
+
margin: 0 0 1.5em 0;
|
309 |
+
border: none;
|
310 |
+
}
|
311 |
+
|
312 |
/* Highlight */
|
313 |
.su-highlight {
|
314 |
display: inline;
|
images/demo/gmap.png
ADDED
Binary file
|
images/demo/private.png
ADDED
Binary file
|
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-
|
6 |
-
"PO-Revision-Date: 2011-
|
7 |
"Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -289,8 +289,8 @@ msgid "Blog info"
|
|
289 |
msgstr "Инфо блога"
|
290 |
|
291 |
#: lib/available.php:206
|
292 |
-
#: lib/available.php:
|
293 |
-
#: lib/available.php:
|
294 |
msgid "Post/page ID"
|
295 |
msgstr "ID записи/страницы"
|
296 |
|
@@ -400,152 +400,170 @@ msgstr "Цвет блока"
|
|
400 |
msgid "Colored box"
|
401 |
msgstr "Цветной блок"
|
402 |
|
403 |
-
#: lib/available.php:
|
|
|
|
|
|
|
|
|
404 |
msgid "List style"
|
405 |
msgstr "Стиль списка"
|
406 |
|
407 |
-
#: lib/available.php:
|
408 |
msgid "Styled unordered list"
|
409 |
msgstr "Стильный неупорядоченный список"
|
410 |
|
411 |
-
#: lib/available.php:
|
412 |
msgid "Feed URL"
|
413 |
msgstr "URL ленты"
|
414 |
|
415 |
-
#: lib/available.php:
|
416 |
msgid "Number of item to show"
|
417 |
msgstr "Количество элементов для показа"
|
418 |
|
419 |
-
#: lib/available.php:
|
420 |
msgid "Feed grabber"
|
421 |
msgstr "Граббер новостных лент"
|
422 |
|
423 |
-
#: lib/available.php:
|
424 |
msgid "Custom menu name"
|
425 |
msgstr "Имя произвольного меню"
|
426 |
|
427 |
-
#: lib/available.php:
|
428 |
msgid "Custom menu by name"
|
429 |
msgstr "Произвольное меню"
|
430 |
|
431 |
-
#: lib/available.php:
|
432 |
-
#: lib/available.php:
|
433 |
msgid "Depth level"
|
434 |
msgstr "Глубина"
|
435 |
|
436 |
-
#: lib/available.php:
|
437 |
msgid "Parent page ID"
|
438 |
msgstr "ID родительской страницы"
|
439 |
|
440 |
-
#: lib/available.php:
|
441 |
-
#: lib/available.php:
|
442 |
msgid "Page childrens"
|
443 |
msgstr "Потомки страницы"
|
444 |
|
445 |
-
#: lib/available.php:
|
446 |
msgid "Column width"
|
447 |
msgstr "Ширина колонки"
|
448 |
|
449 |
-
#: lib/available.php:
|
450 |
msgid "For last columns"
|
451 |
msgstr "Для последних колонок"
|
452 |
|
453 |
-
#: lib/available.php:
|
454 |
msgid "You can define custom styles for each columns set"
|
455 |
msgstr "Вы можете определить особые стили для каждого набора колонок"
|
456 |
|
457 |
-
#: lib/available.php:
|
458 |
msgid "Flexible columns"
|
459 |
msgstr "Резновые колонки"
|
460 |
|
461 |
-
#: lib/available.php:
|
462 |
msgid "Table style"
|
463 |
msgstr "Стиль таблицы"
|
464 |
|
465 |
-
#: lib/available.php:
|
466 |
msgid "Create table from CSV"
|
467 |
msgstr "Создание таблицы из CSV файла"
|
468 |
|
469 |
-
#: lib/available.php:
|
470 |
msgid "Styled table from HTML or CSV file"
|
471 |
msgstr "Стильная таблица из HTML или CSV файла"
|
472 |
|
473 |
-
#: lib/available.php:
|
474 |
msgid "Media URL"
|
475 |
msgstr "Ссылка на медиа"
|
476 |
|
477 |
-
#: lib/available.php:
|
478 |
-
#: lib/available.php:
|
|
|
479 |
msgid "Width"
|
480 |
msgstr "Ширина"
|
481 |
|
482 |
-
#: lib/available.php:
|
483 |
-
#: lib/available.php:
|
|
|
484 |
msgid "Height"
|
485 |
msgstr "Высота"
|
486 |
|
487 |
-
#: lib/available.php:
|
488 |
msgid "YouTube video, Vimeo video, .mp4/.flv video, .mp3 file or images"
|
489 |
msgstr "YouTube видео, Vimeo видео, .mp4/.flv видео, .mp3 файл или изображения"
|
490 |
|
491 |
-
#: lib/available.php:
|
492 |
msgid "Document URL"
|
493 |
msgstr "Ссылка на документ"
|
494 |
|
495 |
-
#: lib/available.php:
|
496 |
msgid ".doc, .xls, .pdf viewer by Google"
|
497 |
msgstr ".doc, .xls, .pdf просмотрщик от Google"
|
498 |
|
499 |
-
#: lib/available.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
500 |
msgid "Slider width"
|
501 |
msgstr "Ширина слайдера"
|
502 |
|
503 |
-
#: lib/available.php:
|
504 |
msgid "Slider height"
|
505 |
msgstr "Высота слайдера"
|
506 |
|
507 |
-
#: lib/available.php:
|
508 |
msgid "Slides links"
|
509 |
msgstr "Ссылки слайдов"
|
510 |
|
511 |
-
#: lib/available.php:
|
512 |
-
#: lib/available.php:
|
513 |
msgid "Animation speed (1000 = 1 second)"
|
514 |
msgstr "Скорость анимации (1000 = 1 секунда)"
|
515 |
|
516 |
-
#: lib/available.php:
|
517 |
msgid "Animation delay (1000 = 1 second)"
|
518 |
msgstr "Задержка анимации (1000 = 1 секунда)"
|
519 |
|
520 |
-
#: lib/available.php:
|
521 |
msgid "Animation effect"
|
522 |
msgstr "Эффект анимации"
|
523 |
|
524 |
-
#: lib/available.php:
|
525 |
msgid "Nivo slider by attached to post images"
|
526 |
msgstr "Nivo slider из изображений записи"
|
527 |
|
528 |
-
#: lib/available.php:
|
529 |
msgid "Carousel width"
|
530 |
msgstr "Ширина карусели"
|
531 |
|
532 |
-
#: lib/available.php:
|
533 |
msgid "Carousel height"
|
534 |
msgstr "Высота карусели"
|
535 |
|
536 |
-
#: lib/available.php:
|
537 |
msgid "Carousel background"
|
538 |
msgstr "Фон карусели"
|
539 |
|
540 |
-
#: lib/available.php:
|
541 |
msgid "Number of items to show"
|
542 |
msgstr "Количество элементов для показа"
|
543 |
|
544 |
-
#: lib/available.php:
|
|
|
|
|
|
|
|
|
545 |
msgid "Items links"
|
546 |
msgstr "Ссылки элементов"
|
547 |
|
548 |
-
#: lib/available.php:
|
549 |
msgid "jCarousel by attached to post images"
|
550 |
msgstr "jCarousel из изображений записи"
|
551 |
|
@@ -553,32 +571,32 @@ msgstr "jCarousel из изображений записи"
|
|
553 |
msgid "Top"
|
554 |
msgstr "Вверх"
|
555 |
|
556 |
-
#: lib/shortcodes.php:
|
557 |
msgid "Service name"
|
558 |
msgstr "Название услуги"
|
559 |
|
560 |
-
#: lib/shortcodes.php:
|
561 |
msgid "This is box title"
|
562 |
msgstr "Заголовок блока"
|
563 |
|
564 |
-
#: lib/shortcodes.php:
|
565 |
msgid "Please specify media url"
|
566 |
msgstr "Укажите ссылку на медиа"
|
567 |
|
568 |
-
#: lib/shortcodes.php:
|
569 |
-
#: lib/shortcodes.php:
|
570 |
msgid "no attached images, or only one attached image"
|
571 |
msgstr "не найдены загруженные изображения, или изображение всего одно"
|
572 |
|
573 |
-
#: lib/shortcodes.php:
|
574 |
msgid "This menu doesn't exists, or has no elements"
|
575 |
msgstr "Такое меню не существует, или в нем нет ни одного элемента"
|
576 |
|
577 |
-
#: lib/shortcodes.php:
|
578 |
msgid "This content is for members only."
|
579 |
msgstr "Это содержимое только для участников."
|
580 |
|
581 |
-
#: lib/shortcodes.php:
|
582 |
msgid "Please login"
|
583 |
msgstr "Пожалуйста войдите"
|
584 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: gn_themes\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-08-03 01:33+0300\n"
|
6 |
+
"PO-Revision-Date: 2011-08-03 01:34+0300\n"
|
7 |
"Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
289 |
msgstr "Инфо блога"
|
290 |
|
291 |
#: lib/available.php:206
|
292 |
+
#: lib/available.php:696
|
293 |
+
#: lib/available.php:768
|
294 |
msgid "Post/page ID"
|
295 |
msgstr "ID записи/страницы"
|
296 |
|
400 |
msgid "Colored box"
|
401 |
msgstr "Цветной блок"
|
402 |
|
403 |
+
#: lib/available.php:408
|
404 |
+
msgid "Private note for post authors"
|
405 |
+
msgstr "Приватный текст для других авторов"
|
406 |
+
|
407 |
+
#: lib/available.php:434
|
408 |
msgid "List style"
|
409 |
msgstr "Стиль списка"
|
410 |
|
411 |
+
#: lib/available.php:438
|
412 |
msgid "Styled unordered list"
|
413 |
msgstr "Стильный неупорядоченный список"
|
414 |
|
415 |
+
#: lib/available.php:448
|
416 |
msgid "Feed URL"
|
417 |
msgstr "URL ленты"
|
418 |
|
419 |
+
#: lib/available.php:459
|
420 |
msgid "Number of item to show"
|
421 |
msgstr "Количество элементов для показа"
|
422 |
|
423 |
+
#: lib/available.php:463
|
424 |
msgid "Feed grabber"
|
425 |
msgstr "Граббер новостных лент"
|
426 |
|
427 |
+
#: lib/available.php:473
|
428 |
msgid "Custom menu name"
|
429 |
msgstr "Имя произвольного меню"
|
430 |
|
431 |
+
#: lib/available.php:477
|
432 |
msgid "Custom menu by name"
|
433 |
msgstr "Произвольное меню"
|
434 |
|
435 |
+
#: lib/available.php:491
|
436 |
+
#: lib/available.php:514
|
437 |
msgid "Depth level"
|
438 |
msgstr "Глубина"
|
439 |
|
440 |
+
#: lib/available.php:496
|
441 |
msgid "Parent page ID"
|
442 |
msgstr "ID родительской страницы"
|
443 |
|
444 |
+
#: lib/available.php:500
|
445 |
+
#: lib/available.php:518
|
446 |
msgid "Page childrens"
|
447 |
msgstr "Потомки страницы"
|
448 |
|
449 |
+
#: lib/available.php:540
|
450 |
msgid "Column width"
|
451 |
msgstr "Ширина колонки"
|
452 |
|
453 |
+
#: lib/available.php:548
|
454 |
msgid "For last columns"
|
455 |
msgstr "Для последних колонок"
|
456 |
|
457 |
+
#: lib/available.php:557
|
458 |
msgid "You can define custom styles for each columns set"
|
459 |
msgstr "Вы можете определить особые стили для каждого набора колонок"
|
460 |
|
461 |
+
#: lib/available.php:561
|
462 |
msgid "Flexible columns"
|
463 |
msgstr "Резновые колонки"
|
464 |
|
465 |
+
#: lib/available.php:575
|
466 |
msgid "Table style"
|
467 |
msgstr "Стиль таблицы"
|
468 |
|
469 |
+
#: lib/available.php:580
|
470 |
msgid "Create table from CSV"
|
471 |
msgstr "Создание таблицы из CSV файла"
|
472 |
|
473 |
+
#: lib/available.php:584
|
474 |
msgid "Styled table from HTML or CSV file"
|
475 |
msgstr "Стильная таблица из HTML или CSV файла"
|
476 |
|
477 |
+
#: lib/available.php:594
|
478 |
msgid "Media URL"
|
479 |
msgstr "Ссылка на медиа"
|
480 |
|
481 |
+
#: lib/available.php:599
|
482 |
+
#: lib/available.php:623
|
483 |
+
#: lib/available.php:642
|
484 |
msgid "Width"
|
485 |
msgstr "Ширина"
|
486 |
|
487 |
+
#: lib/available.php:604
|
488 |
+
#: lib/available.php:628
|
489 |
+
#: lib/available.php:647
|
490 |
msgid "Height"
|
491 |
msgstr "Высота"
|
492 |
|
493 |
+
#: lib/available.php:608
|
494 |
msgid "YouTube video, Vimeo video, .mp4/.flv video, .mp3 file or images"
|
495 |
msgstr "YouTube видео, Vimeo видео, .mp4/.flv видео, .mp3 файл или изображения"
|
496 |
|
497 |
+
#: lib/available.php:618
|
498 |
msgid "Document URL"
|
499 |
msgstr "Ссылка на документ"
|
500 |
|
501 |
+
#: lib/available.php:632
|
502 |
msgid ".doc, .xls, .pdf viewer by Google"
|
503 |
msgstr ".doc, .xls, .pdf просмотрщик от Google"
|
504 |
|
505 |
+
#: lib/available.php:652
|
506 |
+
msgid "Marker address"
|
507 |
+
msgstr "Адрес маркера"
|
508 |
+
|
509 |
+
#: lib/available.php:656
|
510 |
+
msgid "Maps by Google"
|
511 |
+
msgstr "Карты от Google"
|
512 |
+
|
513 |
+
#: lib/available.php:666
|
514 |
msgid "Slider width"
|
515 |
msgstr "Ширина слайдера"
|
516 |
|
517 |
+
#: lib/available.php:671
|
518 |
msgid "Slider height"
|
519 |
msgstr "Высота слайдера"
|
520 |
|
521 |
+
#: lib/available.php:681
|
522 |
msgid "Slides links"
|
523 |
msgstr "Ссылки слайдов"
|
524 |
|
525 |
+
#: lib/available.php:686
|
526 |
+
#: lib/available.php:763
|
527 |
msgid "Animation speed (1000 = 1 second)"
|
528 |
msgstr "Скорость анимации (1000 = 1 секунда)"
|
529 |
|
530 |
+
#: lib/available.php:691
|
531 |
msgid "Animation delay (1000 = 1 second)"
|
532 |
msgstr "Задержка анимации (1000 = 1 секунда)"
|
533 |
|
534 |
+
#: lib/available.php:706
|
535 |
msgid "Animation effect"
|
536 |
msgstr "Эффект анимации"
|
537 |
|
538 |
+
#: lib/available.php:710
|
539 |
msgid "Nivo slider by attached to post images"
|
540 |
msgstr "Nivo slider из изображений записи"
|
541 |
|
542 |
+
#: lib/available.php:720
|
543 |
msgid "Carousel width"
|
544 |
msgstr "Ширина карусели"
|
545 |
|
546 |
+
#: lib/available.php:725
|
547 |
msgid "Carousel height"
|
548 |
msgstr "Высота карусели"
|
549 |
|
550 |
+
#: lib/available.php:730
|
551 |
msgid "Carousel background"
|
552 |
msgstr "Фон карусели"
|
553 |
|
554 |
+
#: lib/available.php:739
|
555 |
msgid "Number of items to show"
|
556 |
msgstr "Количество элементов для показа"
|
557 |
|
558 |
+
#: lib/available.php:748
|
559 |
+
msgid "Space between items in pixels"
|
560 |
+
msgstr "Расстояние между элементами в пикселях"
|
561 |
+
|
562 |
+
#: lib/available.php:758
|
563 |
msgid "Items links"
|
564 |
msgstr "Ссылки элементов"
|
565 |
|
566 |
+
#: lib/available.php:772
|
567 |
msgid "jCarousel by attached to post images"
|
568 |
msgstr "jCarousel из изображений записи"
|
569 |
|
571 |
msgid "Top"
|
572 |
msgstr "Вверх"
|
573 |
|
574 |
+
#: lib/shortcodes.php:301
|
575 |
msgid "Service name"
|
576 |
msgstr "Название услуги"
|
577 |
|
578 |
+
#: lib/shortcodes.php:319
|
579 |
msgid "This is box title"
|
580 |
msgstr "Заголовок блока"
|
581 |
|
582 |
+
#: lib/shortcodes.php:381
|
583 |
msgid "Please specify media url"
|
584 |
msgstr "Укажите ссылку на медиа"
|
585 |
|
586 |
+
#: lib/shortcodes.php:513
|
587 |
+
#: lib/shortcodes.php:799
|
588 |
msgid "no attached images, or only one attached image"
|
589 |
msgstr "не найдены загруженные изображения, или изображение всего одно"
|
590 |
|
591 |
+
#: lib/shortcodes.php:628
|
592 |
msgid "This menu doesn't exists, or has no elements"
|
593 |
msgstr "Такое меню не существует, или в нем нет ни одного элемента"
|
594 |
|
595 |
+
#: lib/shortcodes.php:680
|
596 |
msgid "This content is for members only."
|
597 |
msgstr "Это содержимое только для участников."
|
598 |
|
599 |
+
#: lib/shortcodes.php:680
|
600 |
msgid "Please login"
|
601 |
msgstr "Пожалуйста войдите"
|
602 |
|
lib/available.php
CHANGED
@@ -399,6 +399,14 @@
|
|
399 |
'usage' => '[note color="#FFCC00"] Content [/note]',
|
400 |
'desc' => __( 'Colored box', 'shortcodes-ultimate' )
|
401 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
# list
|
403 |
'list' => array(
|
404 |
'name' => 'List',
|
@@ -623,6 +631,30 @@
|
|
623 |
'usage' => '[document file="file.doc" width="600" height="400"]',
|
624 |
'desc' => __( '.doc, .xls, .pdf viewer by Google', 'shortcodes-ultimate' )
|
625 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
626 |
# nivo_slider
|
627 |
'nivo_slider' => array(
|
628 |
'name' => 'Nivo slider',
|
399 |
'usage' => '[note color="#FFCC00"] Content [/note]',
|
400 |
'desc' => __( 'Colored box', 'shortcodes-ultimate' )
|
401 |
),
|
402 |
+
# private
|
403 |
+
'private' => array(
|
404 |
+
'name' => 'Private',
|
405 |
+
'type' => 'wrap',
|
406 |
+
'atts' => array( ),
|
407 |
+
'usage' => '[private] Private content [/private]',
|
408 |
+
'desc' => __( 'Private note for post authors', 'shortcodes-ultimate' )
|
409 |
+
),
|
410 |
# list
|
411 |
'list' => array(
|
412 |
'name' => 'List',
|
631 |
'usage' => '[document file="file.doc" width="600" height="400"]',
|
632 |
'desc' => __( '.doc, .xls, .pdf viewer by Google', 'shortcodes-ultimate' )
|
633 |
),
|
634 |
+
# gmap
|
635 |
+
'gmap' => array(
|
636 |
+
'name' => 'Gmap',
|
637 |
+
'type' => 'single',
|
638 |
+
'atts' => array(
|
639 |
+
'width' => array(
|
640 |
+
'values' => false,
|
641 |
+
'default' => '600',
|
642 |
+
'desc' => __( 'Width', 'shortcodes-ultimate' )
|
643 |
+
),
|
644 |
+
'height' => array(
|
645 |
+
'values' => false,
|
646 |
+
'default' => '400',
|
647 |
+
'desc' => __( 'Height', 'shortcodes-ultimate' )
|
648 |
+
),
|
649 |
+
'address' => array(
|
650 |
+
'values' => false,
|
651 |
+
'default' => '',
|
652 |
+
'desc' => __( 'Marker address', 'shortcodes-ultimate' )
|
653 |
+
),
|
654 |
+
),
|
655 |
+
'usage' => '[gmap width="600" height="400" address="Russia, Moscow"]',
|
656 |
+
'desc' => __( 'Maps by Google', 'shortcodes-ultimate' )
|
657 |
+
),
|
658 |
# nivo_slider
|
659 |
'nivo_slider' => array(
|
660 |
'name' => 'Nivo slider',
|
lib/shortcodes.php
CHANGED
@@ -350,6 +350,19 @@
|
|
350 |
return '<div class="su-note" style="background-color:' . $styles['light_color'] . ';border:1px solid ' . $styles['dark_color'] . '"><div class="su-note-shell" style="border:1px solid ' . $styles['extra_light_color'] . ';color:' . $styles['text_color'] . '">' . do_shortcode( $content ) . '</div></div>';
|
351 |
}
|
352 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
353 |
/**
|
354 |
* Shortcode: media
|
355 |
*
|
@@ -632,6 +645,23 @@
|
|
632 |
return '<iframe src="http://docs.google.com/viewer?embedded=true&url=' . $file . '" width="' . $width . '" height="' . $height . '" class="su-document"></iframe>';
|
633 |
}
|
634 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
635 |
/**
|
636 |
* Shortcode: members
|
637 |
*
|
@@ -771,4 +801,5 @@
|
|
771 |
|
772 |
return $return;
|
773 |
}
|
|
|
774 |
?>
|
350 |
return '<div class="su-note" style="background-color:' . $styles['light_color'] . ';border:1px solid ' . $styles['dark_color'] . '"><div class="su-note-shell" style="border:1px solid ' . $styles['extra_light_color'] . ';color:' . $styles['text_color'] . '">' . do_shortcode( $content ) . '</div></div>';
|
351 |
}
|
352 |
|
353 |
+
/**
|
354 |
+
* Shortcode: private
|
355 |
+
*
|
356 |
+
* @param array $atts Shortcode attributes
|
357 |
+
* @param string $content
|
358 |
+
* @return string Output html
|
359 |
+
*/
|
360 |
+
function su_private_shortcode( $atts = null, $content = null ) {
|
361 |
+
|
362 |
+
if ( current_user_can( 'publish_posts' ) )
|
363 |
+
return '<div class="su-private"><div class="su-private-shell">' . do_shortcode( $content ) . '</div></div>';
|
364 |
+
}
|
365 |
+
|
366 |
/**
|
367 |
* Shortcode: media
|
368 |
*
|
645 |
return '<iframe src="http://docs.google.com/viewer?embedded=true&url=' . $file . '" width="' . $width . '" height="' . $height . '" class="su-document"></iframe>';
|
646 |
}
|
647 |
|
648 |
+
/**
|
649 |
+
* Shortcode: gmap
|
650 |
+
*
|
651 |
+
* @param array $atts Shortcode attributes
|
652 |
+
* @param string $content
|
653 |
+
* @return string Output html
|
654 |
+
*/
|
655 |
+
function su_gmap_shortcode( $atts, $content = null ) {
|
656 |
+
extract( shortcode_atts( array(
|
657 |
+
'width' => 600,
|
658 |
+
'height' => 400,
|
659 |
+
'address' => 'Russia, Moscow'
|
660 |
+
), $atts ) );
|
661 |
+
|
662 |
+
return '<iframe width="' . $width . '" height="' . $height . '" src="http://maps.google.com/maps?q=' . urlencode( $address ) . '&output=embed" class="su-gmap"></iframe>';
|
663 |
+
}
|
664 |
+
|
665 |
/**
|
666 |
* Shortcode: members
|
667 |
*
|
801 |
|
802 |
return $return;
|
803 |
}
|
804 |
+
|
805 |
?>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://ilovecode.ru/donate/
|
|
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, jcarousel, rss
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.2.9
|
7 |
-
Stable tag: 2.
|
8 |
|
9 |
Provides support for multiple useful shortcodes
|
10 |
|
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, jcarousel, rss
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.2.9
|
7 |
+
Stable tag: 2.7.0
|
8 |
|
9 |
Provides support for multiple useful shortcodes
|
10 |
|
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
|
3 |
/*
|
4 |
Plugin Name: Shortcodes Ultimate
|
5 |
Plugin URI: http://ilovecode.ru/?p=122
|
6 |
+
Version: 2.7.0
|
7 |
Author: Vladimir Anokhin
|
8 |
Author URI: http://ilovecode.ru/
|
9 |
Description: Provides support for many easy to use shortcodes
|