Version Description
Download this release
Release Info
Developer | cbaldelomar |
Plugin | Shortcodes by Angie Makes |
Version | 1.55 |
Comparing to | |
See all releases |
Code changes from version 1.54 to 1.55
- README.md +6 -0
- includes/css/style.css +249 -1
- includes/functions.php +9 -2
- includes/mce/js/shortcodes-tinymce-4.js +29 -6
- includes/shortcode-functions.php +32 -12
- includes/templates/borderless/content-aside.php +17 -0
- includes/templates/borderless/content-audio.php +21 -0
- includes/templates/borderless/content-chat.php +23 -0
- includes/templates/borderless/content-excerpt.php +23 -0
- includes/templates/borderless/content-gallery.php +31 -0
- includes/templates/borderless/content-link.php +28 -0
- includes/templates/borderless/content-quote.php +13 -0
- includes/templates/borderless/content-video.php +23 -0
- includes/templates/borderless/content.php +23 -0
- includes/templates/borderless/entry-meta.php +35 -0
- includes/templates/{index.php → borderless/index.php} +0 -0
- includes/templates/{content-aside.php → box/content-aside.php} +0 -0
- includes/templates/{content-audio.php → box/content-audio.php} +0 -0
- includes/templates/{content-chat.php → box/content-chat.php} +0 -0
- includes/templates/{content-excerpt.php → box/content-excerpt.php} +0 -0
- includes/templates/{content-gallery.php → box/content-gallery.php} +0 -0
- includes/templates/{content-link.php → box/content-link.php} +0 -0
- includes/templates/{content-quote.php → box/content-quote.php} +0 -0
- includes/templates/{content-video.php → box/content-video.php} +0 -0
- includes/templates/{content.php → box/content.php} +0 -0
- includes/templates/{entry-meta.php → box/entry-meta.php} +1 -1
- includes/templates/box/index.php +41 -0
- includes/templates/nav-pagination.php +3 -3
- readme.txt +6 -0
- wc-shortcodes.php +2 -2
README.md
CHANGED
@@ -66,6 +66,12 @@ Use the shortcode manager in the TinyMCE text editor
|
|
66 |
|
67 |
## Changelog ##
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
### Version 1.54
|
70 |
|
71 |
* Fixed bug with image settings not previewing images
|
66 |
|
67 |
## Changelog ##
|
68 |
|
69 |
+
### Version 1.55
|
70 |
+
|
71 |
+
3977abe Updated TinyMCE button options for shortcodes
|
72 |
+
03cab7e Added new layout 'grid' and template options 'box' and 'borderless' for wc_posts shortcode
|
73 |
+
227f4b1 Fixed Translation issue - thanks ziofix
|
74 |
+
|
75 |
### Version 1.54
|
76 |
|
77 |
* Fixed bug with image settings not previewing images
|
includes/css/style.css
CHANGED
@@ -1391,6 +1391,9 @@ pre.pre-wrap {
|
|
1391 |
position: relative;
|
1392 |
visibility: hidden;
|
1393 |
}
|
|
|
|
|
|
|
1394 |
.wc-shortcodes-post-box {
|
1395 |
background-color: #ffffff;
|
1396 |
margin-bottom: 20px;
|
@@ -1504,7 +1507,252 @@ pre.pre-wrap {
|
|
1504 |
right: 0;
|
1505 |
background-image: url("../img/slide-arrow-right.png");
|
1506 |
}
|
1507 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1508 |
|
1509 |
/**
|
1510 |
* [wc_image]
|
1391 |
position: relative;
|
1392 |
visibility: hidden;
|
1393 |
}
|
1394 |
+
.wc-shortcodes-posts.wc-shortcodes-posts-no-masonry {
|
1395 |
+
visibility: visible;
|
1396 |
+
}
|
1397 |
.wc-shortcodes-post-box {
|
1398 |
background-color: #ffffff;
|
1399 |
margin-bottom: 20px;
|
1507 |
right: 0;
|
1508 |
background-image: url("../img/slide-arrow-right.png");
|
1509 |
}
|
1510 |
+
/* Masonry 2 */
|
1511 |
+
.wc-shortcodes-posts-template-borderless .wc-shortcodes-post-border {
|
1512 |
+
border: none;
|
1513 |
+
border-bottom: 1px solid #dddddd;
|
1514 |
+
padding-bottom: 20px;
|
1515 |
+
}
|
1516 |
+
.wc-shortcodes-posts-template-borderless .wc-shortcodes-post-border > *:first-child {
|
1517 |
+
margin-top: 0;
|
1518 |
+
}
|
1519 |
+
.wc-shortcodes-posts-template-borderless .wc-shortcodes-post-border > *:last-child {
|
1520 |
+
margin-bottom: 0;
|
1521 |
+
}
|
1522 |
+
.wc-shortcodes-posts-gutter-space-0 .wc-shortcodes-post-box { margin-bottom: 0px; }
|
1523 |
+
.wc-shortcodes-posts-gutter-space-1 .wc-shortcodes-post-box { margin-bottom: 1px; }
|
1524 |
+
.wc-shortcodes-posts-gutter-space-2 .wc-shortcodes-post-box { margin-bottom: 2px; }
|
1525 |
+
.wc-shortcodes-posts-gutter-space-3 .wc-shortcodes-post-box { margin-bottom: 3px; }
|
1526 |
+
.wc-shortcodes-posts-gutter-space-4 .wc-shortcodes-post-box { margin-bottom: 4px; }
|
1527 |
+
.wc-shortcodes-posts-gutter-space-5 .wc-shortcodes-post-box { margin-bottom: 5px; }
|
1528 |
+
.wc-shortcodes-posts-gutter-space-6 .wc-shortcodes-post-box { margin-bottom: 6px; }
|
1529 |
+
.wc-shortcodes-posts-gutter-space-7 .wc-shortcodes-post-box { margin-bottom: 7px; }
|
1530 |
+
.wc-shortcodes-posts-gutter-space-8 .wc-shortcodes-post-box { margin-bottom: 8px; }
|
1531 |
+
.wc-shortcodes-posts-gutter-space-9 .wc-shortcodes-post-box { margin-bottom: 9px; }
|
1532 |
+
.wc-shortcodes-posts-gutter-space-10 .wc-shortcodes-post-box { margin-bottom: 10px; }
|
1533 |
+
.wc-shortcodes-posts-gutter-space-11 .wc-shortcodes-post-box { margin-bottom: 11px; }
|
1534 |
+
.wc-shortcodes-posts-gutter-space-12 .wc-shortcodes-post-box { margin-bottom: 12px; }
|
1535 |
+
.wc-shortcodes-posts-gutter-space-13 .wc-shortcodes-post-box { margin-bottom: 13px; }
|
1536 |
+
.wc-shortcodes-posts-gutter-space-14 .wc-shortcodes-post-box { margin-bottom: 14px; }
|
1537 |
+
.wc-shortcodes-posts-gutter-space-15 .wc-shortcodes-post-box { margin-bottom: 15px; }
|
1538 |
+
.wc-shortcodes-posts-gutter-space-16 .wc-shortcodes-post-box { margin-bottom: 16px; }
|
1539 |
+
.wc-shortcodes-posts-gutter-space-17 .wc-shortcodes-post-box { margin-bottom: 17px; }
|
1540 |
+
.wc-shortcodes-posts-gutter-space-18 .wc-shortcodes-post-box { margin-bottom: 18px; }
|
1541 |
+
.wc-shortcodes-posts-gutter-space-19 .wc-shortcodes-post-box { margin-bottom: 19px; }
|
1542 |
+
.wc-shortcodes-posts-gutter-space-20 .wc-shortcodes-post-box { margin-bottom: 20px; }
|
1543 |
+
.wc-shortcodes-posts-gutter-space-21 .wc-shortcodes-post-box { margin-bottom: 21px; }
|
1544 |
+
.wc-shortcodes-posts-gutter-space-22 .wc-shortcodes-post-box { margin-bottom: 22px; }
|
1545 |
+
.wc-shortcodes-posts-gutter-space-23 .wc-shortcodes-post-box { margin-bottom: 23px; }
|
1546 |
+
.wc-shortcodes-posts-gutter-space-24 .wc-shortcodes-post-box { margin-bottom: 24px; }
|
1547 |
+
.wc-shortcodes-posts-gutter-space-25 .wc-shortcodes-post-box { margin-bottom: 25px; }
|
1548 |
+
.wc-shortcodes-posts-gutter-space-26 .wc-shortcodes-post-box { margin-bottom: 26px; }
|
1549 |
+
.wc-shortcodes-posts-gutter-space-27 .wc-shortcodes-post-box { margin-bottom: 27px; }
|
1550 |
+
.wc-shortcodes-posts-gutter-space-28 .wc-shortcodes-post-box { margin-bottom: 28px; }
|
1551 |
+
.wc-shortcodes-posts-gutter-space-29 .wc-shortcodes-post-box { margin-bottom: 29px; }
|
1552 |
+
.wc-shortcodes-posts-gutter-space-30 .wc-shortcodes-post-box { margin-bottom: 30px; }
|
1553 |
+
.wc-shortcodes-posts-gutter-space-31 .wc-shortcodes-post-box { margin-bottom: 31px; }
|
1554 |
+
.wc-shortcodes-posts-gutter-space-32 .wc-shortcodes-post-box { margin-bottom: 32px; }
|
1555 |
+
.wc-shortcodes-posts-gutter-space-33 .wc-shortcodes-post-box { margin-bottom: 33px; }
|
1556 |
+
.wc-shortcodes-posts-gutter-space-34 .wc-shortcodes-post-box { margin-bottom: 34px; }
|
1557 |
+
.wc-shortcodes-posts-gutter-space-35 .wc-shortcodes-post-box { margin-bottom: 35px; }
|
1558 |
+
.wc-shortcodes-posts-gutter-space-36 .wc-shortcodes-post-box { margin-bottom: 36px; }
|
1559 |
+
.wc-shortcodes-posts-gutter-space-37 .wc-shortcodes-post-box { margin-bottom: 37px; }
|
1560 |
+
.wc-shortcodes-posts-gutter-space-38 .wc-shortcodes-post-box { margin-bottom: 38px; }
|
1561 |
+
.wc-shortcodes-posts-gutter-space-39 .wc-shortcodes-post-box { margin-bottom: 39px; }
|
1562 |
+
.wc-shortcodes-posts-gutter-space-40 .wc-shortcodes-post-box { margin-bottom: 40px; }
|
1563 |
+
.wc-shortcodes-posts-gutter-space-41 .wc-shortcodes-post-box { margin-bottom: 41px; }
|
1564 |
+
.wc-shortcodes-posts-gutter-space-42 .wc-shortcodes-post-box { margin-bottom: 42px; }
|
1565 |
+
.wc-shortcodes-posts-gutter-space-43 .wc-shortcodes-post-box { margin-bottom: 43px; }
|
1566 |
+
.wc-shortcodes-posts-gutter-space-44 .wc-shortcodes-post-box { margin-bottom: 44px; }
|
1567 |
+
.wc-shortcodes-posts-gutter-space-45 .wc-shortcodes-post-box { margin-bottom: 45px; }
|
1568 |
+
.wc-shortcodes-posts-gutter-space-46 .wc-shortcodes-post-box { margin-bottom: 46px; }
|
1569 |
+
.wc-shortcodes-posts-gutter-space-47 .wc-shortcodes-post-box { margin-bottom: 47px; }
|
1570 |
+
.wc-shortcodes-posts-gutter-space-48 .wc-shortcodes-post-box { margin-bottom: 48px; }
|
1571 |
+
.wc-shortcodes-posts-gutter-space-49 .wc-shortcodes-post-box { margin-bottom: 49px; }
|
1572 |
+
.wc-shortcodes-posts-gutter-space-50 .wc-shortcodes-post-box { margin-bottom: 50px; }
|
1573 |
+
|
1574 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-0 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 0px; }
|
1575 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-1 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 1px; }
|
1576 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-2 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 2px; }
|
1577 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-3 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 3px; }
|
1578 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-4 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 4px; }
|
1579 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-5 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 5px; }
|
1580 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-6 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 6px; }
|
1581 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-7 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 7px; }
|
1582 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-8 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 8px; }
|
1583 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-9 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 9px; }
|
1584 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-10 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 10px; }
|
1585 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-11 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 11px; }
|
1586 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-12 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 12px; }
|
1587 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-13 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 13px; }
|
1588 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-14 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 14px; }
|
1589 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-15 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 15px; }
|
1590 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-16 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 16px; }
|
1591 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-17 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 17px; }
|
1592 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-18 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 18px; }
|
1593 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-19 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 19px; }
|
1594 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-20 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 20px; }
|
1595 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-21 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 21px; }
|
1596 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-22 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 22px; }
|
1597 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-23 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 23px; }
|
1598 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-24 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 24px; }
|
1599 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-25 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 25px; }
|
1600 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-26 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 26px; }
|
1601 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-27 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 27px; }
|
1602 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-28 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 28px; }
|
1603 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-29 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 29px; }
|
1604 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-30 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 30px; }
|
1605 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-31 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 31px; }
|
1606 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-32 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 32px; }
|
1607 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-33 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 33px; }
|
1608 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-34 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 34px; }
|
1609 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-35 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 35px; }
|
1610 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-36 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 36px; }
|
1611 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-37 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 37px; }
|
1612 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-38 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 38px; }
|
1613 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-39 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 39px; }
|
1614 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-40 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 40px; }
|
1615 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-41 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 41px; }
|
1616 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-42 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 42px; }
|
1617 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-43 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 43px; }
|
1618 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-44 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 44px; }
|
1619 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-45 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 45px; }
|
1620 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-46 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 46px; }
|
1621 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-47 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 47px; }
|
1622 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-48 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 48px; }
|
1623 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-49 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 49px; }
|
1624 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-50 .wc-shortcodes-post-box .wc-shortcodes-post-border { margin-right: 50px; }
|
1625 |
+
|
1626 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-0 { margin-right: 0px; }
|
1627 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-1 { margin-right: -1px; }
|
1628 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-2 { margin-right: -2px; }
|
1629 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-3 { margin-right: -3px; }
|
1630 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-4 { margin-right: -4px; }
|
1631 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-5 { margin-right: -5px; }
|
1632 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-6 { margin-right: -6px; }
|
1633 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-7 { margin-right: -7px; }
|
1634 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-8 { margin-right: -8px; }
|
1635 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-9 { margin-right: -9px; }
|
1636 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-10 { margin-right: -10px; }
|
1637 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-11 { margin-right: -11px; }
|
1638 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-12 { margin-right: -12px; }
|
1639 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-13 { margin-right: -13px; }
|
1640 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-14 { margin-right: -14px; }
|
1641 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-15 { margin-right: -15px; }
|
1642 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-16 { margin-right: -16px; }
|
1643 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-17 { margin-right: -17px; }
|
1644 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-18 { margin-right: -18px; }
|
1645 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-19 { margin-right: -19px; }
|
1646 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-20 { margin-right: -20px; }
|
1647 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-21 { margin-right: -21px; }
|
1648 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-22 { margin-right: -22px; }
|
1649 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-23 { margin-right: -23px; }
|
1650 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-24 { margin-right: -24px; }
|
1651 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-25 { margin-right: -25px; }
|
1652 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-26 { margin-right: -26px; }
|
1653 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-27 { margin-right: -27px; }
|
1654 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-28 { margin-right: -28px; }
|
1655 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-29 { margin-right: -29px; }
|
1656 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-30 { margin-right: -30px; }
|
1657 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-31 { margin-right: -31px; }
|
1658 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-32 { margin-right: -32px; }
|
1659 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-33 { margin-right: -33px; }
|
1660 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-34 { margin-right: -34px; }
|
1661 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-35 { margin-right: -35px; }
|
1662 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-36 { margin-right: -36px; }
|
1663 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-37 { margin-right: -37px; }
|
1664 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-38 { margin-right: -38px; }
|
1665 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-39 { margin-right: -39px; }
|
1666 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-40 { margin-right: -40px; }
|
1667 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-41 { margin-right: -41px; }
|
1668 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-42 { margin-right: -42px; }
|
1669 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-43 { margin-right: -43px; }
|
1670 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-44 { margin-right: -44px; }
|
1671 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-45 { margin-right: -45px; }
|
1672 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-46 { margin-right: -46px; }
|
1673 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-47 { margin-right: -47px; }
|
1674 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-48 { margin-right: -48px; }
|
1675 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-49 { margin-right: -49px; }
|
1676 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-gutter-space-50 { margin-right: -50px; }
|
1677 |
+
|
1678 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-2 .wc-shortcodes-post-box { width: 50%; }
|
1679 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-3 .wc-shortcodes-post-box { width: 33.33%; }
|
1680 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-4 .wc-shortcodes-post-box { width: 25%; }
|
1681 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-5 .wc-shortcodes-post-box { width: 20%; }
|
1682 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-6 .wc-shortcodes-post-box { width: 16.66%; }
|
1683 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-7 .wc-shortcodes-post-box { width: 14.28%; }
|
1684 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-8 .wc-shortcodes-post-box { width: 12.5%; }
|
1685 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-9 .wc-shortcodes-post-box { width: 11.11%; }
|
1686 |
+
|
1687 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-2 .wc-shortcodes-post-box:nth-child(2n+3) { clear: left; }
|
1688 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-3 .wc-shortcodes-post-box:nth-child(3n+4) { clear: left; }
|
1689 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-4 .wc-shortcodes-post-box:nth-child(4n+5) { clear: left; }
|
1690 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-5 .wc-shortcodes-post-box:nth-child(5n+6) { clear: left; }
|
1691 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-6 .wc-shortcodes-post-box:nth-child(6n+7) { clear: left; }
|
1692 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-7 .wc-shortcodes-post-box:nth-child(7n+8) { clear: left; }
|
1693 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-8 .wc-shortcodes-post-box:nth-child(8n+9) { clear: left; }
|
1694 |
+
.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-9 .wc-shortcodes-post-box:nth-child(9n+10) { clear: left; }
|
1695 |
+
|
1696 |
+
.wc-shortcodes-posts-layout-grid .wc-shortcodes-post-box { float: left; }
|
1697 |
+
.wc-shortcodes-posts.wc-shortcodes-posts-layout-grid .wc-shortcodes-post-box { margin-bottom: 50px; }
|
1698 |
+
.wc-shortcodes-posts-template-borderless .wc-shortcodes-post-box .wc-shortcodes-post-border { padding-bottom: 20px; }
|
1699 |
+
|
1700 |
+
@media (max-width: 990px) {
|
1701 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-2 .wc-shortcodes-post-box { width: 50%; }
|
1702 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-3 .wc-shortcodes-post-box { width: 50%; }
|
1703 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-4 .wc-shortcodes-post-box { width: 33.33%; }
|
1704 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-5 .wc-shortcodes-post-box { width: 25%; }
|
1705 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-6 .wc-shortcodes-post-box { width: 20%; }
|
1706 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-7 .wc-shortcodes-post-box { width: 16.66%; }
|
1707 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-8 .wc-shortcodes-post-box { width: 14.28%; }
|
1708 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-9 .wc-shortcodes-post-box { width: 12.5%; }
|
1709 |
+
|
1710 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-2 .wc-shortcodes-post-box:nth-child(2n+3) { clear: left; }
|
1711 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-3 .wc-shortcodes-post-box:nth-child(2n+3) { clear: left; }
|
1712 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-4 .wc-shortcodes-post-box:nth-child(3n+4) { clear: left; }
|
1713 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-5 .wc-shortcodes-post-box:nth-child(4n+5) { clear: left; }
|
1714 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-6 .wc-shortcodes-post-box:nth-child(5n+6) { clear: left; }
|
1715 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-7 .wc-shortcodes-post-box:nth-child(6n+7) { clear: left; }
|
1716 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-8 .wc-shortcodes-post-box:nth-child(7n+8) { clear: left; }
|
1717 |
+
body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-9 .wc-shortcodes-post-box:nth-child(8n+9) { clear: left; }
|
1718 |
+
}
|
1719 |
+
|
1720 |
+
@media (max-width: 767px) {
|
1721 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-2 .wc-shortcodes-post-box { width: 50%; }
|
1722 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-3 .wc-shortcodes-post-box { width: 50%; }
|
1723 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-4 .wc-shortcodes-post-box { width: 50%; }
|
1724 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-5 .wc-shortcodes-post-box { width: 33.33%; }
|
1725 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-6 .wc-shortcodes-post-box { width: 25%; }
|
1726 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-7 .wc-shortcodes-post-box { width: 20%; }
|
1727 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-8 .wc-shortcodes-post-box { width: 16.66%; }
|
1728 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-9 .wc-shortcodes-post-box { width: 14.28%; }
|
1729 |
+
|
1730 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-2 .wc-shortcodes-post-box:nth-child(2n+3) { clear: left; }
|
1731 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-3 .wc-shortcodes-post-box:nth-child(2n+3) { clear: left; }
|
1732 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-4 .wc-shortcodes-post-box:nth-child(2n+3) { clear: left; }
|
1733 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-5 .wc-shortcodes-post-box:nth-child(3n+4) { clear: left; }
|
1734 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-6 .wc-shortcodes-post-box:nth-child(4n+5) { clear: left; }
|
1735 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-7 .wc-shortcodes-post-box:nth-child(5n+6) { clear: left; }
|
1736 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-8 .wc-shortcodes-post-box:nth-child(6n+7) { clear: left; }
|
1737 |
+
html body .wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-9 .wc-shortcodes-post-box:nth-child(7n+8) { clear: left; }
|
1738 |
+
}
|
1739 |
+
|
1740 |
+
@media (max-width: 567px) {
|
1741 |
+
html body div.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-2 .wc-shortcodes-post-box,
|
1742 |
+
html body div.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-3 .wc-shortcodes-post-box,
|
1743 |
+
html body div.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-4 .wc-shortcodes-post-box,
|
1744 |
+
html body div.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-5 .wc-shortcodes-post-box,
|
1745 |
+
html body div.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-6 .wc-shortcodes-post-box,
|
1746 |
+
html body div.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-7 .wc-shortcodes-post-box,
|
1747 |
+
html body div.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-8 .wc-shortcodes-post-box,
|
1748 |
+
html body div.wc-shortcodes-posts-layout-grid.wc-shortcodes-posts-col-9 .wc-shortcodes-post-box {
|
1749 |
+
width: 100%;
|
1750 |
+
}
|
1751 |
+
html body div.wc-shortcodes-posts.wc-shortcodes-posts-layout-grid .wc-shortcodes-post-box .wc-shortcodes-post-border,
|
1752 |
+
html body div.wc-shortcodes-posts.wc-shortcodes-posts-layout-grid {
|
1753 |
+
margin-right: 0;
|
1754 |
+
}
|
1755 |
+
}
|
1756 |
|
1757 |
/**
|
1758 |
* [wc_image]
|
includes/functions.php
CHANGED
@@ -347,6 +347,13 @@ function wc_shortcodes_get_the_excerpt( $deprecated = '' ) {
|
|
347 |
* @return string The excerpt.
|
348 |
*/
|
349 |
function wc_shortcodes_wp_trim_excerpt($text = '') {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
350 |
$raw_excerpt = $text;
|
351 |
if ( '' == $text ) {
|
352 |
$text = get_the_content('');
|
@@ -364,7 +371,7 @@ function wc_shortcodes_wp_trim_excerpt($text = '') {
|
|
364 |
*
|
365 |
* @param int $number The number of words. Default 55.
|
366 |
*/
|
367 |
-
$excerpt_length = apply_filters( '
|
368 |
/**
|
369 |
* Filter the string in the "more" link displayed after a trimmed excerpt.
|
370 |
*
|
@@ -372,7 +379,7 @@ function wc_shortcodes_wp_trim_excerpt($text = '') {
|
|
372 |
*
|
373 |
* @param string $more_string The string shown within the more link.
|
374 |
*/
|
375 |
-
$excerpt_more = apply_filters( '
|
376 |
$text = wp_trim_words( $text, $excerpt_length, $excerpt_more );
|
377 |
}
|
378 |
/**
|
347 |
* @return string The excerpt.
|
348 |
*/
|
349 |
function wc_shortcodes_wp_trim_excerpt($text = '') {
|
350 |
+
global $wc_shortcodes_posts_query;
|
351 |
+
|
352 |
+
$excerpt_length = 55;
|
353 |
+
if ( isset( $wc_shortcodes_posts_query->excerpt_length ) && ! empty( $wc_shortcodes_posts_query->excerpt_length ) ) {
|
354 |
+
$excerpt_length = (int) $wc_shortcodes_posts_query->excerpt_length;
|
355 |
+
}
|
356 |
+
|
357 |
$raw_excerpt = $text;
|
358 |
if ( '' == $text ) {
|
359 |
$text = get_the_content('');
|
371 |
*
|
372 |
* @param int $number The number of words. Default 55.
|
373 |
*/
|
374 |
+
$excerpt_length = apply_filters( 'wc_shortcodes_excerpt_length', $excerpt_length );
|
375 |
/**
|
376 |
* Filter the string in the "more" link displayed after a trimmed excerpt.
|
377 |
*
|
379 |
*
|
380 |
* @param string $more_string The string shown within the more link.
|
381 |
*/
|
382 |
+
$excerpt_more = apply_filters( 'wc_shortcodes_excerpt_more', '…' );
|
383 |
$text = wp_trim_words( $text, $excerpt_length, $excerpt_more );
|
384 |
}
|
385 |
/**
|
includes/mce/js/shortcodes-tinymce-4.js
CHANGED
@@ -82,12 +82,6 @@
|
|
82 |
{
|
83 |
text: 'Elements',
|
84 |
menu: [
|
85 |
-
{
|
86 |
-
text: "Posts",
|
87 |
-
onclick: function(){
|
88 |
-
editor.insertContent('[wc_posts author="" author_name="" p="" post__in="" order="DESC" orderby="date" post_status="publish" post_type="post" posts_per_page="10" taxonomy="" field="slug" terms="" title="yes" meta_all="yes" meta_author="yes" meta_date="yes" meta_comments="yes" thumbnail="yes" content="yes" paging="yes" size="large" filtering="yes" columns="3" gutter_space="20" heading_type="h2" layout="masonry"][/wc_posts]');
|
89 |
-
}
|
90 |
-
},
|
91 |
{
|
92 |
text: "Button",
|
93 |
onclick: function(){
|
@@ -158,6 +152,35 @@
|
|
158 |
}
|
159 |
]
|
160 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
{
|
162 |
text: 'Boxes',
|
163 |
menu: [
|
82 |
{
|
83 |
text: 'Elements',
|
84 |
menu: [
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
{
|
86 |
text: "Button",
|
87 |
onclick: function(){
|
152 |
}
|
153 |
]
|
154 |
},
|
155 |
+
{
|
156 |
+
text: 'Posts',
|
157 |
+
menu: [
|
158 |
+
{
|
159 |
+
text: "Masonry - Box",
|
160 |
+
onclick: function(){
|
161 |
+
editor.insertContent('[wc_posts author="" author_name="" p="" post__in="" order="DESC" orderby="date" post_status="publish" post_type="post" posts_per_page="10" taxonomy="" field="slug" terms="" title="yes" meta_all="yes" meta_author="yes" meta_date="yes" meta_comments="yes" thumbnail="yes" content="yes" paging="yes" size="large" filtering="yes" columns="3" gutter_space="20" heading_type="h2" layout="masonry" template="box" excerpt_length="30"][/wc_posts]');
|
162 |
+
}
|
163 |
+
},
|
164 |
+
{
|
165 |
+
text: "Masonry - Borderless",
|
166 |
+
onclick: function(){
|
167 |
+
editor.insertContent('[wc_posts author="" author_name="" p="" post__in="" order="DESC" orderby="date" post_status="publish" post_type="post" posts_per_page="10" taxonomy="" field="slug" terms="" title="yes" meta_all="yes" meta_author="yes" meta_date="yes" meta_comments="yes" thumbnail="yes" content="yes" paging="yes" size="large" filtering="yes" columns="3" gutter_space="40" heading_type="h2" layout="masonry" template="borderless" excerpt_length="30"][/wc_posts]');
|
168 |
+
}
|
169 |
+
},
|
170 |
+
{
|
171 |
+
text: "Grid - Box",
|
172 |
+
onclick: function(){
|
173 |
+
editor.insertContent('[wc_posts author="" author_name="" p="" post__in="" order="DESC" orderby="date" post_status="publish" post_type="post" posts_per_page="10" taxonomy="" field="slug" terms="" title="yes" meta_all="yes" meta_author="yes" meta_date="yes" meta_comments="yes" thumbnail="yes" content="yes" paging="yes" size="large" filtering="yes" columns="3" gutter_space="20" heading_type="h2" layout="grid" template="box" excerpt_length="15"][/wc_posts]');
|
174 |
+
}
|
175 |
+
},
|
176 |
+
{
|
177 |
+
text: "Grid - Borderless",
|
178 |
+
onclick: function(){
|
179 |
+
editor.insertContent('[wc_posts author="" author_name="" p="" post__in="" order="DESC" orderby="date" post_status="publish" post_type="post" posts_per_page="10" taxonomy="" field="slug" terms="" title="yes" meta_all="yes" meta_author="yes" meta_date="yes" meta_comments="yes" thumbnail="yes" content="yes" paging="yes" size="large" filtering="yes" columns="3" gutter_space="40" heading_type="h2" layout="grid" template="borderless" excerpt_length="15"][/wc_posts]');
|
180 |
+
}
|
181 |
+
}
|
182 |
+
]
|
183 |
+
},
|
184 |
{
|
185 |
text: 'Boxes',
|
186 |
menu: [
|
includes/shortcode-functions.php
CHANGED
@@ -1094,12 +1094,11 @@ if( ! function_exists( 'wc_shortcodes_posts' ) ) {
|
|
1094 |
function wc_shortcodes_posts( $atts ) {
|
1095 |
global $data;
|
1096 |
global $post;
|
|
|
1097 |
|
1098 |
static $instance = 0;
|
1099 |
$instance++;
|
1100 |
|
1101 |
-
wp_enqueue_script('wc-shortcodes-posts');
|
1102 |
-
|
1103 |
if ( (is_front_page() || is_home() ) ) {
|
1104 |
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : ( ( get_query_var( 'page' ) ) ? get_query_var( 'page' ) : 1 );
|
1105 |
} else {
|
@@ -1140,12 +1139,32 @@ if( ! function_exists( 'wc_shortcodes_posts' ) ) {
|
|
1140 |
'gutter_space' => '20', // gutter width percentage relative to parent element width
|
1141 |
'heading_type' => 'h2', // heading tag for title
|
1142 |
'layout' => 'masonry', // blog layout
|
|
|
|
|
1143 |
), $atts );
|
1144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1145 |
// clean input values
|
1146 |
$atts['terms'] = wc_shortcodes_comma_delim_to_array( $atts['terms'] );
|
1147 |
$atts['post__in'] = wc_shortcodes_comma_delim_to_array( $atts['post__in'] );
|
1148 |
$atts['columns'] == (int) $atts['columns'];
|
|
|
1149 |
$atts['order'] = strtoupper( $atts['order'] );
|
1150 |
$atts['heading_type'] = strtolower( $atts['heading_type'] );
|
1151 |
|
@@ -1203,20 +1222,21 @@ if( ! function_exists( 'wc_shortcodes_posts' ) ) {
|
|
1203 |
($atts['filtering'] == "yes") ? ($atts['filtering'] = true) : ($atts['filtering'] = false);
|
1204 |
($atts['order'] == "ASC") ? ($atts['order'] = "ASC") : ($atts['order'] = "DESC");
|
1205 |
|
1206 |
-
|
1207 |
-
|
1208 |
-
$atts['layout'] = "masonry";
|
1209 |
-
}
|
1210 |
-
|
1211 |
-
$ml_query = new WP_Query($atts);
|
1212 |
|
1213 |
$html = '';
|
1214 |
|
1215 |
$class = array();
|
1216 |
$class[] = 'wc-shortcodes-posts';
|
|
|
1217 |
$class[] = 'wc-shortcodes-posts-col-' . $atts["columns"];
|
1218 |
$class[] = 'wc-shortcodes-posts-layout-' . $atts['layout'];
|
1219 |
-
|
|
|
|
|
|
|
|
|
1220 |
if ( $atts['filtering'] ) {
|
1221 |
ob_start();
|
1222 |
include( 'templates/nav-filtering.php' );
|
@@ -1225,14 +1245,14 @@ if( ! function_exists( 'wc_shortcodes_posts' ) ) {
|
|
1225 |
|
1226 |
$html .= '<div id="wc-shortcodes-posts-'.$instance.'" data-gutter-space="'.$atts["gutter_space"].'" data-columns="'.$atts["columns"].'" class="' . implode( ' ', $class ) . '">';
|
1227 |
|
1228 |
-
while( $
|
1229 |
-
$
|
1230 |
|
1231 |
if ( $atts['content'] && empty( $post->post_excerpt ) && empty( $post->post_content ) )
|
1232 |
$atts['content'] = false;
|
1233 |
|
1234 |
ob_start();
|
1235 |
-
include('templates/index.php');
|
1236 |
$html .= ob_get_clean();
|
1237 |
|
1238 |
endwhile;
|
1094 |
function wc_shortcodes_posts( $atts ) {
|
1095 |
global $data;
|
1096 |
global $post;
|
1097 |
+
global $wc_shortcodes_posts_query;
|
1098 |
|
1099 |
static $instance = 0;
|
1100 |
$instance++;
|
1101 |
|
|
|
|
|
1102 |
if ( (is_front_page() || is_home() ) ) {
|
1103 |
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : ( ( get_query_var( 'page' ) ) ? get_query_var( 'page' ) : 1 );
|
1104 |
} else {
|
1139 |
'gutter_space' => '20', // gutter width percentage relative to parent element width
|
1140 |
'heading_type' => 'h2', // heading tag for title
|
1141 |
'layout' => 'masonry', // blog layout
|
1142 |
+
'template' => 'box',
|
1143 |
+
'excerpt_length' => '55',
|
1144 |
), $atts );
|
1145 |
|
1146 |
+
// changed default layout name. Let's catch old inputs
|
1147 |
+
$valid_layouts = array( 'masonry', 'grid' );
|
1148 |
+
if ( ! in_array( $atts['layout'], $valid_layouts ) ) {
|
1149 |
+
$atts['layout'] = "masonry";
|
1150 |
+
}
|
1151 |
+
|
1152 |
+
$is_masonry = 'masonry' == $atts['layout'] ? true : false;
|
1153 |
+
|
1154 |
+
if ( $is_masonry ) {
|
1155 |
+
wp_enqueue_script('wc-shortcodes-posts');
|
1156 |
+
}
|
1157 |
+
|
1158 |
+
$valid_templates = array( 'box', 'borderless' );
|
1159 |
+
if ( ! in_array( $atts['template'], $valid_templates ) ) {
|
1160 |
+
$atts['template'] = "box";
|
1161 |
+
}
|
1162 |
+
|
1163 |
// clean input values
|
1164 |
$atts['terms'] = wc_shortcodes_comma_delim_to_array( $atts['terms'] );
|
1165 |
$atts['post__in'] = wc_shortcodes_comma_delim_to_array( $atts['post__in'] );
|
1166 |
$atts['columns'] == (int) $atts['columns'];
|
1167 |
+
$atts['excerpt_length'] = (int) $atts['excerpt_length'];
|
1168 |
$atts['order'] = strtoupper( $atts['order'] );
|
1169 |
$atts['heading_type'] = strtolower( $atts['heading_type'] );
|
1170 |
|
1222 |
($atts['filtering'] == "yes") ? ($atts['filtering'] = true) : ($atts['filtering'] = false);
|
1223 |
($atts['order'] == "ASC") ? ($atts['order'] = "ASC") : ($atts['order'] = "DESC");
|
1224 |
|
1225 |
+
$wc_shortcodes_posts_query = new WP_Query($atts);
|
1226 |
+
$wc_shortcodes_posts_query->excerpt_length = $atts['excerpt_length'];
|
|
|
|
|
|
|
|
|
1227 |
|
1228 |
$html = '';
|
1229 |
|
1230 |
$class = array();
|
1231 |
$class[] = 'wc-shortcodes-posts';
|
1232 |
+
$class[] = 'wc-shortcodes-clearfix';
|
1233 |
$class[] = 'wc-shortcodes-posts-col-' . $atts["columns"];
|
1234 |
$class[] = 'wc-shortcodes-posts-layout-' . $atts['layout'];
|
1235 |
+
$class[] = 'wc-shortcodes-posts-template-' . $atts['template'];
|
1236 |
+
$class[] = 'wc-shortcodes-posts-gutter-space-' . $atts['gutter_space'];
|
1237 |
+
if ( ! $is_masonry ) {
|
1238 |
+
$class[] = 'wc-shortcodes-posts-no-masonry';
|
1239 |
+
}
|
1240 |
if ( $atts['filtering'] ) {
|
1241 |
ob_start();
|
1242 |
include( 'templates/nav-filtering.php' );
|
1245 |
|
1246 |
$html .= '<div id="wc-shortcodes-posts-'.$instance.'" data-gutter-space="'.$atts["gutter_space"].'" data-columns="'.$atts["columns"].'" class="' . implode( ' ', $class ) . '">';
|
1247 |
|
1248 |
+
while( $wc_shortcodes_posts_query->have_posts() ) :
|
1249 |
+
$wc_shortcodes_posts_query->the_post();
|
1250 |
|
1251 |
if ( $atts['content'] && empty( $post->post_excerpt ) && empty( $post->post_content ) )
|
1252 |
$atts['content'] = false;
|
1253 |
|
1254 |
ob_start();
|
1255 |
+
include('templates/'.$atts['template'].'/index.php');
|
1256 |
$html .= ob_get_clean();
|
1257 |
|
1258 |
endwhile;
|
includes/templates/borderless/content-aside.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $classes[] = 'wc-shortcodes-post-box'; ?>
|
2 |
+
<div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
|
3 |
+
<div class="wc-shortcodes-post-border">
|
4 |
+
<?php if ( $atts['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
|
5 |
+
<div class="wc-shortcodes-entry-thumbnail">
|
6 |
+
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $atts['size'] ); ?></a>
|
7 |
+
</div>
|
8 |
+
<?php endif; ?>
|
9 |
+
|
10 |
+
<?php if ( $atts['content'] ) : ?>
|
11 |
+
<?php wc_shortcodes_the_content(); ?>
|
12 |
+
<?php endif; ?>
|
13 |
+
|
14 |
+
<?php include('entry-meta.php'); ?>
|
15 |
+
|
16 |
+
</div><!-- .wc-shortcodes-post-border -->
|
17 |
+
</div><!-- #post -->
|
includes/templates/borderless/content-audio.php
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $classes[] = 'wc-shortcodes-post-box'; ?>
|
2 |
+
<div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
|
3 |
+
<div class="wc-shortcodes-post-border">
|
4 |
+
<div class="wc-shortcodes-entry-audio">
|
5 |
+
<?php wc_shortcodes_the_media_content(); ?>
|
6 |
+
</div><!-- .entry-summary -->
|
7 |
+
|
8 |
+
<?php if ( $atts['title'] ) : ?>
|
9 |
+
<<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
|
10 |
+
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
11 |
+
</<?php echo $atts['heading_type']; ?>>
|
12 |
+
<?php endif; ?>
|
13 |
+
|
14 |
+
<?php if ( $atts['content'] ) : ?>
|
15 |
+
<?php wc_shortcodes_the_excerpt(); ?>
|
16 |
+
<?php endif; ?>
|
17 |
+
|
18 |
+
<?php include('entry-meta.php'); ?>
|
19 |
+
|
20 |
+
</div><!-- .wc-shortcodes-post-border -->
|
21 |
+
</div><!-- #post -->
|
includes/templates/borderless/content-chat.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $classes[] = 'wc-shortcodes-post-box'; ?>
|
2 |
+
<div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
|
3 |
+
<div class="wc-shortcodes-post-border">
|
4 |
+
<?php if ( $atts['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
|
5 |
+
<div class="wc-shortcodes-entry-thumbnail">
|
6 |
+
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $atts['size'] ); ?></a>
|
7 |
+
</div>
|
8 |
+
<?php endif; ?>
|
9 |
+
|
10 |
+
<?php if ( $atts['title'] ) : ?>
|
11 |
+
<<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
|
12 |
+
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
13 |
+
</<?php echo $atts['heading_type']; ?>>
|
14 |
+
<?php endif; ?>
|
15 |
+
|
16 |
+
<?php if ( $atts['content'] ) : ?>
|
17 |
+
<?php wc_shortcodes_the_excerpt(); ?>
|
18 |
+
<?php endif; ?>
|
19 |
+
|
20 |
+
<?php include('entry-meta.php'); ?>
|
21 |
+
|
22 |
+
</div><!-- .wc-shortcodes-post-border -->
|
23 |
+
</div><!-- #post -->
|
includes/templates/borderless/content-excerpt.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $classes[] = 'wc-shortcodes-post-box'; ?>
|
2 |
+
<div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
|
3 |
+
<div class="wc-shortcodes-post-border">
|
4 |
+
<?php if ( $atts['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
|
5 |
+
<div class="wc-shortcodes-entry-thumbnail">
|
6 |
+
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $atts['size'] ); ?></a>
|
7 |
+
</div>
|
8 |
+
<?php endif; ?>
|
9 |
+
|
10 |
+
<?php if ( $atts['title'] ) : ?>
|
11 |
+
<<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
|
12 |
+
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
13 |
+
</<?php echo $atts['heading_type']; ?>>
|
14 |
+
<?php endif; ?>
|
15 |
+
|
16 |
+
<?php if ( $atts['content'] ) : ?>
|
17 |
+
<?php wc_shortcodes_the_excerpt(); ?>
|
18 |
+
<?php endif; ?>
|
19 |
+
|
20 |
+
<?php include('entry-meta.php'); ?>
|
21 |
+
|
22 |
+
</div><!-- .wc-shortcodes-post-border -->
|
23 |
+
</div><!-- #post -->
|
includes/templates/borderless/content-gallery.php
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $classes[] = 'wc-shortcodes-post-box'; ?>
|
2 |
+
<div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
|
3 |
+
<div class="wc-shortcodes-post-border">
|
4 |
+
<?php if ( get_post_gallery() ) : ?>
|
5 |
+
<?php $gallery = get_post_gallery( get_the_ID(), false ); ?>
|
6 |
+
|
7 |
+
<div class="rslides-wrapper">
|
8 |
+
<ul class="rslides">
|
9 |
+
<?php foreach( $gallery['src'] as $src ) : ?>
|
10 |
+
|
11 |
+
<li><a href="<?php the_permalink(); ?>"><img src="<?php echo $src; ?>" class="" alt="" /></a></li>
|
12 |
+
|
13 |
+
<?php endforeach; ?>
|
14 |
+
</ul>
|
15 |
+
</div>
|
16 |
+
<?php endif; ?>
|
17 |
+
|
18 |
+
<?php if ( $atts['title'] ) : ?>
|
19 |
+
<<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
|
20 |
+
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
21 |
+
</<?php echo $atts['heading_type']; ?>>
|
22 |
+
<?php endif; ?>
|
23 |
+
|
24 |
+
<?php if ( $atts['content'] ) : ?>
|
25 |
+
<?php wc_shortcodes_the_excerpt(); ?>
|
26 |
+
<?php endif; ?>
|
27 |
+
|
28 |
+
<?php include('entry-meta.php'); ?>
|
29 |
+
|
30 |
+
</div><!-- .wc-shortcodes-post-border -->
|
31 |
+
</div><!-- #post -->
|
includes/templates/borderless/content-link.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $classes[] = 'wc-shortcodes-post-box'; ?>
|
2 |
+
<div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
|
3 |
+
<div class="wc-shortcodes-post-border">
|
4 |
+
<?php if ( $atts['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
|
5 |
+
<div class="wc-shortcodes-entry-thumbnail">
|
6 |
+
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $atts['size'] ); ?></a>
|
7 |
+
</div>
|
8 |
+
<?php endif; ?>
|
9 |
+
|
10 |
+
<?php if ( $atts['title'] ) : ?>
|
11 |
+
<<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
|
12 |
+
<?php
|
13 |
+
$content = get_the_content();
|
14 |
+
$has_url = get_url_in_content( $content );
|
15 |
+
$link = ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
|
16 |
+
?>
|
17 |
+
<a href="<?php echo esc_url( $link ); ?>"><?php the_title(); ?></a>
|
18 |
+
</<?php echo $atts['heading_type']; ?>>
|
19 |
+
<?php endif; ?>
|
20 |
+
|
21 |
+
<?php if ( $atts['content'] ) : ?>
|
22 |
+
<?php wc_shortcodes_the_content(); ?>
|
23 |
+
<?php endif; ?>
|
24 |
+
|
25 |
+
<?php include('entry-meta.php'); ?>
|
26 |
+
|
27 |
+
</div><!-- .wc-shortcodes-post-border -->
|
28 |
+
</div><!-- #post -->
|
includes/templates/borderless/content-quote.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $classes[] = 'wc-shortcodes-post-box'; ?>
|
2 |
+
<div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
|
3 |
+
<div class="wc-shortcodes-post-border">
|
4 |
+
<?php if ( $atts['content'] ) : ?>
|
5 |
+
<div class="wc-shortcodes-entry-quote">
|
6 |
+
<?php wc_shortcodes_the_content(); ?>
|
7 |
+
</div><!-- .entry-summary -->
|
8 |
+
<?php endif; ?>
|
9 |
+
|
10 |
+
<?php include('entry-meta.php'); ?>
|
11 |
+
|
12 |
+
</div><!-- .wc-shortcodes-post-border -->
|
13 |
+
</div><!-- #post -->
|
includes/templates/borderless/content-video.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $classes[] = 'wc-shortcodes-post-box'; ?>
|
2 |
+
<div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
|
3 |
+
<div class="wc-shortcodes-post-border">
|
4 |
+
<div class="wc-shortcodes-entry-video">
|
5 |
+
<?php wc_shortcodes_the_media_content(); ?>
|
6 |
+
</div><!-- .entry-summary -->
|
7 |
+
|
8 |
+
<?php if ( $atts['title'] ) : ?>
|
9 |
+
<div class="wc-shortcodes-entry-header">
|
10 |
+
<<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
|
11 |
+
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
12 |
+
</<?php echo $atts['heading_type']; ?>>
|
13 |
+
</div><!-- .entry-header -->
|
14 |
+
<?php endif; ?>
|
15 |
+
|
16 |
+
<?php if ( $atts['content'] ) : ?>
|
17 |
+
<?php wc_shortcodes_the_excerpt(); ?>
|
18 |
+
<?php endif; ?>
|
19 |
+
|
20 |
+
<?php include('entry-meta.php'); ?>
|
21 |
+
|
22 |
+
</div><!-- .wc-shortcodes-post-border -->
|
23 |
+
</div><!-- #post -->
|
includes/templates/borderless/content.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $classes[] = 'wc-shortcodes-post-box'; ?>
|
2 |
+
<div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
|
3 |
+
<div class="wc-shortcodes-post-border">
|
4 |
+
<?php if ( $atts['thumbnail'] && has_post_thumbnail() && ! post_password_required() ) : ?>
|
5 |
+
<div class="wc-shortcodes-entry-thumbnail">
|
6 |
+
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $atts['size'] ); ?></a>
|
7 |
+
</div>
|
8 |
+
<?php endif; ?>
|
9 |
+
|
10 |
+
<?php if ( $atts['title'] ) : ?>
|
11 |
+
<<?php echo $atts['heading_type']; ?> class="wc-shortcodes-entry-title">
|
12 |
+
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
13 |
+
</<?php echo $atts['heading_type']; ?>>
|
14 |
+
<?php endif; ?>
|
15 |
+
|
16 |
+
<?php if ( $atts['content'] ) : ?>
|
17 |
+
<?php wc_shortcodes_the_excerpt(); ?>
|
18 |
+
<?php endif; ?>
|
19 |
+
|
20 |
+
<?php include('entry-meta.php'); ?>
|
21 |
+
|
22 |
+
</div><!-- .wc-shortcodes-post-border -->
|
23 |
+
</div><!-- #post -->
|
includes/templates/borderless/entry-meta.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if ( $atts['meta_all'] ) : ?>
|
2 |
+
<div class="wc-shortcodes-footer-entry-meta wc-shortcodes-clearfix">
|
3 |
+
<?php if ( $atts['meta_comments'] ) : ?>
|
4 |
+
<?php if ( comments_open() ) : ?>
|
5 |
+
<span class="wc-shortcodes-comments-link">
|
6 |
+
<?php comments_popup_link( '<span class="wc-shortcodes-leave-reply">' . __( '0', 'wordpresscanvas' ) . '</span>', __( '1', 'wordpresscanvas' ), __( '%', 'wordpresscanvas' ) ); ?>
|
7 |
+
</span><!-- .comments-link -->
|
8 |
+
<?php endif; // comments_open() ?>
|
9 |
+
<?php endif; ?>
|
10 |
+
|
11 |
+
<?php
|
12 |
+
$meta = array();
|
13 |
+
// Post author
|
14 |
+
if ( $atts['meta_author'] ) {
|
15 |
+
$meta[] = sprintf( '<span class="wc-shortcodes-author"><span class="wc-shortcodes-by">' . __( 'By', 'wc_shortcodes' ) . '</span> <a class="wc-shortcodes-url" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
|
16 |
+
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
17 |
+
get_the_author(),
|
18 |
+
get_the_author()
|
19 |
+
);
|
20 |
+
}
|
21 |
+
?>
|
22 |
+
|
23 |
+
<?php
|
24 |
+
if ( $atts['meta_date'] && ! has_post_format( 'link' ) ) {
|
25 |
+
$meta[] = sprintf( '<span class="wc-shortcodes-date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="wc-shortcodes-entry-date" datetime="%3$s">%4$s</time></a></span>',
|
26 |
+
esc_url( get_permalink() ),
|
27 |
+
esc_attr( sprintf( __( 'Permalink to %s', 'wordpresscanvas' ), the_title_attribute( 'echo=0' ) ) ),
|
28 |
+
esc_attr( get_the_date( 'c' ) ),
|
29 |
+
esc_html( sprintf( '%2$s', get_post_format_string( get_post_format() ), get_the_date('M j, Y') ) )
|
30 |
+
);
|
31 |
+
}
|
32 |
+
?>
|
33 |
+
<?php echo implode( '<span class="wc-shortcodes-sep">|</span>', $meta ); ?>
|
34 |
+
</div><!-- .wc-shortcodes-footer-entry-meta -->
|
35 |
+
<?php endif; ?>
|
includes/templates/{index.php → borderless/index.php}
RENAMED
File without changes
|
includes/templates/{content-aside.php → box/content-aside.php}
RENAMED
File without changes
|
includes/templates/{content-audio.php → box/content-audio.php}
RENAMED
File without changes
|
includes/templates/{content-chat.php → box/content-chat.php}
RENAMED
File without changes
|
includes/templates/{content-excerpt.php → box/content-excerpt.php}
RENAMED
File without changes
|
includes/templates/{content-gallery.php → box/content-gallery.php}
RENAMED
File without changes
|
includes/templates/{content-link.php → box/content-link.php}
RENAMED
File without changes
|
includes/templates/{content-quote.php → box/content-quote.php}
RENAMED
File without changes
|
includes/templates/{content-video.php → box/content-video.php}
RENAMED
File without changes
|
includes/templates/{content.php → box/content.php}
RENAMED
File without changes
|
includes/templates/{entry-meta.php → box/entry-meta.php}
RENAMED
@@ -13,7 +13,7 @@
|
|
13 |
$meta = array();
|
14 |
// Post author
|
15 |
if ( $atts['meta_author'] ) {
|
16 |
-
$meta[] = sprintf( '<span class="wc-shortcodes-author"><span class="wc-shortcodes-by">By</span> <a class="wc-shortcodes-url" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
|
17 |
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
18 |
get_the_author(),
|
19 |
get_the_author()
|
13 |
$meta = array();
|
14 |
// Post author
|
15 |
if ( $atts['meta_author'] ) {
|
16 |
+
$meta[] = sprintf( '<span class="wc-shortcodes-author"><span class="wc-shortcodes-by">' . __( 'By', 'wc_shortcodes' ) . '</span> <a class="wc-shortcodes-url" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
|
17 |
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
18 |
get_the_author(),
|
19 |
get_the_author()
|
includes/templates/box/index.php
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$blog_use_excerpt = true;
|
3 |
+
$post_format = get_post_format();
|
4 |
+
if ( $blog_use_excerpt ) {
|
5 |
+
if ( empty( $post_format ) ) {
|
6 |
+
$post_format = 'excerpt';
|
7 |
+
}
|
8 |
+
}
|
9 |
+
|
10 |
+
$classes = wc_shortcodes_display_term_classes( $atts['taxonomy'] );
|
11 |
+
|
12 |
+
switch( $post_format ) {
|
13 |
+
case 'excerpt' :
|
14 |
+
include( 'content-excerpt.php' );
|
15 |
+
break;
|
16 |
+
case 'aside' :
|
17 |
+
include( 'content-aside.php' );
|
18 |
+
break;
|
19 |
+
case 'link' :
|
20 |
+
include( 'content-link.php' );
|
21 |
+
break;
|
22 |
+
case 'chat' :
|
23 |
+
include( 'content-chat.php' );
|
24 |
+
break;
|
25 |
+
case 'audio' :
|
26 |
+
include( 'content-audio.php' );
|
27 |
+
break;
|
28 |
+
case 'video' :
|
29 |
+
include( 'content-video.php' );
|
30 |
+
break;
|
31 |
+
case 'quote' :
|
32 |
+
include( 'content-quote.php' );
|
33 |
+
break;
|
34 |
+
case 'gallery' :
|
35 |
+
// wp_enqueue_script('wc-shortcodes-slider');
|
36 |
+
include( 'content-gallery.php' );
|
37 |
+
break;
|
38 |
+
default :
|
39 |
+
include( 'content.php' );
|
40 |
+
}
|
41 |
+
?>
|
includes/templates/nav-pagination.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
// Don't print empty markup if there's only one page.
|
3 |
-
if ( $
|
4 |
return;
|
5 |
?>
|
6 |
<nav class="navigation paging-navigation" role="navigation">
|
@@ -11,8 +11,8 @@ if ( $ml_query->max_num_pages < 2 )
|
|
11 |
$args = array(
|
12 |
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
|
13 |
'format' => '?page=%#%', // ?page=%#% : %#% is replaced by the page number
|
14 |
-
'total' => $
|
15 |
-
'current' => max( 1, $
|
16 |
'show_all' => false,
|
17 |
'prev_next' => true,
|
18 |
'prev_text' => __('Previous Page'),
|
1 |
<?php
|
2 |
// Don't print empty markup if there's only one page.
|
3 |
+
if ( $wc_shortcodes_posts_query->max_num_pages < 2 )
|
4 |
return;
|
5 |
?>
|
6 |
<nav class="navigation paging-navigation" role="navigation">
|
11 |
$args = array(
|
12 |
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
|
13 |
'format' => '?page=%#%', // ?page=%#% : %#% is replaced by the page number
|
14 |
+
'total' => $wc_shortcodes_posts_query->max_num_pages,
|
15 |
+
'current' => max( 1, $wc_shortcodes_posts_query->get('paged') ),
|
16 |
'show_all' => false,
|
17 |
'prev_next' => true,
|
18 |
'prev_text' => __('Previous Page'),
|
readme.txt
CHANGED
@@ -88,6 +88,12 @@ Use the shortcode manager in the TinyMCE text editor
|
|
88 |
|
89 |
== Changelog ==
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
### Version 1.54
|
92 |
|
93 |
* Fixed bug with image settings not previewing images
|
88 |
|
89 |
== Changelog ==
|
90 |
|
91 |
+
### Version 1.55
|
92 |
+
|
93 |
+
3977abe Updated TinyMCE button options for shortcodes
|
94 |
+
03cab7e Added new layout 'grid' and template options 'box' and 'borderless' for wc_posts shortcode
|
95 |
+
227f4b1 Fixed Translation issue - thanks ziofix
|
96 |
+
|
97 |
### Version 1.54
|
98 |
|
99 |
* Fixed bug with image settings not previewing images
|
wc-shortcodes.php
CHANGED
@@ -5,11 +5,11 @@ Plugin URI: http://webplantmedia.com/starter-themes/wordpresscanvas/features/sho
|
|
5 |
Description: A family of shortcodes to enhance site functionality.
|
6 |
Author: Chris Baldelomar
|
7 |
Author URI: http://webplantmedia.com/
|
8 |
-
Version: 1.
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
12 |
-
define( 'WC_SHORTCODES_VERSION', '1.
|
13 |
define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
|
14 |
define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
|
15 |
define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
5 |
Description: A family of shortcodes to enhance site functionality.
|
6 |
Author: Chris Baldelomar
|
7 |
Author URI: http://webplantmedia.com/
|
8 |
+
Version: 1.55
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
12 |
+
define( 'WC_SHORTCODES_VERSION', '1.55' );
|
13 |
define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
|
14 |
define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
|
15 |
define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|