Compare commits

..

42 Commits

Author SHA1 Message Date
22b585503a link post titles in index 2025-01-10 17:49:31 +05:00
a61f6e096e make page titles use h1 2025-01-08 15:34:09 +05:00
98f1d6c25e fix footer width 2024-04-29 15:21:37 +05:00
1ec1dc6117 fix footer width 2024-04-29 15:21:10 +05:00
8db504c6d3 fix footer width 2024-04-29 15:20:30 +05:00
5b12d00cbc whoops copied page template into footer.html 2024-04-29 15:19:24 +05:00
740cd651f9 tweak footer 2024-04-29 15:07:53 +05:00
1462c1e917 fix horizontal padding on single pages/posts 2024-04-29 15:04:54 +05:00
b7a8bbe890 fix weird font weight and padding on nav submenu 2024-04-29 12:49:18 +05:00
8603bfa01c tweak header 2024-04-29 12:41:11 +05:00
c4708d38fd create product grid pattern 2024-04-29 11:52:48 +05:00
7131f5e15a restore white bg to post editor 2024-04-29 11:49:41 +05:00
916df0991d remove wp core block patterns 2024-04-29 11:45:09 +05:00
b82454087e Style index template 2024-04-29 11:33:18 +05:00
2332fd7707 tweak header 2024-04-29 11:28:39 +05:00
bdde45886e mark bold font as bold in theme.json 2024-04-29 11:24:26 +05:00
3b6e32a9f4 Add beige background to site 2024-04-29 11:13:06 +05:00
19037858b9 enable svg uploads 2024-04-29 11:07:25 +05:00
3481e1dd40 wrap site logo in link 2024-04-26 21:49:51 +05:00
c6fba96a3e tweak news pattern 2024-04-26 20:39:29 +05:00
5530baf87f Tweak news pattern 2024-04-26 20:38:35 +05:00
2d7210e352 disable comments 2024-04-26 20:30:55 +05:00
0ed8cab0ff tweak news pattern 2024-04-26 20:25:06 +05:00
960ba34458 whoops, put single page template in about pattern 2024-04-26 20:22:10 +05:00
663935dd51 tweak team page pattern 2024-04-26 20:20:12 +05:00
ec5a317ed8 set white as default bg color 2024-04-26 20:17:58 +05:00
ca117ebed7 Update team page pattern 2024-04-26 20:15:50 +05:00
2f8e7a7b93 Update history page pattern 2024-04-26 20:14:13 +05:00
d833bf811e Update about page pattern 2024-04-26 20:12:52 +05:00
7bdf0ea3db Customize single post template 2024-04-26 20:10:34 +05:00
71ed072f7c create no-title page template 2024-04-26 20:06:12 +05:00
ef9cdf7439 delete redundant template 2024-04-26 20:05:56 +05:00
f3e9f9a000 create latest news pattern 2024-04-26 19:50:58 +05:00
ff12b669cd style contact form 2024-04-26 15:37:55 +05:00
a514a66e4e create team page pattern 2024-04-26 15:20:25 +05:00
a27d0a9f17 create history page pattern 2024-04-26 15:00:30 +05:00
5780ee2c01 create about page pattern 2024-04-26 14:37:48 +05:00
3d2a7f9d12 make body text light by default 2024-04-26 14:37:42 +05:00
15d8bf8a28 tweak header 2024-04-26 14:08:13 +05:00
85cb7cd2ef tweak landing page pattern 2024-04-26 14:06:49 +05:00
4bc74a06e3 add hover styles to buttons 2024-04-26 14:05:46 +05:00
7df10f3d2b style mobile menu close button 2024-04-26 11:13:15 +05:00
16 changed files with 1000 additions and 104 deletions

View File

@ -20,3 +20,90 @@ function cmt_pattern_categories() {
); );
} }
add_action( 'init', 'cmt_pattern_categories' ); add_action( 'init', 'cmt_pattern_categories' );
/*== DISABLE COMMENTS ==*/
add_action('admin_init', function () {
// Redirect any user trying to access comments page
global $pagenow;
if ($pagenow === 'edit-comments.php') {
wp_safe_redirect(admin_url());
exit;
}
// Remove comments metabox from dashboard
remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');
// Disable support for comments and trackbacks in post types
foreach (get_post_types() as $post_type) {
if (post_type_supports($post_type, 'comments')) {
remove_post_type_support($post_type, 'comments');
remove_post_type_support($post_type, 'trackbacks');
}
}
});
// Close comments on the front-end
add_filter('comments_open', '__return_false', 20, 2);
add_filter('pings_open', '__return_false', 20, 2);
// Hide existing comments
add_filter('comments_array', '__return_empty_array', 10, 2);
// Remove comments page in menu
add_action('admin_menu', function () {
remove_menu_page('edit-comments.php');
});
// Remove comments links from admin bar
add_action('init', function () {
if (is_admin_bar_showing()) {
remove_action('admin_bar_menu', 'wp_admin_bar_comments_menu', 60);
}
});
/*== END DISABLE COMMENTS ==*/
/*== ENABLE SVG UPLOADS ==*/
// Allow SVG
add_filter( 'wp_check_filetype_and_ext', function($data, $file, $filename, $mimes) {
global $wp_version;
if ( $wp_version !== '4.7.1' ) {
return $data;
}
$filetype = wp_check_filetype( $filename, $mimes );
return [
'ext' => $filetype['ext'],
'type' => $filetype['type'],
'proper_filename' => $data['proper_filename']
];
}, 10, 4 );
function cc_mime_types( $mimes ){
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
add_filter( 'upload_mimes', 'cc_mime_types' );
function fix_svg() {
echo '<style type="text/css">
.attachment-266x266, .thumbnail img {
width: 100% !important;
height: auto !important;
}
</style>';
}
add_action( 'admin_head', 'fix_svg' );
/*== END ENABLE SVG UPLOADS ==*/
// remove stock wordpress patterns
function remove_core_patterns() {
remove_theme_support('core-block-patterns');
}
add_action('after_setup_theme', 'remove_core_patterns');

View File

@ -28,8 +28,7 @@
<!-- wp:html {"metadata":{"name":"google-map"}} --> <!-- wp:html {"metadata":{"name":"google-map"}} -->
<iframe <iframe
src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d4861.401919479944!2d-2.076866!3d52.466443!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x487096d46a6c5a4d%3A0xfbb033fe40d15d07!2sCMT%20Engineering%20LTD!5e0!3m2!1sen!2sus!4v1714038134763!5m2!1sen!2sus" src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d4861.401919479944!2d-2.076866!3d52.466443!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x487096d46a6c5a4d%3A0xfbb033fe40d15d07!2sCMT%20Engineering%20LTD!5e0!3m2!1sen!2sus!4v1714038134763!5m2!1sen!2sus"
class="google-map" class="google-map" width="100%" height="336" style="border:0;" allowfullscreen="" loading="lazy"
width="100%" height="336" style="border:0;" allowfullscreen="" loading="lazy"
referrerpolicy="no-referrer-when-downgrade"></iframe> referrerpolicy="no-referrer-when-downgrade"></iframe>
<!-- /wp:html --> <!-- /wp:html -->
</div> </div>
@ -134,9 +133,9 @@
</div> </div>
<!-- /wp:group --> <!-- /wp:group -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"right":"0","left":"0","top":"0","bottom":"0"},"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}},"elements":{"link":{"color":{"text":"var:preset|color|white"}}}},"backgroundColor":"secondary","textColor":"white","fontSize":"small"} --> <!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"right":"0","left":"0","top":"0","bottom":"0"},"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}},"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"typography":{"fontStyle":"normal","fontWeight":"400"}},"backgroundColor":"secondary","textColor":"white","fontSize":"small"} -->
<p class="has-text-align-center has-white-color has-secondary-background-color has-text-color has-background has-link-color has-small-font-size" <p class="has-text-align-center has-white-color has-secondary-background-color has-text-color has-background has-link-color has-small-font-size"
style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)"> style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);font-style:normal;font-weight:400">
©2024 CMT Engineering Ltd | Company No. 09920464 | ©2024 CMT Engineering Ltd | Company No. 09920464 |
<a href="https://www.cmt-engineering.co.uk/privacy-policy/">Privacy Policy</a> | <a <a href="https://www.cmt-engineering.co.uk/privacy-policy/">Privacy Policy</a> | <a
href="https://www.cmt-engineering.co.uk/sitemap/">Sitemap</a> | Website by <a href="https://www.cmt-engineering.co.uk/sitemap/">Sitemap</a> | Website by <a

