Skip to content

Commit

Permalink
Move header button to the left
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasPrt committed Jul 5, 2021
1 parent 73b8c6f commit 269e711
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
10 changes: 6 additions & 4 deletions header-home.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
alt="Smartphoniker Logo" />
</a>

<!-- Button for sending in device -->
<?php if (carbon_get_theme_option('logo_button_is_enabled') == true): ?>
<a href="<?php echo carbon_get_theme_option('sendin_form_link') ?>" class="button button--white nav__button"><?php echo carbon_get_theme_option('sendin_form_button_text') ?></a>
<?php endif; ?>




Expand Down Expand Up @@ -95,10 +100,7 @@
alt="Smartphoniker anrufen" />
</a>

<!-- Button for sending in device -->
<?php if (carbon_get_theme_option('logo_button_is_enabled') == true): ?>
<a href="<?php echo carbon_get_theme_option('sendin_form_link') ?>" class="button button--white nav__button"><?php echo carbon_get_theme_option('sendin_form_button_text') ?></a>
<?php endif; ?>



<!-- Hamburger Menu Icon -->
Expand Down
4 changes: 2 additions & 2 deletions includes/theme-options/theme-options-home.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ function smartphoniker_theme_options_home( Carbon_Fields\Container\Theme_Options
->add_fields( array(
Field::make( 'html', 'startseite_description', __( 'Startseite Beschreibung' ) )
->set_html( 'Hier sind ein paar den ersten Abschnitt der Startseite betreffende Einstellungen. Die Inhalte darunter und auf allen anderen Seiten lassen sich im Block-Editor bearbeiten.' ),
Field::make( 'checkbox', 'logo_button_is_enabled', __( 'Button neben dem Telefon-Icon anzeigen?' ) ),
Field::make( 'text', 'sendin_form_link', __( 'Link für Button rechts neben dem Telefon-Icon auf der Startseite.' ) )
Field::make( 'checkbox', 'logo_button_is_enabled', __( 'Button neben dem Logo anzeigen?' ) ),
Field::make( 'text', 'sendin_form_link', __( 'Link für Button rechts neben dem Logo auf der Startseite.' ) )
->set_required( true )
->set_conditional_logic( array(
array(
Expand Down
2 changes: 1 addition & 1 deletion style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion style.css.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions stylesheets/components/_logo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
@media screen and (max-width: 370px) {
.logo {
height: 3.5rem;
display: flex;
}
}
2 changes: 1 addition & 1 deletion stylesheets/components/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}

&__button {
margin-right: 1rem;
margin-left: 1rem;
max-height: 3.2rem;
min-width: 11rem;
font-size: 1.6rem;
Expand Down

0 comments on commit 269e711

Please sign in to comment.