@@ -797,16 +797,6 @@ protected function render()
797797 {
798798 $ settings = $ this ->get_settings_for_display ();
799799
800- if (isset ($ _GET ['s ' ]) || is_archive ()){
801- if ($ settings ['all_post ' ]!='all ' ){
802- echo 'latest ' .$ settings ['posts_per_page ' ]."post " ;
803- }
804- else {
805- echo 'latest post ' ;
806- }
807- }
808- else {
809-
810800 if ($ settings ['posts_per_page ' ] == null ) {
811801 $ settings ['posts_per_page ' ] = 4 ;
812802 }
@@ -892,7 +882,7 @@ protected function render()
892882 echo '<div class="categories-links"> ' ;
893883 foreach ($ categories as $ category ) {
894884 $ category_link = add_query_arg ('category ' , $ category ->slug , $ page_link );
895- echo '<a href=" ' . $ category_link . '" class="category"> ' . $ category ->name . ' </a> ' ;
885+ echo '<a href=" ' . $ category_link . '" class="category"> ' . $ category ->name . ' </a> ' ;
896886 }
897887 echo '</div> ' ;
898888 }
@@ -901,7 +891,7 @@ protected function render()
901891 if (!empty ($ categories )) {
902892 echo '<div class="categories-links"> ' ;
903893 foreach ($ categories as $ category ) {
904- echo '<a href=" ' . get_category_link ($ category ->term_id ) . '" class="category"> ' . $ category ->name . ' </a> ' ;
894+ echo '<a href=" ' . get_category_link ($ category ->term_id ) . '" class="category"> ' . $ category ->name . ' </a> ' ;
905895 }
906896 echo '</div> ' ;
907897 }
@@ -940,7 +930,7 @@ protected function render()
940930 echo '<div class="categories-links"> ' ;
941931 foreach ($ categories as $ category ) {
942932 $ category_link = add_query_arg ('category ' , $ category ->slug , $ page_link );
943- echo '<a href=" ' . $ category_link . '" class="category"> ' . $ category ->name . ' </a> ' ;
933+ echo '<a href=" ' . $ category_link . '" class="category"> ' . $ category ->name . ' </a> ' ;
944934 }
945935 echo '</div> ' ;
946936 }
@@ -949,7 +939,7 @@ protected function render()
949939 if (!empty ($ categories )) {
950940 echo '<div class="categories-links"> ' ;
951941 foreach ($ categories as $ category ) {
952- echo '<a href=" ' . get_category_link ($ category ->term_id ) . '" class="category"> ' . $ category ->name . ' </a> ' ;
942+ echo '<a href=" ' . get_category_link ($ category ->term_id ) . '" class="category"> ' . $ category ->name . ' </a> ' ;
953943 }
954944 echo '</div> ' ;
955945 }
@@ -1080,7 +1070,6 @@ protected function render()
10801070 .category {
10811071 margin-top: 0px;
10821072 margin-bottom: 0px;
1083- padding: 0 5px;
10841073 font-size: 18px;
10851074 color:black;
10861075 display:none;
@@ -1130,4 +1119,3 @@ protected function render()
11301119 </style> ' ;
11311120 }
11321121}
1133- }
0 commit comments