View File

@ -1,12 +1,13 @@
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"backgroundColor":"base-2","layout":{"type":"constrained","contentSize":"","wideSize":""}} --> <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|30","left":"0","right":"0"},"margin":{"bottom":"0"}}},"backgroundColor":"white","layout":{"type":"constrained","contentSize":"","wideSize":""}} -->
<div class="wp-block-group has-base-2-background-color has-background" <div class="wp-block-group has-white-background-color has-background"
style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)"><!-- wp:columns --> style="margin-bottom:0;padding-top:var(--wp--preset--spacing--20);padding-right:0;padding-bottom:var(--wp--preset--spacing--30);padding-left:0">
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"width":"25%"} --> <div class="wp-block-columns"><!-- wp:column {"width":"25%"} -->
<div class="wp-block-column" style="flex-basis:25%"> <div class="wp-block-column" style="flex-basis:25%">
<!-- wp:image {"id":2132,"sizeSlug":"full","linkDestination":"none","align":"center"} --> <!-- wp:image {"lightbox":{"enabled":false},"id":2132,"width":"275px","sizeSlug":"full","linkDestination":"custom","align":"center"} -->
<figure class="wp-block-image aligncenter size-full"><img <figure class="wp-block-image aligncenter size-full is-resized"><a href="/"><img
src="http://www.cmt.localhost/wp-content/uploads/2024/04/cmt-engineering-logo.png" alt="" src="http://www.cmt.localhost/wp-content/uploads/2024/04/cmt-engineering-logo.png" alt=""
class="wp-image-2132" /></figure> class="wp-image-2132" style="width:275px" /></a></figure>
<!-- /wp:image --> <!-- /wp:image -->
</div> </div>
<!-- /wp:column --> <!-- /wp:column -->
@ -15,17 +16,21 @@
<div class="wp-block-column hide-on-mobile" style="flex-basis:50%"></div> <div class="wp-block-column hide-on-mobile" style="flex-basis:50%"></div>
<!-- /wp:column --> <!-- /wp:column -->
<!-- wp:column {"width":"25%","className":"hide-on-mobile"} --> <!-- wp:column {"verticalAlignment":"bottom","width":"25%","className":"hide-on-mobile"} -->
<div class="wp-block-column hide-on-mobile" style="flex-basis:25%"><!-- wp:columns --> <div class="wp-block-column is-vertically-aligned-bottom hide-on-mobile" style="flex-basis:25%">
<div class="wp-block-columns"><!-- wp:column {"layout":{"type":"constrained","justifyContent":"right"}} --> <!-- wp:columns {"verticalAlignment":"bottom"} -->
<div class="wp-block-column"> <div class="wp-block-columns are-vertically-aligned-bottom">
<!-- wp:paragraph {"align":"right","style":{"color":{"text":"#344c81"},"elements":{"link":{"color":{"text":"#344c81"}}}},"fontSize":"large"} --> <!-- wp:column {"verticalAlignment":"bottom","style":{"spacing":{"blockGap":"var:preset|spacing|20","padding":{"bottom":"var:preset|spacing|30"}}},"layout":{"type":"constrained","justifyContent":"right"}} -->
<p class="has-text-align-right has-text-color has-link-color has-large-font-size" style="color:#344c81">Call <div class="wp-block-column is-vertically-aligned-bottom" style="padding-bottom:var(--wp--preset--spacing--30)">
<!-- wp:paragraph {"align":"right","style":{"color":{"text":"#344c81"},"elements":{"link":{"color":{"text":"#344c81"}}},"typography":{"fontStyle":"normal","fontWeight":"400","fontSize":"30px"}}} -->
<p class="has-text-align-right has-text-color has-link-color"
style="color:#344c81;font-size:30px;font-style:normal;font-weight:400">Call
01384 563 200</p> 01384 563 200</p>
<!-- /wp:paragraph --> <!-- /wp:paragraph -->
<!-- wp:paragraph {"align":"right","style":{"color":{"text":"#777777"},"elements":{"link":{"color":{"text":"#777777"}}},"typography":{"fontSize":"0.9rem"}}} --> <!-- wp:paragraph {"align":"right","style":{"color":{"text":"#777777"},"elements":{"link":{"color":{"text":"#777777"}}},"typography":{"fontStyle":"normal","fontWeight":"400","fontSize":"14px","lineHeight":"1.5"}}} -->
<p class="has-text-align-right has-text-color has-link-color" style="color:#777777;font-size:0.9rem">CMT <p class="has-text-align-right has-text-color has-link-color"
style="color:#777777;font-size:14px;font-style:normal;font-weight:400;line-height:1.5">CMT
Engineering Ltd, Corngreaves Road<br>Cradley Heath, West Midlands<br>B64 7DG, United Kingdom</p> Engineering Ltd, Corngreaves Road<br>Cradley Heath, West Midlands<br>B64 7DG, United Kingdom</p>
<!-- /wp:paragraph --> <!-- /wp:paragraph -->
</div> </div>
@ -39,15 +44,15 @@
</div> </div>
<!-- /wp:group --> <!-- /wp:group -->
<!-- wp:group {"style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"0","bottom":"0"}}},"backgroundColor":"primary","textColor":"white","className":"main-navigation","layout":{"type":"constrained","wideSize":"1300px","contentSize":"1300px"}} --> <!-- wp:group {"style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"0","bottom":"0","left":"var:preset|spacing|60"},"margin":{"top":"0"}}},"backgroundColor":"primary","textColor":"white","className":"main-navigation","layout":{"type":"constrained","wideSize":"1300px","contentSize":"1300px"}} -->
<div <div
class="wp-block-group main-navigation has-white-color has-primary-background-color has-text-color has-background has-link-color" class="wp-block-group main-navigation has-white-color has-primary-background-color has-text-color has-background has-link-color"
style="padding-top:0;padding-bottom:0"> style="margin-top:0;padding-top:0;padding-bottom:0;padding-left:var(--wp--preset--spacing--60)">
<!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> <!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group alignwide"> <div class="wp-block-group alignwide">
<!-- wp:navigation {"ref":2119,"openSubmenusOnClick":true,"hasIcon":false,"overlayBackgroundColor":"primary","overlayTextColor":"white","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left"},"style":{"typography":{"fontSize":"0.9rem"}}} /--> <!-- wp:navigation {"ref":2119,"icon":"menu","overlayBackgroundColor":"primary","overlayTextColor":"white","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left"},"style":{"typography":{"fontSize":"0.9rem","fontStyle":"normal","fontWeight":"400"}}} /-->
<!-- wp:search {"label":"Search","showLabel":false,"placeholder":"Search..","width":null,"widthUnit":"px","buttonText":"Search","buttonUseIcon":true,"style":{"layout":{"selfStretch":"fit","flexSize":null}},"backgroundColor":"primary"} /--> <!-- wp:search {"label":"Search","showLabel":false,"placeholder":"Search..","widthUnit":"px","buttonText":"Search","buttonUseIcon":true,"style":{"layout":{"selfStretch":"fit","flexSize":null}},"backgroundColor":"primary"} /-->
</div> </div>
<!-- /wp:group --> <!-- /wp:group -->
</div> </div>

