| @@ -36,26 +36,25 @@ | ||
| 36 | 36 | 'queryTax' => [ |
| 37 | 37 | 'type' => 'string', |
| 38 | 38 | 'default' => 'category' |
| 39 | 39 | ], |
| 40 | - 'queryCat' => [ | |
| 40 | + 'queryTaxValue' => [ | |
| 41 | 41 | 'type' => 'string', |
| 42 | 42 | 'default' => '[]', |
| 43 | 43 | 'style' => [ |
| 44 | 44 | (object)[ |
| 45 | - 'depends' => [(object)['key' => 'queryTax','condition' => '==','value' => 'category']] | |
| 45 | + 'depends' => [(object)['key' => 'queryTax','condition' => '!=','value' => '']] | |
| 46 | 46 | ], |
| 47 | 47 | ], |
| 48 | 48 | ], |
| 49 | - 'queryTag' => [ | |
| 49 | + 'queryCat' => [ // for compatibility | |
| 50 | 50 | 'type' => 'string', |
| 51 | - 'default' => '[]', | |
| 52 | - 'style' => [ | |
| 53 | - (object)[ | |
| 54 | - 'depends' => [(object)['key' => 'queryTax','condition' => '==','value' => 'post_tag']] | |
| 55 | - ], | |
| 56 | - ], | |
| 51 | + 'default' => '[]' | |
| 57 | 52 | ], |
| 53 | + 'queryTag' => [ // for compatibility | |
| 54 | + 'type' => 'string', | |
| 55 | + 'default' => '[]' | |
| 56 | + ], | |
| 58 | 57 | 'queryOrderBy' => [ |
| 59 | 58 | 'type' => 'string', |
| 60 | 59 | 'default' => 'date', |
| 61 | 60 | ], |
| @@ -1001,9 +1000,9 @@ | ||
| 1001 | 1000 | 'depends' => [ |
| 1002 | 1001 | (object)['key'=>'catShow','condition'=>'==','value'=>true], |
| 1003 | 1002 | (object)['key'=>'customCatColor','condition'=>'!=','value'=>true], |
| 1004 | 1003 | ], |
| 1005 | - 'selector'=>'{{ULTP}} .ultp-category-grid a { color:{{catColor}}; }' | |
| 1004 | + 'selector'=>'{{ULTP}} .ultp-block-item .ultp-category-grid a { color:{{catColor}}; }' | |
| 1006 | 1005 | ], |
| 1007 | 1006 | ], |
| 1008 | 1007 | ], |
| 1009 | 1008 | 'catBgColor' => [ |
| @@ -1524,26 +1523,25 @@ | ||
| 1524 | 1523 | 'filterText' => [ |
| 1525 | 1524 | 'type' => 'string', |
| 1526 | 1525 | 'default' => 'all' |
| 1527 | 1526 | ], |
| 1528 | - 'filterCat' => [ | |
| 1527 | + 'filterValue' => [ | |
| 1529 | 1528 | 'type' => 'string', |
| 1530 | 1529 | 'default' => '[]', |
| 1531 | 1530 | 'style' => [ |
| 1532 | 1531 | (object)[ |
| 1533 | - 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'category']] | |
| 1532 | + 'depends' => [(object)['key' => 'filterType','condition' => '!=','value' => '']] | |
| 1534 | 1533 | ], |
| 1535 | 1534 | ], |
| 1536 | 1535 | ], |
| 1537 | - 'filterTag' => [ | |
| 1536 | + 'filterCat' => [ // for compatibility | |
| 1538 | 1537 | 'type' => 'string', |
| 1539 | 1538 | 'default' => '[]', |
| 1540 | - 'style' => [ | |
| 1541 | - (object)[ | |
| 1542 | - 'depends' => [(object)['key' => 'filterType','condition' => '==','value' => 'post_tag']] | |
| 1543 | - ], | |
| 1544 | - ], | |
| 1545 | 1539 | ], |
| 1540 | + 'filterTag' => [ // for compatibility | |
| 1541 | + 'type' => 'string', | |
| 1542 | + 'default' => '[]', | |
| 1543 | + ], | |
| 1546 | 1544 | 'fliterTypo' => [ |
| 1547 | 1545 | 'type' => 'object', |
| 1548 | 1546 | 'default' => (object)['openTypography' => 1,'size' => (object)['lg' =>14, 'unit' =>'px'],'height' => (object)['lg' =>18, 'unit' =>'px'], 'decoration' => 'none','family'=>'','weight'=>500], |
| 1549 | 1547 | 'style' => [ |
| @@ -1862,15 +1860,15 @@ | ||
| 1862 | 1860 | ], |
| 1863 | 1861 | ], |
| 1864 | 1862 | 'pagiHoverbg' => [ |
| 1865 | 1863 | 'type' => 'object', |
| 1866 | - 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#1740f5', 'replace'=>1], | |
| 1864 | + 'default' => (object)['openColor' => 1, 'type' => 'color', 'color' => '#1740f5','replace'=>1], | |
| 1867 | 1865 | 'style' => [ |
| 1868 | 1866 | (object)[ |
| 1869 | 1867 | 'depends' => [ |
| 1870 | 1868 | (object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 1871 | 1869 | ], |
| 1872 | - '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}} }}' | |
| 1870 | + '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}} }' | |
| 1873 | 1871 | ], |
| 1874 | 1872 | ], |
| 1875 | 1873 | ], |
| 1876 | 1874 | 'pagiHoverBorder' => [ |
| @@ -1904,9 +1902,9 @@ | ||
| 1904 | 1902 | (object)[ |
| 1905 | 1903 | 'depends' => [ |
| 1906 | 1904 | (object)['key'=>'paginationShow','condition'=>'==','value'=>true], |
| 1907 | 1905 | ], |
| 1908 | - 'selector'=>'{{ULTP}} .ultp-pagination li a:hover, {{ULTP}} .ultp-next-prev-wrap ul li a:hover, {{ULTP}} .ultp-loadmore-action:hover { border-radius:{{pagiHoverRadius}}; }' | |
| 1906 | + '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}}; }' | |
| 1909 | 1907 | ], |
| 1910 | 1908 | ], |
| 1911 | 1909 | ], |
| 1912 | 1910 | 'pagiPadding' => [ |
| @@ -2123,10 +2121,10 @@ | ||
| 2123 | 2121 | ); |
| 2124 | 2122 | } |
| 2125 | 2123 | public function content($attr, $noAjax) { |
| 2126 | 2124 | if(!$noAjax){ |
| 2127 | - $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
| 2128 | - $attr['paged'] = $paged; | |
| 2125 | + $paged = is_front_page() ? get_query_var('page') : get_query_var('paged'); | |
| 2126 | + $attr['paged'] = $paged ? $paged : 1; | |
| 2129 | 2127 | } |
| 2130 | 2128 | |
| 2131 | 2129 | $block_name = 'post-grid-5'; |
| 2132 | 2130 | $page_post_id = get_the_ID(); |