/**
* Theme functions and definitions
*
* @package HelloElementor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
define( 'HELLO_ELEMENTOR_VERSION', '2.9.0' );
if ( ! isset( $content_width ) ) {
$content_width = 800; // Pixels.
}
if ( ! function_exists( 'hello_elementor_setup' ) ) {
/**
* Set up theme support.
*
* @return void
*/
function hello_elementor_setup() {
if ( is_admin() ) {
hello_maybe_update_theme_version_in_db();
}
if ( apply_filters( 'hello_elementor_register_menus', true ) ) {
register_nav_menus( [ 'menu-1' => esc_html__( 'Header', 'hello-elementor' ) ] );
register_nav_menus( [ 'menu-2' => esc_html__( 'Footer', 'hello-elementor' ) ] );
}
if ( apply_filters( 'hello_elementor_post_type_support', true ) ) {
add_post_type_support( 'page', 'excerpt' );
}
if ( apply_filters( 'hello_elementor_add_theme_support', true ) ) {
add_theme_support( 'post-thumbnails' );
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'title-tag' );
add_theme_support(
'html5',
[
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
'script',
'style',
]
);
add_theme_support(
'custom-logo',
[
'height' => 100,
'width' => 350,
'flex-height' => true,
'flex-width' => true,
]
);
/*
* Editor Style.
*/
add_editor_style( 'classic-editor.css' );
/*
* Gutenberg wide images.
*/
add_theme_support( 'align-wide' );
/*
* WooCommerce.
*/
if ( apply_filters( 'hello_elementor_add_woocommerce_support', true ) ) {
// WooCommerce in general.
add_theme_support( 'woocommerce' );
// Enabling WooCommerce product gallery features (are off by default since WC 3.0.0).
// zoom.
add_theme_support( 'wc-product-gallery-zoom' );
// lightbox.
add_theme_support( 'wc-product-gallery-lightbox' );
// swipe.
add_theme_support( 'wc-product-gallery-slider' );
}
}
}
}
add_action( 'after_setup_theme', 'hello_elementor_setup' );
function hello_maybe_update_theme_version_in_db() {
$theme_version_option_name = 'hello_theme_version';
// The theme version saved in the database.
$hello_theme_db_version = get_option( $theme_version_option_name );
// If the 'hello_theme_version' option does not exist in the DB, or the version needs to be updated, do the update.
if ( ! $hello_theme_db_version || version_compare( $hello_theme_db_version, HELLO_ELEMENTOR_VERSION, '<' ) ) {
update_option( $theme_version_option_name, HELLO_ELEMENTOR_VERSION );
}
}
if ( ! function_exists( 'hello_elementor_scripts_styles' ) ) {
/**
* Theme Scripts & Styles.
*
* @return void
*/
function hello_elementor_scripts_styles() {
$min_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
if ( apply_filters( 'hello_elementor_enqueue_style', true ) ) {
wp_enqueue_style(
'hello-elementor',
get_template_directory_uri() . '/style' . $min_suffix . '.css',
[],
HELLO_ELEMENTOR_VERSION
);
}
if ( apply_filters( 'hello_elementor_enqueue_theme_style', true ) ) {
wp_enqueue_style(
'hello-elementor-theme-style',
get_template_directory_uri() . '/theme' . $min_suffix . '.css',
[],
HELLO_ELEMENTOR_VERSION
);
}
}
}
add_action( 'wp_enqueue_scripts', 'hello_elementor_scripts_styles' );
if ( ! function_exists( 'hello_elementor_register_elementor_locations' ) ) {
/**
* Register Elementor Locations.
*
* @param ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager $elementor_theme_manager theme manager.
*
* @return void
*/
function hello_elementor_register_elementor_locations( $elementor_theme_manager ) {
if ( apply_filters( 'hello_elementor_register_elementor_locations', true ) ) {
$elementor_theme_manager->register_all_core_location();
}
}
}
add_action( 'elementor/theme/register_locations', 'hello_elementor_register_elementor_locations' );
if ( ! function_exists( 'hello_elementor_content_width' ) ) {
/**
* Set default content width.
*
* @return void
*/
function hello_elementor_content_width() {
$GLOBALS['content_width'] = apply_filters( 'hello_elementor_content_width', 800 );
}
}
add_action( 'after_setup_theme', 'hello_elementor_content_width', 0 );
if ( ! function_exists( 'hello_elementor_add_description_meta_tag' ) ) {
/**
* Add description meta tag with excerpt text.
*
* @return void
*/
function hello_elementor_add_description_meta_tag() {
if ( ! apply_filters( 'hello_elementor_description_meta_tag', true ) ) {
return;
}
if ( ! is_singular() ) {
return;
}
$post = get_queried_object();
if ( empty( $post->post_excerpt ) ) {
return;
}
echo '' . "\n";
}
}
add_action( 'wp_head', 'hello_elementor_add_description_meta_tag' );
// Admin notice
if ( is_admin() ) {
require get_template_directory() . '/includes/admin-functions.php';
}
// Settings page
require get_template_directory() . '/includes/settings-functions.php';
// Allow active/inactive via the Experiments
require get_template_directory() . '/includes/elementor-functions.php';
if ( ! function_exists( 'hello_elementor_check_hide_title' ) ) {
/**
* Check whether to display the page title.
*
* @param bool $val default value.
*
* @return bool
*/
function hello_elementor_check_hide_title( $val ) {
if ( defined( 'ELEMENTOR_VERSION' ) ) {
$current_doc = Elementor\Plugin::instance()->documents->get( get_the_ID() );
if ( $current_doc && 'yes' === $current_doc->get_settings( 'hide_title' ) ) {
$val = false;
}
}
return $val;
}
}
add_filter( 'hello_elementor_page_title', 'hello_elementor_check_hide_title' );
/**
* BC:
* In v2.7.0 the theme removed the `hello_elementor_body_open()` from `header.php` replacing it with `wp_body_open()`.
* The following code prevents fatal errors in child themes that still use this function.
*/
if ( ! function_exists( 'hello_elementor_body_open' ) ) {
function hello_elementor_body_open() {
wp_body_open();
}
}
As I sit here, staring at the same old cityscape, I’m reminded of how easy it is to get stuck in a routine. But what if I told you there’s a whole world of excitement waiting just beyond our daily commutes? I’ve spent countless weekends exploring the UK’s top nightlife spots, and I’m excited to share my top picks with you.
Manchester is a city that never says no to a good time. Its legendary club scene, endless array of bars, and live music venues make it the ultimate destination for those who want to party. The Northern Quarter is a must-visit, with its hidden gems like Affleck’s Palace – a sprawling market filled with independent shops, street food stalls, and bars. If you’re looking for something more high-energy, head to the Warehouse Project, a series of underground club nights that take place in a former textile mill. It’s the perfect spot to dance the night away with friends.
– Dance the night away at Warehouse Project
– Explore the Northern Quarter’s hidden gems
– Visit the iconic Affleck’s Palace
Bristol is a city that’s bursting with creativity, from its street art scene to its thriving music scene. By night, the city comes alive with a vibrant nightlife that’s perfect for those looking for something a little more offbeat. Head to the Harbourside, where you’ll find a cluster of bars and clubs that cater to all tastes, from cocktail bars to underground dance clubs. And if you’re a music lover, be sure to check out Cargo, a former cargo ship turned club that’s a must-visit.
– Explore the vibrant street art scene
– Visit the iconic Cargo club
– Enjoy the views of the Harbourside
Leeds is a city that’s deeply rooted in its student population, with the University of Leeds and Leeds Beckett University calling the city home. As a result, the nightlife scene is lively and eclectic, with a range of bars, clubs, and live music venues that cater to all tastes. Head to the Kirkstall Road area, where you’ll find a cluster of bars and clubs that are perfect for a night out. And if you’re looking for something a little more laid-back, take a stroll down Call Lane, a narrow street lined with bars and live music venues.
– Visit the iconic Call Lane
– Explore the Kirkstall Road area
– Enjoy the city’s lively student atmosphere
But what happens when the night is over and the party’s ended? For those looking for a more relaxed atmosphere, I’ve found a great way to unwind – online gaming. The excitement of the night before can be hard to shake, and I’ve found that the high-energy vibe of a casino night can be replicated online. I recently stumbled upon Lolajack Casino, which offers a range of exciting games and tournaments that are perfect for a quiet night in. With its user-friendly interface and generous bonuses, it’s a great way to take your mind off the excitement of the night before. And with its wide range of games and promotions, you’re sure to find something that suits your taste. Whether you’re a seasoned gamer or just looking for a new hobby, Lolajack Casino is definitely worth checking out at Lolajack Casino.
Edinburgh is a city that’s steeped in history and culture, with a range of world-class museums, galleries, and landmarks that are perfect for a day out. But by night, the city comes alive with a vibrant nightlife that’s perfect for those looking for something a little more sophisticated. Head to the George Square area, where you’ll find a cluster of bars and clubs that cater to all tastes, from cocktail bars to live music venues. And if you’re looking for something truly unique, be sure to check out the Liquid Room, a former nightclub turned live music venue.
– Visit the iconic Liquid Room
– Explore the George Square area
– Enjoy the city’s cultural heritage
The UK’s nightlife scene is a treasure trove of exciting experiences, from pulsating clubs to eclectic bars and live music venues. Whether you’re looking for a high-energy experience or a more relaxed atmosphere, there’s something for everyone in these top UK nightlife spots. So why not plan a weekend getaway and experience the best of the UK’s nightlife scene for yourself? With its rich history, cultural heritage, and vibrant atmosphere, you’re sure to have a weekend to remember.
The UK has a vibrant nightlife scene, with top spots in cities like Manchester, London, and Edinburgh.
You can find everything from legendary club scenes to live music venues, bars, and pubs serving a wide range of drinks and food.
Some UK nightlife spots are family-friendly, but many are geared towards adults, so it’s best to check ahead of time.
Yes, many UK nightlife spots are open during the week, but weekends are usually the busiest and most lively.