96
patterns/about.php Normal file
View File

@ -0,0 +1,96 @@
<?php
/**
* Title: About page
* Slug: cmt/about
* Description: Default content for the About page
* Categories: cmt, featured
*/
?>
<!-- wp:paragraph -->
<p>CMT Engineering is an independent company owned by Anjali Agrawal with two divisions. Anjali is a chartered accountant; she has experience of working in various locations worldwide, giving her the opportunity to build a network of international relationships.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>The company comprises two divisions:</p>
<!-- /wp:paragraph -->
<!-- wp:columns {"style":{"spacing":{"blockGap":{"left":"var:preset|spacing|70"}}}} -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"textAlign":"center","style":{"typography":{"fontSize":"18px"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}}},"backgroundColor":"primary","textColor":"white"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20);font-size:18px">CMT Tube Fittings</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>CMT Tube Fittings specialises in mild steel and stainless steel pipes and screwed fittings, and is the manufacturer of the genuine Unicone® hose and pipe jointing system.</p>
<!-- /wp:paragraph -->
<!-- wp:image -->
<figure class="wp-block-image"><img src="https://www.cmt-engineering.co.uk/wp-content/uploads/2018/07/cmt-engineering-home-banner.jpg" alt="" title="cmt-engineering-home-banner" /></figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p>The range includes:</p>
<!-- /wp:paragraph -->
<!-- wp:list {"style":{"typography":{"fontStyle":"normal","fontWeight":"400"}}} -->
<ul style="font-style:normal;font-weight:400"><!-- wp:list-item {"style":{"typography":{"fontStyle":"normal","fontWeight":"300"}}} -->
<li style="font-style:normal;font-weight:300">Mild steel screwed pipe fittings to BS EN10241 (previously BS 1740 &amp; BS 1387); used widely for air, gas, water and steam applications.</li>
<!-- /wp:list-item -->
<!-- wp:list-item {"style":{"typography":{"fontStyle":"normal","fontWeight":"300"}}} -->
<li style="font-style:normal;font-weight:300">Gauge syphons; essential for protection of sensitive instrumentation on steam lines and other pressure equipment.</li>
<!-- /wp:list-item -->
<!-- wp:list-item {"style":{"typography":{"fontStyle":"normal","fontWeight":"300"}}} -->
<li style="font-style:normal;font-weight:300">Stainless steel 150lb screwed fittings; used with stainless steel tubes conveying air, gas, steam, water and other fluids.</li>
<!-- /wp:list-item -->
<!-- wp:list-item {"style":{"typography":{"fontStyle":"normal","fontWeight":"300"}}} -->
<li style="font-style:normal;font-weight:300">General purpose mild steel tube to BS EN10255/10217 (previously BS 1387), used in a wide range of building, engineering and industrial pipework applications.</li>
<!-- /wp:list-item -->
<!-- wp:list-item {"style":{"typography":{"fontStyle":"normal","fontWeight":"300"}}} -->
<li style="font-style:normal;font-weight:300">CNC machined turned parts; we have a variety of CNC machines offering an extensive range of special pipe fittings and turned parts to customer requirements.</li>
<!-- /wp:list-item -->
<!-- wp:list-item {"style":{"typography":{"fontStyle":"normal","fontWeight":"300"}}} -->
<li style="font-style:normal;font-weight:300">Genuine Unicone®; the tried and trusted hose and pipe connection system used in the bulk powder transportation industry.</li>
<!-- /wp:list-item -->
</ul>
<!-- /wp:list -->
</div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"textAlign":"center","style":{"typography":{"fontSize":"18px"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}}},"backgroundColor":"primary","textColor":"white"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20);font-size:18px">CMT Clamps</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>CMT Clamps produces the Spartan® range of high temperature and chemical resistant clamps for the anodising industry worldwide.</p>
<!-- /wp:paragraph -->
<!-- wp:image -->
<figure class="wp-block-image"><img src="https://www.cmt-engineering.co.uk/wp-content/uploads/2018/07/assorted-tube-clamps.jpg" alt="Assorted Tube Clamps" title="Assorted Tube Clamps" /></figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p>The range includes:</p>
<!-- /wp:paragraph -->
<!-- wp:list {"style":{"typography":{"fontStyle":"normal","fontWeight":"300"}}} -->
<ul style="font-style:normal;font-weight:300"><!-- wp:list-item -->
<li>SPARTAN® clamps are available in various models and sizes in two materials for use up to 220°C. They are available with fine- or coarse-thread screws, which can be left plain or tipped with titanium, ceramic or zirconium.</li>
<!-- /wp:list-item -->
<!-- wp:list-item -->
<li>We also manufacture hexagonal floats in two sizes, which are used to reduce evaporation and heat-loss.</li>
<!-- /wp:list-item -->
</ul>
<!-- /wp:list -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->

216
patterns/history.php Normal file
View File

