PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.2.5
Post Grid Gutenberg Blocks – PostX v2.2.5
5.0.41 5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 5.0.17 2.1.1 All 238 releases
← All changes | blocks/Post_Grid_3.php +22 -24 2.1.1 → 2.2.5 View file →
@@ -50,26 +50,25 @@
50 50 'queryTax' => [
51 51 'type' => 'string',
52 52 'default' => 'category'
53 53 ],
54 - 'queryCat' => [
54 + 'queryTaxValue' => [
55 55 'type' => 'string',
56 56 'default' => '[]',
57 57 'style' => [
58 58 (object)[
59 - 'depends' => [(object)['key' => 'queryTax','condition' => '==','value' => 'category']]
59 + 'depends' => [(object)['key' => 'queryTax','condition' => '!=','value' => '']]
60 60 ],
61 61 ],
62 62 ],
63 - 'queryTag' => [
63 + 'queryCat' => [ // for compatibility
64 64 'type' => 'string',
65 - 'default' => '[]',
66 - 'style' => [
67 - (object)[
68 - 'depends' => [(object)['key' => 'queryTax','condition' => '==','value' => 'post_tag']]
69 - ],
70 - ],
65 + 'default' => '[]'
71 66 ],
67 + 'queryTag' => [ // for compatibility
68 + 'type' => 'string',
69 + 'default' => '[]'
70 + ],
72 71 'queryOrderBy' => [
73 72 'type' => 'string',
74 73 'default' => 'date',
75 74 ],
@@ -1026,9 +1025,9 @@
1026 1025 'depends' => [
1027 1026 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1028 1027 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1029 1028 ],
1030 - 'selector'=>'{{ULTP}} .ultp-category-grid a { color:{{catColor}}; }'
1029 + 'selector'=>'{{ULTP}} .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }'
1031 1030 ],
1032 1031 ],
1033 1032 ],
1034 1033 'catBgColor' => [
@@ -1551,26 +1550,25 @@
1551 1550 'filterText' => [
1552 1551 'type' => 'string',
1553 1552 'default' => 'all'
1554 1553 ],
1555 - 'filterCat' => [
1554 + 'filterValue' => [
1556 1555 'type' => 'string',
1557 1556 'default' => '[]',
1558 1557 'style' => [
1559 1558 (object)[
1560 - 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'category']]
1559 + 'depends' => [(object)['key' => 'filterType','condition' => '!=','value' => '']]
1561 1560 ],
1562 1561 ],
1563 1562 ],
1564 - 'filterTag' => [
1563 + 'filterCat' => [ // for compatibility
1565 1564 'type' => 'string',
1566 - 'default' => '[]',
1567 - 'style' => [
1568 - (object)[
1569 - 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'post_tag']]
1570 - ],
1571 - ],
1565 + 'default' => '[]'
1572 1566 ],
1567 + 'filterTag' => [ // for compatibility
1568 + 'type' => 'string',
1569 + 'default' => '[]'
1570 + ],
1573 1571 'fliterTypo' => [
1574 1572 'type' => 'object',
1575 1573 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>18, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500],
1576 1574 'style' => [
@@ -1911,15 +1909,15 @@
1911 1909 ],
1912 1910 ],
1913 1911 'pagiHoverbg' => [
1914 1912 'type' => 'object',
1915 - 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#1740f5', 'replace'=>1],
1913 + 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#1740f5','replace'=>1],
1916 1914 'style' => [
1917 1915 (object)[
1918 1916 'depends' => [
1919 1917 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1920 1918 ],
1921 - 'selector'=>'{{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover { {{pagiHoverbg}} } @media (min-width: 768px) { {{ULTP}} .ultp-pagination li a:hover { {{pagiHoverbg}} }}'
1919 + 'selector'=>'{{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-pagination-wrap .ultp-pagination li a:focus, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover{ {{pagiHoverbg}} }'
1922 1920 ],
1923 1921 ],
1924 1922 ],
1925 1923 'pagiHoverBorder' => [
@@ -1953,9 +1951,9 @@
1953 1951 (object)[
1954 1952 'depends' => [
1955 1953 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1956 1954 ],
1957 - 'selector'=>'{{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover { border-radius:{{pagiHoverRadius}}; }'
1955 + 'selector'=>'{{ULTP}} .ultp-pagination li.pagination-active a, {{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover { border-radius:{{pagiHoverRadius}}; }'
1958 1956 ],
1959 1957 ],
1960 1958 ],
1961 1959 'pagiPadding' => [
@@ -2190,10 +2188,10 @@
2190 2188
2191 2189 public function content($attr, $noAjax) {
2192 2190
2193 2191 if(!$noAjax){
2194 - $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
2195 - $attr['paged'] = $paged;
2192 + $paged = is_front_page() ? get_query_var('page') : get_query_var('paged');
2193 + $attr['paged'] = $paged ? $paged : 1;
2196 2194 }
2197 2195
2198 2196 $block_name = 'post-grid-3';
2199 2197 $page_post_id = get_the_ID();