PluginProbe
Post Grid Gutenberg Blocks – PostX / 2.2.5
Post Grid Gutenberg Blocks – PostX v2.2.5
5.1.1 5.1.0 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 All 240 releases
← All changes | blocks/Post_Grid_4.php +21 -23 2.1.1 → 2.2.5 View file →
@@ -43,26 +43,25 @@
43 43 'queryTax' => [
44 44 'type' => 'string',
45 45 'default' => 'category'
46 46 ],
47 - 'queryCat' => [
47 + 'queryTaxValue' => [
48 48 'type' => 'string',
49 49 'default' => '[]',
50 50 'style' => [
51 51 (object)[
52 - 'depends' => [(object)['key' => 'queryTax','condition' => '==','value' => 'category']]
52 + 'depends' => [(object)['key' => 'queryTax','condition' => '!=','value' => '']]
53 53 ],
54 54 ],
55 55 ],
56 - 'queryTag' => [
56 + 'queryCat' => [ // for compatibility
57 57 'type' => 'string',
58 - 'default' => '[]',
59 - 'style' => [
60 - (object)[
61 - 'depends' => [(object)['key' => 'queryTax','condition' => '==','value' => 'post_tag']]
62 - ],
63 - ],
58 + 'default' => '[]'
64 59 ],
60 + 'queryTag' => [ // for compatibility
61 + 'type' => 'string',
62 + 'default' => '[]'
63 + ],
65 64 'queryOrderBy' => [
66 65 'type' => 'string',
67 66 'default' => 'date',
68 67 ],
@@ -1016,9 +1015,9 @@
1016 1015 'depends' => [
1017 1016 (object)['key'=>'catShow','condition'=>'==','value'=>true],
1018 1017 (object)['key'=>'customCatColor','condition'=>'!=','value'=>true],
1019 1018 ],
1020 - 'selector'=>'{{ULTP}} .ultp-category-grid a { color:{{catColor}}; }'
1019 + 'selector'=>'{{ULTP}} .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }'
1021 1020 ],
1022 1021 ],
1023 1022 ],
1024 1023 'catBgColor' => [
@@ -1535,26 +1534,25 @@
1535 1534 'filterText' => [
1536 1535 'type' => 'string',
1537 1536 'default' => 'all'
1538 1537 ],
1539 - 'filterCat' => [
1538 + 'filterValue' => [
1540 1539 'type' => 'string',
1541 1540 'default' => '[]',
1542 1541 'style' => [
1543 1542 (object)[
1544 - 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'category']]
1543 + 'depends' => [(object)['key' => 'filterType','condition' => '!=','value' => '']]
1545 1544 ],
1546 1545 ],
1547 1546 ],
1548 - 'filterTag' => [
1547 + 'filterCat' => [ // for compatibility
1549 1548 'type' => 'string',
1550 1549 'default' => '[]',
1551 - 'style' => [
1552 - (object)[
1553 - 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'post_tag']]
1554 - ],
1555 - ],
1556 1550 ],
1551 + 'filterTag' => [ // for compatibility
1552 + 'type' => 'string',
1553 + 'default' => '[]',
1554 + ],
1557 1555 'fliterTypo' => [
1558 1556 'type' => 'object',
1559 1557 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>18, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500],
1560 1558 'style' => [
@@ -1873,15 +1871,15 @@
1873 1871 ],
1874 1872 ],
1875 1873 'pagiHoverbg' => [
1876 1874 'type' => 'object',
1877 - 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#1740f5', 'replace'=>1],
1875 + 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#1740f5','replace'=>1],
1878 1876 'style' => [
1879 1877 (object)[
1880 1878 'depends' => [
1881 1879 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1882 1880 ],
1883 - '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}} }}'
1881 + '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}} }'
1884 1882 ],
1885 1883 ],
1886 1884 ],
1887 1885 'pagiHoverBorder' => [
@@ -1915,9 +1913,9 @@
1915 1913 (object)[
1916 1914 'depends' => [
1917 1915 (object)['key'=>'paginationShow','condition'=>'==','value'=>true],
1918 1916 ],
1919 - 'selector'=>'{{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover { border-radius:{{pagiHoverRadius}}; }'
1917 + '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}}; }'
1920 1918 ],
1921 1919 ],
1922 1920 ],
1923 1921 'pagiPadding' => [
@@ -2138,10 +2136,10 @@
2138 2136
2139 2137 public function content($attr, $noAjax) {
2140 2138
2141 2139 if(!$noAjax){
2142 - $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
2143 - $attr['paged'] = $paged;
2140 + $paged = is_front_page() ? get_query_var('page') : get_query_var('paged');
2141 + $attr['paged'] = $paged ? $paged : 1;
2144 2142 }
2145 2143
2146 2144 $block_name = 'post-grid-4';
2147 2145 $page_post_id = get_the_ID();