@ -0,0 +1,216 @@
<?php
/**
* Title: Our History page
* Slug: cmt/history
* Description: Default content for the Our History page
* Categories: cmt, featured
*/
?>
<!-- wp:paragraph -->
<p>CMT Engineering Ltd. has a long history stretching back over 100 years on its site in Cradley Heath.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|60"}}}} -->
<p style="margin-bottom:var(--wp--preset--spacing--60)">It is an independent company owned by Anjali Agrawal with two divisions. Anjali is a chartered accountant; she has experience of working in various locations worldwide, giving her the opportunity to build a network of international relationships.</p>
<!-- /wp:paragraph -->
<!-- wp:group {"metadata":{"name":"Timeline"},"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:image {"id":76,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-head.png" alt="" class="wp-image-76" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">2017</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">CMT Engineering bought by Anjali Agrawal from Liberty House and incorporated as an independent company.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":84,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-stem.png" alt="" class="wp-image-84" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">2015</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">Caparos UK businesses go into administration; bought by Liberty House Group.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":84,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-stem.png" alt="" class="wp-image-84" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">2004</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">Nupac Clamps moves from Tewkesbury to become part of CMT Engineering; further development of product range and investment in new injection moulding machinery.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":84,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-stem.png" alt="" class="wp-image-84" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">1997</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">Major investment in semi-automatic rotary transfer machines for barrel nipple production.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":84,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-stem.png" alt="" class="wp-image-84" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">1993</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">Spartan is bought by Caparo; company name changed to Nupac.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":84,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-stem.png" alt="" class="wp-image-84" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">1990</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">Spartan Fixtures buys Spartan Plastics in Tewkesbury to produce G clamps.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":84,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-stem.png" alt="" class="wp-image-84" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">1982</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">Unicone transferred to CMT Engineering in Cradley Heath.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":84,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-stem.png" alt="" class="wp-image-84" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">1981</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">CMT Group bought by Caparo.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":84,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-stem.png" alt="" class="wp-image-84" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">1977</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">Spartan Fixtures established in Martley, Worcestershire , by David Ecclestone to market his patented 40mm plastic Spartan G Clamp.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":84,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-stem.png" alt="" class="wp-image-84" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">1976</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">Tube Fittings moves into new premises in Cradley heath, built on the site of the original Cradley Heath Manufacturing Company.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":84,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-stem.png" alt="" class="wp-image-84" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">1968</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">Midland Iron Group acquired by Central Manufacturing and Trading - the reason we are still called CMT.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":84,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-stem.png" alt="" class="wp-image-84" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">1960</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">Midland Iron and Hardware Company formed. Cradley Heath Manufacturing and Tube Fittings become part of Midland Iron Group; close association with the Unicone Company.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":84,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-stem.png" alt="" class="wp-image-84" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">1930</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">Unicone Company formed in Glasgow by George Richard Inshaw. Patent application filed for Unicone system.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":84,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-stem.png" alt="" class="wp-image-84" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">1924</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">Tube Fittings founded. Factory in Old Hill, specialising in forged threaded mild steel elbows and tees.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":84,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-stem.png" alt="" class="wp-image-84" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">1907</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">Cradley Heath Manufacturing Company established, making wrought iron fittings for the gas, water and steam industries.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":84,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-stem.png" alt="" class="wp-image-84" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":3,"className":"wp-block-heading"} -->
<h3 class="wp-block-heading has-text-align-center">1811</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} -->
<p class="has-text-align-center" style="margin-bottom:var(--wp--preset--spacing--50)">Wrought iron pipe fittings first produced by John Russell, landlord of the Turks Head Inn in Wednesbury. Over the next century the Black Country becomes the centre of the worlds steel tube-making industry.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":98,"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="http://www.cmt.localhost/wp-content/uploads/2018/07/timeline-arrow-head-flipped.png" alt="" class="wp-image-98" /></figure>
<!-- /wp:image -->
</div>
<!-- /wp:group -->

View File

