Commit 808ef4a6 authored by Simonas's avatar Simonas

UI changes

parent d52de7bf
This diff is collapsed.
This diff is collapsed.
......@@ -74,13 +74,15 @@ class Biuro_Sections extends WP_Widget {
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'img' . $i ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'img' . $i ) ); ?>" type="text" value="<?php echo esc_attr( ${'img' . $i} ); ?>" />
</p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'description' . $i ) ); ?>"><?php _e( 'Section', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<label for="<?php echo esc_attr( $this->get_field_id( 'description' . $i ) ); ?>"><?php _e( 'Description', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'description' . $i ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'description' . $i ) ); ?>" rows="4"><?php echo wp_kses_post( ${'description' . $i} ); ?></textarea>
</p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'content' . $i ) ); ?>"><?php _e( 'Section', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'content' . $i ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'content' . $i ) ); ?>" rows="4"><?php echo wp_kses_post( ${'content' . $i} ); ?></textarea>
</p>
<hr>
<?php
endfor;
?>
......
......@@ -4,7 +4,7 @@
/* critical:end */
.pods-pagination-paginate { display: block; padding-bottom: 1em; text-align: center; }
.pods-pagination-paginate { display: block; padding-bottom: 1em; }
.page-numbers { margin: 0 1px; padding: 1px;
&.current { font-weight: var(--typo--weight-bold); }
......
This diff is collapsed.
This diff is collapsed.
......@@ -33,14 +33,14 @@ define('cityID', $cityID);
<style><?php include 'css/core-a25434ed1d.min.css'; ?></style>
<link rel="preload" href="/wp-content/themes/biuro/css/main-8c9c954583.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="/wp-content/themes/biuro/css/main-dcf0970343.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="/wp-content/themes/biuro/fonts/pt_sans_narrow.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/wp-content/themes/biuro/fonts/pt_sans_narrow_bold.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/wp-content/themes/biuro/fonts/bebas-neue.woff2" as="font" type="font/woff2" crossorigin>
<noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-8c9c954583.min.css">
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-dcf0970343.min.css">
</noscript>
<?php wp_head(); ?>
......
......@@ -153,8 +153,13 @@
endforeach;
endif;
usort($options, function ($a, $b) {
return $a['total'] < $b['total'];
usort($options, function($a, $b) {
$t = $b['total'] - $a['total'];
if ($t):
return $t;
endif;
return $a['name'] > $b['name'];
});
?>
<datalist id="search-queries">
......
......@@ -15,7 +15,7 @@ global $jobs;
<table cellspacing="0" cellpadding="0" class="c-jobs-list">
<tr>
<th class="c-jobs-list--head">Pozicija </th>
<th class="c-jobs-list--head">Pozicija</th>
<th class="c-jobs-list--head">Vietovė</th>
<th class="c-jobs-list--head">Galioja iki</th>
</tr>
......@@ -32,7 +32,22 @@ global $jobs;
</a>
</td>
<td class="c-jobs-list--col c-jobs-list--col-city">
<?php echo $jobs->display( 'city' ); ?>
<?php
$cities = $jobs->field( 'city');
$count = 0;
foreach($cities as $city):
if ($count):
echo ', ';
endif;
echo $city['name'];
$count++;
endforeach;
// echo $jobs->display( 'city' );
?>
</td>
<td class="c-jobs-list--col c-jobs-list--col-valid">
<?php echo date_i18n( get_option( 'date_format' ), strtotime( $jobs->field( 'valid' ) ) ); ?>
......@@ -49,8 +64,8 @@ global $jobs;
if ( !is_front_page() ):
echo $jobs->pagination( array(
'type' => 'paginate' ,
'prev_text' => '‹ ' . pll__('Previous'),
'next_text' => pll__('Next') . ' ›'
'prev_text' => '',
'next_text' => ''
) );
endif;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment