Commit 1d356842 authored by Simonas's avatar Simonas

plugins fix, UI update

parent f297c716
<?php
/*
Plugin Name: Biuro Feedbacks
Description: Biuro Biuro Feedbacks plugin
Description: Biuro Feedbacks plugin
Author: Biuro
Version: 1.0
Author URI: https://www.biuro.lt/
......
<?php
/*
Plugin title: Biuro sections
Description: Biuro Biuro sections plugin
Plugin Name: Biuro Sections
Description: Biuro Sections plugin
Author: Biuro
Version: 1.0
Author URI: https://www.biuro.lt/
......@@ -13,7 +13,7 @@ class Biuro_Sections extends WP_Widget {
public function __construct() {
parent::__construct(
'biuro-sections',
__( 'Biuro sections | Biuro', 'biuro' ),
__( 'Biuro Sections | Biuro', 'biuro' ),
array(
'customize_selective_refresh' => true,
)
......@@ -27,35 +27,35 @@ class Biuro_Sections extends WP_Widget {
'title1' => '',
'img1' => '',
'description1' => '',
'sections1' => '',
'content1' => '',
'title2' => '',
'img2' => '',
'description2' => '',
'sections2' => '',
'content2' => '',
'title3' => '',
'img3' => '',
'description3' => '',
'sections3' => '',
'content3' => '',
'title4' => '',
'img4' => '',
'description4' => '',
'sections4' => '',
'content4' => '',
'title5' => '',
'img5' => '',
'description5' => '',
'sections5' => '',
'content5' => '',
'title6' => '',
'img6' => '',
'description6' => '',
'sections6' => '',
'content6' => '',
'title7' => '',
'img7' => '',
'description7' => '',
'sections7' => '',
'content7' => '',
'title8' => '',
'img8' => '',
'description8' => '',
'sections8' => '',
'content8' => '',
);
......@@ -67,19 +67,19 @@ class Biuro_Sections extends WP_Widget {
?>
<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} ); ?>" />
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' . $i ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' . $i ) ); ?>" type="text" value="<?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} ); ?>" />
<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" value="<?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>
<label for="<?php echo esc_attr( $this->get_field_id( 'description' . $i ) ); ?>"><?php _e( 'Section', '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( '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>
<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>
<?php
endfor;
......@@ -95,7 +95,7 @@ class Biuro_Sections extends WP_Widget {
$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] ) : '';
$instance['content' . $i] = isset( $new_instance['content' . $i] ) ? wp_kses_post( $new_instance['content' . $i] ) : '';
endfor;
return $instance;
......@@ -109,7 +109,7 @@ class Biuro_Sections extends WP_Widget {
${'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] : '';
${'content' . $i} = isset( $instance['content' . $i] ) ?$instance['content' . $i] : '';
endfor;
// WordPress core before_widget hook (always include )
......@@ -119,15 +119,13 @@ class Biuro_Sections extends WP_Widget {
for ($i = 1; $i <= 8; $i++):
if ( ${'title' . $i} ) {
echo '<h3>' . ${'title' . $i} . ${'img' . $i} . '</h3>';
echo '<h3>' . ${'title' . $i} . ' (img: ' . ${'img' . $i} . ')</h3>';
}
if ( ${'sections' . $i} ) {
echo '<p>' . ${'sections' . $i} . '</p>';
}
if ( ${'description' . $i} ) {
echo '<p>' . ${'description' . $i} . '</p>';
echo '<div>' . ${'description' . $i} . '</div>';
}
if ( ${'content' . $i} ) {
echo '<div>' . ${'content' . $i} . '</div>';
}
endfor;
......
<?php
/*
Plugin title: Biuro Services
Description: Biuro Biuro Services plugin
Plugin Name: Biuro Services
Description: Biuro Services plugin
Author: Biuro
Version: 1.0
Author URI: https://www.biuro.lt/
......@@ -26,28 +26,28 @@ class Biuro_Services extends WP_Widget {
$defaults = array(
'title1' => '',
'position1' => '',
'services1' => '',
'content1' => '',
'title2' => '',
'position2' => '',
'services2' => '',
'content2' => '',
'title3' => '',
'position3' => '',
'services3' => '',
'content3' => '',
'title4' => '',
'position4' => '',
'services4' => '',
'content4' => '',
'title5' => '',
'position5' => '',
'services5' => '',
'content5' => '',
'title6' => '',
'position6' => '',
'services6' => '',
'content6' => '',
'title7' => '',
'position7' => '',
'services7' => '',
'content7' => '',
'title8' => '',
'position8' => '',
'services8' => '',
'content8' => '',
);
......@@ -59,15 +59,15 @@ class Biuro_Services extends WP_Widget {
?>
<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} ); ?>" />
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' . $i ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' . $i ) ); ?>" type="text" value="<?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} ); ?>" />
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'position' . $i ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'position' . $i ) ); ?>" type="text" value="<?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>
<label for="<?php echo esc_attr( $this->get_field_id( 'content' . $i ) ); ?>"><?php _e( 'Services', '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;
......@@ -82,7 +82,7 @@ class Biuro_Services extends WP_Widget {
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] ) : '';
$instance['content' . $i] = isset( $new_instance['content' . $i] ) ? wp_kses_post( $new_instance['content' . $i] ) : '';
endfor;
return $instance;
......@@ -95,7 +95,7 @@ class Biuro_Services extends WP_Widget {
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] : '';
${'content' . $i} = isset( $instance['content' . $i] ) ?$instance['content' . $i] : '';
endfor;
// WordPress core before_widget hook (always include )
......@@ -105,15 +105,10 @@ class Biuro_Services extends WP_Widget {
for ($i = 1; $i <= 8; $i++):
if ( ${'title' . $i} ) {
echo '<h3>' . ${'title' . $i} . '</h3>';
echo '<h3>' . ${'title' . $i} . ${'position' . $i} . '</h3>';
}
if ( ${'position' . $i} ) {
echo '<p><b>' . ${'position' . $i} . '</b></p>';
}
if ( ${'services' . $i} ) {
echo '<p>' . ${'services' . $i} . '</p>';
if ( ${'content' . $i} ) {
echo '<p>' . ${'content' . $i} . '</p>';
}
endfor;
......
<?php
/*
Plugin Name: Biuro Values
Description: Biuro Biuro Values plugin
Description: Biuro Values plugin
Author: Biuro
Version: 1.0
Author URI: https://www.biuro.lt/
......
......@@ -62,6 +62,7 @@
dynamic_sidebar( 'front_page_values' );
endif;
?>
<br>
<h2>Partneriai</h2>
......
......@@ -103,6 +103,38 @@ add_action( 'wp_footer', 'my_deregister_scripts' );
*/
function biuro_widger_areas() {
unregister_widget('Akismet_Widget');
unregister_widget('WP_Widget_Archives');
unregister_widget('WP_Widget_Media_Audio');
unregister_widget('WP_Widget_Calendar');
unregister_widget('WP_Widget_Categories');
unregister_widget('WP_Widget_Media_Gallery');
unregister_widget('WP_Widget_Media_Image');
// unregister_widget('WP_Widget_Gallery');
unregister_widget('WP_Widget_Pages');
// unregister_widget('WP_Widget_Links');
unregister_widget('WP_Widget_Meta');
unregister_widget('WP_Nav_Menu_Widget');
unregister_widget('WP_Widget_Search');
unregister_widget('WP_Widget_Text');
unregister_widget('WP_Widget_Recent_Posts');
unregister_widget('WP_Widget_Recent_Comments');
unregister_widget('WP_Widget_RSS');
unregister_widget('WP_Widget_Tag_Cloud');
// unregister_widget('Twenty_Eleven_Ephemera_Widget');
unregister_widget('WP_Widget_Media_Video');
// unregister_widget('WP_Widget_Custom_HTML');
unregister_widget('PLL_Widget_Calendar');
unregister_widget('PLL_Widget_Languages');
unregister_widget('PodsWidgetSingle');
unregister_widget('PodsWidgetList');
unregister_widget('PodsWidgetField');
unregister_widget('PodsWidgetForm');
unregister_widget('PodsWidgetView');
// unregister_widget('WP_Widget_Tag_Cloud');
register_sidebar( array(
......@@ -185,6 +217,15 @@ function biuro_widger_areas() {
'before_title' => '',
'after_title' => '',
) );
register_sidebar( array(
'name' => 'Sales page: Feedbacks',
'id' => 'sales_page_feedbacks',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
}
add_action( 'widgets_init', 'biuro_widger_areas' );
......@@ -387,7 +428,7 @@ function getSiteTree($taxonomy)
if ( $page ) :
?>
<li><a href="<?php echo get_page_link( $page['ID'] ); ?>"><?php echo $page['post_title']; ?></a></li>
<li><a href="<?php echo get_page_link( $page['ID'] ); ?>" title="<?php echo $page['post_title']; ?>"><?php echo $page['post_title']; ?></a></li>
<?
endif;
endforeach;
......
......@@ -26,46 +26,21 @@
<br>
<h1>Ieškote darbuotojų - galime padėti.</h1>
<h2>Paslaugos</h2>
<div style="display: flex; margin: 0 -10px;">
<div style="flex: 1 0 30%; padding: 0 10px 20px;">
<h3 style="margin: 0 0 5px; padding: 0">Laikinas įdarbinimas</h3>
<p style="margin: 0 0 5px; font-variant: small-caps; font-size: 20px;">specialistai ir darbininkai</p>
<ul>
<li>Atranka</li>
<li>Darbuotojų įdarbinimas</li>
<li>Darbo užmokesčio apskaita</li>
</ul>
</div>
<div style="flex: 1 0 30%; padding: 0 10px 20px;">
<h3 style="margin: 0 0 5px; padding: 0">Atranka</h3>
<p style="margin: 0 0 5px; font-variant: small-caps; font-size: 20px;">specialistai ir darbininkai</p>
<ul>
<li>Atranka</li>
<li>...</li>
<li>...</li>
</ul>
</div>
<div style="flex: 1 0 30%; padding: 0 10px 20px;">
<h3 style="margin: 0 0 5px; padding: 0">Darbuotojų administravimas (Payroll)</h3>
<p style="margin: 0 0 5px; font-variant: small-caps; font-size: 20px;">bet kokios pozicijos</p>
<ul>
<li>Darbuotojų įdarbinimas</li>
<li>Darbo užmokesčio apskaita</li>
<li>...</li>
</ul>
</div>
</div>
<h2 style="color:; red">Paslaugos</h2>
<?php
if ( is_active_sidebar( 'sales_page_services' ) ) :
dynamic_sidebar( 'sales_page_services' );
endif;
?>
<h2>Vertės</h2>
<p>Per dieną atliekame 120 interviu</p>
<p>2018 m. laiką nuo CV iki įdarbinimo sumažinome  35%.</p>
<p>Pakeičiame susirgusį darbuotoją net ir savaitgalį. Aptarnaujame 7 dienas per savaitę nuo  6 iki 22.</p>
<p>1 iš 5 laikinų darbuotojų lieka dirbti kliento įmonėje net ir pasibaigus užsakymui</p>
<p>Jokių ilgalaikių įsipareigojimų, naudokitės tik tada kai reikia</p>
<h2 style="color:; red">Vertės</h2>
<br>
<?php
if ( is_active_sidebar( 'sales_page_values' ) ) :
dynamic_sidebar( 'sales_page_values' );
endif;
?>
<h2>Mumis pasitiki</h2>
......@@ -79,87 +54,27 @@
<div>7 logo</div>
</div>
<br>
<h2>Sektoriai</h2>
<div style="display: flex; flex-wrap: wrap; margin: 0 -10px;">
<div style="flex: 1 0 30%; padding: 0 10px 20px;">
<h3 style="margin: 0 0 5px; padding: 0">Gamyba</h3>
<p>80 proc. mūsų darbuotojų dirba gamybos įmonėse, suprantame gamybos įmonių poreikius, gebame prisitaikyti prie savaitinių planavimo ciklų, aptarnauti 7 dienas per savaitę nuo 6 iki 22 ir aprūpinti darbuotojus darbo rūbais ir AAP. Dirbame visoje Lietuvoje ir poreikiui esant organizuojame darbuotojų vežimą.</p>
<ul>
<li>Darbininkai</li>
<li>Operatoriai</li>
<li>Pakuotojai</li>
<li>Autokrautuvo vairuotojai</li>
<li>...</li>
</ul>
</div>
<div style="flex: 1 0 30%; padding: 0 10px 20px;">
<h3 style="margin: 0 0 5px; padding: 0">Sandėliavimas</h3>
<p>Dirbame su skubių siuntų bendrovėmis, didžiosiomis logistikos įmonėmis ir turime aktyvią darbuotojų duomenų bazę  dirbančią didžiųjų miestų sandelių rajonuose</p>
<ul>
<li>Krovėjai</li>
<li>Užsakymų komplektuotojai</li>
<li>Autokrautuvo vairuotojai</li>
<li>Lipdukų klijuotojai</li>
<li>...</li>
</ul>
</div>
<div style="flex: 1 0 30%; padding: 0 10px 20px;">
<h3 style="margin: 0 0 5px; padding: 0">Paslaugos</h3>
<p>Paslaugų sfera dinamiška ir daugelis įmonių priklausomos nuo klientų poreikių ir projektų, padedame kai labiausiai reikia užtikrndami greitą reakciją ir lankstumą</p>
<ul>
<li>Administratorės</li>
<li>Duomenų suvedėjai</li>
<li>Asistentai</li>
<li>Apskaitininkai</li>
<li>Archyvaro padejėjai</li>
</ul>
</div>
<div style="flex: 1 0 30%; padding: 0 10px 20px;">
<h3 style="margin: 0 0 5px; padding: 0">Horeca</h3>
<p>...</p>
<ul>
<li>Padavėjai</li>
<li>Indų plovėjai</li>
<li>Kambarinės</li>
<li>Administratoriai</li>
<li>...</li>
</ul>
</div>
<div style="flex: 1 0 30%; padding: 0 10px 20px;">
<h3 style="margin: 0 0 5px; padding: 0">Mažmeninė prekyba</h3>
<p>...</p>
<ul>
<li>Kasininkai</li>
<li>Pardavėjai</li>
<li>Salės darbuotojai</li>
<li>Sandėlio darbuotojai</li>
<li>Prekių skaičiuotojai</li>
</ul>
</div>
<div style="flex: 1 0 30%; padding: 0 10px 20px;">
<h3 style="margin: 0 0 5px; padding: 0">Kita</h3>
<p>Esame lankstūs ir galime rasti Jums tinkamą darbuotoją pagal Jūsų reikalavimus, susiekite ir gaukite pasiūlymą</p>
<ul>
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
</ul>
</div>
</div>
<h2 style="color:; red">Sektoriai</h2>
<br>
<h2>Atsiliepimai</h2>
<p>ToDo</p>
<?php
if ( is_active_sidebar( 'sales_page_sections' ) ) :
dynamic_sidebar( 'sales_page_sections' );
endif;
?>
<h2 style="color:; red">Atsiliepimai</h2>
<?php
if ( is_active_sidebar( 'sales_page_feedbacks' ) ) :
dynamic_sidebar( 'sales_page_feedbacks' );
endif;
?>
<br>
<h2>Forma</h2>
<p>ToDo</p>
<br>
<br>
......
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