@ -1,4 +1,5 @@
<?php <?php
/** /**
* Title: Landing Page * Title: Landing Page
* Slug: cmt/home * Slug: cmt/home

50
patterns/news.php Normal file
View File

@ -0,0 +1,50 @@
<?php
/**
* Title: News
* Slug: cmt/news
* Description: Default content for the Latest News page
* Categories: cmt, featured
*/
?>
<!-- wp:query {"queryId":9,"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":{"category":[7]}}} -->
<div class="wp-block-query"><!-- wp:post-template -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"verticalAlignment":"center","width":"10%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:10%"><!-- wp:post-date {"textAlign":"center","format":"F j, Y","style":{"typography":{"fontStyle":"normal","fontWeight":"700"},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}},"spacing":{"margin":{"bottom":"var:preset|spacing|40"}}},"textColor":"primary","fontSize":"medium"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"width":"80%"} -->
<div class="wp-block-column" style="flex-basis:80%"><!-- wp:post-title /-->
<!-- wp:post-excerpt {"moreText":"Read more","style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}}} /-->
<!-- wp:spacer {"height":"11px"} -->
<div style="height:11px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:separator {"style":{"spacing":{"margin":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"backgroundColor":"primary","className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-primary-color has-alpha-channel-opacity has-primary-background-color has-background is-style-wide" style="margin-top:var(--wp--preset--spacing--30);margin-bottom:var(--wp--preset--spacing--30)" />
<!-- /wp:separator -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
<!-- /wp:post-template -->
<!-- wp:query-pagination {"style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"layout":{"type":"flex","justifyContent":"center"}} -->
<!-- wp:query-pagination-previous /-->
<!-- wp:query-pagination-numbers /-->
<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination -->
<!-- wp:query-no-results -->
<!-- wp:paragraph {"placeholder":"Add text or blocks that will display when a query returns no results."} -->
<p></p>
<!-- /wp:paragraph -->
<!-- /wp:query-no-results -->
</div>
<!-- /wp:query -->

197
patterns/product-grid.php Normal file
View File

@ -0,0 +1,197 @@
<?php
/**
* Title: Products grid
* Slug: cmt/product-grid
* Description: Grid of products
* Categories: cmt, featured
*/
?>
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|70","padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","style":{"typography":{"fontSize":"18px","fontStyle":"normal","fontWeight":"400"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"backgroundColor":"primary","textColor":"white"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);font-size:18px;font-style:normal;font-weight:400">Standard Spartan® G clamps</h2>
<!-- /wp:heading -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30)"><!-- wp:image {"id":2247,"sizeSlug":"full","linkDestination":"none","align":"center"} -->
<figure class="wp-block-image aligncenter size-full"><img src="http://www.cmt.localhost/wp-content/uploads/2024/04/image-7.png" alt="" class="wp-image-2247" /></figure>
<!-- /wp:image -->
</div>
<!-- /wp:group -->
<!-- wp:buttons {"layout":{"type":"flex","verticalAlignment":"stretch","justifyContent":"center"}} -->
<div class="wp-block-buttons"><!-- wp:button {"width":100,"style":{"color":{"gradient":"linear-gradient(180deg,rgb(19,93,136) 0%,rgb(107,161,227) 100%)"},"spacing":{"padding":{"left":"var:preset|spacing|80","right":"var:preset|spacing|80"}}}} -->
<div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link has-background wp-element-button" style="background:linear-gradient(180deg,rgb(19,93,136) 0%,rgb(107,161,227) 100%);padding-right:var(--wp--preset--spacing--80);padding-left:var(--wp--preset--spacing--80)">View Products</a></div>
<!-- /wp:button -->
</div>
<!-- /wp:buttons -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","style":{"typography":{"fontSize":"18px","fontStyle":"normal","fontWeight":"400"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"backgroundColor":"primary","textColor":"white"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);font-size:18px;font-style:normal;font-weight:400">Spartan® Wedge Clamp</h2>
<!-- /wp:heading -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30)"><!-- wp:image {"id":2248,"sizeSlug":"full","linkDestination":"none","align":"center"} -->
<figure class="wp-block-image aligncenter size-full"><img src="http://www.cmt.localhost/wp-content/uploads/2024/04/image-8.png" alt="" class="wp-image-2248" /></figure>
<!-- /wp:image -->
</div>
<!-- /wp:group -->
<!-- wp:buttons {"layout":{"type":"flex","verticalAlignment":"stretch","justifyContent":"center"}} -->
<div class="wp-block-buttons"><!-- wp:button {"width":100,"style":{"color":{"gradient":"linear-gradient(180deg,rgb(19,93,136) 0%,rgb(107,161,227) 100%)"},"spacing":{"padding":{"left":"var:preset|spacing|80","right":"var:preset|spacing|80"}}}} -->
<div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link has-background wp-element-button" style="background:linear-gradient(180deg,rgb(19,93,136) 0%,rgb(107,161,227) 100%);padding-right:var(--wp--preset--spacing--80);padding-left:var(--wp--preset--spacing--80)">View Products</a></div>
<!-- /wp:button -->
</div>
<!-- /wp:buttons -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","style":{"typography":{"fontSize":"18px","fontStyle":"normal","fontWeight":"400"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"backgroundColor":"primary","textColor":"white"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);font-size:18px;font-style:normal;font-weight:400">Spartan® plier clamps</h2>
<!-- /wp:heading -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30)"><!-- wp:image {"id":2249,"sizeSlug":"full","linkDestination":"none","align":"center"} -->
<figure class="wp-block-image aligncenter size-full"><img src="http://www.cmt.localhost/wp-content/uploads/2024/04/image-9.png" alt="" class="wp-image-2249" /></figure>
<!-- /wp:image -->
</div>
<!-- /wp:group -->
<!-- wp:buttons {"layout":{"type":"flex","verticalAlignment":"stretch","justifyContent":"center"}} -->
<div class="wp-block-buttons"><!-- wp:button {"width":100,"style":{"color":{"gradient":"linear-gradient(180deg,rgb(19,93,136) 0%,rgb(107,161,227) 100%)"},"spacing":{"padding":{"left":"var:preset|spacing|80","right":"var:preset|spacing|80"}}}} -->
<div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link has-background wp-element-button" style="background:linear-gradient(180deg,rgb(19,93,136) 0%,rgb(107,161,227) 100%);padding-right:var(--wp--preset--spacing--80);padding-left:var(--wp--preset--spacing--80)">View Products</a></div>
<!-- /wp:button -->
</div>
<!-- /wp:buttons -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","style":{"typography":{"fontSize":"18px","fontStyle":"normal","fontWeight":"400"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"backgroundColor":"primary","textColor":"white"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);font-size:18px;font-style:normal;font-weight:400">Spartan® Euro clamps</h2>
<!-- /wp:heading -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30)"><!-- wp:image {"id":2250,"sizeSlug":"full","linkDestination":"none","align":"center"} -->
<figure class="wp-block-image aligncenter size-full"><img src="http://www.cmt.localhost/wp-content/uploads/2024/04/image-10.png" alt="" class="wp-image-2250" /></figure>
<!-- /wp:image -->
</div>
<!-- /wp:group -->
<!-- wp:buttons {"layout":{"type":"flex","verticalAlignment":"stretch","justifyContent":"center"}} -->
<div class="wp-block-buttons"><!-- wp:button {"width":100,"style":{"color":{"gradient":"linear-gradient(180deg,rgb(19,93,136) 0%,rgb(107,161,227) 100%)"},"spacing":{"padding":{"left":"var:preset|spacing|80","right":"var:preset|spacing|80"}}}} -->
<div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link has-background wp-element-button" style="background:linear-gradient(180deg,rgb(19,93,136) 0%,rgb(107,161,227) 100%);padding-right:var(--wp--preset--spacing--80);padding-left:var(--wp--preset--spacing--80)">View Products</a></div>
<!-- /wp:button -->
</div>
<!-- /wp:buttons -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","style":{"typography":{"fontSize":"18px","fontStyle":"normal","fontWeight":"400"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"backgroundColor":"primary","textColor":"white"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);font-size:18px;font-style:normal;font-weight:400">Spartan® box clamp</h2>
<!-- /wp:heading -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30)"><!-- wp:image {"id":2251,"sizeSlug":"full","linkDestination":"none","align":"center"} -->
<figure class="wp-block-image aligncenter size-full"><img src="http://www.cmt.localhost/wp-content/uploads/2024/04/image-11.png" alt="" class="wp-image-2251" /></figure>
<!-- /wp:image -->
</div>
<!-- /wp:group -->
<!-- wp:buttons {"layout":{"type":"flex","verticalAlignment":"stretch","justifyContent":"center"}} -->
<div class="wp-block-buttons"><!-- wp:button {"width":100,"style":{"color":{"gradient":"linear-gradient(180deg,rgb(19,93,136) 0%,rgb(107,161,227) 100%)"},"spacing":{"padding":{"left":"var:preset|spacing|80","right":"var:preset|spacing|80"}}}} -->
<div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link has-background wp-element-button" style="background:linear-gradient(180deg,rgb(19,93,136) 0%,rgb(107,161,227) 100%);padding-right:var(--wp--preset--spacing--80);padding-left:var(--wp--preset--spacing--80)">View Products</a></div>
<!-- /wp:button -->
</div>
<!-- /wp:buttons -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","style":{"typography":{"fontSize":"18px","fontStyle":"normal","fontWeight":"400"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"backgroundColor":"primary","textColor":"white"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);font-size:18px;font-style:normal;font-weight:400">Instructions for use of Spartan® clamps</h2>
<!-- /wp:heading -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30)"><!-- wp:image {"id":2252,"sizeSlug":"full","linkDestination":"none","align":"center"} -->
<figure class="wp-block-image aligncenter size-full"><img src="http://www.cmt.localhost/wp-content/uploads/2024/04/image-12.png" alt="" class="wp-image-2252" /></figure>
<!-- /wp:image -->
</div>
<!-- /wp:group -->
<!-- wp:buttons {"layout":{"type":"flex","verticalAlignment":"stretch","justifyContent":"center"}} -->
<div class="wp-block-buttons"><!-- wp:button {"width":100,"style":{"color":{"gradient":"linear-gradient(180deg,rgb(19,93,136) 0%,rgb(107,161,227) 100%)"},"spacing":{"padding":{"left":"var:preset|spacing|80","right":"var:preset|spacing|80"}}}} -->
<div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link has-background wp-element-button" style="background:linear-gradient(180deg,rgb(19,93,136) 0%,rgb(107,161,227) 100%);padding-right:var(--wp--preset--spacing--80);padding-left:var(--wp--preset--spacing--80)">View Products</a></div>
<!-- /wp:button -->
</div>
<!-- /wp:buttons -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","style":{"typography":{"fontSize":"18px","fontStyle":"normal","fontWeight":"400"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"backgroundColor":"primary","textColor":"white"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);font-size:18px;font-style:normal;font-weight:400">Hexagonal floats</h2>
<!-- /wp:heading -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30)"><!-- wp:image {"id":2253,"sizeSlug":"full","linkDestination":"none","align":"center"} -->
<figure class="wp-block-image aligncenter size-full"><img src="http://www.cmt.localhost/wp-content/uploads/2024/04/image-13.png" alt="" class="wp-image-2253" /></figure>
<!-- /wp:image -->
</div>
<!-- /wp:group -->
<!-- wp:buttons {"layout":{"type":"flex","verticalAlignment":"stretch","justifyContent":"center"}} -->
<div class="wp-block-buttons"><!-- wp:button {"width":100,"style":{"color":{"gradient":"linear-gradient(180deg,rgb(19,93,136) 0%,rgb(107,161,227) 100%)"},"spacing":{"padding":{"left":"var:preset|spacing|80","right":"var:preset|spacing|80"}}}} -->
<div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link has-background wp-element-button" style="background:linear-gradient(180deg,rgb(19,93,136) 0%,rgb(107,161,227) 100%);padding-right:var(--wp--preset--spacing--80);padding-left:var(--wp--preset--spacing--80)">View Products</a></div>
<!-- /wp:button -->
</div>
<!-- /wp:buttons -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"></div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
</div>
<!-- /wp:group -->

