Commit f297c716 authored by Simonas's avatar Simonas

plugins in progress

parent 07d3a82a
......@@ -103,9 +103,10 @@ Restart docker (sometimes PC restart may be required)
- docker load --input ourdemo.tar
- docker build -t biuro/web:0.0.2 .
- docker build -t biuro/web:0.0.3 .
- docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
- docker push biuro/web:0.0.2
- sudo docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
- docker push biuro/web:0.0.3
- sudo chown -R www-data:www-data wordpress/wp-content/plugins
......
......@@ -29,6 +29,11 @@ services:
- ./nginx/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./wp-content/plugins/biuro-contacts:/var/www/html/wp-content/plugins/biuro-contacts
- ./wp-content/plugins/biuro-feedbacks:/var/www/html/wp-content/plugins/biuro-feedbacks
- ./wp-content/plugins/biuro-sections:/var/www/html/wp-content/plugins/biuro-sections
- ./wp-content/plugins/biuro-services:/var/www/html/wp-content/plugins/biuro-services
- ./wp-content/plugins/biuro-values:/var/www/html/wp-content/plugins/biuro-values
- ./wp-content/plugins/cookies-warning:/var/www/html/wp-content/plugins/cookies-warning
- ./wp-content/plugins/data-controller:/var/www/html/wp-content/plugins/data-controller
- ./wp-content/plugins/jobs-importer:/var/www/html/wp-content/plugins/jobs-importer
......@@ -80,6 +85,11 @@ services:
- ./certs-data:/data/letsencrypt
- ./wp-content/plugins/biuro-contacts:/var/www/html/wp-content/plugins/biuro-contacts
- ./wp-content/plugins/biuro-feedbacks:/var/www/html/wp-content/plugins/biuro-feedbacks
- ./wp-content/plugins/biuro-sections:/var/www/html/wp-content/plugins/biuro-sections
- ./wp-content/plugins/biuro-services:/var/www/html/wp-content/plugins/biuro-services
- ./wp-content/plugins/biuro-values:/var/www/html/wp-content/plugins/biuro-values
- ./wp-content/plugins/cookies-warning:/var/www/html/wp-content/plugins/cookies-warning
- ./wp-content/plugins/data-controller:/var/www/html/wp-content/plugins/data-controller
- ./wp-content/plugins/jobs-importer:/var/www/html/wp-content/plugins/jobs-importer
......@@ -109,6 +119,11 @@ services:
- './var/wp-cli/cache:/etc/X11/fs/.wp-cli/cache'
- ./wp-content/plugins/biuro-contacts:/var/www/html/wp-content/plugins/biuro-contacts
- ./wp-content/plugins/biuro-feedbacks:/var/www/html/wp-content/plugins/biuro-feedbacks
- ./wp-content/plugins/biuro-sections:/var/www/html/wp-content/plugins/biuro-sections
- ./wp-content/plugins/biuro-services:/var/www/html/wp-content/plugins/biuro-services
- ./wp-content/plugins/biuro-values:/var/www/html/wp-content/plugins/biuro-values
- ./wp-content/plugins/cookies-warning:/var/www/html/wp-content/plugins/cookies-warning
- ./wp-content/plugins/data-controller:/var/www/html/wp-content/plugins/data-controller
- ./wp-content/plugins/jobs-importer:/var/www/html/wp-content/plugins/jobs-importer
......
<?php
/*
Plugin Name: Biuro Feedbacks
Description: Biuro Biuro Feedbacks plugin
Author: Biuro
Version: 1.0
Author URI: https://www.biuro.lt/
*/
class Biuro_Feedbacks extends WP_Widget {
// Main constructor
public function __construct() {
parent::__construct(
'biuro-feedbacks',
__( 'Biuro Feedbacks | Biuro', 'biuro' ),
array(
'customize_selective_refresh' => true,
)
);
}
// The widget form (for the backend )
public function form( $instance ) {
// Set widget defaults
$defaults = array(
'name1' => '',
'img1' => '',
'feedback1' => '',
'name2' => '',
'img2' => '',
'feedback2' => '',
'name3' => '',
'img3' => '',
'feedback3' => '',
'name4' => '',
'img4' => '',
'feedback4' => '',
'name5' => '',
'img5' => '',
'feedback5' => '',
'name6' => '',
'img6' => '',
'feedback6' => '',
'name7' => '',
'img7' => '',
'feedback7' => '',
'name8' => '',
'img8' => '',
'feedback8' => '',
);
// Parse current settings with defaults
extract( wp_parse_args( ( array ) $instance, $defaults ) ); ?>
<?php
for ($i = 1; $i <= 8; $i++):
?>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'name' . $i ) ); ?>"><?php _e( 'Name', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'name' . $i ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'name' . $i ) ); ?>" type="text" name="<?php echo esc_attr( ${'name' . $i} ); ?>" />
</p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'img' . $i ) ); ?>"><?php _e( 'Image', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<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" name="<?php echo esc_attr( ${'img' . $i} ); ?>" />
</p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'feedback' . $i ) ); ?>"><?php _e( 'Feedback', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'feedback' . $i ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'feedback' . $i ) ); ?>" rows="4"><?php echo wp_kses_post( ${'feedback' . $i} ); ?></textarea>
</p>
<?php
endfor;
?>
<?php }
// Update widget settings
public function update( $new_instance, $old_instance ) {
$instance = $old_instance;
for ($i = 1; $i <= 8; $i++):
$instance['name' . $i] = isset( $new_instance['name' . $i] ) ? wp_strip_all_tags( $new_instance['name' . $i] ) : '';
$instance['img' . $i] = isset( $new_instance['img' . $i] ) ? wp_strip_all_tags( $new_instance['img' . $i] ) : '';
$instance['feedback' . $i] = isset( $new_instance['feedback' . $i] ) ? wp_kses_post( $new_instance['feedback' . $i] ) : '';
endfor;
return $instance;
}
// Display the widget
public function widget( $args, $instance ) {
extract( $args );
for ($i = 1; $i <= 8; $i++):
${'name' . $i} = isset( $instance['name' . $i] ) ?$instance['name' . $i] : '';
${'img' . $i} = isset( $instance['img' . $i] ) ?$instance['img' . $i] : '';
${'feedback' . $i} = isset( $instance['feedback' . $i] ) ?$instance['feedback' . $i] : '';
endfor;
// WordPress core before_widget hook (always include )
echo $before_widget;
// Display the widget
echo '<div class="c-biuro-feedbacks">';
for ($i = 1; $i <= 8; $i++):
if ( ${'name' . $i} ) {
echo '<h3>' . ${'name' . $i} . ${'img' . $i} . '</h3>';
}
if ( ${'feedback' . $i} ) {
echo '<p>' . ${'feedback' . $i} . '</p>';
}
endfor;
echo '</div>';
// WordPress core after_widget hook (always include )
echo $after_widget;
}
}
// register Biuro_Feedbacks
add_action( 'widgets_init', function(){
register_widget( 'Biuro_Feedbacks' );
});
<?php
/*
Plugin title: Biuro sections
Description: Biuro Biuro sections plugin
Author: Biuro
Version: 1.0
Author URI: https://www.biuro.lt/
*/
class Biuro_Sections extends WP_Widget {
// Main constructor
public function __construct() {
parent::__construct(
'biuro-sections',
__( 'Biuro sections | Biuro', 'biuro' ),
array(
'customize_selective_refresh' => true,
)
);
}
// The widget form (for the backend )
public function form( $instance ) {
// Set widget defaults
$defaults = array(
'title1' => '',
'img1' => '',
'description1' => '',
'sections1' => '',
'title2' => '',
'img2' => '',
'description2' => '',
'sections2' => '',
'title3' => '',
'img3' => '',
'description3' => '',
'sections3' => '',
'title4' => '',
'img4' => '',
'description4' => '',
'sections4' => '',
'title5' => '',
'img5' => '',
'description5' => '',
'sections5' => '',
'title6' => '',
'img6' => '',
'description6' => '',
'sections6' => '',
'title7' => '',
'img7' => '',
'description7' => '',
'sections7' => '',
'title8' => '',
'img8' => '',
'description8' => '',
'sections8' => '',
);
// Parse current settings with defaults
extract( wp_parse_args( ( array ) $instance, $defaults ) ); ?>
<?php
for ($i = 1; $i <= 8; $i++):
?>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'title' . $i ) ); ?>"><?php _e( 'Title', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' . $i ) ); ?>" title="<?php echo esc_attr( $this->get_field_title( 'title' . $i ) ); ?>" type="text" title="<?php echo esc_attr( ${'title' . $i} ); ?>" />
</p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'img' . $i ) ); ?>"><?php _e( 'Icon', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'img' . $i ) ); ?>" title="<?php echo esc_attr( $this->get_field_title( 'img' . $i ) ); ?>" type="text" title="<?php echo esc_attr( ${'img' . $i} ); ?>" />
</p>
<p>
<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 ) ); ?>" title="<?php echo esc_attr( $this->get_field_title( 'description' . $i ) ); ?>" rows="4"><?php echo wp_kses_post( ${'description' . $i} ); ?></textarea>
</p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'sections' . $i ) ); ?>"><?php _e( 'Sections', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'sections' . $i ) ); ?>" title="<?php echo esc_attr( $this->get_field_title( 'sections' . $i ) ); ?>" rows="4"><?php echo wp_kses_post( ${'sections' . $i} ); ?></textarea>
</p>
<?php
endfor;
?>
<?php }
// Update widget settings
public function update( $new_instance, $old_instance ) {
$instance = $old_instance;
for ($i = 1; $i <= 8; $i++):
$instance['title' . $i] = isset( $new_instance['title' . $i] ) ? wp_strip_all_tags( $new_instance['title' . $i] ) : '';
$instance['img' . $i] = isset( $new_instance['img' . $i] ) ? wp_strip_all_tags( $new_instance['img' . $i] ) : '';
$instance['description' . $i] = isset( $new_instance['description' . $i] ) ? wp_kses_post( $new_instance['description' . $i] ) : '';
$instance['sections' . $i] = isset( $new_instance['sections' . $i] ) ? wp_kses_post( $new_instance['sections' . $i] ) : '';
endfor;
return $instance;
}
// Display the widget
public function widget( $args, $instance ) {
extract( $args );
for ($i = 1; $i <= 8; $i++):
${'title' . $i} = isset( $instance['title' . $i] ) ?$instance['title' . $i] : '';
${'img' . $i} = isset( $instance['img' . $i] ) ?$instance['img' . $i] : '';
${'description' . $i} = isset( $instance['description' . $i] ) ?$instance['description' . $i] : '';
${'sections' . $i} = isset( $instance['sections' . $i] ) ?$instance['sections' . $i] : '';
endfor;
// WordPress core before_widget hook (always include )
echo $before_widget;
// Display the widget
echo '<div class="c-biuro-sections">';
for ($i = 1; $i <= 8; $i++):
if ( ${'title' . $i} ) {
echo '<h3>' . ${'title' . $i} . ${'img' . $i} . '</h3>';
}
if ( ${'sections' . $i} ) {
echo '<p>' . ${'sections' . $i} . '</p>';
}
if ( ${'description' . $i} ) {
echo '<p>' . ${'description' . $i} . '</p>';
}
endfor;
echo '</div>';
// WordPress core after_widget hook (always include )
echo $after_widget;
}
}
// register Biuro_Sections
add_action( 'widgets_init', function(){
register_widget( 'Biuro_Sections' );
});
<?php
/*
Plugin title: Biuro Services
Description: Biuro Biuro Services plugin
Author: Biuro
Version: 1.0
Author URI: https://www.biuro.lt/
*/
class Biuro_Services extends WP_Widget {
// Main constructor
public function __construct() {
parent::__construct(
'biuro-services',
__( 'Biuro Services | Biuro', 'biuro' ),
array(
'customize_selective_refresh' => true,
)
);
}
// The widget form (for the backend )
public function form( $instance ) {
// Set widget defaults
$defaults = array(
'title1' => '',
'position1' => '',
'services1' => '',
'title2' => '',
'position2' => '',
'services2' => '',
'title3' => '',
'position3' => '',
'services3' => '',
'title4' => '',
'position4' => '',
'services4' => '',
'title5' => '',
'position5' => '',
'services5' => '',
'title6' => '',
'position6' => '',
'services6' => '',
'title7' => '',
'position7' => '',
'services7' => '',
'title8' => '',
'position8' => '',
'services8' => '',
);
// Parse current settings with defaults
extract( wp_parse_args( ( array ) $instance, $defaults ) ); ?>
<?php
for ($i = 1; $i <= 8; $i++):
?>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'title' . $i ) ); ?>"><?php _e( 'Title', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' . $i ) ); ?>" title="<?php echo esc_attr( $this->get_field_title( 'title' . $i ) ); ?>" type="text" title="<?php echo esc_attr( ${'title' . $i} ); ?>" />
</p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'position' . $i ) ); ?>"><?php _e( 'Position', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'position' . $i ) ); ?>" title="<?php echo esc_attr( $this->get_field_title( 'position' . $i ) ); ?>" type="text" title="<?php echo esc_attr( ${'position' . $i} ); ?>" />
</p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'services' . $i ) ); ?>"><?php _e( 'Services', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'services' . $i ) ); ?>" title="<?php echo esc_attr( $this->get_field_title( 'services' . $i ) ); ?>" rows="4"><?php echo wp_kses_post( ${'services' . $i} ); ?></textarea>
</p>
<?php
endfor;
?>
<?php }
// Update widget settings
public function update( $new_instance, $old_instance ) {
$instance = $old_instance;
for ($i = 1; $i <= 8; $i++):
$instance['title' . $i] = isset( $new_instance['title' . $i] ) ? wp_strip_all_tags( $new_instance['title' . $i] ) : '';
$instance['position' . $i] = isset( $new_instance['position' . $i] ) ? wp_strip_all_tags( $new_instance['position' . $i] ) : '';
$instance['services' . $i] = isset( $new_instance['services' . $i] ) ? wp_kses_post( $new_instance['services' . $i] ) : '';
endfor;
return $instance;
}
// Display the widget
public function widget( $args, $instance ) {
extract( $args );
for ($i = 1; $i <= 8; $i++):
${'title' . $i} = isset( $instance['title' . $i] ) ?$instance['title' . $i] : '';
${'position' . $i} = isset( $instance['position' . $i] ) ?$instance['position' . $i] : '';
${'services' . $i} = isset( $instance['services' . $i] ) ?$instance['services' . $i] : '';
endfor;
// WordPress core before_widget hook (always include )
echo $before_widget;
// Display the widget
echo '<div class="c-biuro-services">';
for ($i = 1; $i <= 8; $i++):
if ( ${'title' . $i} ) {
echo '<h3>' . ${'title' . $i} . '</h3>';
}
if ( ${'position' . $i} ) {
echo '<p><b>' . ${'position' . $i} . '</b></p>';
}
if ( ${'services' . $i} ) {
echo '<p>' . ${'services' . $i} . '</p>';
}
endfor;
echo '</div>';
// WordPress core after_widget hook (always include )
echo $after_widget;
}
}
// register Biuro_Services
add_action( 'widgets_init', function(){
register_widget( 'Biuro_Services' );
});
<?php
/*
Plugin Name: Biuro Values
Description: Biuro Biuro Values plugin
Author: Biuro
Version: 1.0
Author URI: https://www.biuro.lt/
*/
class Biuro_Values extends WP_Widget {
// Main constructor
public function __construct() {
parent::__construct(
'biuro-values',
__( 'Biuro Values | Biuro', 'biuro' ),
array(
'customize_selective_refresh' => true,
)
);
}
// The widget form (for the backend )
public function form( $instance ) {
// Set widget defaults
$defaults = array(
'value1' => '',
'content1' => '',
'value2' => '',
'content2' => '',
'value3' => '',
'content3' => '',
'value4' => '',
'content4' => '',
'value5' => '',
'content5' => '',
'value6' => '',
'content6' => '',
'value7' => '',
'content7' => '',
'value8' => '',
'content8' => '',
);
// Parse current settings with defaults
extract( wp_parse_args( ( array ) $instance, $defaults ) ); ?>
<?php
for ($i = 1; $i <= 8; $i++):
?>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'value' . $i ) ); ?>"><?php _e( 'Value', 'biuro' ); ?><?php echo ' ' . $i . ':'; ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'value' . $i ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'value' . $i ) ); ?>" type="text" value="<?php echo esc_attr( ${'value' . $i} ); ?>" />
</p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'content' . $i ) ); ?>"><?php _e( 'Content', '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>
<?php
endfor;
?>
<?php }
// Update widget settings
public function update( $new_instance, $old_instance ) {
$instance = $old_instance;
for ($i = 1; $i <= 8; $i++):
$instance['value' . $i] = isset( $new_instance['value' . $i] ) ? wp_strip_all_tags( $new_instance['value' . $i] ) : '';
$instance['content' . $i] = isset( $new_instance['content' . $i] ) ? wp_kses_post( $new_instance['content' . $i] ) : '';
endfor;
return $instance;
}
// Display the widget
public function widget( $args, $instance ) {
extract( $args );
for ($i = 1; $i <= 8; $i++):
${'value' . $i} = isset( $instance['value' . $i] ) ?$instance['value' . $i] : '';
${'content' . $i} = isset( $instance['content' . $i] ) ?$instance['content' . $i] : '';
endfor;
// WordPress core before_widget hook (always include )
echo $before_widget;
// Display the widget
echo '<div class="c-biuro-values">';
for ($i = 1; $i <= 8; $i++):
if ( ${'value' . $i} ) {
echo '<h3>' . ${'value' . $i} . '</h3>';
}
if ( ${'content' . $i} ) {
echo '<p>' . ${'content' . $i} . '</p>';
}
endfor;
echo '</div>';
// WordPress core after_widget hook (always include )
echo $after_widget;
}
}
// register Biuro_Values
add_action( 'widgets_init', function(){
register_widget( 'Biuro_Values' );
});
:root{--color--gray:#4d4d4d;--color--green:#006957;--typo--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Light","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;--typo--font-size:1.8rem;--typo--weight-slim:100;--typo--weight-regular:400;--typo--weight-bold:600;--typo--line-height:1.2;--typo--font-face:"PT Sans Narrow",sans-serif;--typo--font-face-additional:"Bebas Neue",sans-serif;--layout-width:63em}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}html{-webkit-box-sizing:border-box;box-sizing:border-box}*,:after,:before{-webkit-box-sizing:inherit;box-sizing:inherit}a,body{color:#4d4d4d;color:var(--color--gray)}body{font-size:1.8rem;font-size:var(--typo--font-size);line-height:1.2;line-height:var(--typo--line-height)}html{min-height:100%;font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}.l-content,.l-footer,.l-header,.l-inner{max-width:63em;max-width:var(--layout-width);margin-right:auto;margin-left:auto;padding-right:1em;padding-left:1em}.l-header{padding-top:15px;padding-bottom:15px}.o-nav{margin:0;padding:0;list-style:none}.c-cookies-warning{display:none}.c-data-controller{padding:0 1em;text-align:center;font-size:88%}.c-data-controller p{margin-bottom:0}.c-jobs-list{width:100%;margin:0 0 20px}.c-jobs-list--head{padding:10px}.c-jobs-list--col{padding:0 10px}.c-logo--svg{display:block}.c-nav--main{display:-webkit-box;display:-ms-flexbox;display:flex}.c-nav--sub,.u-hidden{display:none}@media (min-width:48em){:root{--typo--font-size:1.6rem;--typo--line-height:1.3}body{font-family:PT Sans Narrow,sans-serif;font-family:var(--typo--font-face)}.l-header{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.l-content,.l-header{display:-webkit-box;display:-ms-flexbox;display:flex}.l-aside{-webkit-box-flex:0;-ms-flex:0 0 16.25em;flex:0 0 16.25em}.l-main,.l-nav{-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%}.c-nav--main{padding-left:2em}}@media (max-width:47.999em){body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI Light,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-family:var(--typo--font-family);letter-spacing:-.08rem}.c-nav--main{margin:20px 0}}@media (min-width:30em){.c-jobs-list--col{padding:10px}}@media (max-width:29.999em){.c-jobs-list--col-position{padding-top:10px}}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
......@@ -123,6 +123,6 @@ document.querySelectorAll('.js-job-action').forEach(function (node) {
});
</script>
<script src="/wp-content/themes/biuro/js/main-a9a206ea.min.js" async></script>
<script src="/wp-content/themes/biuro/js/main.min.js" async></script>
</body>
</html>
......@@ -55,10 +55,13 @@
<p><a href="/darbo-pasiulymai/" style="color: blue">Daugiau darbo skelbimų</a></p>
<br>
<h2>Darbdaviams</h2>
<p>Bendradarbiaukime ir raskime geriausią sprendimą kartu, o jo įvykdymą patikėkite BIURO profesionalams. Ieškote darbuotojų? <a href="/kontaktai/personalo-nuomai/" style="color: blue">užpildykite užklausos formą</a> ir mes su Jumis susisieksime.</p>
<?php
if ( is_active_sidebar( 'front_page_values' ) ) :
dynamic_sidebar( 'front_page_values' );
endif;
?>
<br>
<h2>Partneriai</h2>
......@@ -74,12 +77,17 @@
</div>
<br>
<h2>Ieškai darbo</h2>
<div style="border: 1px solid red">
<?php
if ( is_active_sidebar( 'front_page_employees' ) ) :
dynamic_sidebar( 'front_page_employees' );
endif;
?>
<?php
echo do_shortcode('[biuro-contacts--employees-quick]');
?>
<br>
</div>
<?php get_footer();
......@@ -103,8 +103,10 @@ add_action( 'wp_footer', 'my_deregister_scripts' );
*/
function biuro_widger_areas() {
// unregister_widget('WP_Widget_Tag_Cloud');
register_sidebar( array(
'name' => 'Footer area',
'name' => 'Global: Footer area',
'id' => 'footer_main',
'before_widget' => '',
'after_widget' => '',
......@@ -113,20 +115,78 @@ function biuro_widger_areas() {
) );
register_sidebar( array(
'name' => 'Content append area',
'name' => 'Global: Content append area',
'id' => 'append_area',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
}
add_action( 'widgets_init', 'biuro_widger_areas' );
register_sidebar( array(
'name' => 'Front page: Feedbacks',
'id' => 'front_page_feedbacks',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
register_sidebar( array(
'name' => 'Front page: Biuro values',
'id' => 'front_page_values',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
register_sidebar( array(
'name' => 'Front page: Employees',
'id' => 'front_page_employees',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
register_sidebar( array(
'name' => 'Sales page: Biuro services',
'id' => 'sales_page_services',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
register_sidebar( array(
'name' => 'Sales page: Biuro values',
'id' => 'sales_page_values',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
register_sidebar( array(
'name' => 'Sales page: Employers',
'id' => 'sales_page_employers',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
register_sidebar( array(
'name' => 'Sales page: Sections',
'id' => 'sales_page_sections',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
}
add_action( 'widgets_init', 'biuro_widger_areas' );
/**
* Disable the emoji's
......
......@@ -31,16 +31,16 @@ define('cityID', $cityID);
get_template_part( 'template-parts/meta/canonical');
?>
<style><?php include 'css/core-a25434ed1d.min.css'; ?></style>
<style><?php include 'css/core.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.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.min.css">
</noscript>
<?php wp_head(); ?>
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -40,7 +40,13 @@ wp plugin update --all
# Activate plugin.
wp plugin activate akismet --network
wp plugin activate biuro-contacts --network
wp plugin activate biuro-feedbacks --network
wp plugin activate biuro-sections --network
wp plugin activate biuro-services --network
wp plugin activate biuro-values --network
wp plugin activate cookies-warning --network
wp plugin activate data-controller --network
# wp plugin activate jobs-importer
......
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