| @@ -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 | ], |
| @@ -1004,9 +1003,9 @@ | ||
| 1004 | 1003 | 'depends' => [ |
| 1005 | 1004 | (object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1006 | 1005 | (object)['key'=>'customCatColor','condition'=>'!=','value'=>true], |
| 1007 | 1006 | ], |
| 1008 | - 'selector'=>'{{ULTP}} .ultp-category-grid a { color:{{catColor}}; }' | |
| 1007 | + 'selector'=>'{{ULTP}} .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }' | |
| 1009 | 1008 | ], |
| 1010 | 1009 | ], |
| 1011 | 1010 | ], |
| 1012 | 1011 | 'catBgColor' => [ |
| @@ -1523,26 +1522,25 @@ | ||
| 1523 | 1522 | 'filterText' => [ |
| 1524 | 1523 | 'type' => 'string', |
| 1525 | 1524 | 'default' => 'all' |
| 1526 | 1525 | ], |
| 1527 | - 'filterCat' => [ | |
| 1526 | + 'filterValue' => [ | |
| 1528 | 1527 | 'type' => 'string', |
| 1529 | 1528 | 'default' => '[]', |
| 1530 | 1529 | 'style' => [ |
| 1531 | 1530 | (object)[ |
| 1532 | - 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'category']] | |
| 1531 | + 'depends' => [(object)['key' => 'filterType','condition' => '!=','value' => '']] | |
| 1533 | 1532 | ], |
| 1534 | 1533 | ], |
| 1535 | 1534 | ], |
| 1536 | - 'filterTag' => [ | |
| 1535 | + 'filterCat' => [ // for compatibility | |
| 1537 | 1536 | 'type' => 'string', |
| 1538 | - 'default' => '[]', | |
| 1539 | - 'style' => [ | |
| 1540 | - (object)[ | |
| 1541 | - 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'post_tag']] | |
| 1542 | - ], | |
| 1543 | - ], | |
| 1537 | + 'default' => '[]' | |
| 1544 | 1538 | ], |
| 1539 | + 'filterTag' => [ // for compatibility | |
| 1540 | + 'type' => 'string', | |
| 1541 | + 'default' => '[]' | |
| 1542 | + ], | |
| 1545 | 1543 | 'fliterTypo' => [ |
| 1546 | 1544 | 'type' => 'object', |
| 1547 | 1545 | 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>18, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500], |
| 1548 | 1546 | 'style' => [ |
| @@ -1861,15 +1859,15 @@ | ||
| 1861 | 1859 | ], |
| 1862 | 1860 | ], |
| 1863 | 1861 | 'pagiHoverbg' => [ |
| 1864 | 1862 | 'type' => 'object', |
| 1865 | - 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#1740f5', 'replace'=>1], | |
| 1863 | + 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#1740f5','replace'=>1], | |
| 1866 | 1864 | 'style' => [ |
| 1867 | 1865 | (object)[ |
| 1868 | 1866 | 'depends' => [ |
| 1869 | 1867 | (object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 1870 | 1868 | ], |
| 1871 | - '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}} }}' | |
| 1869 | + '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}} }' | |
| 1872 | 1870 | ], |
| 1873 | 1871 | ], |
| 1874 | 1872 | ], |
| 1875 | 1873 | 'pagiHoverBorder' => [ |
| @@ -1903,9 +1901,9 @@ | ||
| 1903 | 1901 | (object)[ |
| 1904 | 1902 | 'depends' => [ |
| 1905 | 1903 | (object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 1906 | 1904 | ], |
| 1907 | - 'selector'=>'{{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover { border-radius:{{pagiHoverRadius}}; }' | |
| 1905 | + '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}}; }' | |
| 1908 | 1906 | ], |
| 1909 | 1907 | ], |
| 1910 | 1908 | ], |
| 1911 | 1909 | 'pagiPadding' => [ |
| @@ -2126,10 +2124,10 @@ | ||
| 2126 | 2124 | |
| 2127 | 2125 | public function content($attr, $noAjax) { |
| 2128 | 2126 | |
| 2129 | 2127 | if(!$noAjax){ |
| 2130 | - $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
| 2131 | - $attr['paged'] = $paged; | |
| 2128 | + $paged = is_front_page() ? get_query_var('page') : get_query_var('paged'); | |
| 2129 | + $attr['paged'] = $paged ? $paged : 1; | |
| 2132 | 2130 | } |
| 2133 | 2131 | |
| 2134 | 2132 | $block_name = 'post-grid-7'; |
| 2135 | 2133 | $page_post_id = get_the_ID(); |