109
patterns/team.php Normal file
View File

@ -0,0 +1,109 @@
<?php
/**
* Title: Team page
* Slug: cmt/team
* Description: Default content for the Our Team page
* Categories: cmt, featured
*/
?>
<!-- wp:paragraph -->
<p><strong>At CMT Engineering our primary aim is always to offer outstanding customer service to our customers each and every time they deal with our company. Our team has many years of experience and can use its wide ranging product knowledge to help meet your requirements.</strong></p>
<!-- /wp:paragraph -->
<!-- wp:heading {"textAlign":"center","style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20","left":"0","right":"0"},"margin":{"right":"var:preset|spacing|20","left":"var:preset|spacing|20"}}},"backgroundColor":"primary","textColor":"white","fontSize":"medium"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-primary-background-color has-text-color has-background has-link-color has-medium-font-size" style="margin-right:var(--wp--preset--spacing--20);margin-left:var(--wp--preset--spacing--20);padding-top:var(--wp--preset--spacing--20);padding-right:0;padding-bottom:var(--wp--preset--spacing--20);padding-left:0">Anjali Agrawal</h2>
<!-- /wp:heading -->
<!-- wp:image {"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="https://www.cmt-engineering.co.uk/wp-content/uploads/2018/07/Anjali-Agrawal.png" alt="Anjali Agrawal - Owner and CEO" title="Anjali Agrawal - Owner and CEO" /></figure>
<!-- /wp:image -->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","style":{"color":{"background":"#646464"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"},"margin":{"right":"0","left":"0"}}},"textColor":"white","fontSize":"medium"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-text-color has-background has-link-color has-medium-font-size" style="background-color:#646464;margin-right:0;margin-left:0;padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20)">Owner and CEO</h2>
<!-- /wp:heading -->
</div>
<!-- /wp:group -->
<!-- wp:paragraph -->
<p><strong>Anjali is a Chartered Accountant; she has experience of working in various locations worldwide, giving her the opportunity to build a network of international relationships.</strong></p>
<!-- /wp:paragraph -->
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|70"}},"layout":{"type":"constrained","contentSize":"900px","justifyContent":"left","wideSize":"1300px"}} -->
<div class="wp-block-group"><!-- wp:columns {"style":{"spacing":{"blockGap":{"left":"var:preset|spacing|60"}}}} -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"textAlign":"center","style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}}},"backgroundColor":"primary","textColor":"white","fontSize":"medium"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-primary-background-color has-text-color has-background has-link-color has-medium-font-size" style="padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20)">Steve Pickett</h2>
<!-- /wp:heading -->
<!-- wp:image {"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="https://www.cmt-engineering.co.uk/wp-content/uploads/2018/07/Steve-Pickett.png" alt="Steve Pickett Sales Manager" title="Steve Pickett Sales Manager" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":4,"style":{"typography":{"fontSize":"18px"},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}},"color":{"background":"#646464"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}}},"textColor":"white"} -->
<h4 class="wp-block-heading has-text-align-center has-white-color has-text-color has-background has-link-color" style="background-color:#646464;padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20);font-size:18px">Sales Manager</h4>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p><strong>Steve has worked in the trade for over 30 years and brings a wealth of experience to the business.</strong></p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"textAlign":"center","style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}}},"backgroundColor":"primary","textColor":"white","fontSize":"medium"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-primary-background-color has-text-color has-background has-link-color has-medium-font-size" style="padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20)">Jon Smout</h2>
<!-- /wp:heading -->
<!-- wp:image {"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="https://www.cmt-engineering.co.uk/wp-content/uploads/2018/07/Jon-Smout.png" alt="Jon Smout- Works Manger" title="Jon Smout- Works Manger" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":4,"style":{"typography":{"fontSize":"18px"},"color":{"background":"#646464"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}}},"textColor":"white"} -->
<h4 class="wp-block-heading has-text-align-center has-white-color has-text-color has-background has-link-color" style="background-color:#646464;padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20);font-size:18px">Operations Manager</h4>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p><strong>Jon has been at CMT for over 20 years, he has a deep knowledge of engineering processes and is invaluable to the companys development.</strong></p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
<!-- wp:columns {"style":{"spacing":{"blockGap":{"left":"var:preset|spacing|60"}}}} -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"textAlign":"center","style":{"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}},"elements":{"link":{"color":{"text":"var:preset|color|white"}}}},"backgroundColor":"primary","textColor":"white","fontSize":"medium"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-primary-background-color has-text-color has-background has-link-color has-medium-font-size" style="padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20)">Ben Whale</h2>
<!-- /wp:heading -->
<!-- wp:image {"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="https://www.cmt-engineering.co.uk/wp-content/uploads/2018/07/Ben-Whale.png" alt="Ben Whale - Sales Administrator" title="Ben Whale - Sales Administrator" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":4,"style":{"typography":{"fontSize":"18px"},"color":{"background":"#646464"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}}},"textColor":"white"} -->
<h4 class="wp-block-heading has-text-align-center has-white-color has-text-color has-background has-link-color" style="background-color:#646464;padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20);font-size:18px">Sales Administrator</h4>
<!-- /wp:heading -->
</div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"textAlign":"center","style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}}},"backgroundColor":"primary","textColor":"white","fontSize":"medium"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-primary-background-color has-text-color has-background has-link-color has-medium-font-size" style="padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20)">Sharon Sahota</h2>
<!-- /wp:heading -->
<!-- wp:image {"align":"center"} -->
<figure class="wp-block-image aligncenter"><img src="https://www.cmt-engineering.co.uk/wp-content/uploads/2018/07/Sharon-Sahota.png" alt="Sharon Sahota - Sales Administrator" title="Sharon Sahota - Sales Administrator" /></figure>
<!-- /wp:image -->
<!-- wp:heading {"textAlign":"center","level":5,"style":{"typography":{"fontSize":"18px"},"color":{"background":"#646464"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}}},"textColor":"white"} -->
<h5 class="wp-block-heading has-text-align-center has-white-color has-text-color has-background has-link-color" style="background-color:#646464;padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20);font-size:18px">Sales Administrator</h5>
<!-- /wp:heading -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
</div>
<!-- /wp:group -->

View File

@ -19,6 +19,12 @@ Version: 0.1
.wp-block-navigation .wp-block-navigation-item:focus-visible { .wp-block-navigation .wp-block-navigation-item:focus-visible {
background: var(--wp--preset--color--secondary); background: var(--wp--preset--color--secondary);
} }
/* fix weird padding and font weight on header nav dropdown items */
ul.wp-block-navigation__submenu-container.has-background {
padding: 0;
font-weight: 400;
}
} }
@media screen and (max-width: 786px) { @media screen and (max-width: 786px) {
@ -38,4 +44,53 @@ Version: 0.1
padding-inline: 1em; padding-inline: 1em;
font-weight: 300; font-weight: 300;
} }
.wp-block-navigation__responsive-container-close svg {
padding: 1em;
width: 32px;
}
}
/* style contact form */
.visual-form-builder label, label.vfb-desc {
color: #055CAD;
font-size: 16px;
padding: 0 0 13px 0;
}
.vfb-legend {
display: none;
}
form.visual-form-builder {
position: relative;
margin: 20px 0;
background: 0;
list-style: none;
list-style-type: none;
list-style-image: none;
text-shadow: none;
font-family: inherit;
}
.visual-form-builder fieldset {
background-color: #ffffff;
border: 0px solid #d3d3d3;
}
.visual-form-builder input[type="submit"] {
background: #055CAD;
outline: none;
border-bottom: 3px solid #055CAD;
border: none;
border-bottom-width: medium;
border-bottom-style: none;
border-bottom-color: currentcolor;
border-bottom: 3px solid #055CAD;
border-radius: 2px;
color: #fff;
display: inline-block;
padding: 11px 24px 10px;
text-decoration: none;
} }

