This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Alle Google Schriften für Debian/Ubuntu basierte Systeme herunterladen und installieren. Voraussetzung damit dieses Script funktioniert ist, dass wget installiert ist. | |
#Variabeln definieren | |
_font_base_url="https://github.com/google/fonts/archive/master.tar.gz" | |
_font_folder="google-fonts" | |
# Sicherstellen, dass die Datei noch nicht existiert. | |
rm -f $_font_folder.tar.gz | |
echo "Schriftpaket herunterladen..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html <?php language_attributes(); ?>> | |
<head> | |
<meta charset="<?php echo strtolower(get_bloginfo('charset')); ?>"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<?php | |
$meta_desc = __comp_trans('META_DESCRIPTION', false); | |
if(get_field('page_meta_desc', get_queried_object_id()) != ''): | |
$meta_desc = get_field('page_meta_desc', get_queried_object_id()); | |
endif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
get_header(); | |
if ( have_posts() ) : while ( have_posts() ) : the_post(); | |
?> | |
<picture> | |
<img data-src="<?php echo THEME_IMAGES; ?>/cloud.svg" class="page-cloud d-none d-lg-block lazy" alt=""> | |
</picture> | |
<picture> | |
<source data-srcset="<?php echo THEME_IMAGES; ?>/sun@2x.png 2x, <?php echo THEME_IMAGES; ?>/sun.png 1x"> | |
<img data-src="<?php echo THEME_IMAGES; ?>/sun.png" class="page-sun d-none d-lg-block lazy" alt=""> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fahrapp_startup_scripts() { | |
wp_enqueue_style( 'fahrapp-app-google-font', 'https://fonts.googleapis.com/css?family=Nunito' ); | |
wp_enqueue_script( 'fontawesome-pro', 'https://pro.fontawesome.com/releases/v5.5.0/js/all.js', null, null, true); | |
if (WP_DEBUG): | |
wp_enqueue_style( "fahrapp-app-style", DEV_CSS . '/theme.css', array('fahrapp-app-google-font'), '1.0' ); | |
wp_register_script( "fahrapp-app-script", DEV_JS ."/theme.js", array('jquery'), '1.0', true ); | |
else: | |
wp_enqueue_style( "fahrapp-app-style", DIST_CSS . '/theme.min.css', array('fahrapp-app-google-font'), '1.0' ); | |
wp_register_script( "fahrapp-app-script", DIST_JS ."/theme.min.js", array('jquery'), '1.0', true ); | |
endif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************************** | |
* Formular zum bearbeiten eines Fahrschülers anzeigen | |
***************************************/ | |
function fahrapp_show_user_edit_form() { | |
$driver_id = esc_attr( $_POST['driver_id'] ); | |
if(!check_teacher_has_right_to_driver($driver_id)): | |
echo 'Ihnen fehlt die Berechtigung um dieses Fahrschüler zu bearbeiten.'; | |
exit(); | |
endif; | |
$form_id = get_field('setform_driver_edit', 'option'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.editschuler').click(function() { | |
var driver_id = $(this).data('driverid'); | |
var displayname = $(this).data('displayname'); | |
$.ajax({ | |
type: 'post', | |
url: ajax_var.url, | |
data: 'action=fahrapp_show_user_edit_form&driver_id='+driver_id, | |
success: function(response){ | |
var modal = $('#editUserModal'); | |
modal.find('.modal-title').text(displayname + ' bearbeiten'); |