Files
UbuntuandClaude Opus 5.5 4c79619e7d Self-host moment.js so the booking worker list loads again
All four head templates hot-linked moment from momentjs.com/downloads,
which is the project website rather than a CDN. Since that file was
replaced on 2026-10-29, Chrome intermittently blocks it with
ERR_BLOCKED_BY_ORB on uncached loads. The booking form's ready handler
then dies on "moment is not defined" before binding the service click
handler, so no worker request is ever sent and the worker picker stays
empty - on test, dev and prod at once.

moment 2.30.1 (cdnjs build) is now served from assets/js through
asset_ver(). Only moment.utc().add().format() is used, so the pin
is safe.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-17 08:19:01 +00:00

51 lines
3.6 KiB
PHP

<?php
/**
* Generic <head> for any vertical.
*
* Expects $vertical (a row from application/config/verticals.php).
* Replaces the per-vertical barber-head.php / beauty-head.php, which differ
* only in <title>, og:site_name, og:url, meta description and the stylesheet.
*/
$this->load->helper('url');
?>
<head>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TWRHH7DN');</script>
<!-- End Google Tag Manager -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<title><?php echo htmlspecialchars($vertical['title'], ENT_QUOTES, 'UTF-8');?></title>
<meta property="fb:app_id" content="285150047390571" />
<meta property="og:site_name" content="<?php echo htmlspecialchars($vertical['og_site_name'], ENT_QUOTES, 'UTF-8');?>">
<meta property="og:image" content="<?php echo SITEURL;?>assets/img/studiobeve_facebook.jpg"/>
<meta property="og:title" content="Studio Beve" />
<meta property="og:description" content="<?php echo htmlspecialchars($vertical['og_description'], ENT_QUOTES, 'UTF-8');?>" />
<meta property="og:url" content="<?php echo SITEURL.$vertical['slug'];?>" />
<meta property="og:type" content="website" />
<meta name="description" content="<?php echo htmlspecialchars($vertical['meta_description'], ENT_QUOTES, 'UTF-8');?>">
<link rel="icon" type="image/x-icon" href="<?php echo base_url();?>assets/img/favicon/favicon.ico" />
<link rel="icon" type="image/png" href="<?php echo base_url();?>assets/img/favicon/favicon.png" />
<link rel="icon" type="image/gif" href="<?php echo base_url();?>assets/img/favicon/favicon.gif" />
<!-- Opera Speed Dial Favicon -->
<link rel="icon" type="image/png" href="<?php echo base_url();?>assets/img/favicon/speeddial-160px.png" />
<!-- For iPhone 4 Retina display: -->
<script src="<?php echo asset_ver('assets/js/jquery/jquery.js');?>"></script>
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo base_url();?>assets/img/favicon/apple-touch-icon-114x114-precomposed.png">
<link rel="stylesheet" href="<?php echo asset_ver('assets/css/'.$vertical['css']);?>" />
<noscript><link rel="stylesheet" href="<?php echo asset_ver('assets/css/noscript.css');?>" /></noscript>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Open+Sans:ital,wght@0,700;0,800;1,700;1,800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="<?php echo asset_ver('assets/js/jquery/jquery-ui.css');?>">
<script src="<?php echo asset_ver('assets/js/jquery/jquery-ui.js');?>"></script>
<script src="<?php echo asset_ver('assets/js/moment-with-locales.min.js');?>"></script>
<!-- Start cookieyes banner --> <script id="cookieyes" type="text/javascript" src="https://cdn-cookieyes.com/client_data/82ccb0b38ad63612e4c6a3fa/script.js"></script> <!-- End cookieyes banner -->
<link rel="stylesheet" type="text/css" href="<?php echo asset_ver('assets/css/style.css');?>">
<link rel="stylesheet" type="text/css" href="<?php echo asset_ver('assets/css/responsive.css');?>">
<script src="<?php echo asset_ver('assets/js/script.js');?>"></script>
</head>