View File

@ -1,45 +1,57 @@
<!-- wp:template-part {"slug":"header","theme":"twentytwentyfour-child","tagName":"header","area":"header"} /--> <!-- wp:group {"style":{"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"}}},"backgroundColor":"base","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-base-background-color has-background"
style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"right":"0","left":"0","top":"0","bottom":"0"}}},"backgroundColor":"white","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide has-white-background-color has-background"
style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:template-part {"slug":"header","theme":"cmt-engineering-theme","tagName":"header","area":"header"} /-->
<!-- wp:group {"tagName":"main","align":"full","layout":{"type":"constrained"}} --> <!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|20","left":"var:preset|spacing|20"}}},"layout":{"type":"constrained"}} -->
<main class="wp-block-group alignfull"><!-- wp:heading {"level":1,"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|50"}}}} --> <div class="wp-block-group"
<h1 class="wp-block-heading alignwide" style="padding-top:var(--wp--preset--spacing--50)">Posts</h1> style="padding-right:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--20)">
<!-- /wp:heading --> <!-- wp:spacer {"height":"14px"} -->
<div style="height:14px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- wp:query {"queryId":0,"query":{"perPage":10,"pages":0,"offset":"0","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"align":"wide","layout":{"type":"default"}} -->
<div class="wp-block-query alignwide"><!-- wp:query-no-results -->
<!-- wp:paragraph -->
<p>No posts were found.</p>
<!-- /wp:paragraph -->
<!-- /wp:query-no-results -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"0","right":"0"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-right:0;padding-bottom:var(--wp--preset--spacing--50);padding-left:0"><!-- wp:post-template {"align":"full","style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"grid","columnCount":3}} -->
<!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/4","style":{"spacing":{"margin":{"bottom":"0"},"padding":{"bottom":"var:preset|spacing|20"}}}} /-->
<!-- wp:group {"style":{"spacing":{"blockGap":"10px","margin":{"top":"var:preset|spacing|20"},"padding":{"top":"0"}}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap"}} -->
<div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--20);padding-top:0"><!-- wp:post-title {"isLink":true,"style":{"layout":{"flexSize":"min(2.5rem, 3vw)","selfStretch":"fixed"}},"fontSize":"large"} /-->
<!-- wp:template-part {"slug":"post-meta","theme":"twentytwentyfour-child"} /-->
<!-- wp:post-excerpt {"style":{"layout":{"flexSize":"min(2.5rem, 3vw)","selfStretch":"fixed"}},"textColor":"contrast-2","fontSize":"small"} /-->
<!-- wp:spacer {"height":"0px","style":{"layout":{"flexSize":"min(2.5rem, 3vw)","selfStretch":"fixed"}}} -->
<div style="height:0px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer --></div>
<!-- /wp:group -->
<!-- /wp:post-template -->
<!-- wp:spacer {"height":"var:preset|spacing|40","style":{"spacing":{"margin":{"top":"0","bottom":"0"}}}} -->
<div style="margin-top:0;margin-bottom:0;height:var(--wp--preset--spacing--40)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer --> <!-- /wp:spacer -->
<!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} --> <!-- wp:post-title {"style":{"typography":{"fontSize":"30px","fontStyle":"normal","fontWeight":"400"},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"textColor":"primary"} /-->
<!-- wp:query-pagination-previous /-->
<!-- wp:query-pagination-next /--> <!-- wp:query {"queryId":13,"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false}} -->
<!-- /wp:query-pagination --></div> <div class="wp-block-query"><!-- wp:post-template -->
<!-- /wp:group --></div> <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"constrained"}} -->
<!-- /wp:query --></main> <div class="wp-block-group">
<!-- wp:post-title {"isLink":true,"style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"textColor":"primary"} /-->
<!-- wp:post-date /-->
</div>
<!-- /wp:group --> <!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","theme":"twentytwentyfour-child","tagName":"footer","area":"footer"} /--> <!-- wp:post-excerpt {"style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}}} /-->
<!-- /wp:post-template -->
<!-- wp:query-pagination {"style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}}} -->
<!-- wp:query-pagination-previous /-->
<!-- wp:query-pagination-numbers /-->
<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination -->
<!-- wp:query-no-results -->
<!-- wp:paragraph {"placeholder":"Add text or blocks that will display when a query returns no results."} -->
<p></p>
<!-- /wp:paragraph -->
<!-- /wp:query-no-results -->
</div>
<!-- /wp:query -->
<!-- wp:spacer {"height":"42px"} -->
<div style="height:42px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
</div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","theme":"cmt-engineering-theme","tagName":"footer","area":"footer","align":"wide"} /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

View File

@ -0,0 +1,15 @@
<!-- wp:group {"style":{"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"}}},"backgroundColor":"base","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-base-background-color has-background"
style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0","padding":{"top":"0","bottom":"0","left":"0","right":"0"}}},"backgroundColor":"white","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide has-white-background-color has-background"
style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:template-part {"slug":"header","theme":"cmt-engineering-theme","tagName":"header","area":"header"} /-->
<!-- wp:post-content {"align":"wide","backgroundColor":"base-2"} /-->
<!-- wp:template-part {"slug":"footer","theme":"cmt-engineering-theme","tagName":"footer","area":"footer","align":"wide"} /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

View File

@ -1,10 +1,27 @@
<!-- wp:group {"layout":{"type":"constrained"}} --> <!-- wp:group {"style":{"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"}}},"backgroundColor":"base","layout":{"type":"constrained"}} -->
<div class="wp-block-group"> <div class="wp-block-group has-base-background-color has-background"
<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0"}},"layout":{"type":"constrained"}} --> style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<div class="wp-block-group alignwide"> <!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"right":"0","left":"0","top":"0","bottom":"0"}}},"backgroundColor":"white","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide has-white-background-color has-background"
style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:template-part {"slug":"header","theme":"cmt-engineering-theme","tagName":"header","area":"header"} /--> <!-- wp:template-part {"slug":"header","theme":"cmt-engineering-theme","tagName":"header","area":"header"} /-->
<!-- wp:post-content {"align":"wide","backgroundColor":"base-2"} /--> <!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|20","left":"var:preset|spacing|20"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group"
style="padding-right:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--20)">
<!-- wp:spacer {"height":"14px"} -->
<div style="height:14px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:post-title {"level":1,"style":{"typography":{"fontSize":"30px","fontStyle":"normal","fontWeight":"400"},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"textColor":"primary"} /-->
<!-- wp:post-content /-->
<!-- wp:spacer {"height":"42px"} -->
<div style="height:42px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
</div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","theme":"cmt-engineering-theme","tagName":"footer","area":"footer","align":"wide"} /--> <!-- wp:template-part {"slug":"footer","theme":"cmt-engineering-theme","tagName":"footer","area":"footer","align":"wide"} /-->
</div> </div>

View File

@ -1,19 +0,0 @@
<!-- wp:template-part {"slug":"header","tagName":"header","area":"header"} /-->
<!-- wp:group {"tagName":"main","align":"full","layout":{"type":"constrained"}} -->
<main class="wp-block-group alignfull"><!-- wp:spacer {"height":"var:preset|spacing|40"} -->
<div style="height:var(--wp--preset--spacing--40)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:post-featured-image {"align":"wide","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|20"}}}} /-->
<!-- wp:group {"align":"wide","layout":{"type":"constrained","justifyContent":"left"}} -->
<div class="wp-block-group alignwide"></div>
<!-- /wp:group -->
<!-- wp:spacer {"height":"var:preset|spacing|40"} -->
<div style="height:var(--wp--preset--spacing--40)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer --></main>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","tagName":"footer","area":"footer"} /-->

View File

@ -1,15 +1,40 @@
<!-- wp:template-part {"slug":"header","tagName":"header","area":"header"} /--> <!-- wp:group {"style":{"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"}}},"backgroundColor":"base","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-base-background-color has-background"
style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"}}},"backgroundColor":"white","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide has-white-background-color has-background"
style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:template-part {"slug":"header","theme":"cmt-engineering-theme","tagName":"header","area":"header"} /-->
<!-- wp:heading --> <!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|20","left":"var:preset|spacing|20"}}},"layout":{"type":"constrained","contentSize":"1000px","wideSize":"1300px"}} -->
<h2 class="wp-block-heading"></h2> <div class="wp-block-group"
<!-- /wp:heading --> style="padding-right:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--20)">
<!-- wp:spacer {"height":"14px"} -->
<div style="height:14px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:group {"metadata":{"name":"Post metadata"},"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
<!-- wp:post-title {"style":{"typography":{"fontSize":"30px","fontStyle":"normal","fontWeight":"400"},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}},"spacing":{"padding":{"bottom":"0"},"margin":{"bottom":"0"}}},"textColor":"primary"} /-->
<!-- wp:post-date {"style":{"typography":{"fontStyle":"normal","fontWeight":"300"},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}},"spacing":{"padding":{"top":"0"}}},"textColor":"primary"} /-->
</div>
<!-- /wp:group -->
<!-- wp:post-content /--> <!-- wp:post-content /-->
<!-- wp:query {"queryId":70,"query":{"perPage":"1","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false}} --> <!-- wp:separator {"className":"is-style-dots"} -->
<div class="wp-block-query"><!-- wp:post-template --> <hr class="wp-block-separator has-alpha-channel-opacity is-style-dots" />
<!-- wp:post-featured-image /--> <!-- /wp:separator -->
<!-- /wp:post-template --></div>
<!-- /wp:query -->
<!-- wp:template-part {"slug":"footer","tagName":"footer","area":"footer"} /--> <!-- wp:spacer {"height":"42px"} -->
<div style="height:42px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
</div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","theme":"cmt-engineering-theme","tagName":"footer","area":"footer","align":"wide"} /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

View File

@ -16,6 +16,11 @@
"name": "Secondary", "name": "Secondary",
"slug": "secondary" "slug": "secondary"
}, },
{
"color": "#5A0D0D",
"name": "Secondary darker",
"slug": "secondary-darker"
},
{ {
"color": "#333333", "color": "#333333",
"name": "Body text", "name": "Body text",
@ -25,6 +30,11 @@
"color": "#FFF", "color": "#FFF",
"name": "White", "name": "White",
"slug": "white" "slug": "white"
},
{
"color": "#F2F2F2",
"name": "Base",
"slug": "base"
} }
] ]
}, },
@ -50,7 +60,7 @@
}, },
{ {
"fontFamily": "Lato", "fontFamily": "Lato",
"fontStyle": "normal", "fontStyle": "bold",
"fontWeight": "700", "fontWeight": "700",
"src": "file:./assets/fonts/Lato-Bold.ttf" "src": "file:./assets/fonts/Lato-Bold.ttf"
}, },
@ -105,6 +115,9 @@
} }
}, },
"styles": { "styles": {
"color": {
"background": "var(--wp--preset--color--white)"
},
"blocks": { "blocks": {
"core/button": { "core/button": {
"border": { "border": {
@ -113,6 +126,17 @@
"color": { "color": {
"background": "var(--wp--preset--color--secondary)", "background": "var(--wp--preset--color--secondary)",
"text": "var(--wp--preset--color--white)" "text": "var(--wp--preset--color--white)"
},
"css": "&:hover { background-color: var(--wp--preset--color--secondary-darker) }\n &:focus { background-color: var(--wp--preset--color--secondary-darker) }\n &:active { background-color: var(--wp--preset--color--secondary-darker) }"
},
"core/paragraph": {
"typography": {
"fontWeight": "300"
}
},
"core/list": {
"typography": {
"fontWeight": "300"
} }
} }
}, },
@ -120,6 +144,13 @@
"fontFamily": "var(--wp--preset--font-family--lato)" "fontFamily": "var(--wp--preset--font-family--lato)"
} }
}, },
"customTemplates": [
{
"name": "page-no-title",
"postTypes": ["page"],
"title": "Page No Title"
}
],
"version": 2, "version": 2,
"$schema": "https://schemas.wp.org/wp/6.5/theme.json" "$schema": "https://schemas.wp.org/wp/6.5/theme.json"
} }