Get started
-
404.php
- 1<?php get_header();?>
- 2<div class="container-fluid single-page-template" style="margin:0px auto !important;padding: 0px 0px 0px 0px;">
- 3<div class="container" style="padding: 90px 20px 90px 0px;">
- 4<div class="row" style="margin:0px auto;padding: 0px 0px 0px 0px;display: flex;flex-wrap: wrap;flex-direction: row;justify-content: space-between;align-content: stretch;">
- 5<div id="single-page-section" class="col-sm-8 col-md-8" style="margin:0px 0px 30px 0px;border-bottom: 1px dotted #000;padding: 0px 0px 40px 0px;">
- 6<?php include (TEMPLATEPATH . '/design/content/meta/breadcrumbs/spb.php');?>
- 7<article>
- 8<?php // if ( is_user_logged_in() ) {;?>
- 9<!--<div style="position:fixed;max-width:100px;max-height:100px;background:#F00;top:50%;right:0;s">
- 10<button class="btn btn-dark customize-unpreviewable" href="<?php // echo home_url(); ?>/wp-admin/post.php?post=<?php // the_ID(); ?>&action=edit" title="" role="contentinfo" type="button" title="<?php // the_title(); ?> - Edit This Page "><span class="dashicons dashicons-edit-page"></span></button>
- 11<a class="btn btn-dark" href="<?php // echo home_url(); ?>/wp-admin/customize.php?url=<?php // echo get_the_permalink(); ?>" title="" role="contentinfo" type="button">Live Customize Edit</a>
- 12</div>-->
- 13<?php // } else{ };?>
- 14<header id="headertitle" style="white-space: normal;width:100%;display:inline-block;">
- 15<h1 class="single-page-header-title"><?php get_the_title(); ?>
- 16 <?php
- 17 $customTitle = get_theme_mod('yourseobook_single_page_heading_title_setting');
- 18 if (!empty($customTitle)) {
- 19 echo esc_html($customTitle);
- 20 } else {
- 21echo get_the_title();
- 22 }
- 23 ?>
- 24</h1>
- 25</header>
- 26<div class="entry-content">
- 27<header class="page-header alignwide">
- 28<h1 class="page-title"><?php esc_html_e( '404 Page Not Found', 'yourseobook' ); ?></h1>
- 29<p>The page you were looking for doesn’t exist. You may have mistyped the address or the page may have moved</p>
- 30</header><!-- .page-header -->
- 31</div>
- 32<footer>
- 33<hr>
- 34<?php // include (TEMPLATEPATH . '/design/content/meta/sp/single-page-bottom-meta.php');?>
- 35<?php // include (TEMPLATEPATH . '/design/content/meta/sp/single-page-bottom-share-buttons.php');?>
- 36<?php // include (TEMPLATEPATH . '/design/content/meta/sp/single-page-bottom-author.php');?>
- 37<style>
- 38div#mySidenav .sidenav.shown ul {
- 39 list-style: circle;
- 40 padding: 10px;
- 41}
- 42.shown ul li a {
- 43 color: #fff;
- 44 text-align: left;
- 45 text-decoration: none;
- 46 font-weight: 400;
- 47 margin: 10px 0px 10px 0px;
- 48 display: inline-block;
- 49 border: 1px dotted #fff;
- 50 padding: 5px;
- 51 font-size: 12px;
- 52 line-height: 1.15rem;
- 53}
- 54</style>
- 55</footer>
- 56</article>
- 57<div class="container">
- 58<div class="row">
- 59<div class="col-md-4">
- 60<ul class="list-group">
- 61<li><a href="#">Go To Home Page</a></li>
- 62<li><a href="#">Report the broken link here</a></li>
- 63<li><a href="#">View The Sitemap</a></li>
- 64<li><a href="#">Check The Blog Categories</a></li>
- 65<li><a href="#">Check The Blog Posts</a></li>
- 66<li><a href="#">Check The Blog Tags</a></li>
- 67<li><a href="#">Check The Popular Posts</a></li>
- 68</ul>
- 69</div>
- 70
- 71<div class="col-md-8">
- 72<p><?php esc_html_e( 'It looks like nothing was found at this location.', 'yourseobook' ); ?> <?php esc_html_e( ' We’re sorry, we seem to have lost this page, but we don’t want to lose you.', 'yourseobook' ); ?></p>
- 73
- 74<h3 style="margin:0px 0px 20px 0px;padding:0px 0px 10px 0px;text-align:center;font-size:26px;">Maybe try a website search?</h3>
- 75
- 76<?php get_search_form(); ?>
- 77</div>
- 78 </div><!-- .page-row -->
- 79 </div><!-- .page-container -->
- 80
- 81
- 82</div>
- 83
- 84 <?php if ( get_theme_mod( 'yourseobook_single_page_sidebar_display_control' ) ) : ?>
- 85<div id="spsdc" class="col-sm-3 col-md-3">
- 86<aside>
- 87
- 88<?php if ( is_active_sidebar( 'yourseobook_single_page_right_sidebar' ) ) : ?>
- 89 <?php dynamic_sidebar( 'yourseobook_single_page_right_sidebar' ); ?>
- 90<?php endif; ?>
- 91 </aside>
- 92 </div>
- 93<?php endif; ?>
- 94
- 95 </div>
- 96
- 97 </div>
- 98 </div>
- 99 <?php if ( get_theme_mod( 'yourseobook_single_page_cta_sticky_socials_display_control' ) ) : ?>
- 100<?php include (TEMPLATEPATH . '/design/engage/call-to-actions/sticky-socials.php');?>
- 101<?php endif; ?>
- 102 <?php if ( get_theme_mod( 'yourseobook_single_page_cta_footer_pop_up_display_control' ) ) : ?>
- 103<?php include (TEMPLATEPATH . '/design/engage/call-to-actions/footer-pop-up.php');?>
- 104<?php // include (TEMPLATEPATH . '/design/engage/call-to-actions/free-website-audit.php ');?>
- 105<?php endif; ?>
- 106<?php get_footer();?>
README.md
- 1
- ai - 1 - 2 - 4.25 KB - August 29 2023 07:34:45
- api - 1 - 0 - 0 B - August 29 2023 07:35:58
-
avatar.png
- 1
dashboard.php
- 1<?php
- 2session_start();
- 3if(!isset($_SESSION['user'])){
- 4 header("location: login.php");
- 5}else{
- 6 $name = $_SESSION['user'][2];
- 7 $user_email = $_SESSION['user'][0]; // Get the user's email
- 8 $brand_name = $_SESSION['user'][3]; // Get the user's Brand Name
- 9 $root_domain = $_SESSION['user'][4]; // Get the user's Root Domain
- 10 $domain_www = $_SESSION['user'][5];
- 11 $domain_http = $_SESSION['user'][6];
- 12 $domain_http_www = $_SESSION['user'][7];
- 13 $domain_https = $_SESSION['user'][8];
- 14 $domain_https_www = $_SESSION['user'][9];
- 15 $canonical_url = $_SESSION['user'][10];
- 16 $canonical_response = $_SESSION['user'][11];
- 17 $hops_root_domain = $_SESSION['user'][12];
- 18 $hops_domain_www = $_SESSION['user'][13];
- 19 $hops_domain_http = $_SESSION['user'][14];
- 20 $hops_domain_http_www = $_SESSION['user'][15];
- 21 $domain_https = $_SESSION['user'][16];
- 22 $domain_https_www = $_SESSION['user'][17];
- 23 $hops_canonical_url = $_SESSION['user'][18];
- 24
- 25}
- 26?>
- 27<!DOCTYPE html>
- 28<html lang="en">
- 29<head>
- 30 <meta charset="UTF-8">
- 31 <meta http-equiv="X-UA-Compatible" content="IE=edge">
- 32 <meta name="viewport" content="width=device-width, initial-scale=1.0">
- 33 <link rel="stylesheet" href="style.css">
- 34 <title>Dashboard</title>
- 35
- 36
- 37</head>
- 38<body>
- 39
- 40
- 41<div class="container">
- 42<div class="row">
- 43
- 44
- 45 <div class="dashboardContainer">
- 46 <?php // include 'api/inc/header.php'; ?>
- 47 <?php // include 'api/inc/side-nav.php'; ?>
- 48 <div class="avatar">
- 49<span style="font-size:12px; color:#000;font-weight:500px;"> CRUD Dashboard Beta v 1.0.98</span>
- 50 <img src="avatar.png">
- 51 </div>
- 52 <div class="welcomeMessage">
- 53 Hello <b><?php echo $name ?></b>, welcome to your personal SEO Toolbox and Webmaster Dashboard.
- 54 </div>
- 55<button onclick="getDataByEmail()"></button>
- 56 <div class="notes">
- 57 <p>Get a high-level view of all your projects and track their SEO performance and progress..</p>
- 58 <p>Discover how your website is performing with our powerful SEO Book Pro tool.</p>
- 59<p>Just enter your domain name and email below to get started.</p>
- 60<p>Get professional analysis of your website to identify SEO errors, keyword opportunities, and competition.</p>
- 61 </div>
- 62
- 63 <div class="user-data">
- 64 <!-- Display the user's data here -->
- 65<h3 class='display-2 py-4 md-3 border-bottom'>SEO Book Pro - Technical SEO and Websites Audit</h3>
- 66 <?php
- 67 if(isset($user_email)) {
- 68 // Fetch and display user's data from your database or other sources
- 69 echo "Your Email Address: " . $user_email . "<br>";
- 70 echo "Company Brand Name: " . $brand_name . "<br>";
- 71 echo "Root Domain */: " . $root_domain . "<br>";
- 72 echo "Root Domain + www: " . $domain_www . "<br>";
- 73 echo "Root Domain + http: " . $domain_http . "<br>";
- 74 echo "Root Domain + http + www: " . $domain_http_www . "<br>";
- 75 echo "Root Domain + https: " . $domain_https . "<br>";
- 76 echo "Root Domain + https + www: " . $domain_https_www . "<br>";
- 77 echo "Canonical Final URL: " . $canonical_url . "<br>";
- 78 echo "Canonical Final URL Response: " . $canonical_response . "<br>";
- 79 echo "Root Domain Hops - Redirects Check/Audit: " . $hops_root_domain . "<br>";
- 80 echo "Root Domain + www - Hops Redirects Check/Audit: " . $hops_domain_www . "<br>";
- 81 echo "Root Domain + http Hops - Redirects Check/Audit: " . $hops_domain_http . "<br>";
- 82 echo "Root Domain + http + www - Hops Redirects Check/Audit: " . $hops_domain_http_www . "<br>";
- 83 echo "Root Domain + https - Hops Redirects Check/Audit: " . $domain_https . "<br>";
- 84 echo "Root Domain + https + www - Hops Redirects Check/Audit: " . $domain_https_www . "<br>";
- 85 echo "Canonical Final Hops URLs Check/Audit: " . $hops_canonical_url . "<br>";
- 86
- 87 // You can add other fields here as well, e.g., brand name, root domain, etc.
- 88 }
- 89 ?>
- 90 </div>
- 91 </div>
- 92 </div>
- 93 </div>
- 94<?php
- 95// Fetch data from your database or any source
- 96$brandList = array(
- 97 array("brand_name" => "Brand 1"),
- 98 array("brand_name" => "Brand 2"),
- 99 // Add more data here
- 100);
- 101
- 102echo json_encode($brandList);
- 103?>
- 104
- 105<form id="yourForm">
- 106 <input type="text" name="brand_name" placeholder="Brand Name">
- 107 <input type="submit" value="Add Brand">
- 108</form>
- 109
- 110<div id="responseMessage"></div>
- 111
- 112
- 113
- 114<script>
- 115async function fetchData(action, payload) {
- 116 const response = await fetch('https://script.google.com/macros/s/AKfycbxNe-P1pceB_K8_uvoRDidwWQwQoFMlX8Z1aq4951lNnIlFOcARfzJwnh1XMxTS6-iu/exec', {
- 117 method: 'POST',
- 118 headers: {
- 119 'Content-Type': 'application/x-www-form-urlencoded',
- 120 },
- 121 body: `action=${encodeURIComponent(action)}&${payload}`,
- 122 });
- 123
- 124 const data = await response.json();
- 125 return data;
- 126}
- 127
- 128// Example usage:
- 129async function loginUser() {
- 130 const email = 'user@example.com';
- 131 const password = 'password123';
- 132 const payload = `email=${encodeURIComponent(email)}&password=${encodeURIComponent(password)}`;
- 133
- 134 const response = await fetchData('login', payload);
- 135
- 136 if (response.status === 'success') {
- 137 // Update the dashboard content with the received data
- 138 document.querySelector('.welcomeMessage').innerHTML = `Hello <b>${response.data[2]}</b>, welcome to my website. ${response.data[2]}`;
- 139 } else {
- 140 console.error('Login failed:', response.message);
- 141 }
- 142}
- 143
- 144
- 145
- 146$("#yourForm").submit(function(event) {
- 147 event.preventDefault();
- 148
- 149 // Display a loading message while waiting for response
- 150 $('#responseMessage').html('Loading...');
- 151
- 152 var formData = $(this).serialize();
- 153 var scriptUrl = 'https://script.google.com/macros/s/AKfycbxNe-P1pceB_K8_uvoRDidwWQwQoFMlX8Z1aq4951lNnIlFOcARfzJwnh1XMxTS6-iu/exec';
- 154
- 155 $.ajax({
- 156 url: scriptUrl,
- 157 method: 'POST', // Use POST method
- 158 data: formData,
- 159 success: function(response) {
- 160 // Clear the loading message
- 161 $('#responseMessage').empty();
- 162
- 163 // Display success message or updated data
- 164 $('#responseMessage').html('Brand added successfully!');
- 165
- 166 // Fetch and display the updated data
- 167 fetchAndDisplayData();
- 168 },
- 169 error: function(error) {
- 170 // Clear the loading message
- 171 $('#responseMessage').empty();
- 172
- 173 // Display error message
- 174 $('#responseMessage').html('Error occurred. Please try again.');
- 175 }
- 176 });
- 177});
- 178
- 179function fetchAndDisplayData() {
- 180 // Clear previous data
- 181 $('#brandList').empty();
- 182
- 183 // Fetch data and display
- 184 $.ajax({
- 185 url: 'https://seobookpro.com/ai/dashboard.php', // Replace with your fetch data script URL
- 186 method: 'GET',
- 187 success: function(data) {
- 188 var brandList = JSON.parse(data);
- 189
- 190 // Display new data
- 191 for (var i = 0; i < brandList.length; i++) {
- 192 $('#brandList').append('<li>' + brandList[i].brand_name + '</li>');
- 193 }
- 194 },
- 195 error: function(error) {
- 196 // Handle error
- 197 }
- 198 });
- 199}
- 200
- 201// Load and display initial data
- 202$(document).ready(function() {
- 203 fetchAndDisplayData();
- 204});
- 205
- 206</script>
- 207
- 208
- 209
- 210<div class="container">
- 211<footer>
- 212
- 213<a href="logout.php">Logout</a>
- 214
- 215</footer>
- 216</div>
- 217
- 218</body>
- 219</html>
index.html
- 1
index.php
- 1<?php
- 2session_start();
- 3
- 4if(!isset($_SESSION['user'])){
- 5 header("location: login.php");
- 6}else{
- 7 header("location: dashboard.php");
- 8}
login.php
- 1<?php session_start(); ?>
- 2<!DOCTYPE html>
- 3<html lang="en">
- 4<head>
- 5 <meta charset="UTF-8">
- 6 <meta http-equiv="X-UA-Compatible" content="IE=edge">
- 7 <meta name="viewport" content="width=device-width, initial-scale=1.0">
- 8 <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
- 9<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3">
- 10<script src="https://getbootstrap.com/docs/5.3/assets/js/color-modes.js"></script>
- 11
- 12 <link rel="stylesheet" href="style.css">
- 13 <link rel="stylesheet" href="dashboard.css">
- 14 <title>Login page</title>
- 15</head>
- 16<body>
- 17 <div class="formContainer">
- 18 <form method="post" action="login_action.php">
- 19 <h2 class="title">Login</h2>
- 20 <div class="tip">
- 21 Login to your account using email and password
- 22 </div>
- 23 <?php
- 24 if(isset($_SESSION['error'])){
- 25 echo "<div class='errorMsg'>{$_SESSION['error']}</div>";
- 26 unset($_SESSION['error']);
- 27 }
- 28 ?>
- 29 <label for="email">Email</label>
- 30 <input type="text" name="email" autocomplete="off">
- 31 <label for="password">Password</label>
- 32 <input type="password" name="password">
- 33 <input type="submit" value="LOGIN">
- 34 </form>
- 35 <div class="link">
- 36 Don't have an account yet? <a href="signup.php">Sign up</a>
- 37 </div>
- 38 </div>
- 39
- 40
- 41 <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
- 42<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
- 43<script src="general.js"></script>
- 44</body>
- 45</html>
login_action.php
- 1<?php
- 2session_start();
- 3
- 4$url = "https://script.google.com/macros/s/AKfycbxNe-P1pceB_K8_uvoRDidwWQwQoFMlX8Z1aq4951lNnIlFOcARfzJwnh1XMxTS6-iu/exec";
- 5$postData = [
- 6 "action" => "login",
- 7 "email" => $_POST['email'],
- 8 "password" => $_POST['password']
- 9 // "brand_name" => $_POST['brand_name']
- 10];
- 11
- 12$ch = curl_init($url);
- 13curl_setopt_array($ch, [
- 14 CURLOPT_FOLLOWLOCATION => true,
- 15 CURLOPT_RETURNTRANSFER => true,
- 16 CURLOPT_POSTFIELDS => $postData
- 17]);
- 18
- 19$result = curl_exec($ch);
- 20$result = json_decode($result, 1);
- 21
- 22if($result['status'] == "success"){
- 23 $_SESSION['user'] = $result['data'];
- 24 header("location: dashboard.php");
- 25}else{
- 26 $_SESSION['error'] = $result['message'];
- 27 header("location: login.php");
- 28}
- 29
- 30
logout.php
- 1<?php
- 2session_start();
- 3if(isset($_SESSION['user'])){
- 4 unset($_SESSION['user']);
- 5}
- 6
- 7header("location: login.php");
signup.php
- 1<?php session_start(); ?>
- 2<!DOCTYPE html>
- 3<html lang="en" data-bs-theme="auto">
- 4<head>
- 5<script src="https://getbootstrap.com/docs/5.3/assets/js/color-modes.js"></script>
- 6
- 7 <meta charset="utf-8">
- 8 <meta name="viewport" content="width=device-width, initial-scale=1">
- 9 <meta name="description" content="">
- 10 <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
- 11<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3">
- 12 <link rel="stylesheet" href="style.css">
- 13 <title>Get FREE Basic SEO Audit Now</title>
- 14<style>
- 15 .bd-placeholder-img {
- 16 font-size: 1.125rem;
- 17 text-anchor: middle;
- 18 -webkit-user-select: none;
- 19 -moz-user-select: none;
- 20 user-select: none;
- 21 }
- 22
- 23 @media (min-width: 768px) {
- 24 .bd-placeholder-img-lg {
- 25 font-size: 3.5rem;
- 26 }
- 27 }
- 28
- 29 .b-example-divider {
- 30 width: 100%;
- 31 height: 3rem;
- 32 background-color: rgba(0, 0, 0, .1);
- 33 border: solid rgba(0, 0, 0, .15);
- 34 border-width: 1px 0;
- 35 box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
- 36 }
- 37
- 38 .b-example-vr {
- 39 flex-shrink: 0;
- 40 width: 1.5rem;
- 41 height: 100vh;
- 42 }
- 43
- 44 .bi {
- 45 vertical-align: -.125em;
- 46 fill: currentColor;
- 47 }
- 48
- 49 .nav-scroller {
- 50 position: relative;
- 51 z-index: 2;
- 52 height: 2.75rem;
- 53 overflow-y: hidden;
- 54 }
- 55
- 56 .nav-scroller .nav {
- 57 display: flex;
- 58 flex-wrap: nowrap;
- 59 padding-bottom: 1rem;
- 60 margin-top: -1px;
- 61 overflow-x: auto;
- 62 text-align: center;
- 63 white-space: nowrap;
- 64 -webkit-overflow-scrolling: touch;
- 65 }
- 66
- 67 .btn-bd-primary {
- 68 --bd-violet-bg: #712cf9;
- 69 --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
- 70
- 71 --bs-btn-font-weight: 600;
- 72 --bs-btn-color: var(--bs-white);
- 73 --bs-btn-bg: var(--bd-violet-bg);
- 74 --bs-btn-border-color: var(--bd-violet-bg);
- 75 --bs-btn-hover-color: var(--bs-white);
- 76 --bs-btn-hover-bg: #6528e0;
- 77 --bs-btn-hover-border-color: #6528e0;
- 78 --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
- 79 --bs-btn-active-color: var(--bs-btn-hover-color);
- 80 --bs-btn-active-bg: #5a23c8;
- 81 --bs-btn-active-border-color: #5a23c8;
- 82 }
- 83 .bd-mode-toggle {
- 84 z-index: 1500;
- 85 }
- 86
- 87.container {
- 88 max-width: 960px;
- 89}
- 90
- 91 </style>
- 92</head>
- 93 <body class="bg-body-tertiary">
- 94 <svg xmlns="http://www.w3.org/2000/svg" class="d-none">
- 95 <symbol id="check2" viewBox="0 0 16 16">
- 96 <path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/>
- 97 </symbol>
- 98 <symbol id="circle-half" viewBox="0 0 16 16">
- 99 <path d="M8 15A7 7 0 1 0 8 1v14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"/>
- 100 </symbol>
- 101 <symbol id="moon-stars-fill" viewBox="0 0 16 16">
- 102 <path d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"/>
- 103 <path d="M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z"/>
- 104 </symbol>
- 105 <symbol id="sun-fill" viewBox="0 0 16 16">
- 106 <path d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"/>
- 107 </symbol>
- 108 </svg>
- 109
- 110 <div class="dropdown position-fixed bottom-0 end-0 mb-3 me-3 bd-mode-toggle">
- 111 <button class="btn btn-bd-primary py-2 dropdown-toggle d-flex align-items-center"
- 112 id="bd-theme"
- 113 type="button"
- 114 aria-expanded="false"
- 115 data-bs-toggle="dropdown"
- 116 aria-label="Toggle theme (auto)">
- 117 <svg class="bi my-1 theme-icon-active" width="1em" height="1em"><use href="#circle-half"></use></svg>
- 118 <span class="visually-hidden" id="bd-theme-text">Toggle theme</span>
- 119 </button>
- 120 <ul class="dropdown-menu dropdown-menu-end shadow" aria-labelledby="bd-theme-text">
- 121 <li>
- 122 <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="light" aria-pressed="false">
- 123 <svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em"><use href="#sun-fill"></use></svg>
- 124 Light
- 125 <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
- 126 </button>
- 127 </li>
- 128 <li>
- 129 <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="dark" aria-pressed="false">
- 130 <svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em"><use href="#moon-stars-fill"></use></svg>
- 131 Dark
- 132 <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
- 133 </button>
- 134 </li>
- 135 <li>
- 136 <button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="auto" aria-pressed="true">
- 137 <svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em"><use href="#circle-half"></use></svg>
- 138 Auto
- 139 <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
- 140 </button>
- 141 </li>
- 142 </ul>
- 143 </div>
- 144
- 145
- 146<div class="container">
- 147 <main>
- 148
- 149 <div class="py-1 text-center">
- 150 <div class="formContainer">
- 151 <form method="post" action="signup_action.php">
- 152<nav class="navbar bg-body-tertiary">
- 153 <div class="container-fluid">
- 154 <a class="navbar-brand" href="https://seobookpro.com/">
- 155 <img src="https://seobookpro.com/wp-content/uploads/2023/08/your-seo-book-logo-e1692315513778.jpeg" alt="Logo" width="30" height="24" class="d-inline-block align-text-top">
- 156 SEO Book Pro
- 157 </a>
- 158 </div>
- 159</nav>
- 160
- 161 <div class="tip"><small>
- 162Join to our community today. Visit our SEO Network to find out more Advanced SEO and Websites Tools and Guides. Discover how your website is performing with our powerful SEO Book Pro tool. Just enter your domain name and email below to get started. Get professional analysis of your website to identify SEO errors, keyword opportunities, and competition.
- 163 </div></small>
- 164 <?php
- 165 if(isset($_SESSION['error'])){
- 166 echo "<div class='errorMsg'>{$_SESSION['error']}</div>";
- 167 unset($_SESSION['error']);
- 168 }
- 169 if(isset($_SESSION['success'])){
- 170 echo "<div class='successMsg'>{$_SESSION['success']}</div>";
- 171 unset($_SESSION['success']);
- 172 }
- 173 ?>
- 174 <label for="name">Name</label>
- 175 <input type="text" name="name" autocomplete="off">
- 176 <label for="email">Email</label>
- 177 <input type="text" name="email" autocomplete="off">
- 178 <label for="password">Password</label>
- 179 <input type="password" name="password">
- 180 <input type="submit" value="SIGNUP">
- 181 </form>
- 182 <div class="link">
- 183 Already have an account? <a href="login.php">Login</a>
- 184 </div>
- 185
- 186
- 187
- 188 </div>
- 189 </div>
- 190
- 191 <footer class="my-2 pt-2 text-body-secondary text-center text-small">
- 192 <p class="mb-1">© 2010–2023 - SEO Book Pro</p>
- 193 <ul class="list-inline">
- 194 <li class="list-inline-item"><a href="#">Privacy</a></li>
- 195 <li class="list-inline-item"><a href="#">Terms</a></li>
- 196 <li class="list-inline-item"><a href="#">Support</a></li>
- 197 </ul>
- 198 </footer>
- 199 </main>
- 200<style>
- 201
- 202.container {
- 203 max-width: 960px;
- 204}
- 205
- 206
- 207</style>
- 208
- 209<script>
- 210// Example starter JavaScript for disabling form submissions if there are invalid fields
- 211(() => {
- 212 'use strict'
- 213
- 214 // Fetch all the forms we want to apply custom Bootstrap validation styles to
- 215 const forms = document.querySelectorAll('.needs-validation')
- 216
- 217 // Loop over them and prevent submission
- 218 Array.from(forms).forEach(form => {
- 219 form.addEventListener('submit', event => {
- 220 if (!form.checkValidity()) {
- 221 event.preventDefault()
- 222 event.stopPropagation()
- 223 }
- 224
- 225 form.classList.add('was-validated')
- 226 }, false)
- 227 })
- 228})()
- 229
- 230
- 231</script>
- 232
- 233
- 234
- 235 <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
- 236<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
- 237</body>
- 238</html>
signup_action.php
- 1<?php
- 2session_start();
- 3
- 4$url = "https://script.google.com/macros/s/AKfycbxNe-P1pceB_K8_uvoRDidwWQwQoFMlX8Z1aq4951lNnIlFOcARfzJwnh1XMxTS6-iu/exec";
- 5$postData = [
- 6 "action" => "signup",
- 7 "name" => $_POST['name'],
- 8 "email" => $_POST['email'],
- 9 "password" => $_POST['password']
- 10];
- 11
- 12$ch = curl_init($url);
- 13curl_setopt_array($ch, [
- 14 CURLOPT_FOLLOWLOCATION => true,
- 15 CURLOPT_RETURNTRANSFER => true,
- 16 CURLOPT_POSTFIELDS => $postData
- 17]);
- 18
- 19$result = curl_exec($ch);
- 20$result = json_decode($result, 1);
- 21
- 22if($result['status'] == "success"){
- 23 $_SESSION['success'] = "Signup successfully, please login";
- 24 header("location: signup.php");
- 25}else{
- 26 $_SESSION['error'] = $result['message'];
- 27 header("location: signup.php");
- 28}
- 29
- 30
style.css
- 1* {
- 2 box-sizing: border-box;
- 3 font-family: Arial, sans-serif;
- 4 margin:0;
- 5}
- 6
- 7body{
- 8 background-color: #eae8f2;
- 9 color:#555555;
- 10}
- 11
- 12label{
- 13 display: block;
- 14 font-size: 14px;
- 15 font-weight: bold;
- 16 margin-bottom: px;
- 17 margin-top: 20px;
- 18}
- 19
- 20h2.title{
- 21 margin-top: 10px;
- 22}
- 23
- 24.tip{
- 25 display: block;
- 26 font-size: small;
- 27 margin-bottom: 40px;
- 28}
- 29
- 30.formContainer,
- 31.dashboardContainer{
- 32 background-color: #ffffff;
- 33 border:10px solid rgba(8,35,172,0.2);
- 34 border-radius: 20px;
- 35 min-height: 550px;
- 36 padding: 20px;
- 37 width:350px;
- 38 margin:100px auto;
- 39}
- 40
- 41input[type=text],
- 42input[type=password]{
- 43 border: 1px solid #cccccc;
- 44 border-radius: 5px;
- 45 height:40px;
- 46 padding: 0 10px;
- 47 outline-color: rgba(8,35,172,0.8);
- 48 width: 100%;
- 49}
- 50.dashboardContainer{
- 51 width: 850px;
- 52}
- 53
- 54input[type=submit]{
- 55 background-color: #5823b2;
- 56 border:none;
- 57 border-radius: 5px;
- 58 color:#ffffff;
- 59 height: 40px;
- 60 margin-top: 30px;
- 61 width:100%;
- 62 cursor: pointer;
- 63}
- 64input[type=submit]:hover{
- 65 opacity: 0.7;
- 66}
- 67
- 68.link{
- 69 font-size: small;
- 70 margin-top: 30px;
- 71 text-align: center;
- 72}
- 73
- 74a{
- 75 color: #5823b2;
- 76 font-weight: bold;
- 77 text-decoration: none;
- 78}
- 79
- 80.avatar img{
- 81 width: 100px;
- 82}
- 83
- 84.welcomeMessage{
- 85 margin-top: 20px;
- 86}
- 87
- 88.notes{
- 89 font-style: italic;
- 90 margin-bottom: 30px;
- 91}
- 92
- 93.errorMsg{
- 94 font-size: small;
- 95 background-color: #ff7979;
- 96 color: #ffffff;
- 97 border-radius: 5px;
- 98 padding:10px;
- 99}
- 100
- 101.successMsg{
- 102 font-size: small;
- 103 background-color: #2ecc71;
- 104 color: #ffffff;
- 105 border-radius: 5px;
- 106 padding:10px;
- 107}
- users - 2 - 0 - 0 B - August 29 2023 07:32:19
-
sign-in.php
- 1
- api - 2 - 2 - 4.25 KB - August 25 2023 09:34:31
- admin - 1 - 0 - 0 B - August 20 2023 21:34:28
-
admin-functions.php
- 1<?php
- 2
- 3
- 4// Fix the Bootstrap Overlap wp admin bar navigation when logged in
- 5function yourseobook_wp_head() {
- 6 if (is_user_logged_in()) {
- 7 echo '<style>'.PHP_EOL;
- 8 echo 'body{ padding-top: 0px !important; }'.PHP_EOL;
- 9 echo 'body.body-logged-in nav.master-header-nav-menu{ top: 32px !important; }'.PHP_EOL;
- 10 echo 'body.body-logged-in header.fixed-top{ top: 132px !important; }'.PHP_EOL;
- 11// logged-in customize-partial-edit-shortcuts-shown
- 12 echo 'body.logged-in.customize-partial-edit-shortcuts-shown .navbar.navbar-dark.bg-dark{ top: 0px !important; }'.PHP_EOL;
- 13 echo 'body.logged-in.customize-partial-edit-shortcuts-hidden .navbar.navbar-dark.bg-dark{ top: 0px !important; }'.PHP_EOL;
- 14 echo 'body.logged-in.customize-partial-edit-shortcuts-shown #pre-build-header-navs{ top: 0px !important; }'.PHP_EOL;
- 15 echo 'body.logged-in .container.gad{ top: 140px !important; position: relative; margin: 10px auto 10px auto;}'.PHP_EOL;
- 16 echo 'body.logged-in .navbar.navbar-dark.bg-dark{ top: 32px !important; position: fixed; margin: 0px auto 0px auto;}'.PHP_EOL;
- 17 echo 'body.home.page-template.page-template-page-templates.page-template-landing.page-template-page-templateslanding-php.page.page-id-1.logged-in.customize-partial-edit-shortcuts-shown main{ top: auto !important;position:relative; }'.PHP_EOL;
- 18 echo 'body.home.page-template.page-template-page-templates.page-template-landing.page-template-page-templateslanding-php.page.page-id-1.logged-in.customize-partial-edit-shortcuts-shown nav.master-header-nav-menu{ top: 0px !important; }'.PHP_EOL;
- 19
- 20 echo 'body.body-logged-in.customize-partial-edit-shortcuts-hidden #main-nav { top: 0px !important; }'.PHP_EOL;
- 21
- 22 echo 'body.logged-in nav.master-header-nav-menu{ top: 32px !important; }'.PHP_EOL;
- 23 echo 'body.logged-in header.fixed-top{ top: 32px !important; }'.PHP_EOL;
- 24 echo 'body.logged-in form#customize-controls.wp-full-overlay-sidebar { background: red !important; width: 500px !important; }'.PHP_EOL;
- 25 echo '</style>'.PHP_EOL;
- 26 }
- 27}
- 28
- 29add_action('wp_head', 'yourseobook_wp_head');
- 30
- 31
- 32// End Main Header Navigation Menu Margin Settings
- 33function yourseobook_header_main_navigation_master_menu_styles() {
- 34 $header_main_navigation_master_menu_background_color = get_theme_mod( 'yourseobook_header_main_navigation_master_menu_background_color' );
- 35 $header_main_navigation_master_menu_width = get_theme_mod( 'yourseobook_header_main_navigation_master_menu_width' );
- 36 $header_main_navigation_master_menu_height = get_theme_mod( 'yourseobook_header_main_navigation_master_menu_height' );
- 37 $header_main_navigation_master_menu_margin = get_theme_mod( 'yourseobook_header_main_navigation_master_menu_margin' );
- 38 $header_main_navigation_master_menu_padding = get_theme_mod( 'yourseobook_header_main_navigation_master_menu_padding' );
- 39
- 40// Above The Fold Styles and Customisation
- 41
- 42 $main_land_above_the_fold_background = get_theme_mod( 'yourseobook_main_land_above_the_fold_background_color' );
- 43 $main_land_above_the_fold_text_color = get_theme_mod( 'yourseobook_main_land_above_the_fold_text_color' );
- 44 $main_land_above_the_fold_text_fs = get_theme_mod( 'yourseobook_main_land_above_the_fold_font_size' );
- 45 $main_land_above_the_fold_text_lh = get_theme_mod( 'yourseobook_main_land_above_the_fold_txt_lh' );
- 46 $main_land_above_the_fold_text_fw = get_theme_mod( 'yourseobook_main_land_above_the_fold_txt_fw' );
- 47 $main_land_above_the_fold_text_font_fam = get_theme_mod( 'yourseobook_main_land_above_the_fold_txt_font_family' );
- 48 $main_land_above_the_fold_text_trans = get_theme_mod( 'yourseobook_main_land_above_the_fold_txt_trans' );
- 49 $main_land_above_the_fold_text_align = get_theme_mod( 'yourseobook_main_land_above_the_fold_txt_align' );
- 50
- 51// Start Below The Fold Styles and Customisation
- 52
- 53 $main_land_below_the_fold_background = get_theme_mod( 'yourseobook_main_land_below_the_fold_background_color' );
- 54 $main_land_below_the_fold_heading_title_color = get_theme_mod( 'yourseobook_main_land_below_the_fold_heading_title_color' );
- 55 $main_land_below_the_fold_content_box_color = get_theme_mod( 'yourseobook_main_land_below_the_fold_content_box_color' );
- 56
- 57
- 58if ( $main_land_below_the_fold_background != 'rgba(0,0,0,1)' || $main_land_below_the_fold_heading_title_color != 'rgba(0,0,0,1)' || $main_land_below_the_fold_content_box_color != 'rgba(255,255,255,1)' )
- 59// Below The Fold Styles and Customisation
- 60
- 61
- 62// General Buttons Settings
- 63// yourseobook_website_general_buttons_font_size
- 64 $website_general_buttons_font_size = get_theme_mod( 'yourseobook_website_general_buttons_font_size' );
- 65 $website_general_buttons_background_color = get_theme_mod( 'yourseobook_website_general_buttons_background_color' );
- 66 $website_general_buttons_width = get_theme_mod( 'yourseobook_website_general_buttons_width' );
- 67 $website_general_buttons_margin = get_theme_mod( 'yourseobook_website_general_buttons_margin' );
- 68 $website_general_buttons_padding = get_theme_mod( 'yourseobook_website_general_buttons_padding' );
- 69 $website_general_buttons_border_radius = get_theme_mod( 'yourseobook_website_general_buttons_border_radius' );
- 70 $website_general_buttons_text_color = get_theme_mod( 'yourseobook_website_general_buttons_text_color' );
- 71
- 72
- 73
- 74// yourseobook_website_header_cta_button_background_color
- 75// Footer Styles
- 76 $footer_scroll_to_top_background = get_theme_mod( 'yourseobook_footer_scroll_to_top_background_color' );
- 77
- 78
- 79
- 80//
- 81
- 82 $header_cta_button_background_color = get_theme_mod( 'yourseobook_header_cta_button_background_color' );
- 83 // $header_cta_button_opacity = get_theme_mod( 'yourseobook_header_cta_button_opacity' );
- 84 $header_cta_button_font_size = get_theme_mod( 'yourseobook_header_cta_button_font_size' );
- 85 // $header_cta_button_text_transform = get_theme_mod( 'yourseobook_header_cta_button_text_transform' );
- 86 $header_cta_button_text_decoration = get_theme_mod( 'yourseobook_header_cta_button_text_decoration' );
- 87 $header_cta_button_width = get_theme_mod( 'yourseobook_header_cta_button_width' );
- 88 $header_cta_button_height = get_theme_mod( 'yourseobook_header_cta_button_height');
- 89 $header_cta_button_padding_top = get_theme_mod( 'yourseobook_header_cta_button_padding_top' );
- 90 $header_cta_button_padding_right = get_theme_mod( 'yourseobook_header_cta_button_padding_right' );
- 91 $header_cta_button_padding_bottom = get_theme_mod( 'yourseobook_header_cta_button_padding_bottom' );
- 92 $header_cta_button_padding_left = get_theme_mod( 'yourseobook_header_cta_button_padding_left' );
- 93 $header_cta_button_margin_top = get_theme_mod( 'yourseobook_header_cta_button_margin_top' );
- 94 $header_cta_button_margin_right = get_theme_mod( 'yourseobook_header_cta_button_margin_right' );
- 95 $header_cta_button_margin_bottom = get_theme_mod( 'yourseobook_header_cta_button_margin_bottom' );
- 96 $header_cta_button_margin_left = get_theme_mod( 'yourseobook_header_cta_button_margin_left' );
- 97 $header_cta_button_border_radius = get_theme_mod( 'yourseobook_header_cta_button_border_radius' );
- 98 $header_cta_button_border_size = get_theme_mod( 'yourseobook_header_cta_button_border_size' );
- 99 $header_cta_button_border_type = get_theme_mod( 'yourseobook_header_cta_button_border_type' );
- 100 $header_cta_button_border_color = get_theme_mod( 'yourseobook_header_cta_button_border_color' );
- 101 $header_cta_button_text_color = get_theme_mod( 'yourseobook_header_cta_button_text_color' );
- 102 // $header_cta_button_float = get_theme_mod( 'yourseobook_header_cta_button_float' );
- 103 $header_cta_button_font_weight = get_theme_mod( 'yourseobook_header_cta_button_font_weight' );
- 104 $header_cta_button_text_align = get_theme_mod( 'yourseobook_header_cta_button_text_align' );
- 105 // $header_cta_button_display = get_theme_mod( 'yourseobook_header_cta_button_display' );
- 106 // $header_cta_button_position = get_theme_mod( 'yourseobook_header_cta_button_position' );
- 107 // $header_cta_button_text_shadow_offset_x = get_theme_mod( 'yourseobook_header_cta_button_box_shadow_top' );
- 108 // $header_cta_button_text_shadow_offset_y = get_theme_mod( 'yourseobook_header_cta_button_box_shadow_top' );
- 109 // $header_cta_button_text_shadow_offset_blur_radius = get_theme_mod( 'yourseobook_header_cta_button_box_shadow_top' );
- 110 // $header_cta_button_text_shadow_color = get_theme_mod( 'yourseobook_header_cta_button_box_shadow_top' );
- 111 // $header_cta_button_box_shadow = get_theme_mod( 'yourseobook_header_cta_button_box_shadow' );
- 112 // $header_cta_button_box_shadow_top = get_theme_mod( 'yourseobook_header_cta_button_box_shadow_top' );
- 113 // $header_cta_button_box_shadow_right = get_theme_mod( 'yourseobook_header_cta_button_box_shadow_right' );
- 114 // $header_cta_button_box_shadow_bottom = get_theme_mod( 'yourseobook_header_cta_button_box_shadow_bottom' );
- 115 // $header_cta_button_box_shadow_left = get_theme_mod( 'yourseobook_header_cta_button_box_shadow_left' );
- 116 // $header_cta_button_box_shadow_color = get_theme_mod( 'yourseobook_header_cta_button_box_shadow_color' );
- 117
- 118// Header Logo Image Settings
- 119// yourseobook_header_logo_default_image_width
- 120//yourseobook_header_logo_default_image_height
- 121
- 122 $header_navigation_menu_logo_width = get_theme_mod( 'yourseobook_header_logo_default_image_width' );
- 123 $header_navigation_menu_logo_height = get_theme_mod( 'yourseobook_header_logo_default_image_height' );
- 124
- 125if ( $header_navigation_menu_logo_width != '60px' || $header_navigation_menu_logo_height != '60px')
- 126
- 127// End Header Logo Settings
- 128
- 129
- 130 $header_navigation_menu_search_bar_background_color = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_background_color' );
- 131 // $header_navigation_menu_search_bar_opacity = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_opacity' );
- 132 $header_navigation_menu_search_bar_font_size = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_font_size' );
- 133 // $header_navigation_menu_search_bar_text_transform = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_text_transform' );
- 134 // $header_navigation_menu_search_bar_text_decoration = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_text_decoration' );
- 135 $header_navigation_menu_search_bar_width = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_width' );
- 136 // $header_navigation_menu_search_bar_height = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_height');
- 137 $header_navigation_menu_search_bar_padding_top = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_padding_top' );
- 138 $header_navigation_menu_search_bar_padding_right = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_padding_right' );
- 139 $header_navigation_menu_search_bar_padding_bottom = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_padding_bottom' );
- 140 $header_navigation_menu_search_bar_padding_left = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_padding_left' );
- 141 $header_navigation_menu_search_bar_margin_top = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_margin_top' );
- 142 $header_navigation_menu_search_bar_margin_right = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_margin_right' );
- 143 $header_navigation_menu_search_bar_margin_bottom = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_margin_bottom' );
- 144 $header_navigation_menu_search_bar_margin_left = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_margin_left' );
- 145 $header_navigation_menu_search_bar_border_radius = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_border_radius' );
- 146 $header_navigation_menu_search_bar_border_size = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_border_size' );
- 147 $header_navigation_menu_search_bar_border_type = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_border_type' );
- 148 $header_navigation_menu_search_bar_border_color = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_border_color' );
- 149 // $header_navigation_menu_search_bar_text_color = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_text_color' );
- 150 // $header_navigation_menu_search_bar_float = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_float' );
- 151 // $header_navigation_menu_search_bar_font_weight = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_font_weight' );
- 152 // $header_navigation_menu_search_bar_text_align = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_text_align' );
- 153 // $header_navigation_menu_search_bar_display = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_display' );
- 154 // $header_navigation_menu_search_bar_position = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_position' );
- 155 // $header_navigation_menu_search_bar_text_shadow_offset_x = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_top' );
- 156 // $header_navigation_menu_search_bar_text_shadow_offset_y = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_top' );
- 157 // $header_navigation_menu_search_bar_text_shadow_offset_blur_radius = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_top' );
- 158 // $header_navigation_menu_search_bar_text_shadow_color = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_top' );
- 159 // $header_navigation_menu_search_bar_box_shadow = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow' );
- 160 // $header_navigation_menu_search_bar_box_shadow_top = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_top' );
- 161 // $header_navigation_menu_search_bar_box_shadow_right = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_right' );
- 162 // $header_navigation_menu_search_bar_box_shadow_bottom = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_bottom' );
- 163 // $header_navigation_menu_search_bar_box_shadow_left = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_left' );
- 164 // $header_navigation_menu_search_bar_box_shadow_color = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_color' );
- 165
- 166
- 167
- 168 $header_nav_menu_background_color = get_theme_mod( 'yourseobook_header_nav_menu_background_color' );
- 169 $header_nav_menu_links_color = get_theme_mod( 'yourseobook_header_nav_menu_links_color' );
- 170 // $header_nav_menu_opacity = get_theme_mod( 'header_nav_menu_opacity' );
- 171 // $header_nav_menu_font_size = get_theme_mod( 'yourseobook_header_nav_menu_font_size' );
- 172 // $header_nav_menu_text_transform = get_theme_mod( 'yourseobook_header_nav_menu_text_transform' );
- 173 // $header_nav_menu_text_decoration = get_theme_mod( 'yourseobook_header_nav_menu_text_decoration' );
- 174 $header_nav_menu_width = get_theme_mod( 'yourseobook_header_nav_menu_width' );
- 175 // $header_nav_menu_height = get_theme_mod( 'yourseobook_header_nav_menu_height');
- 176 // $header_nav_menu_padding_top = get_theme_mod( 'yourseobook_header_nav_menu_padding_top' );
- 177 // $header_nav_menu_padding_right = get_theme_mod( 'yourseobook_header_nav_menu_padding_right' );
- 178 // $header_nav_menu_padding_bottom = get_theme_mod( 'yourseobook_header_nav_menu_padding_bottom' );
- 179 // $header_nav_menu_padding_left = get_theme_mod( 'yourseobook_header_nav_menu_padding_left' );
- 180 // $header_nav_menu_margin_top = get_theme_mod( 'yourseobook_header_nav_menu_margin_top' );
- 181 // $header_nav_menu_margin_right = get_theme_mod( 'yourseobook_header_nav_menu_margin_right' );
- 182 // $header_nav_menu_margin_bottom = get_theme_mod( 'yourseobook_header_nav_menu_margin_bottom' );
- 183 // $header_nav_menu_margin_left = get_theme_mod( 'yourseobook_header_nav_menu_margin_left' );
- 184 $header_nav_menu_border_radius = get_theme_mod( 'yourseobook_header_nav_menu_border_radius' );
- 185 $header_nav_menu_border_size = get_theme_mod( 'yourseobook_header_nav_menu_border_size' );
- 186 $header_nav_menu_border_type = get_theme_mod( 'yourseobook_header_nav_menu_border_type' );
- 187 $header_nav_menu_border_color = get_theme_mod( 'yourseobook_header_nav_menu_border_color' );
- 188 // $header_nav_menu_text_color = get_theme_mod( 'yourseobook_header_nav_menu_text_color' );
- 189 // $header_nav_menu_float = get_theme_mod( 'yourseobook_header_nav_menu_float' );
- 190 // $header_nav_menu_font_weight = get_theme_mod( 'yourseobook_header_nav_menu_font_weight' );
- 191 // $header_nav_menu_text_align = get_theme_mod( 'yourseobook_header_nav_menu_text_align' );
- 192 // $header_nav_menu_display = get_theme_mod( 'yourseobook_header_nav_menu_display' );
- 193 // $header_nav_menu_position = get_theme_mod( 'yourseobook_header_nav_menu_position' );
- 194 // $header_nav_menu_text_shadow_offset_x = get_theme_mod( 'yourseobook_header_nav_menu_box_shadow_top' );
- 195 // $header_nav_menu_text_shadow_offset_y = get_theme_mod( 'yourseobook_header_nav_menu_box_shadow_top' );
- 196 // $header_nav_menu_text_shadow_offset_blur_radius = get_theme_mod( 'yourseobook_header_nav_menu_box_shadow_top' );
- 197 // $header_nav_menu_text_shadow_color = get_theme_mod( 'yourseobook_header_nav_menu_box_shadow_top' );
- 198 // $header_nav_menu_box_shadow = get_theme_mod( 'yourseobook_header_nav_menu_box_shadow' );
- 199 // $header_nav_menu_box_shadow_top = get_theme_mod( 'yourseobook_header_nav_menu_box_shadow_top' );
- 200 // $header_nav_menu_box_shadow_right = get_theme_mod( 'yourseobook_header_nav_menu_box_shadow_right' );
- 201 // $header_nav_menu_box_shadow_bottom = get_theme_mod( 'yourseobook_header_nav_menu_box_shadow_bottom' );
- 202 // $header_nav_menu_box_shadow_left = get_theme_mod( 'yourseobook_header_nav_menu_box_shadow_left' );
- 203 // $header_nav_menu_box_shadow_color = get_theme_mod( 'yourseobook_header_nav_menu_box_shadow_color' );
- 204
- 205
- 206
- 207$yourseobook_footer_background = get_theme_mod( 'yourseobook_footer_background_color' );
- 208$yourseobook_footer_text_color = get_theme_mod( 'yourseobook_main_footer_text_color' );
- 209$yourseobook_main_footer_links_color = get_theme_mod( 'yourseobook_main_footer_links_text_color' );
- 210$yourseobook_main_footer_links_txt_decoration = get_theme_mod( 'yourseobook_main_footer_links_text_decoration' );
- 211$yourseobook_main_footer_links_font_weight = get_theme_mod( 'yourseobook_main_footer_links_font_weight_settings' );
- 212$yourseobook_main_footer_links_font_size = get_theme_mod( 'yourseobook_main_footer_links_font_size_settings' );
- 213$yourseobook_main_footer_widgets_title_font_size = get_theme_mod( 'yourseobook_main_footer_widgets_title_font_size_settings' );
- 214$yourseobook_main_footer_widgets_title_text_color = get_theme_mod( 'yourseobook_main_footer_widgets_title_font_text_color' );
- 215$yourseobook_main_footer_widgets_title_font_weight = get_theme_mod( 'yourseobook_main_footer_widgets_title_font_weight_settings' );
- 216
- 217$yourseobook_footer_margin_top = get_theme_mod( 'yourseobook_main_footer_margin_top' );
- 218$yourseobook_footer_margin_right = get_theme_mod( 'yourseobook_main_footer_margin_right' );
- 219$yourseobook_footer_margin_bottom = get_theme_mod( 'yourseobook_main_footer_margin_bottom' );
- 220$yourseobook_footer_margin_left = get_theme_mod( 'yourseobook_main_footer_margin_left' );
- 221
- 222
- 223$yourseobook_footer_padding_top = get_theme_mod( 'yourseobook_main_footer_padding_top' );
- 224$yourseobook_footer_padding_right = get_theme_mod( 'yourseobook_main_footer_padding_right' );
- 225$yourseobook_footer_padding_bottom = get_theme_mod( 'yourseobook_main_footer_padding_bottom' );
- 226$yourseobook_footer_padding_left = get_theme_mod( 'yourseobook_main_footer_padding_left' );
- 227
- 228
- 229if (
- 230$yourseobook_footer_background != 'rgba(0,0,0,1)' ||
- 231$yourseobook_footer_text_color != 'rgba(255,255,255,1)' ||
- 232$yourseobook_main_footer_links_color != 'rgba(255,255,255,1)' ||
- 233$yourseobook_main_footer_links_txt_decoration != 'none' ||
- 234$yourseobook_main_footer_links_font_weight != '300' ||
- 235$yourseobook_main_footer_links_font_size != '16px' ||
- 236$yourseobook_main_footer_widgets_title_font_size != '20px' ||
- 237$yourseobook_main_footer_widgets_title_text_color != 'rgba(255,2255,255,1)' ||
- 238$yourseobook_main_footer_widgets_title_font_weight != '500' ||
- 239$yourseobook_footer_margin_top != '0px' ||
- 240$yourseobook_footer_margin_right != '0px' ||
- 241$yourseobook_footer_margin_bottom != '0px' ||
- 242$yourseobook_footer_margin_left != '0px' ||
- 243$yourseobook_footer_padding_top != '0px' ||
- 244$yourseobook_footer_padding_right != '0px' ||
- 245$yourseobook_footer_padding_bottom != '0px' ||
- 246$yourseobook_footer_padding_left != '0px'
- 247)
- 248
- 249
- 250
- 251if ( $header_main_navigation_master_menu_background_color != 'rgb(0 0 0)' || $header_main_navigation_master_menu_width != '100%' || $header_main_navigation_master_menu_height != '40px' || $header_main_navigation_master_menu_margin != '0px' || $header_main_navigation_master_menu_padding != '0px' )
- 252
- 253if ( $main_land_above_the_fold_background != 'rgb(0 0 0)' || $main_land_above_the_fold_text_color != 'rgb(0 0 0)' || $main_land_above_the_fold_text_fs != '12px' || $main_land_above_the_fold_text_lh != '0' || $main_land_above_the_fold_text_font_fam != '' || $main_land_above_the_fold_text_fw != '300' || $main_land_above_the_fold_text_trans != 'none' || $main_land_above_the_fold_text_align != 'start' )
- 254
- 255
- 256// General Scroll To Top Buttons Settings
- 257
- 258if ( $footer_scroll_to_top_background != '' )
- 259
- 260// Header CTA Button Settings
- 261if (
- 262$header_nav_menu_background_color != 'rgba(255,255,255,1)' ||
- 263//$header_nav_menu_font_size != '16px' ||
- 264$header_nav_menu_links_color != 'rgba(255,255,255,1)' ||
- 265// $header_nav_menu_font_weight != '300' ||
- 266$header_nav_menu_width != '' ||
- 267// $header_nav_menu_padding_top != '0px' ||
- 268// $header_nav_menu_padding_right != '0px' ||
- 269// $header_nav_menu_padding_bottom != '0px' ||
- 270// $header_nav_menu_padding_left != '0px' ||
- 271// $header_nav_menu_margin_top != '0px' ||
- 272// $header_nav_menu_margin_right != '0px' ||
- 273// $header_nav_menu_margin_bottom != '0px' ||
- 274// $header_nav_menu_margin_left != '0px' ||
- 275// $header_nav_menu_border_radius != '0px' ||
- 276$header_nav_menu_border_size != '0px' ||
- 277$header_nav_menu_border_type != '' ||
- 278$header_nav_menu_border_color != 'rgba(255,255,255)'
- 279// || $header_nav_menu_text_color != 'rgba(255,255,255)' ||
- 280// $header_nav_menu_box_shadow != '' ||
- 281// $header_nav_menu_height != '40px' ||
- 282// $header_nav_menu_float != 'unset' ||
- 283// $header_nav_menu_text_decoration != 'none' ||
- 284// $header_nav_menu_text_align != 'none' ||
- 285// $header_nav_menu_text_shadow != 'inherit'
- 286)
- 287
- 288// General Buttons Settings
- 289
- 290if ( $website_general_buttons_font_size != '20px' || $website_general_buttons_background_color != 'rgb(0 0 0)' || $website_general_buttons_width != '200px' || $website_general_buttons_margin != '10px' || $website_general_buttons_padding != '10px' || $website_general_buttons_border_radius != '0px' || $website_general_buttons_text_color != 'rgba(255,255,255' )
- 291// Header Navigation Menu Search Bar Settings
- 292
- 293if (
- 294$header_navigation_menu_search_bar_background_color != 'rgba(255,255,255)' ||
- 295$header_navigation_menu_search_bar_width != '130px' ||
- 296$header_navigation_menu_search_bar_font_size != '14px' ||
- 297$header_navigation_menu_search_bar_border_size != '0' ||
- 298$header_navigation_menu_search_bar_border_type != '' ||
- 299$header_navigation_menu_search_bar_border_color != 'rgba(255,255,255)' ||
- 300$header_navigation_menu_search_bar_border_radius != '0' ||
- 301 $header_navigation_menu_search_bar_padding_top != '0px' ||
- 302 $header_navigation_menu_search_bar_padding_right != '0px' ||
- 303 $header_navigation_menu_search_bar_padding_bottom != '0px' ||
- 304 $header_navigation_menu_search_bar_padding_left != '0px' ||
- 305 $header_navigation_menu_search_bar_margin_top != '0px' ||
- 306 $header_navigation_menu_search_bar_margin_right != '0px' ||
- 307 $header_navigation_menu_search_bar_margin_bottom != '0px' ||
- 308 $header_navigation_menu_search_bar_margin_left != '0px'
- 309// $header_navigation_menu_search_bar_border_radius != '0px' ||
- 310// $header_navigation_menu_search_bar_border_size != '0px' ||
- 311// $header_navigation_menu_search_bar_border_type != '' ||
- 312// $header_navigation_menu_search_bar_border_color != 'rgba(255,255,255)' ||
- 313// $header_navigation_menu_search_bar_text_color != 'rgba(255,255,255)' ||
- 314// $header_navigation_menu_search_bar_box_shadow != '' ||
- 315// $header_navigation_menu_search_bar_height != '40px' ||
- 316// $header_navigation_menu_search_bar_float != 'unset' ||
- 317// $header_navigation_menu_search_bar_text_decoration != 'none' ||
- 318// $header_navigation_menu_search_bar_text_align != 'none' ||
- 319//$header_navigation_menu_search_bar_text_shadow != 'inherit'
- 320)
- 321
- 322
- 323if (
- 324$header_cta_button_background_color != 'rgba(255,255,255)' ||
- 325$header_cta_button_font_size != '12px' ||
- 326$header_cta_button_font_weight != '300' ||
- 327$header_cta_button_width != '130px' ||
- 328$header_cta_button_padding_top != '0px' ||
- 329$header_cta_button_padding_right != '0px' ||
- 330$header_cta_button_padding_bottom != '0px' ||
- 331$header_cta_button_padding_left != '0px' ||
- 332$header_cta_button_margin_top != '0px' ||
- 333$header_cta_button_margin_right != '0px' ||
- 334$header_cta_button_margin_bottom != '0px' ||
- 335$header_cta_button_margin_left != '0px' ||
- 336$header_cta_button_border_radius != '0px' ||
- 337$header_cta_button_border_size != '0px' ||
- 338$header_cta_button_border_type != '' ||
- 339$header_cta_button_border_color != 'rgba(255,255,255)' ||
- 340$header_cta_button_text_color != 'rgba(255,255,255)' ||
- 341$header_cta_button_box_shadow != '' ||
- 342$header_cta_button_height != '40px' ||
- 343$header_cta_button_float != 'unset' ||
- 344$header_cta_button_text_decoration != 'none' ||
- 345$header_cta_button_text_align != 'none' ||
- 346$header_cta_button_text_shadow != 'inherit'
- 347)
- 348
- 349 :?>
- 350
- 351<style type="text/css">
- 352
- 353/* Header Navigation Logo Image Style Settings */
- 354
- 355
- 356img.brandlogoimage {
- 357 /*width: <?php // echo $header_navigation_menu_logo_width; ?>px;*/
- 358width: auto;
- 359 height: <?php echo $header_navigation_menu_logo_height; ?>px;
- 360 max-height: 100%;
- 361
- 362 display: flex;
- 363 padding: 0px;
- 364 margin: 0px;
- 365 border: none;
- 366}
- 367
- 368a.header-cta-button {
- 369
- 370background: <?php echo $header_cta_button_background_color; ?>;
- 371
- 372font-size: <?php echo $header_cta_button_font_size; ?>px !important;
- 373
- 374font-weight: <?php echo $header_cta_button_font_weight; ?>;
- 375
- 376text-decoration: <?php echo $header_cta_button_text_decoration; ?>;
- 377
- 378/*text-align: <?php // echo $header_cta_button_text_align; ?>;*/
- 379
- 380display: flex;
- 381
- 382width: <?php echo $header_cta_button_width; ?>px !important;
- 383min-width: 100px;
- 384height: <?php echo $header_cta_button_height; ?>px !important;
- 385
- 386padding: <?php echo $header_cta_button_padding_top; ?>px <?php echo $header_cta_button_padding_right; ?>px <?php echo $header_cta_button_padding_bottom; ?>px <?php echo $header_cta_button_padding_left; ?>px;
- 387
- 388float: <?php echo $header_cta_button_float; ?>;
- 389
- 390margin: <?php echo $header_cta_button_margin_top; ?>px <?php echo $header_cta_button_margin_right; ?>px <?php echo $header_cta_button_margin_bottom; ?>px <?php echo $header_cta_button_margin_left; ?>px !important;
- 391
- 392border-radius: <?php echo $header_cta_button_border_radius; ?>px;
- 393
- 394border: <?php echo $header_cta_button_border_size; ?>px <?php echo $header_cta_button_border_type; ?> <?php echo $header_cta_button_border_color; ?>;
- 395
- 396color: <?php echo $header_cta_button_text_color; ?> !important;
- 397
- 398box-shadow: <?php echo $header_cta_button_box_shadow; ?>;
- 399
- 400flex-direction: row;
- 401
- 402flex-wrap: nowrap;
- 403
- 404align-items: center;
- 405
- 406justify-content: center;
- 407
- 408text-shadow: <?php echo $header_cta_button_text_shadow; ?>;
- 409}
- 410/* https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration */
- 411.general-button a{
- 412color: <?php echo $website_general_buttons_text_color; ?>;
- 413}
- 414
- 415.general-button{
- 416 font-size: <?php echo $website_general_buttons_font_size; ?>px;
- 417 background: <?php echo $website_general_buttons_background_color; ?>;
- 418 display: inline-block;
- 419 width: <?php echo $website_general_buttons_width; ?>px;
- 420 padding: <?php echo $website_general_buttons_padding; ?>px;
- 421 float: left;
- 422 margin: <?php echo $website_general_buttons_margin; ?>px;
- 423 border-radius: <?php echo $website_general_buttons_border_radius; ?>px;
- 424 border: <?php echo $website_general_buttons_border_size; ?>px <?php echo $website_general_buttons_border_type; ?> <?php echo $website_general_buttons_border_color; ?>;
- 425 color: <?php echo $website_general_buttons_text_color; ?>;
- 426 box-shadow: <?php echo $website_general_buttons_box_shadow_; ?>;
- 427}
- 428
- 429
- 430button#myBtn.scroll-top {
- 431 display: none;
- 432 position: fixed;
- 433 bottom: 20px;
- 434 right: 30px;
- 435 z-index: 99;
- 436 border: none;
- 437 outline: none;
- 438 background: <?php echo $footer_scroll_to_top_background; ?>;
- 439 color: #fff;
- 440 cursor: pointer;
- 441 border-radius: 4px;
- 442 animation: 1s ease-in-out 2s 1 normal both running fadeIn;
- 443 border-radius: 50px;
- 444 border: 1px solid #000;
- 445 font-weight: 300;
- 446 color: #fff;
- 447 display: block;
- 448 width: 43px;
- 449 height: 43px;
- 450 line-height: 0;
- 451 text-align: center;
- 452 padding: 0px;
- 453 margin: 0px;
- 454 box-shadow: 0px 10px 10px -10px #000;
- 455}
- 456
- 457#myBtn:hover {
- 458 background-color: #555;
- 459}
- 460
- 461 nav.master-header-nav-menu {
- 462 background: <?php echo $header_main_navigation_master_menu_background_color; ?> !important;
- 463 color: #000;
- 464 font-size: 16px;
- 465 border-bottom: 1px solid #000;
- 466 box-shadow: 0px 20px 10px -10px #000;
- 467 min-height: 40px;
- 468 max-height: 100%;
- 469 /* height: <?php // echo $header_main_navigation_master_menu_height; ?>px; */
- 470 height: auto;
- 471 padding: <?php echo $header_main_navigation_master_menu_padding; ?>px;
- 472 margin: <?php echo $header_main_navigation_master_menu_margin; ?>px auto;
- 473 /* width: <?php echo $header_main_navigation_master_menu_width; ?>%;*/
- 474max-width: 100%;
- 475 width: auto;
- 476 }
- 477 nav.master-header-nav-menu ul li a {
- 478 color: #000;
- 479 text-decoration: none;
- 480 font-weight: 500;
- 481 }
- 482
- 483button.navbar-toggler {
- 484 z-index: 99999999;
- 485 color: #000;
- 486 position: fixed;
- 487 right: 15px;
- 488 top: 15px;
- 489}
- 490.dashicons, .dashicons-before:before {
- 491 font-family: dashicons;
- 492 display: inline-block;
- 493 line-height: 1;
- 494 font-weight: 400;
- 495 font-style: normal;
- 496 speak: never;
- 497 text-decoration: inherit;
- 498 text-transform: none;
- 499 text-rendering: auto;
- 500 -webkit-font-smoothing: antialiased;
- 501 -moz-osx-font-smoothing: grayscale;
- 502 width: 20px;
- 503 height: 20px;
- 504 font-size: 43px;
- 505 vertical-align: top;
- 506 text-align: center;
- 507 transition: color .1s ease-in;
- 508}
- 509
- 510.above-the-fold{
- 511background: <?php echo $main_land_above_the_fold_background; ?>;
- 512
- 513}
- 514
- 515#btf-main {
- 516background: <?php echo $main_land_below_the_fold_background; ?>;
- 517padding: 60px;
- 518margin: 0px 0px 0px 0px;
- 519min-height: 500px;
- 520width: 100%;
- 521display: flex;
- 522box-shadow: 0px 30px 20px -20px #000;
- 523color: #fff;
- 524font-size: 18px;
- 525font-weight: 500;
- 526text-decoration: none;
- 527}
- 528#btf-main h2.btf-heading-title{
- 529color: <?php echo $main_land_below_the_fold_heading_title_color; ?>;
- 530}
- 531
- 532div#btf-content {
- 533color: <?php echo $main_land_below_the_fold_content_box_color; ?>;
- 534}
- 535
- 536
- 537.atf-paragraph p, .tinymce p {
- 538line-height: <?php echo $main_land_above_the_fold_text_lh; ?>;
- 539font-size: <?php echo $main_land_above_the_fold_text_fs; ?>px;
- 540font-weight: <?php echo $main_land_above_the_fold_text_fw; ?>;
- 541text-transform: <?php echo $main_land_above_the_fold_text_trans; ?>;
- 542color: <?php echo $main_land_above_the_fold_text_color; ?>;
- 543text-align: : <?php echo $main_land_above_the_fold_text_align; ?>;
- 544}
- 545
- 546html{
- 547scroll-behavior: smooth;
- 548}
- 549body{
- 550font-family: <?php echo $main_land_above_the_fold_text_font_fam; ?>, sans-serif;
- 551font-weight: <?php echo $main_land_above_the_fold_text_fw; ?>;
- 552font-size: <?php echo $main_land_above_the_fold_text_fs; ?>px;
- 553}
- 554
- 555div#search-bar-master {
- 556 margin: 0px 15px 0px 15px;
- 557 max-width: 220px;
- 558}
- 559
- 560.header-nav-menu-search-box.search-form, .gsc-control-cse.gsc-control-cse-bg {
- 561background: <?php echo $header_navigation_menu_search_bar_background_color; ?> !important;
- 562font-size: <?php echo $header_navigation_menu_search_bar_font_size; ?>px !important;
- 563font-weight: <?php // echo $header_navigation_menu_search_bar_font_weight; ?>;
- 564text-decoration: <?php // echo $header_navigation_menu_search_bar_text_decoration; ?>;
- 565/*text-align: <?php // echo $header_navigation_menu_search_bar_text_align; ?>;*/
- 566display: flex;
- 567width: <?php echo $header_navigation_menu_search_bar_width; ?>px !important;
- 568height: <?php // echo $header_navigation_menu_search_bar_height; ?>px !important;
- 569padding: <?php echo $header_navigation_menu_search_bar_padding_top; ?>px <?php echo $header_navigation_menu_search_bar_padding_right; ?>px <?php echo $header_navigation_menu_search_bar_padding_bottom; ?>px <?php echo $header_navigation_menu_search_bar_padding_left; ?>px;
- 570float: <?php // echo $header_navigation_menu_search_bar_float; ?>;
- 571margin: <?php echo $header_navigation_menu_search_bar_margin_top; ?>px <?php echo $header_navigation_menu_search_bar_margin_right; ?>px <?php echo $header_navigation_menu_search_bar_margin_bottom; ?>px <?php echo $header_navigation_menu_search_bar_margin_left; ?>px !important;
- 572border-radius: <?php echo $header_navigation_menu_search_bar_border_radius; ?>px;
- 573border: <?php echo $header_navigation_menu_search_bar_border_size; ?>px <?php echo $header_navigation_menu_search_bar_border_type; ?> <?php echo $header_navigation_menu_search_bar_border_color; ?>;
- 574color: <?php // echo $header_navigation_menu_search_bar_text_color; ?> !important;
- 575box-shadow: <?php // echo $header_navigation_menu_search_bar_box_shadow; ?>;
- 576flex-direction: row;
- 577flex-wrap: nowrap;
- 578align-items: center;
- 579justify-content: center;
- 580text-shadow: <?php // echo $header_navigation_menu_search_bar_text_shadow; ?>;
- 581line-height: 0;
- 582}
- 583
- 584#headerMenuMaster ul li a{
- 585color: <?php echo $header_nav_menu_links_color; ?>;
- 586}
- 587#headerMenuMaster {
- 588background: <?php echo $header_nav_menu_background_color; ?> !important;
- 589font-size: <?php // echo $header_nav_menu_font_size; ?>px !important;
- 590font-weight: <?php // echo $header_nav_menu_font_weight; ?>;
- 591text-decoration: <?php // echo $header_nav_menu_text_decoration; ?>;
- 592/*text-align: <?php // echo $header_nav_menu_text_align; ?>;*/
- 593display: flex;
- 594flex-basis: auto;
- 595width: <?php echo $header_nav_menu_width; ?>px !important;
- 596height: <?php // echo $header_nav_menu_height; ?>px !important;
- 597padding: <?php // echo $header_nav_menu_padding_top; ?>px <?php // echo $header_nav_menu_padding_right; ?>px <?php // echo $header_nav_menu_padding_bottom; ?>px <?php // echo $header_nav_menu_padding_left; ?>px;
- 598float: <?php // echo $header_nav_menu_float; ?>;
- 599margin: <?php // echo $header_nav_menu_margin_top; ?>px <?php // echo $header_nav_menu_margin_right; ?>px <?php // echo $header_nav_menu_margin_bottom; ?>px <?php // echo $header_nav_menu_margin_left; ?>px !important;
- 600border-radius: <?php echo $header_nav_menu_border_radius; ?>px;
- 601border: <?php echo $header_nav_menu_border_size; ?>px <?php echo $header_nav_menu_border_type; ?> <?php echo $header_nav_menu_border_color; ?>;
- 602color: <?php // echo $header_nav_menu_text_color; ?> !important;
- 603box-shadow: <?php // echo $header_nav_menu_box_shadow; ?>;
- 604flex-direction: row;
- 605flex-wrap: nowrap;
- 606align-items: center;
- 607justify-content: center;
- 608text-shadow: <?php // echo $header_nav_menu_text_shadow; ?>;
- 609}
- 610body.logged-in form#customize-controls.wp-full-overlay-sidebar { background: red !important; width: 500px !important; }
- 611
- 612
- 613
- 614
- 615
- 616.footer-copy {
- 617background: <?php echo $yourseobook_footer_background; ?>;
- 618color: <?php echo $yourseobook_footer_text_color; ?>;
- 619margin: <?php echo $yourseobook_footer_margin_top; ?>px <?php echo $yourseobook_footer_margin_right; ?>px <?php echo $yourseobook_footer_margin_bottom; ?>px <?php echo $yourseobook_footer_margin_left; ?>px;
- 620padding: <?php echo $yourseobook_footer_padding_top; ?>px <?php echo $yourseobook_footer_padding_right; ?>px <?php echo $yourseobook_footer_padding_bottom; ?>px <?php echo $yourseobook_footer_padding_left; ?>px;
- 621max-width: 100%;
- 622 width: 100%;
- 623 overflow: hidden;
- 624}
- 625.footer-copy a, .footer-copy ul li a {
- 626color: <?php echo $yourseobook_main_footer_links_color; ?>;
- 627text-decoration: <?php echo $yourseobook_main_footer_links_txt_decoration; ?>;
- 628font-weight: <?php echo $yourseobook_main_footer_links_font_weight; ?>;
- 629font-size: <?php echo $yourseobook_main_footer_links_font_size; ?>px;
- 630}
- 631.footer-copy ul{
- 632list-style: none;
- 633}
- 634.footer-widget-title{
- 635font-size: <?php echo $yourseobook_main_footer_widgets_title_font_size; ?>px;
- 636color: <?php echo $yourseobook_main_footer_widgets_title_text_color; ?>;
- 637font-weight: <?php echo $yourseobook_main_footer_widgets_title_font_weight; ?>;
- 638}
- 639
- 640/* Single Page BAsic Styles */
- 641
- 642.container-fluid.single-page-template{
- 643background: #ccc;
- 644padding: 0px;
- 645margin: 0px;
- 646width: 100%;
- 647color: 18px;
- 648font-weight: 300;
- 649text-decoration: none;
- 650line-height: 1.75rem;
- 651}
- 652
- 653
- 654 </style>
- 655
- 656<?php if ( ! empty( $header_cta_button_text_align ) ) : ?>
- 657 <style>
- 658 a.header-cta-button {
- 659 text-align: <?php echo $header_cta_button_text_align; ?>;
- 660 }
- 661 </style>
- 662<?php endif; ?>
- 663
- 664 <?php
- 665 endif;
- 666}
- 667add_action( 'wp_head', 'yourseobook_header_main_navigation_master_menu_styles' );
code-func.txt
- 1<noscript id="deferred-styles">
- 2 <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons&display=swap" async>
- 3 <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/api/assets/css/elements.css"/>
- 4 <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/api/assets/css/general.css"/>
- 5 <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/api/assets/css/mobile.css"/>
- 6 <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/api/assets/css/responsive.css"/>
- 7 <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/api/assets/css/timeline.css"/>
- 8</noscript>
- 9<script>
- 10 var loadDeferredStyles = function() {
- 11 var addStylesNode = document.getElementById("deferred-styles");
- 12 var replacement = document.createElement("div");
- 13 replacement.innerHTML = addStylesNode.textContent;
- 14 document.body.appendChild(replacement)
- 15 addStylesNode.parentElement.removeChild(addStylesNode);
- 16 };
- 17 var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame ||
- 18 window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
- 19 if (raf) raf(function() { window.setTimeout(loadDeferredStyles, 0); });
- 20 else window.addEventListener('load', loadDeferredStyles);
- 21</script>
- 22
- 23
- 24<script data-name="BMC-Widget" data-cfasync="false" src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="seobookpro" data-description="Support me on Buy me a coffee!" data-message="Thank you for visiting the Buy SEO Book PRO a Coffee Widget!We are incredibly grateful for your interest and support in our SEO Book PRO project.Thank you for being a part of our journey!Warm regards,Dimitar Krumov CEO at SEO Book PRO" data-color="#FF813F" data-position="Left" data-x_margin="0" data-y_margin="0"></script>
- 25
- crawl - 1 - 2 - 38.64 KB - August 17 2023 19:42:49
- sitemaps - 1 - 0 - 0 B - August 17 2023 19:42:49
- xml-sitemaps - 1 - 0 - 0 B - August 17 2023 19:42:49
-
register-xml-sitemaps.php
- 1<?php
- 2
- 3
- 4
- 5
- 6// Register Custom WordPress Default Sitemaps for the WordPress Default Posts, Pages, Categories, Tags, Authors and The Your SEO Book Custom Post Types
- 7
- 8
- 9/*
- 10 -- Advanced Custom Post Types
- 11----- Advanced Custom Post Types: Customize and manage advanced post types for unique content organization and improved site structure
- 12
- 13-- Locations/Areas Custom Post Types
- 14----- Customize and manage advanced post types for locations and areas, enhancing your site`s geographical organization
- 15
- 16-- Services Custom Post Types
- 17----- Services Custom Post Types: Create and showcase your services in a professional and organized manner with custom post types
- 18
- 19-- Breaking News Custom Post Types
- 20----- Breaking News Custom Post Types: Highlight breaking news and important updates with a dedicated custom post type
- 21
- 22-- FAQ`s Custom Post Types
- 23----- FAQ`s Custom Post Types: Easily add, categorize, and display frequently asked questions using this custom post type
- 24
- 25-- Team Members Custom Post Types
- 26----- Team Members Custom Post Types: Showcase your team members with individual profiles and roles using this custom post type
- 27
- 28-- Case Studies Custom Post Types
- 29----- Case Studies Custom Post Types: Present your case studies effectively and professionally with a specialized custom post type
- 30
- 31-- Users Reviews/Testimonials Custom Post Types
- 32----- Users Reviews/Testimonials Custom Post Types: Collect and display user reviews and testimonials using this custom post type
- 33
- 34-- Videos Custom Post Types
- 35----- Videos Custom Post Types: Organize and showcase your videos using this custom post type for a dynamic multimedia experience
- 36
- 37-- Images Galleries Custom Post Types
- 38----- Images Galleries Custom Post Types: Create stunning image galleries with this custom post type, perfect for photographers and artists
- 39
- 40
- 41-- locations-ysb-cpt
- 42-- services-ysb-cpt
- 43-- breaking-news-ysb-cpt
- 44-- faqs-ysb-cpt
- 45-- team-members-ysb-cpt
- 46-- case-studies-ysb-cpt
- 47-- user-testimonials-ysb-cpt
- 48-- videos-gallery-ysb-cpt
- 49-- images-gallery-ysb-cpt
- 50
- 51*/
- 52
- 53
- 54add_filter( 'wp_sitemaps_enabled', '__return_true' );
- 55
- 56
- 57add_filter(
- 58 'wp_sitemaps_post_types',
- 59 function( $post_types ) {
- 60 // unset( $post_types['portfolio'] );
- 61 // unset( $post_types['faqs'] );
- 62
- 63 return $post_types;
- 64 }
- 65);
- 66
- 67
- 68add_filter(
- 69 'wp_sitemaps_taxonomies',
- 70 function( $taxonomies ) {
- 71 // unset( $taxonomies['industry'] );
- 72 // unset( $taxonomies['location'] );
- 73 // unset( $taxonomies['faq-cat'] );
- 74 // unset( $taxonomies['products'] );
- 75 // unset( $taxonomies['post_tag'] );
- 76 // unset( $taxonomies['category'] );
- 77 return $taxonomies;
- 78 }
- 79);
- 80
- 81add_filter(
- 82 'wp_sitemaps_add_provider',
- 83 function( $provider, $name ) {
- 84 if ( 'users' === $name ) {
- 85 return false;
- 86 }
- 87
- 88 return $provider;
- 89 },
- 90 10,
- 91 2
- 92);
- 93
- 94add_action( 'init', 'add_new_url_main_sitemap' );
- 95add_filter( 'home_url', 'fix_wp_sitemap_url', 11, 2 );
- 96
- 97# Adds a rule with a new sitemap address
- 98function add_new_url_main_sitemap() {
- 99 add_rewrite_rule( '^sitemap\.xml$', 'index.php?sitemap=index', 'top' );
- 100}
- 101
- 102# Replaces the url from wp-sitemap.xml to sitemap.xml
- 103function fix_wp_sitemap_url( $url, $path ) {
- 104
- 105 if ( '/wp-sitemap.xml' === $path ) {
- 106 return str_replace( '/wp-sitemap.xml', '/sitemap.xml', $url );
- 107 }
- 108
- 109 return $url;
- 110}
-
- xml-sitemaps - 1 - 0 - 0 B - August 17 2023 19:42:49
- demo - 2 - 2 - 38.64 KB - August 17 2023 19:42:47
-
role-subscriber.php
- 1<?php
- 2/*
- 3add_action('init', 'yourseobook_add_roles');
- 4function yourseobook_add_roles() {
- 5 add_role(
- 6 'demo_user',
- 7 __('Demo User'),
- 8 array(
- 9 'read' => true,
- 10 'edit_posts' => false,
- 11 'edit_other_posts' => false,
- 12 'edit_published_posts' => false,
- 13 'moderate_comments' => false,
- 14 'edit_theme_options' => false
- 15 )
- 16 );
- 17}*/
- 18
- 19/*
- 20function restrict_demo_user_customizer($capability, $user_id, $args) {
- 21 $demo_user = 'demo'; // Replace 'demo' with the username of the specific user
- 22
- 23 $user = get_user_by('login', $demo_user);
- 24
- 25 if ($user && $user_id === $user->ID) {
- 26 // Check if the user is trying to publish changes
- 27 if ($capability === 'publish_posts') {
- 28 // Get the 'Subscriber' role object
- 29 $subscriber_role = get_role('subscriber');
- 30
- 31 // Remove the 'publish_posts' capability from the 'Subscriber' role
- 32 if ($subscriber_role) {
- 33 $subscriber_role->remove_cap('publish_posts');
- 34 }
- 35 }
- 36 }
- 37
- 38 return $capability;
- 39}
- 40add_filter('map_meta_cap', 'restrict_demo_user_customizer', 10, 3);
- 41*/
- 42/*
- 43function restrict_demo_user_customizer($caps, $cap, $user_id, $args) {
- 44 $demo_user = 'demo'; // Replace 'demo' with the username of the specific user
- 45 $subscriber_role = get_role('subscriber');
- 46
- 47 // Check if the user has the Subscriber role
- 48 if ($subscriber_role && $subscriber_role->has_cap('edit_theme_options')) {
- 49 $user = get_user_by('login', $demo_user);
- 50
- 51 if ($user && $user_id === $user->ID) {
- 52 if ($cap === 'customize') {
- 53 // Remove the 'publish_theme' and 'customize_publish' capabilities
- 54 $caps = array_diff($caps, array('remove_cap', 'customize_publish'));
- 55 }
- 56 }
- 57 }
- 58
- 59 return $caps;
- 60}
- 61add_filter('map_meta_cap', 'restrict_demo_user_customizer', 10, 4);
- 62
- 63*/
- 64
- 65
- 66/*
- 67function allow_subscriber_customizer_access() {
- 68 $demo_user = 'demo'; // Replace 'demo' with the username of the specific user
- 69 $subscriber_role = get_role('subscriber');
- 70
- 71 if ($subscriber_role) {
- 72 $subscriber_role->add_cap('edit_theme_options');
- 73 }
- 74
- 75 $demo_user_obj = get_user_by('login', $demo_user);
- 76
- 77 if ($demo_user_obj) {
- 78 $demo_user_obj->add_cap('edit_theme_options');
- 79 }
- 80}
- 81add_action('init', 'allow_subscriber_customizer_access');
- 82
- 83/*
- 84function restrict_demo_user_customizer($caps, $cap, $user_id, $args) {
- 85 $demo_user = 'demo'; // Replace 'demo' with the username of the specific user
- 86 $subscriber_role = get_role('subscriber');
- 87
- 88 // Check if the user has the Subscriber role
- 89 if ($subscriber_role && $subscriber_role->has_cap('edit_theme_options')) {
- 90 $user = get_user_by('login', $demo_user);
- 91
- 92 if ($user && $user_id === $user->ID) {
- 93 if ($cap === 'customize') {
- 94 // Remove the 'publish_theme' and 'customize_publish' capabilities
- 95 $caps = array_diff($caps, array('publish_theme', 'customize_publish'));
- 96 }
- 97 }
- 98 }
- 99
- 100 return $caps;
- 101}
- 102add_filter('map_meta_cap', 'restrict_demo_user_customizer', 10, 4);
- 103*/
- 104/*
- 105function remove_theme_caps() {
- 106 // gets the author role
- 107 $role = get_role( 'subscriber' );
- 108
- 109 // This only works, because it accesses the class instance.
- 110 // would allow the author to edit others' posts for current theme only
- 111 $role->remove_cap( 'customize_publish' );
- 112}
- 113add_action( 'admin_init', 'remove_theme_caps');
- 114*/
- 115/*
- 116function disable_publish_button_for_subscriber($allcaps, $caps, $args, $user) {
- 117 if (isset($user->roles) && in_array('subscriber', $user->roles)) {
- 118 // Remove the capability to publish for subscribers
- 119 $caps[] = 'do_not_allow';
- 120 $allcaps['customize_publish'] = false;
- 121 }
- 122
- 123 return $allcaps;
- 124}
- 125add_filter('user_has_cap', 'disable_publish_button_for_subscriber', 10, 4);
- 126*/
- loggedin - 3 - 2 - 38.64 KB - August 18 2023 11:02:13
-
custom-dashboard.php
- 1<?php if ( is_user_logged_in() ) { ?>
- 2
- 3
- 4<style>
- 5
- 6#dash{
- 7 display:none;
- 8}
- 9
- 10#dash.visible{
- 11 display:block;
- 12 position: fixed;
- 13 left:0px;
- 14 top:100px;
- 15 background:#000;
- 16 color:#fff;
- 17 width:300px;
- 18}
- 19</style>
- 20<div class="container" style="padding: 10px;">
- 21 <div class="row" style="margin:20px auto;padding: 10px;display: flex;flex-wrap: wrap;flex-direction: row;justify-content: space-between;align-content: stretch;">
- 22<a href="#dash" class="btn btn-primary w-40 py-2" role="button" rel="help" type="link" title="WordPress Custom Admin Dashboard">WP Admin</a>
- 23
- 24</div>
- 25</div>
- 26<div class="dashboard" style="width: 4.5rem;" id="dash">
- 27 <a href="/" class="d-block p-3 link-dark text-decoration-none" data-bs-toggle="tooltip" data-bs-placement="right">
- 28 <svg class="bi pe-none" width="40" height="32"><use xlink:href="#bootstrap"></use></svg>
- 29 <span class="visually-hidden">Icon-only</span>
- 30 </a>
- 31 <ul class="nav nav-pills nav-flush flex-column mb-auto text-center">
- 32 <li class="nav-item">
- 33 <a href="#" class="nav-link active py-3 border-bottom rounded-0" aria-current="page" data-bs-toggle="tooltip" data-bs-placement="right" aria-label="Home">
- 34 <svg class="bi pe-none" width="24" height="24" role="img" aria-label="Home"><use xlink:href="#home"></use></svg>
- 35 </a>
- 36 </li>
- 37 <li>
- 38 <a href="#" class="nav-link py-3 border-bottom rounded-0" data-bs-toggle="tooltip" data-bs-placement="right" aria-label="Dashboard">
- 39 <svg class="bi pe-none" width="24" height="24" role="img" aria-label="Dashboard"><use xlink:href="#speedometer2"></use></svg>
- 40 </a>
- 41 </li>
- 42 <li>
- 43 <a href="#" class="nav-link py-3 border-bottom rounded-0" data-bs-toggle="tooltip" data-bs-placement="right" aria-label="Orders">
- 44 <svg class="bi pe-none" width="24" height="24" role="img" aria-label="Orders"><use xlink:href="#table"></use></svg>
- 45 </a>
- 46 </li>
- 47 <li>
- 48 <a href="#" class="nav-link py-3 border-bottom rounded-0" data-bs-toggle="tooltip" data-bs-placement="right" aria-label="Products">
- 49 <svg class="bi pe-none" width="24" height="24" role="img" aria-label="Products"><use xlink:href="#grid"></use></svg>
- 50 </a>
- 51 </li>
- 52 <li>
- 53 <a href="#" class="nav-link py-3 border-bottom rounded-0" data-bs-toggle="tooltip" data-bs-placement="right" aria-label="Customers">
- 54 <svg class="bi pe-none" width="24" height="24" role="img" aria-label="Customers"><use xlink:href="#people-circle"></use></svg>
- 55 </a>
- 56 </li>
- 57 </ul>
- 58 <div class="dropdown border-top">
- 59 <a href="#" class="d-flex align-items-center justify-content-center p-3 link-dark text-decoration-none dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
- 60 <img src="https://github.com/mdo.png" alt="mdo" width="24" height="24" class="rounded-circle">
- 61 </a>
- 62 <ul class="dropdown-menu text-small shadow">
- 63 <li><a class="dropdown-item" href="#">New project...</a></li>
- 64 <li><a class="dropdown-item" href="#">Settings</a></li>
- 65 <li><a class="dropdown-item" href="#">Profile</a></li>
- 66 <li><hr class="dropdown-divider"></li>
- 67 <li><a class="dropdown-item" href="#">Sign out</a></li>
- 68 </ul>
- 69 </div>
- 70 </div>
- 71
- 72
- 73
- 74
- 75<?php } else { ?>
- 76<main class="form-signin w-25" style="margin:40px auto;border:1px solid #ccc;border-radius:8px;padding:20px 40px 20px 40px;background:#000;color:#fff;">
- 77<form>
- 78<div class="py-2 text-center">
- 79 <img class="mb-4" src="https://seobookpro.com/wp-content/uploads/2023/08/your-seo-book-logo-e1692315513778.jpeg" alt="SEO Book Pro - Submit a Demo Request" width="43" height="43">
- 80
- 81 <h1 class="h3 mb-3 fw-normal"> Submit a Demo Request</h1>
- 82
- 83 <div class="form-floating mb-2">
- 84 <input type="email" class="form-control" id="floatingInput" placeholder="Enter Your Email Address" style="color:#000;padding:5px 20px;">
- 85 </div>
- 86 <div class="form-floating mb-2">
- 87 <input type="text" class="form-control" id="floatingWebsite" placeholder="Enter Your Website/Domain" style="color:#000;padding:5px 20px;">
- 88 </div>
- 89
- 90
- 91 <button class="btn btn-success w-75 py-2 m-2" type="submit">Start Now</button>
- 92</div>
- 93 </form>
- 94</main>
- 95
- 96 <?php } ?>
- 97
- notes - 4 - 2 - 38.64 KB - August 17 2023 19:42:49
-
for-content.txt
- 1 How to get your website on Google Search Google Search Central, formerly Google Webmasters, is here to help the right people view your content with resources to make your website discoverable to Google Search. New to SEO? Start by reading this quickstart to Google Search. Introduction Get your website on Google How Google Search Works SEO starter guide Guidelines for site owners Do you need an SEO? Maintaining your site's SEO Developer's guide to SEO Sitemaps robots.txt Meta tags Crawler management Removals Canonical URLs Site moves Redirects JavaScript SEO International and multilingual sites Title links Snippets Images Videos Structured data Business details Favicons Publication dates All Search appearance topics Page experience Navigation structures Pagination and incremental page loading HTTPS Mobile-friendliness Interstitials and dialogs
- seo - 5 - 2 - 38.64 KB - August 20 2023 21:42:21
-
all-in-one-seo-api.php
- 1<?php
- 2
- 3
- 4
- 5
- 6
- 7// Add meta box for single pages
- 8
- 9
- 10
- 11// Register meta boxes
- 12function yourseobook_register_custom_meta_boxes() {
- 13 add_meta_box('page_meta_box', '🧪 Your SEO Book Page SEO Settings', 'yourseobook_render_page_meta_box', 'page', 'normal', 'high');
- 14 // add_meta_box('post_meta_box', 'Your SEO Book Post SEO Settings 🧪', 'yourseobook_render_post_meta_box', 'post', 'normal', 'high');
- 15}
- 16add_action('add_meta_boxes', 'yourseobook_register_custom_meta_boxes');
- 17
- 18// Render Page Meta Box
- 19function yourseobook_render_page_meta_box($post) {
- 20
- 21 // Retrieve saved meta values
- 22 $yourseobook_page_topic_keyword = get_post_meta($post->ID, 'yourseobook_page_topic_keyword', true);
- 23 $yourseobook_meta_tt = get_post_meta($post->ID, 'yourseobook_meta_tt', true);
- 24 $yourseobook_meta_d = get_post_meta($post->ID, 'yourseobook_meta_d', true);
- 25 $yourseobook_include_brand_name = get_post_meta($post->ID, 'yourseobook_include_brand_name', true);
- 26 $yourseobook_separator = get_post_meta($post->ID, 'yourseobook_separator', true);
- 27 $yourseobook_robots = get_post_meta($post->ID, 'yourseobook_robots', true);
- 28
- 29// get_template_directory_uri() . '/js/custom-meta-box.js'
- 30$bad_keywords_file = get_template_directory_uri() . '/js/bad-keywords.json'; // Replace with the path to your JSON file
- 31$bad_keywords_json = file_get_contents($bad_keywords_file);
- 32$bad_keywords_data = json_decode($bad_keywords_json, true);
- 33$bad_keywords = $bad_keywords_data['bad_keywords'];
- 34 // $bad_keywords = array('bad', 'keywords','_', '--', '/', 'call now');
- 35$meta_d = $_POST['yourseobook_meta_d'];
- 36$has_bad_keyword = false;
- 37foreach ($bad_keywords as $keyword) {
- 38 if (stripos($meta_d, $keyword) !== false) {
- 39 $has_bad_keyword = true;
- 40 break;
- 41 }
- 42}
- 43 wp_localize_script( 'custom-meta-box', 'customMetaBoxData', array(
- 44 'badKeywords' => $bad_keywords,
- 45 ) );
- 46 // Output the fields
- 47
- 48// Start Main Advanced SEO Custom Meta Box Element
- 49
- 50echo '<div id="ysbsbox" class="yourseobook-serp-box">';
- 51
- 52// Start Left Advanced SEO Custom Meta Box Element
- 53
- 54echo '<div id="ysbsbox-left">';
- 55
- 56 echo '<div class="accordion accordion-flush" id="accordionFlushExample">
- 57
- 58 <div class="accordion-item">
- 59
- 60 <h2 class="accordion-header">
- 61 <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-custom-class="beautifier" data-bs-target="#flush-collapseOne" aria-expanded="false" aria-controls="flush-collapseOne">
- 62 <span class="dashicons dashicons-admin-post"></span> Page Topic Keyword
- 63 </button>
- 64 </h2>
- 65
- 66 <div id="flush-collapseOne" class="accordion-collapse collapse fade" data-bs-custom-class="beautifier" data-bs-parent="#accordionFlushExample">
- 67
- 68 <div class="accordion-body">
- 69 <input type="text" id="yourseobook_page_topic_keyword" name="yourseobook_page_topic_keyword" value="' . esc_attr($yourseobook_page_topic_keyword) . '" maxlength="190" autocomplete="off" style="min-width:100%;"/>
- 70 </div>
- 71 </div>
- 72 </div>
- 73
- 74
- 75 <div class="accordion-item">
- 76 <h2 class="accordion-header">
- 77 <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseTwo" aria-expanded="false" aria-controls="flush-collapseTwo">
- 78 <span class="dashicons dashicons-tag"></span> Page Custom MetaTT
- 79 </button>
- 80 </h2>
- 81 <div id="flush-collapseTwo" class="accordion-collapse collapse fade" data-bs-parent="#accordionFlushExample">
- 82 <div class="accordion-body">
- 83 <div class="container text-center">
- 84 <div class="row">
- 85
- 86<div class="col-8">
- 87 <input type="text" id="yourseobook_meta_tt" name="yourseobook_meta_tt" value="' . esc_attr($yourseobook_meta_tt) . '" maxlength="160" placeholder="Add Your Page Custom Meta Title Tag - MetaTT" autocomplete="off" style="min-width:100%;/">
- 88<span class="letter-count">0</span> <span class="meta-d-symb">Symbols </span> <button type="reset" value="Reset" class="meta-tt-reset"><span class="dashicons dashicons-update"></span></button>
- 89 </div>
- 90
- 91<div class="col-4">
- 92
- 93 <p id="yourseobook_meta_tt_validation"></p>
- 94<div class="slider-container"> <div id="yourseobook_meta_tt_slider" class="slider"></div> </div>
- 95
- 96</div>
- 97</div>
- 98
- 99
- 100 </div>
- 101 </div>
- 102 </div>
- 103 </div>
- 104
- 105
- 106 <div class="accordion-item">
- 107 <h2 class="accordion-header">
- 108 <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseThree" aria-expanded="false" aria-controls="flush-collapseThree">
- 109 Include Brand Name in the Page MetaTT
- 110 </button>
- 111 </h2>
- 112 <div id="flush-collapseThree" class="accordion-collapse collapse fade" data-bs-parent="#accordionFlushExample">
- 113
- 114 <div class="accordion-body">
- 115 <input type="checkbox" id="yourseobook_include_brand_name" "' . checked($yourseobook_include_brand_name, 'on') . '" name="yourseobook_include_brand_name"/>
- 116 </div>
- 117 </div>
- 118 </div>
- 119
- 120
- 121 <div class="accordion-item">
- 122 <h2 class="accordion-header">
- 123 <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseFour" aria-expanded="false" aria-controls="flush-collapseFour">
- 124 Page MetaTT Separator
- 125 </button>
- 126 </h2>
- 127 <div id="flush-collapseFour" class="accordion-collapse collapse fade" data-bs-parent="#accordionFlushExample">
- 128 <div class="accordion-body">
- 129 <select name="yourseobook_separator" id="yourseobook_separator" style="min-width:100%;">
- 130 <option value="-">-</option>
- 131 <option value="|">|</option>
- 132 <option value=">">></option>
- 133 </select>
- 134 </div>
- 135 </div>
- 136 </div>
- 137
- 138
- 139
- 140
- 141
- 142 <div class="accordion-item">
- 143 <h2 class="accordion-header">
- 144 <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseSix" aria-expanded="false" aria-controls="flush-collapseSix">
- 145 Page Index Robots ( Meta Robots )
- 146 </button>
- 147 </h2>
- 148 <div id="flush-collapseSix" class="accordion-collapse collapse fade" data-bs-parent="#accordionFlushExample">
- 149 <div class="accordion-body">
- 150 <select name="yourseobook_robots" id="yourseobook_robots" style="min-width:100%;">
- 151 <option value="index,follow">Index, Follow</option>
- 152 <option value="index,nofollow">Index, No Follow</option>
- 153 <option value="noindex,follow">No Index, Follow</option>
- 154 <option value="noindex,nofollow">No Index, No Follow</option>
- 155 </select>
- 156 <p id="yourseobook_robots_validation"></p>
- 157 </div>
- 158 </div>
- 159 </div>
- 160
- 161
- 162
- 163 <div class="accordion-item">
- 164 <h2 class="accordion-header">
- 165 <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseSeven" aria-expanded="false" aria-controls="flush-collapseSeven">
- 166 Page Meta Description - MetaD
- 167 </button>
- 168 </h2>
- 169 <div id="flush-collapseSeven" class="accordion-collapse collapse fade" data-bs-parent="#accordionFlushExample">
- 170 <div class="accordion-body">
- 171 <div class="container text-center">
- 172 <div class="row">
- 173<div class="col-8">
- 174 <textarea id="yourseobook_meta_d" name="yourseobook_meta_d" rows="2" maxlength="260" style="min-width:100%;">' . esc_textarea($yourseobook_meta_d) . '</textarea>
- 175<span class="letter-count">0</span> <span class="meta-d-symb">Symbols </span> <input type="reset" value="Reset">
- 176 </div>
- 177<div class="col-4">
- 178
- 179 <p id="yourseobook_meta_d_validation"></p>
- 180<div class="slider-container"> <div id="yourseobook_meta_d_slider" class="slider"></div> </div>
- 181
- 182</div>
- 183
- 184
- 185
- 186
- 187 </div>
- 188 </div>
- 189 </div>
- 190 </div>
- 191 </div>
- 192
- 193 </div>
- 194';
- 195
- 196
- 197/*
- 198// -------------------------------------------------------------------------------------------------------------------- //
- 199
- 200// Start Page Topic Keyword Custom Meta Box Field
- 201
- 202 echo '<div style="padding: 5px !important;margin:10px 0px 10px 0px;display: flex;max-width: 100%;flex-direction: column;flex-wrap: wrap;align-content: stretch;justify-content: space-around;">';
- 203 echo '<button class="accordion">Page Topic Keyword </button>';
- 204 echo '<div class="panel">';
- 205 echo '<div class="opened">';
- 206 echo '<input type="text" id="yourseobook_page_topic_keyword" name="yourseobook_page_topic_keyword" value="' . esc_attr($yourseobook_page_topic_keyword) . '" maxlength="190" autocomplete="off" style="min-width:100%;"/>';
- 207 echo '</div>';
- 208 echo '</div>';
- 209 echo '</div>';
- 210
- 211// End Page Topic Keyword Custom Meta Box Field
- 212
- 213// -------------------------------------------------------------------------------------------------------------------- //
- 214
- 215 // Start Page Meta Title Tag (MetaTT) Custom Meta Box Field
- 216
- 217 echo '<div style="padding: 5px !important;margin:10px 0px 10px 0px;display: flex;max-width: 100%;flex-direction: column;flex-wrap: nowrap;justify-content: space-evenly;align-items: center;">';
- 218 echo '<button class="accordion">Page Custom MetaTT</button>';
- 219 echo '<div class="panel">';
- 220 echo '<div class="opened">';
- 221 echo '<input type="text" id="yourseobook_meta_tt" name="yourseobook_meta_tt" value="' . esc_attr($yourseobook_meta_tt) . '" maxlength="160" placeholder="Add Your Page Custom Meta Title Tag - MetaTT" autocomplete="off" style="min-width:100%;/">';
- 222 echo '<span class="letter-count">0</span> <div class="slider-container"> <div id="yourseobook_meta_tt_slider" class="slider"></div> </div>';
- 223 echo '<p id="yourseobook_meta_tt_validation"></p>';
- 224 echo '</div>';
- 225 echo '</div>';
- 226 echo '</div>';
- 227
- 228 // End Page Meta Title Tag (MetaTT) Custom Meta Box Field
- 229
- 230// -------------------------------------------------------------------------------------------------------------------- //
- 231
- 232 // Start Include Brand Name in the Page MetaTT Custom Field
- 233
- 234 echo '<div style="padding: 5px !important;margin:10px 0px 10px 0px;display: flex;max-width: 100%;flex-direction: column;flex-wrap: wrap;align-content: stretch;justify-content: space-around;">';
- 235 echo '<button class="accordion">Include Brand Name in the Page MetaTT</button>';
- 236 echo '<div class="panel">';
- 237 echo '<div class="opened">';
- 238 echo '<input type="checkbox" id="yourseobook_include_brand_name" "' . checked($yourseobook_include_brand_name, 'on') . '" name="yourseobook_include_brand_name"/>';
- 239 echo '</div>';
- 240 echo '</div>';
- 241 echo '</div>';
- 242
- 243 // Start Include Brand Name in the Page MetaTT Custom Field
- 244
- 245// -------------------------------------------------------------------------------------------------------------------- //
- 246
- 247 // Start Page MetaTT Separator Custom Field
- 248
- 249 echo '<div style="padding: 5px !important;margin:10px 0px 10px 0px;display: flex;max-width: 100%;flex-direction: column;flex-wrap: wrap;align-content: stretch;justify-content: space-around;">';
- 250 echo '<button class="accordion">Page MetaTT Separator</button>';
- 251 echo '<div class="panel">';
- 252 echo '<div class="opened">';
- 253 echo '<select name="yourseobook_separator" id="yourseobook_separator" style="min-width:100%;">
- 254 <option value="-" "' . selected($yourseobook_separator, '-') . '">-</option>
- 255 <option value="|" "' . selected($yourseobook_separator, '|') . '">|</option>
- 256 <option value=">" "' . selected($yourseobook_separator, '>') . '">></option>
- 257 </select>';
- 258 echo '</div>';
- 259 echo '</div>';
- 260 echo '</div>';
- 261
- 262 // End Page MetaTT Separator Custom Field
- 263
- 264// -------------------------------------------------------------------------------------------------------------------- //
- 265
- 266 // Start Page Index Robots Meta Box Custom Field
- 267
- 268 echo '<div style="padding: 5px !important;margin:10px 0px 10px 0px;display: flex;max-width: 100%;flex-direction: column;flex-wrap: wrap;align-content: stretch;justify-content: space-around;">';
- 269 echo '<button class="accordion">Page Index Robots ( Meta Robots )</button>';
- 270 echo '<div class="panel">';
- 271 echo '<div class="opened">';
- 272 echo '<select name="yourseobook_robots" id="yourseobook_robots" style="min-width:100%;">
- 273 <option value="index,follow" "' . checked($yourseobook_robots, 'index,follow') . '">Index, Follow</option>
- 274 <option value="index,nofollow" "' . checked($yourseobook_robots, 'index,nofollow') . '">Index, No Follow</option>
- 275 <option value="noindex,follow" "' . checked($yourseobook_robots, 'noindex,follow') . '">No Index, Follow</option>
- 276 <option value="noindex,nofollow" "' . checked($yourseobook_robots, 'noindex,nofollow') . '">No Index, No Follow</option>
- 277 </select>';
- 278 echo '<p id="yourseobook_robots_validation"></p>';
- 279 echo '</div>';
- 280 echo '</div>';
- 281 echo '</div>';
- 282
- 283 // End Page Index Robots Meta Box Custom Field
- 284
- 285// -------------------------------------------------------------------------------------------------------------------- //
- 286
- 287 // Start Meta Description Meta Box Custom Field
- 288
- 289 echo '<div style="padding: 5px !important;margin:10px 0px 10px 0px;display: flex;max-width: 100%;flex-direction: column;flex-wrap: wrap;align-content: stretch;justify-content: space-around;">';
- 290 echo '<button class="accordion">Page Meta Description - MetaD</button>';
- 291 echo '<div class="panel">';
- 292 echo '<div class="opened">';
- 293 echo '<textarea id="yourseobook_meta_d" name="yourseobook_meta_d" rows="3" maxlength="190" style="min-width:100%;background:#ccc;color:#000;">' . esc_textarea($yourseobook_meta_d) . '</textarea>';
- 294 echo '<span class="letter-count">0</span> <div class="slider-container"> <div id="yourseobook_meta_d_slider" class="slider"></div> </div>';
- 295 echo '<p id="yourseobook_meta_d_validation"></p> ';
- 296 echo '</div>';
- 297 echo '</div>';
- 298 echo '</div>';
- 299
- 300 // End Meta Description Meta Box Custom Field
- 301
- 302// -------------------------------------------------------------------------------------------------------------------- //
- 303
- 304 echo '</div>';
- 305
- 306// End Left Advanced SEO Custom Meta Box Element
- 307
- 308// -------------------------------------------------------------------------------------------------------------------- //
- 309
- 310*/
- 311// Start RIght Help Section for the Advanced SEO Custom Meta Box Element
- 312 echo '</div>';
- 313 echo '<div id="ysbsbox-right">';
- 314
- 315 echo '<h3 style="color:#fff;font-size:22px;font-weight:500;margin:0px 0px 20px 0px;padding:0px 0px 20px 0px;border-bottom:1px solid #fff;">🧪 Your SEO Book WordPress SEO Module</h3>';
- 316
- 317 echo '<p>Our Advanced SEO Module for Your SEO Book Custom WordPress Theme include more than 1000 negative keyword list that can hurt your SEO and SERP Ranking. For the Full list of what`s included take a look at our <a href="https://yourseobook.com/docs/" role="link" type="link" rel="help" title="Documentation Page | Your SEO Book by SEO Book Pro" aria-label="Documentation Page">Documentation Page</a> and <a href="" role="" type="" rel="" title="" aria-label="Documentation Page | Your SEO Book by SEO Book Pro">Negative Keywords List</a></p>';
- 318
- 319 echo '
- 320 <button class="asmb">How to Choose The Page Topic Keyword?</button>
- 321 <div class="pasmb">
- 322 <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
- 323 </div>
- 324 <button class="asmb">How to Prevent Bad Symbols/Words in the MetaTT?</button>
- 325 <div class="pasmb">
- 326 <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
- 327 </div>
- 328 <button class="asmb">How to Choose Right MetaTT?</button>
- 329 <div class="pasmb">
- 330 <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
- 331 </div>
- 332 <button class="asmb">How to Prevent Bad Symbols/Words in the MetaD?</button>
- 333 <div class="pasmb">
- 334 <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
- 335 </div>
- 336 <button class="asmb">How to Choose Best MetaTT and MetaD Lenght?</button>
- 337 <div class="pasmb">
- 338 <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
- 339 </div>
- 340 ';
- 341 echo '</div>';
- 342
- 343// End RIght Help Section for the Advanced SEO Custom Meta Box Element
- 344
- 345// -------------------------------------------------------------------------------------------------------------------- //
- 346
- 347echo '</div>';
- 348
- 349// End Main Advanced SEO Custom Meta Box Element
- 350
- 351}
- 352
- 353// Render Post Meta Box
- 354/*
- 355function yourseobook_render_post_meta_box($post) {
- 356 // Retrieve saved meta values
- 357 $yourseobook_page_topic_keyword = get_post_meta($post->ID, 'yourseobook_page_topic_keyword', true);
- 358 $yourseobook_meta_tt = get_post_meta($post->ID, 'yourseobook_meta_tt', true);
- 359 $yourseobook_meta_d = get_post_meta($post->ID, 'yourseobook_meta_d', true);
- 360
- 361 // Output the fields
- 362 echo '<label for="yourseobook_page_topic_keyword">Page Topic Keyword:</label>';
- 363 echo '<input type="text" id="yourseobook_page_topic_keyword" name="yourseobook_page_topic_keyword" value="' . esc_attr($yourseobook_page_topic_keyword) . '" maxlength="190" />';
- 364 echo '<br>';
- 365
- 366 echo '<label for="yourseobook_meta_tt">MetaTT:</label>';
- 367 echo '<input type="text" id="yourseobook_meta_tt" name="yourseobook_meta_tt" value="' . esc_attr($yourseobook_meta_tt) . '" maxlength="190" />';
- 368 echo '<br>';
- 369
- 370 echo '<label for="yourseobook_meta_d">MetaD:</label>';
- 371 echo '<textarea id="yourseobook_meta_d" name="yourseobook_meta_d" rows="5" maxlength="260">' . esc_textarea($yourseobook_meta_d) . '</textarea>';
- 372}
- 373*/
- 374// Save meta box data
- 375
- 376 // Check if the current user is authorized to save meta data
- 377
- 378/*
- 379
- 380function yourseobook_save_custom_meta_box_data($post_id) {
- 381 if (!isset($_POST['yourseobook_page_meta_box_nonce'])) {
- 382 return;
- 383 }
- 384
- 385// wp_nonce_field('yourseobook_page_meta_box_nonce', 'yourseobook_page_meta_box_nonce');
- 386 if (!wp_nonce_field($_POST['yourseobook_page_meta_box_nonce'], 'yourseobook_page_meta_box_nonce')) {
- 387 return;
- 388 }
- 389 if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
- 390 return;
- 391 }
- 392 if (!current_user_can('edit_post', $post_id)) {
- 393 return;
- 394 }
- 395
- 396 if (isset($_POST['yourseobook_page_topic_keyword'])) {
- 397 update_post_meta($post_id, 'yourseobook_page_topic_keyword', sanitize_text_field($_POST['yourseobook_page_topic_keyword']));
- 398 }
- 399 if (isset($_POST['yourseobook_meta_tt'])) {
- 400 update_post_meta($post_id, 'yourseobook_meta_tt', sanitize_text_field($_POST['yourseobook_meta_tt']));
- 401 }
- 402 if (isset($_POST['yourseobook_include_brand_name'])) {
- 403 update_post_meta($post_id, 'yourseobook_include_brand_name', 'on');
- 404 } else {
- 405 update_post_meta($post_id, 'yourseobook_include_brand_name', 'off');
- 406 }
- 407 if (isset($_POST['yourseobook_separator'])) {
- 408 update_post_meta($post_id, 'yourseobook_separator', sanitize_text_field($_POST['separator']));
- 409 }
- 410 if (isset($_POST['yourseobook_meta_d'])) {
- 411 update_post_meta($post_id, 'yourseobook_meta_d', sanitize_text_field($_POST['yourseobook_meta_d']));
- 412 }
- 413 if (isset($_POST['yourseobook_robots'])) {
- 414 update_post_meta($post_id, 'yourseobook_robots', sanitize_text_field($_POST['yourseobook_robots']));
- 415 }
- 416*/
- 417/*
- 418 // Save meta values
- 419 if (isset($_POST['yourseobook_page_topic_keyword'])) {
- 420 update_post_meta($post_id, 'yourseobook_page_topic_keyword', sanitize_text_field($_POST['yourseobook_page_topic_keyword']));
- 421 }
- 422
- 423 if (isset($_POST['yourseobook_meta_tt'])) {
- 424 update_post_meta($post_id, 'yourseobook_meta_tt', sanitize_text_field($_POST['yourseobook_meta_tt']));
- 425 }
- 426
- 427 if (isset($_POST['yourseobook_meta_d'])) {
- 428 update_post_meta($post_id, 'yourseobook_meta_d', sanitize_textarea_field($_POST['yourseobook_meta_d']));
- 429 }
- 430*/
- 431/*
- 432 $bad_keywords = array('bad', 'keywords'); // Replace with your list of bad keywords from JSON
- 433 // Check for bad keywords in MetaD
- 434 if ($has_bad_keyword) {
- 435 $validation_error = 'The MetaD contains one or more bad keywords.';
- 436 update_post_meta($post_id, 'yourseobook_meta_d_validation_error', $validation_error);
- 437 } else {
- 438 delete_post_meta($post_id, 'yourseobook_meta_d_validation_error');
- 439 }
- 440 // Check for bad keywords in MetaD
- 441 $yourseobook_meta_d = $_POST['yourseobook_meta_d'];
- 442 $has_bad_keyword = false;
- 443 foreach ($bad_keywords as $keyword) {
- 444 if (stripos($yourseobook_meta_d, $keyword) !== false) {
- 445 $has_bad_keyword = true;
- 446 break;
- 447 }
- 448 }
- 449
- 450}
- 451*/
- 452function yourseobook_save_custom_meta_box_data($post_id) {
- 453 // Check if the current user is authorized to save meta data
- 454 if (!current_user_can('edit_page', $post_id)) {
- 455 return;
- 456 }
- 457
- 458 // Check if the yourseobook_page_topic_keyword field is empty
- 459 $page_topic_keyword = isset($_POST['yourseobook_page_topic_keyword']) ? sanitize_text_field($_POST['yourseobook_page_topic_keyword']) : '';
- 460
- 461 // Set default value for yourseobook_page_topic_keyword if it's empty
- 462 if (empty($page_topic_keyword)) {
- 463 $page_topic_keyword = sanitize_title(get_post_field('page_name', $post_id)); // Default to page slug
- 464 }
- 465
- 466 // Save meta values
- 467 update_post_meta($post_id, 'yourseobook_page_topic_keyword', $page_topic_keyword);
- 468 update_post_meta($post_id, 'yourseobook_meta_tt', sanitize_text_field($_POST['yourseobook_meta_tt']));
- 469 update_post_meta($post_id, 'yourseobook_meta_d', sanitize_textarea_field($_POST['yourseobook_meta_d']));
- 470 update_post_meta($post_id, 'yourseobook_include_brand_name', sanitize_textarea_field($_POST['yourseobook_include_brand_name']));
- 471 update_post_meta($post_id, 'yourseobook_separator', sanitize_textarea_field($_POST['yourseobook_separator']));
- 472 update_post_meta($post_id, 'yourseobook_robots', sanitize_textarea_field($_POST['yourseobook_robots']));
- 473
- 474 // Check if the yourseobook_page_topic_keyword field is still empty
- 475 // if (empty($page_topic_keyword)) {
- 476 // Display error message and prevent saving
- 477 // wp_die('You don\'t have a Page Topic Keyword.');
- 478 // }
- 479}
- 480
- 481add_action('save_post', 'yourseobook_save_custom_meta_box_data');
- 482
- 483
- 484
- 485
- 486// Save meta box data for single pages
- 487/*
- 488function yourseobook_save_page_meta_box_data($post_id) {
- 489 if (!isset($_POST['yourseobook_page_meta_box_nonce'])) {
- 490 return;
- 491 }
- 492 if (!wp_verify_nonce($_POST['yourseobook_page_meta_box_nonce'], 'yourseobook_page_meta_box_nonce')) {
- 493 return;
- 494 }
- 495 if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
- 496 return;
- 497 }
- 498 if (!current_user_can('edit_post', $post_id)) {
- 499 return;
- 500 }
- 501
- 502 if (isset($_POST['yourseobook_page_topic_keyword'])) {
- 503 update_post_meta($post_id, 'yourseobook_page_topic_keyword', sanitize_text_field($_POST['yourseobook_page_topic_keyword']));
- 504 }
- 505 if (isset($_POST['yourseobook_meta_tt'])) {
- 506 update_post_meta($post_id, 'yourseobook_meta_tt', sanitize_text_field($_POST['yourseobook_meta_tt']));
- 507 }
- 508 if (isset($_POST['yourseobook_include_brand_name'])) {
- 509 update_post_meta($post_id, 'yourseobook_include_brand_name', 'on');
- 510 } else {
- 511 update_post_meta($post_id, 'yourseobook_include_brand_name', 'off');
- 512 }
- 513 if (isset($_POST['yourseobook_separator'])) {
- 514 update_post_meta($post_id, 'yourseobook_separator', sanitize_text_field($_POST['yourseobook_separator']));
- 515 }
- 516 if (isset($_POST['yourseobook_meta_d'])) {
- 517 update_post_meta($post_id, 'yourseobook_meta_d', sanitize_text_field($_POST['yourseobook_meta_d']));
- 518 }
- 519 if (isset($_POST['yourseobook_robots'])) {
- 520 update_post_meta($post_id, 'robots', sanitize_text_field($_POST['yourseobook_robots']));
- 521 }
- 522
- 523 // Perform additional validations and updates
- 524 $bad_keywords = array('bad', 'keywords'); // Replace with your list of bad keywords from JSON
- 525
- 526 // Check for bad keywords in MetaD
- 527 $meta_d = $_POST['yourseobook_meta_d'];
- 528 $has_bad_keyword = false;
- 529 foreach ($bad_keywords as $keyword) {
- 530 if (stripos($meta_d, $keyword) !== false) {
- 531 $has_bad_keyword = true;
- 532 break;
- 533 }
- 534 }
- 535 if ($has_bad_keyword) {
- 536 $validation_error = 'The MetaD contains one or more bad keywords.';
- 537 update_post_meta($post_id, 'meta_d_validation_error', $validation_error);
- 538 } else {
- 539 delete_post_meta($post_id, 'meta_d_validation_error');
- 540 }
- 541}
- 542
- 543
- 544add_action('save_post', 'yourseobook_save_page_meta_box_data');
- 545*/
- 546
- 547
- 548
- 549// enqueue an the Bootstrap 5.3 external CSS and JS file in WordPress, we are use the wp_enqueue_style() and wp_enqueue_script() functions respectively. Below is 's an example of how we enqueue the Bootstrap CSS and JS files:
- 550function enqueue_external_assets() {
- 551 // Enqueue Bootstrap CSS
- 552 wp_enqueue_style( 'bootstrap-min-css', 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css' );
- 553
- 554 // Enqueue Bootstrap JS
- 555 wp_enqueue_script( 'bootstrap-min-js', 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.min.js', array( 'jquery' ), '5.3.0', true );
- 556 //wp_enqueue_script( 'bootstrap-bundle-js', 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js', array( 'jquery' ), '5.3.0', true );
- 557 wp_enqueue_script( 'bootstrap-popper-js', 'https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js', array( 'jquery' ), '2.11.8', true );
- 558}
- 559add_action( 'admin_enqueue_scripts', 'enqueue_external_assets' );
- 560
- 561
- 562
- 563function enqueue_custom_meta_box_script() {
- 564 wp_enqueue_script( 'custom-meta-box', get_template_directory_uri() . '/js/custom-meta-box.js', array( 'jquery' ), '1.0', true );
- 565}
- 566add_action( 'admin_enqueue_scripts', 'enqueue_custom_meta_box_script' );
- 567
- 568
- 569function enqueue_meta_box_styles() {
- 570 wp_enqueue_style('meta-box-styles', get_template_directory_uri() . '/css/meta-box.css'); // Replace with the path to your CSS file
- 571}
- 572add_action('admin_enqueue_scripts', 'enqueue_meta_box_styles');
- css - 1 - 1 - 28.76 KB - August 20 2023 21:42:29
-
meta-box.css
- 1div#ysbsbox {
- 2 display: block;
- 3 max-width: 100%;
- 4 border: 1px solid #f00;
- 5 white-space: normal;
- 6 word-break: normal;
- 7 word-spacing: normal;
- 8 word-wrap: break-word;
- 9 overflow-x: hidden;
- 10 background: #000;
- 11 color: #fff;
- 12 padding: 20px;
- 13 font-size: 18px;
- 14 font-weight: 300;
- 15 line-height: 1.75rem;
- 16}
- 17
- 18#ysbsbox-left {
- 19 width: 66%;
- 20 max-width: 100%;
- 21 display: block;
- 22 float: left;
- 23 margin: 0px 25px 0px 0px;
- 24}
- 25#ysbsbox-right {
- 26 width: 32%;
- 27 display: block;
- 28 float: left;
- 29 max-width: 100%;
- 30}
- 31label.ptk::before {
- 32 content: "\f216";
- 33 font-family: dashicons;
- 34 font-size: 20px;
- 35 color: #ef13c8;
- 36 margin: 0px 10px 0px 0px;
- 37 padding: 0px;
- 38 display: flex;
- 39 line-height: 1.75rem;
- 40 flex-direction: column;
- 41 float: left;
- 42 background: #000;
- 43 flex-wrap: nowrap;
- 44 width: auto;
- 45}
- 46
- 47label.mtt::before {
- 48 content: "\f10e";
- 49 font-family: dashicons;
- 50 font-size: 20px;
- 51 color: #ef13c8;
- 52 margin: 0px 10px 0px 0px;
- 53 padding: 0px;
- 54 display: flex;
- 55 line-height: 1.75rem;
- 56 flex-direction: column;
- 57 float: left;
- 58 background: #000;
- 59 flex-wrap: nowrap;
- 60 width: auto;
- 61}
- 62
- 63label.brand-name::before {
- 64 content: "\f102";
- 65 font-family: dashicons;
- 66 font-size: 20px;
- 67 color: #ef13c8;
- 68 margin: 0px 10px 0px 0px;
- 69 padding: 0px;
- 70 display: flex;
- 71 line-height: 1.75rem;
- 72 flex-direction: column;
- 73 float: left;
- 74 background: #000;
- 75 flex-wrap: nowrap;
- 76 width: auto;
- 77}
- 78
- 79label.separator::before {
- 80 content: "\f109";
- 81 font-family: dashicons;
- 82 font-size: 20px;
- 83 color: #ef13c8;
- 84 margin: 0px 10px 0px 0px;
- 85 padding: 0px;
- 86 display: flex;
- 87 line-height: 1.75rem;
- 88 flex-direction: column;
- 89 float: left;
- 90 background: #000;
- 91 flex-wrap: nowrap;
- 92 width: auto;
- 93}
- 94label.robots::before {
- 95 content: "\f319";
- 96 font-family: dashicons;
- 97 font-size: 20px;
- 98 color: #ef13c8;
- 99 margin: 0px 10px 0px 0px;
- 100 padding: 0px;
- 101 display: flex;
- 102 line-height: 1.75rem;
- 103 flex-direction: column;
- 104 float: left;
- 105 background: #000;
- 106 flex-wrap: nowrap;
- 107 width: auto;
- 108}
- 109label.metad::before {
- 110 content: "\f491";
- 111 font-family: dashicons;
- 112 font-size: 20px;
- 113 color: #ef13c8;
- 114 margin: 0px 10px 0px 0px;
- 115 padding: 0px;
- 116 display: flex;
- 117 line-height: 1.75rem;
- 118 flex-direction: column;
- 119 float: left;
- 120 background: #000;
- 121 flex-wrap: nowrap;
- 122 width: auto;
- 123}
- 124/* Animate the opening and closing of the details element */
- 125.animated-details[open] > *:not(summary) {
- 126 animation: fadeIn 0.3s ease-in;
- 127}
- 128
- 129@keyframes fadeIn {
- 130 from {
- 131 opacity: 0;
- 132 transform: translateY(-10px);
- 133 }
- 134 to {
- 135 opacity: 1;
- 136 transform: translateY(0);
- 137 }
- 138}
- 139
- 140/* Style the summary element */
- 141.animated-summary {
- 142 position: relative;
- 143 cursor: pointer;
- 144 padding-left: 20px;
- 145 user-select: none;
- 146}
- 147
- 148.animated-summary::before {
- 149 content: '';
- 150 position: absolute;
- 151 top: 50%;
- 152 left: 0;
- 153 width: 18px;
- 154 height: 2px;
- 155 background-color: #000;
- 156 transform: translateY(-50%);
- 157 transition: transform 0.3s ease-in;
- 158}
- 159
- 160.animated-summary[open]::before {
- 161 transform: translateY(-50%) rotate(45deg);
- 162}
- 163
- 164.animated-summary[open]::after {
- 165 content: '';
- 166 position: absolute;
- 167 top: 50%;
- 168 left: 0;
- 169 width: 18px;
- 170 height: 2px;
- 171 background-color: #000;
- 172 transform: translateY(-50%) rotate(-45deg);
- 173 transition: transform 0.3s ease-in;
- 174}
- 175
- 176/* Adjust the summary appearance */
- 177.animated-summary::-webkit-details-marker {
- 178 display: none;
- 179}
- 180
- 181
- 182
- 183
- 184.slider {
- 185 width: 0;
- 186 height: 100%;
- 187 transition: width 1.3s ease-in-out;
- 188}
- 189
- 190.slider.orange {
- 191 background-color: orange;
- 192 height: 4px;
- 193 transition: width 1.3s ease-in-out;
- 194}
- 195
- 196.slider.red {
- 197 background-color: red;
- 198 height: 4px;
- 199}
- 200
- 201/* Styling for letter count text */
- 202.letter-count {
- 203 font-weight: bold;
- 204 background: #4002ff;
- 205 text-align: center;
- 206 color: #fff;
- 207 font-size: 14px;
- 208 border-radius: 8px;
- 209 border: 1px solid #fff;
- 210 box-shadow: 0px 10px 10px -10px #fff;
- 211 padding: 0px;
- 212 line-height: 1.25rem;
- 213 width: 10%;
- 214 max-width: 10%;
- 215 float: left;
- 216}
- 217
- 218.slider-container {
- 219 background: #ff7c10;
- 220 height: 4px;
- 221 visibility: visible;
- 222 overflow: auto;
- 223 max-width: 100%;
- 224 position: relative;
- 225 width: 100%;
- 226 margin: 0px 0px 0px 0px;
- 227 border-radius: 8px;
- 228}
- 229
- 230.asmb {
- 231 background-color: #eee;
- 232 color: #444;
- 233 cursor: pointer;
- 234 padding: 18px;
- 235 width: 100%;
- 236 border: none;
- 237 text-align: left;
- 238 outline: none;
- 239 font-size: 15px;
- 240 transition: 0.4s;
- 241}
- 242
- 243.active, .asmb:hover {
- 244 background-color: #ccc;
- 245}
- 246
- 247.asmb:after {
- 248 content: '\002B';
- 249 color: #777;
- 250 font-weight: bold;
- 251 float: right;
- 252 margin-left: 5px;
- 253}
- 254
- 255.active:after {
- 256 content: "\2212";
- 257}
- 258
- 259.pasmb {
- 260 padding: 0px 0px 0px 0px;
- 261 max-height: 0;
- 262 overflow: hidden;
- 263 transition: max-height 0.8s ease-out;
- 264 margin: 0px 0px 5px 0px;
- 265 overflow-y: scroll;
- 266 overflow-x: hidden;
- 267}
- 268
- 269.pasmb p {
- 270 font-size: 14px;
- 271 display: flex;
- 272 background-color: #03c810;
- 273 margin: 0px;
- 274 padding: 15px;
- 275 border-left: 1px solid #ffe103;
- 276 border-right: 1px solid #ffe103;
- 277 border-bottom: 1px solid #ffe103;
- 278 color: #000;
- 279 overflow-y: scroll;
- 280 overflow-x: hidden;
- 281 min-height: 100% !important;
- 282 max-height: 100% !important;
- 283}
- 284
- 285
- 286
- 287
- 288
- 289
- 290.seoasmb {
- 291 background-color: #eee;
- 292 color: #444;
- 293 cursor: pointer;
- 294 padding: 18px;
- 295 width: 100%;
- 296 border: none;
- 297 text-align: left;
- 298 outline: none;
- 299 font-size: 15px;
- 300 transition: 0.4s;
- 301}
- 302
- 303.active, .seoasmb:hover {
- 304 background-color: #ccc;
- 305}
- 306
- 307.seoasmb:after {
- 308 content: '\002B';
- 309 color: #777;
- 310 font-weight: bold;
- 311 float: right;
- 312 margin-left: 5px;
- 313}
- 314
- 315.active:after {
- 316 content: "\2212";
- 317}
- 318
- 319.seoasmdc {
- 320 padding: 0 18px;
- 321 background-color: white;
- 322 max-height: 0;
- 323 overflow: hidden;
- 324 transition: max-height 0.2s ease-out;
- 325}
- 326
- 327
- 328
- 329.accordion {
- 330 background-color: #eee;
- 331 color: #444;
- 332 cursor: pointer;
- 333 padding: 18px;
- 334 width: 100%;
- 335 border: none;
- 336 text-align: left;
- 337 outline: none;
- 338 font-size: 15px;
- 339 transition: 0.4s;
- 340}
- 341
- 342.active, .accordion:hover {
- 343 background-color: #ac003f;
- 344 color: #fff;
- 345}
- 346
- 347.accordion:after {
- 348 content: '\002B';
- 349 color: #777;
- 350 font-weight: bold;
- 351 float: right;
- 352 margin-left: 5px;
- 353}
- 354
- 355.active:after {
- 356 content: "\2212";
- 357}
- 358
- 359.panel {
- 360 background-color: #3b1d98;
- 361 max-height: 0;
- 362 overflow: hidden;
- 363 display: flex;
- 364 flex-direction: row;
- 365 flex-wrap: wrap;
- 366 justify-content: space-evenly;
- 367 align-content: stretch;
- 368 align-items: center;
- 369 max-width: 100%;
- 370 width: 100%;
- 371 padding: 0px 0px 0px 0px;
- 372}
- 373.opened {
- 374 max-width: 100%;
- 375 display: flex;
- 376 padding: 0px 0px 0px 0px;
- 377 flex-wrap: wrap;
- 378 flex-direction: row;
- 379 align-items: center;
- 380 height: auto;
- 381 align-content: center;
- 382 justify-content: space-around;
- 383 width: 100%;
- 384 min-width: 100%;
- 385}
- 386.panel input, .panel textarea{min-width: 90%;max-width: 90%;margin: 10px 0px 10px 0px;padding: 0px 10px 0px 10px;background: #ccc;color: #000;font-weight: 500;display: flex;flex-direction: row;flex-wrap: wrap;justify-content: space-between;max-width: 90%;min-width: 90% !important;}
- 387
- 388
- 389#yourseobook_meta_d_validation a {
- 390 color: #f00;
- 391 text-decoration: none;
- 392 font-weight: 500;
- 393}
- 394
- 395
- 396
- 397span.validation-passed {
- 398 background: #2aa970;
- 399 padding: 15px 20px;
- 400 color: #fff;
- 401 font-weight: 500;
- 402 max-width: 100%;
- 403 width: 100%;
- 404 display: inline-block;
- 405 margin: 0px auto;
- 406 text-align: center;
- 407}
- 408
- 409span.validation-failed {
- 410 background: #ce0000;
- 411 padding: 15px 20px;
- 412 color: #fff;
- 413 font-weight: 500;
- 414 max-width: 100%;
- 415 width: 100%;
- 416 display: inline-block;
- 417 margin: 0px auto;
- 418 text-align: center;
- 419}
- 420.accordion-body {
- 421 transition: color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out,border-radius 0.15s ease;
- 422 animation: fadeIn 1.3s ease-in;
- 423 transform: translate(0px, 0px);
- 424 padding: 15px !important;
- 425 margin: 0px 10px !important;
- 426 background: #ab013f;
- 427 max-width: 100%;
- 428 border-radius: 8px;
- 429}
- 430
- 431.accordion-flush .accordion-collapse {
- 432 border-width: 0;
- 433 transition: color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out,border-radius 0.15s ease;
- 434 animation: fadeIn 1.3s ease-in;
- 435 transform: translate(0px, 0px);
- 436}
- 437span.meta-d-symb{
- 438
- 439color: black;float:left;font-size: 12px;line-height: 1.35rem;margin: 0px 10px;font-weight: 300;border: 1px dotted #ff5622;padding: 0px 20px;border-radius: 8px;box-shadow: 0px 5px 5px -5px #000;background: #ff7c11;
- 440}
- 441
- 442input#yourseobook_meta_tt {
- 443 margin: 0px 0px 10px 0px;
- 444 border: 4px ridge #000;
- 445 box-shadow: 0px 10px 5px -10px #000;
- 446 background: #fff !important;
- 447 border-radius: 8px;
- 448 padding: 0px 20px;
- 449 font-size: 12px;
- 450}
- 451
- 452
- 453
- 454button.meta-tt-reset {
- 455 background: #2aa970;
- 456 width: 81px;
- 457 padding: 0px 20px;
- 458 line-height: 1.35rem;
- 459 color: #fff;
- 460 border-radius: 8px;
- 461 border: 4px ridge #ffbf0b;
- 462 float: left;
- 463}
- 464
- 465
- 466button.meta-tt-reset span.dashicons.dashicons-update:hover {
- 467 color: #fff;
- 468 background: #000;
- 469}
- 470button.meta-tt-reset:hover {
- 471 color: #fff !important;
- 472 background: #000;
- 473 border: 4px ridge red;
- 474}
- js - 2 - 1 - 28.76 KB - August 20 2023 21:41:54
-
bad-keywords.json
- 1{
- 2 "bad_keywords": [
- 3 "bad",
- 4 "keywords",
- 5 "_",
- 6 "--",
- 7 "/",
- 8 "call now",
- 9 "sex",
- 10"gumtree",
- 11"dont add bad keywords"
- 12 ]
- 13}
- 14
custom-meta-box.js
- 1jQuery(document).ready(function($) {
- 2 // MetaTT validation and styling
- 3 $('#yourseobook_meta_tt').on('input', function() {
- 4 var yourseobook_page_topic_keyword = $('#yourseobook_page_topic_keyword').val();
- 5 var yourseobook_meta_tt = $(this).val();
- 6 var yourseobook_include_brand_name = $('#yourseobook_include_brand_name').is(':checked');
- 7 var yourseobook_separator = $('#yourseobook_separator').val();
- 8
- 9 // Check if MetaTT contains the Page Topic Keyword
- 10 var contains_topic_keyword = yourseobook_meta_tt.toLowerCase().includes(yourseobook_page_topic_keyword.toLowerCase());
- 11
- 12 // Check if MetaTT includes the Brand Name
- 13 if (yourseobook_include_brand_name) {
- 14 var brand_name = 'Your Brand'; // Replace with your brand name from customizer settings
- 15 var regex = new RegExp(brand_name + '\\s*$', 'i');
- 16 var yourseobook_include_brand_name = regex.test(yourseobook_meta_tt);
- 17 } else {
- 18 var yourseobook_include_brand_name = true; // No brand name inclusion is required
- 19 }
- 20
- 21 // Apply styling and validation based on conditions
- 22 if (yourseobook_page_topic_keyword === '') {
- 23 $('#yourseobook_page_topic_keyword').css({
- 24 'border-color': 'red',
- 25 'background-color': 'lightred'
- 26 });
- 27 } else {
- 28 $('#yourseobook_page_topic_keyword').css({
- 29 'border-color': '',
- 30 'background-color': ''
- 31 });
- 32 $('#yourseobook_meta_tt_validation').html('Your MetaTT contains the topic keyword Great Work');
- 33
- 34 }
- 35
- 36 if (!contains_topic_keyword) {
- 37 $('#yourseobook_meta_tt').css({
- 38 'border-color': 'red',
- 39 'background-color': 'lightred'
- 40 });
- 41 $('#yourseobook_meta_tt_validation').html('<span class="validation-failed">Topic keyword not found in MetaTT</span>');
- 42 }
- 43else if (yourseobook_meta_tt.length >= 30) {
- 44 $('#yourseobook_meta_tt').css({
- 45 'border-color': 'green',
- 46 'background-color': 'lightgreen'
- 47 });
- 48 $('#yourseobook_meta_tt_validation').html('<span class="validation-passed">Your MetaTT is valid and contains the topic keyword and brand name</span>');
- 49 } else {
- 50 $('#yourseobook_meta_tt').css({
- 51 'border-color': 'orange',
- 52 'background-color': 'lightorange'
- 53 });
- 54 $('#yourseobook_meta_tt_validation').html('<span class="validation-passed">Your MetaTT contains the topic keyword</span>');
- 55
- 56 }
- 57 });
- 58
- 59 // MetaD validation and styling
- 60 $('#yourseobook_meta_d').on('input', function() {
- 61 var yourseobook_page_topic_keyword = $('#yourseobook_page_topic_keyword').val();
- 62 var yourseobook_meta_d = $(this).val();
- 63 var bad_keywords = customMetaBoxData.badKeywords; // Replace with your JSON data containing bad keywords
- 64
- 65 // Check if MetaD contains bad keywords
- 66 var has_bad_keyword = false;
- 67 for (var i = 0; i < bad_keywords.length; i++) {
- 68 var keyword = bad_keywords[i];
- 69 if (yourseobook_meta_d.toLowerCase().includes(keyword.toLowerCase())) {
- 70 has_bad_keyword = true;
- 71 break;
- 72 }
- 73 }
- 74
- 75 // Check if MetaD contains the Page Topic Keyword
- 76 var contains_topic_keyword = yourseobook_meta_d.toLowerCase().includes(yourseobook_page_topic_keyword.toLowerCase());
- 77
- 78 if (!contains_topic_keyword) {
- 79 $('#yourseobook_meta_d').css({
- 80 'border-color': 'red',
- 81 'background-color': 'lightred'
- 82 });
- 83 $('#yourseobook_meta_d_validation').html('<span class="validation-passed">Your MetaD contains the topic keyword</span>');
- 84 }
- 85
- 86 // Apply styling and validation based on conditions
- 87 if (has_bad_keyword) {
- 88 $('#yourseobook_meta_d').css({
- 89 'border-color': 'red',
- 90 'background-color': 'lightred'
- 91 });
- 92 $('#yourseobook_meta_d_validation').html('<div class="bad">Your Page Meta Description (MetaD) contains one or more <a href="https://yourseobook.com/docs/the-ultimate-negative-keyword-list-included/" target="_blank" title="The ultimate negative keyword list Included" role="link" type="link" rel="help">bad keywords</a></div>');
- 93 } else if (contains_topic_keyword) {
- 94 $('#yourseobook_meta_d').css({
- 95 'border-color': 'red',
- 96 'background-color': 'lightred'
- 97 });
- 98 $('#yourseobook_meta_d_validation').html('<span class="validation-passed">Your MetaD contains the topic keyword</span>');
- 99 } else if (yourseobook_meta_d.length < 100) {
- 100 $('#yourseobook_meta_d').css({
- 101 'border-color': 'orange',
- 102 'background-color': 'lightorange'
- 103 });
- 104 $('#yourseobook_meta_d_validation').html('<span class="validation-failed">Not enough text for MetaD</span>');
- 105 } else if (yourseobook_meta_d.length >= 100 && yourseobook_meta_d.length < 180) {
- 106 $('#yourseobook_meta_d').css({
- 107 'border-color': 'green',
- 108 'background-color': 'lightgreen'
- 109 });
- 110 $('#yourseobook_meta_d_validation').html('<span class="validation-failed">MetaD has enough text</span>');
- 111 } else if (yourseobook_meta_d.length >= 180) {
- 112 $('#yourseobook_meta_d').css({
- 113 'border-color': 'red',
- 114 'background-color': 'lightred'
- 115 });
- 116 $('#yourseobook_meta_d_validation').html('<span class="validation-failed">MetaD is too long</span>');
- 117 } else {
- 118 $('#yourseobook_meta_d').css({
- 119 'border-color': 'red',
- 120 'background-color': 'lightred'
- 121 });
- 122 $('#yourseobook_meta_d_validation').html('');
- 123 }
- 124 });
- 125});
- 126
- 127// Dynamically Change the Symbols Counters for the Your SEO Book SEO Meta Box and the MetaTT and MetaD Page and Post SEO Meta Box Fields
- 128
- 129document.addEventListener('DOMContentLoaded', function() {
- 130 // Get the elements
- 131 var metaTtInput = document.getElementById('yourseobook_meta_tt');
- 132 //var metaTtSlider = document.querySelector('#yourseobook_meta_tt + .slider-container .slider');
- 133 var metaTtSlider = document.querySelector('#yourseobook_meta_tt_slider');
- 134 var metaTtLetterCount = document.querySelector('#yourseobook_meta_tt + .letter-count');
- 135
- 136 var metaDInput = document.getElementById('yourseobook_meta_d');
- 137 var metaDSlider = document.querySelector('#yourseobook_meta_d_slider');
- 138 // var metaDSlider = document.querySelector('#yourseobook_meta_d + .slider-container .slider');
- 139 var metaDLetterCount = document.querySelector('#yourseobook_meta_d + .letter-count');
- 140
- 141 // Update letter count and slider
- 142 function updateLetterCountAndSliderMetaTT(element, slider, letterCount) {
- 143 var length = element.value.length;
- 144 letterCount.textContent = length;
- 145
- 146 if (length <= 10) {
- 147 slider.style.width = '0%';
- 148 slider.className = 'slider bad';
- 149 } else if (length <= 30) {
- 150 var width = ((length - 30) / 60) * 100;
- 151 slider.style.width = width + '%';
- 152 slider.className = 'slider good';
- 153 } else if (length <= 70) {
- 154 var width = ((length - 30) / 60) * 100;
- 155 slider.style.width = width + '%';
- 156 slider.className = 'slider exellent';
- 157 } else if (length <= 90) {
- 158 var width = ((length - 90) / 40) * 100;
- 159 slider.style.width = width + '%';
- 160 slider.className = 'slider bad';
- 161 } else {
- 162 slider.style.width = '100%';
- 163 slider.className = 'slider red';
- 164 }
- 165 }
- 166
- 167 // Update letter count and slider
- 168 function updateLetterCountAndSliderMetaD(element, slider, letterCount) {
- 169 var length = element.value.length;
- 170 letterCount.textContent = length;
- 171
- 172 if (length <= 90) {
- 173 slider.style.width = '0%';
- 174 slider.className = 'slider sp';
- 175 } else if (length <= 130) {
- 176 var width = ((length - 30) / 60) * 100;
- 177 slider.style.width = width + '%';
- 178 slider.className = 'slider pass';
- 179 } else if (length <= 230) {
- 180 var width = ((length - 90) / 40) * 100;
- 181 slider.style.width = width + '%';
- 182 slider.className = 'slider fail';
- 183 } else {
- 184 slider.style.width = '100%';
- 185 slider.className = 'slider bad';
- 186 }
- 187 }
- 188 // Attach event listeners
- 189 metaTtInput.addEventListener('input', function() {
- 190 updateLetterCountAndSliderMetaTT(metaTtInput, metaTtSlider, metaTtLetterCount);
- 191 });
- 192
- 193 metaDInput.addEventListener('input', function() {
- 194 updateLetterCountAndSliderMetaD(metaDInput, metaDSlider, metaDLetterCount);
- 195 });
- 196});
- 197
- 198
- 199var acc = document.getElementsByClassName("asmb");
- 200var i;
- 201
- 202for (i = 0; i < acc.length; i++) {
- 203 acc[i].addEventListener("click", function() {
- 204 this.classList.toggle("active");
- 205 var pasmb = this.nextElementSibling;
- 206 if (pasmb.style.maxHeight) {
- 207 pasmb.style.maxHeight = null;
- 208 } else {
- 209 pasmb.style.maxHeight = pasmb.scrollHeight + "px";
- 210 }
- 211 });
- 212}
- 213
- 214
- 215var acc = document.getElementsByClassName("accordion");
- 216var i;
- 217
- 218for (i = 0; i < acc.length; i++) {
- 219 acc[i].addEventListener("click", function() {
- 220 this.classList.toggle("active");
- 221 var panel = this.nextElementSibling;
- 222 if (panel.style.maxHeight) {
- 223 panel.style.maxHeight = null;
- 224 } else {
- 225 panel.style.maxHeight = panel.scrollHeight + "px";
- 226 }
- 227 });
- 228}
-
- assets - 2 - 0 - 0 B - August 21 2023 07:45:15
- brand - 1 - 0 - 0 B - August 21 2023 07:45:16
- media - 1 - 0 - 0 B - August 21 2023 07:45:54
-
brand-name-default-image.jpg
- 1
-
- css - 2 - 0 - 0 B - August 25 2023 10:44:52
-
animation-styles.css
- 1@keyframes bounce {
- 2 20%,
- 3 53%,
- 4 80%,
- 5 from,
- 6 to {
- 7 animation-timing-function:cubic-bezier(.215,.61,.355,1);
- 8 transform:translate3d(0,0,0)
- 9 }
- 10 40%,
- 11 43% {
- 12 animation-timing-function:cubic-bezier(.755,.050,.855,.060);
- 13 transform:translate3d(0,-30px,0)
- 14 }
- 15 70% {
- 16 animation-timing-function:cubic-bezier(.755,.050,.855,.060);
- 17 transform:translate3d(0,-15px,0)
- 18 }
- 19 90% {
- 20 transform:translate3d(0,-4px,0)
- 21 }
- 22}
- 23.bounce {
- 24 animation-name:bounce;
- 25 transform-origin:center bottom
- 26}
- 27@keyframes flash {
- 28 50%,
- 29 from,
- 30 to {
- 31 opacity:1
- 32 }
- 33 25%,
- 34 75% {
- 35 opacity:0
- 36 }
- 37}
- 38.flash {
- 39 animation-name:flash
- 40}
- 41@keyframes pulse {
- 42 from,
- 43 to {
- 44 transform:scale3d(1,1,1)
- 45 }
- 46 50% {
- 47 transform:scale3d(1.05,1.05,1.05)
- 48 }
- 49}
- 50.pulse {
- 51 animation-name:pulse
- 52}
- 53@keyframes rubberBand {
- 54 from,
- 55 to {
- 56 transform:scale3d(1,1,1)
- 57 }
- 58 30% {
- 59 transform:scale3d(1.25,.75,1)
- 60 }
- 61 40% {
- 62 transform:scale3d(.75,1.25,1)
- 63 }
- 64 50% {
- 65 transform:scale3d(1.15,.85,1)
- 66 }
- 67 65% {
- 68 transform:scale3d(.95,1.05,1)
- 69 }
- 70 75% {
- 71 transform:scale3d(1.05,.95,1)
- 72 }
- 73}
- 74.rubberBand {
- 75 animation-name:rubberBand
- 76}
- 77@keyframes shake {
- 78 from,
- 79 to {
- 80 transform:translate3d(0,0,0)
- 81 }
- 82 10%,
- 83 30%,
- 84 50%,
- 85 70%,
- 86 90% {
- 87 transform:translate3d(-10px,0,0)
- 88 }
- 89 20%,
- 90 40%,
- 91 60%,
- 92 80% {
- 93 transform:translate3d(10px,0,0)
- 94 }
- 95}
- 96.shake {
- 97 animation-name:shake
- 98}
- 99@keyframes headShake {
- 100 0% {
- 101 transform:translateX(0)
- 102 }
- 103 6.5% {
- 104 transform:translateX(-6px) rotateY(-9deg)
- 105 }
- 106 18.5% {
- 107 transform:translateX(5px) rotateY(7deg)
- 108 }
- 109 31.5% {
- 110 transform:translateX(-3px) rotateY(-5deg)
- 111 }
- 112 43.5% {
- 113 transform:translateX(2px) rotateY(3deg)
- 114 }
- 115 50% {
- 116 transform:translateX(0)
- 117 }
- 118}
- 119.headShake {
- 120 animation-timing-function:ease-in-out;
- 121 animation-name:headShake
- 122}
- 123@keyframes swing {
- 124 20% {
- 125 transform:rotate3d(0,0,1,15deg)
- 126 }
- 127 40% {
- 128 transform:rotate3d(0,0,1,-10deg)
- 129 }
- 130 60% {
- 131 transform:rotate3d(0,0,1,5deg)
- 132 }
- 133 80% {
- 134 transform:rotate3d(0,0,1,-5deg)
- 135 }
- 136 to {
- 137 transform:rotate3d(0,0,1,0deg)
- 138 }
- 139}
- 140.swing {
- 141 transform-origin:top center;
- 142 animation-name:swing
- 143}
- 144@keyframes tada {
- 145 from,
- 146 to {
- 147 transform:scale3d(1,1,1)
- 148 }
- 149 10%,
- 150 20% {
- 151 transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)
- 152 }
- 153 30%,
- 154 50%,
- 155 70%,
- 156 90% {
- 157 transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)
- 158 }
- 159 40%,
- 160 60%,
- 161 80% {
- 162 transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)
- 163 }
- 164}
- 165.tada {
- 166 animation-name:tada
- 167}
- 168@keyframes wobble {
- 169 from,
- 170 to {
- 171 transform:none
- 172 }
- 173 15% {
- 174 transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)
- 175 }
- 176 30% {
- 177 transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)
- 178 }
- 179 45% {
- 180 transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)
- 181 }
- 182 60% {
- 183 transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)
- 184 }
- 185 75% {
- 186 transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)
- 187 }
- 188}
- 189.wobble {
- 190 animation-name:wobble
- 191}
- 192@keyframes jello {
- 193 11.1%,
- 194 from,
- 195 to {
- 196 transform:none
- 197 }
- 198 22.2% {
- 199 transform:skewX(-12.5deg) skewY(-12.5deg)
- 200 }
- 201 33.3% {
- 202 transform:skewX(6.25deg) skewY(6.25deg)
- 203 }
- 204 44.4% {
- 205 transform:skewX(-3.125deg) skewY(-3.125deg)
- 206 }
- 207 55.5% {
- 208 transform:skewX(1.5625deg) skewY(1.5625deg)
- 209 }
- 210 66.6% {
- 211 transform:skewX(-.78125deg) skewY(-.78125deg)
- 212 }
- 213 77.7% {
- 214 transform:skewX(.390625deg) skewY(.390625deg)
- 215 }
- 216 88.8% {
- 217 transform:skewX(-.1953125deg) skewY(-.1953125deg)
- 218 }
- 219}
- 220.jello {
- 221 animation-name:jello;
- 222 transform-origin:center
- 223}
- 224@keyframes bounceIn {
- 225 20%,
- 226 40%,
- 227 60%,
- 228 80%,
- 229 from,
- 230 to {
- 231 animation-timing-function:cubic-bezier(.215,.61,.355,1)
- 232 }
- 233 0% {
- 234 opacity:0;
- 235 transform:scale3d(.3,.3,.3)
- 236 }
- 237 20% {
- 238 transform:scale3d(1.1,1.1,1.1)
- 239 }
- 240 40% {
- 241 transform:scale3d(.9,.9,.9)
- 242 }
- 243 60% {
- 244 opacity:1;
- 245 transform:scale3d(1.03,1.03,1.03)
- 246 }
- 247 80% {
- 248 transform:scale3d(.97,.97,.97)
- 249 }
- 250 to {
- 251 opacity:1;
- 252 transform:scale3d(1,1,1)
- 253 }
- 254}
- 255.bounceIn {
- 256 animation-name:bounceIn
- 257}
- 258@keyframes bounceInDown {
- 259 60%,
- 260 75%,
- 261 90%,
- 262 from,
- 263 to {
- 264 animation-timing-function:cubic-bezier(.215,.61,.355,1)
- 265 }
- 266 0% {
- 267 opacity:0;
- 268 transform:translate3d(0,-3000px,0)
- 269 }
- 270 60% {
- 271 opacity:1;
- 272 transform:translate3d(0,25px,0)
- 273 }
- 274 75% {
- 275 transform:translate3d(0,-10px,0)
- 276 }
- 277 90% {
- 278 transform:translate3d(0,5px,0)
- 279 }
- 280 to {
- 281 transform:none
- 282 }
- 283}
- 284.bounceInDown {
- 285 animation-name:bounceInDown
- 286}
- 287@keyframes bounceInLeft {
- 288 60%,
- 289 75%,
- 290 90%,
- 291 from,
- 292 to {
- 293 animation-timing-function:cubic-bezier(.215,.61,.355,1)
- 294 }
- 295 0% {
- 296 opacity:0;
- 297 transform:translate3d(-3000px,0,0)
- 298 }
- 299 60% {
- 300 opacity:1;
- 301 transform:translate3d(25px,0,0)
- 302 }
- 303 75% {
- 304 transform:translate3d(-10px,0,0)
- 305 }
- 306 90% {
- 307 transform:translate3d(5px,0,0)
- 308 }
- 309 to {
- 310 transform:none
- 311 }
- 312}
- 313.bounceInLeft {
- 314 animation-name:bounceInLeft
- 315}
- 316@keyframes bounceInRight {
- 317 60%,
- 318 75%,
- 319 90%,
- 320 from,
- 321 to {
- 322 animation-timing-function:cubic-bezier(.215,.61,.355,1)
- 323 }
- 324 from {
- 325 opacity:0;
- 326 transform:translate3d(3000px,0,0)
- 327 }
- 328 60% {
- 329 opacity:1;
- 330 transform:translate3d(-25px,0,0)
- 331 }
- 332 75% {
- 333 transform:translate3d(10px,0,0)
- 334 }
- 335 90% {
- 336 transform:translate3d(-5px,0,0)
- 337 }
- 338 to {
- 339 transform:none
- 340 }
- 341}
- 342.bounceInRight {
- 343 animation-name:bounceInRight
- 344}
- 345@keyframes bounceInUp {
- 346 60%,
- 347 75%,
- 348 90%,
- 349 from,
- 350 to {
- 351 animation-timing-function:cubic-bezier(.215,.61,.355,1)
- 352 }
- 353 from {
- 354 opacity:0;
- 355 transform:translate3d(0,3000px,0)
- 356 }
- 357 60% {
- 358 opacity:1;
- 359 transform:translate3d(0,-20px,0)
- 360 }
- 361 75% {
- 362 transform:translate3d(0,10px,0)
- 363 }
- 364 90% {
- 365 transform:translate3d(0,-5px,0)
- 366 }
- 367 to {
- 368 transform:translate3d(0,0,0)
- 369 }
- 370}
- 371.bounceInUp {
- 372 animation-name:bounceInUp
- 373}
- 374@keyframes fadeIn {
- 375 from {
- 376 opacity:0
- 377 }
- 378 to {
- 379 opacity:1
- 380 }
- 381}
- 382.fadeIn {
- 383 animation-name:fadeIn
- 384}
- 385@keyframes fadeInDown {
- 386 from {
- 387 opacity:0;
- 388 transform:translate3d(0,-100%,0)
- 389 }
- 390 to {
- 391 opacity:1;
- 392 transform:none
- 393 }
- 394}
- 395.fadeInDown {
- 396 animation-name:fadeInDown
- 397}
- 398@keyframes fadeInLeft {
- 399 from {
- 400 opacity:0;
- 401 transform:translate3d(-100%,0,0)
- 402 }
- 403 to {
- 404 opacity:1;
- 405 transform:none
- 406 }
- 407}
- 408.fadeInLeft {
- 409 animation-name:fadeInLeft
- 410}
- 411@keyframes fadeInRight {
- 412 from {
- 413 opacity:0;
- 414 transform:translate3d(100%,0,0)
- 415 }
- 416 to {
- 417 opacity:1;
- 418 transform:none
- 419 }
- 420}
- 421.fadeInRight {
- 422 animation-name:fadeInRight
- 423}
- 424@keyframes fadeInUp {
- 425 from {
- 426 opacity:0;
- 427 transform:translate3d(0,100%,0)
- 428 }
- 429 to {
- 430 opacity:1;
- 431 transform:none
- 432 }
- 433}
- 434.fadeInUp {
- 435 animation-name:fadeInUp
- 436}
- 437@keyframes lightSpeedIn {
- 438 from {
- 439 transform:translate3d(100%,0,0) skewX(-30deg);
- 440 opacity:0
- 441 }
- 442 60% {
- 443 transform:skewX(20deg);
- 444 opacity:1
- 445 }
- 446 80% {
- 447 transform:skewX(-5deg);
- 448 opacity:1
- 449 }
- 450 to {
- 451 transform:none;
- 452 opacity:1
- 453 }
- 454}
- 455.lightSpeedIn {
- 456 animation-name:lightSpeedIn;
- 457 animation-timing-function:ease-out
- 458}
- 459@keyframes rotateIn {
- 460 from {
- 461 transform-origin:center;
- 462 transform:rotate3d(0,0,1,-200deg);
- 463 opacity:0
- 464 }
- 465 to {
- 466 transform-origin:center;
- 467 transform:none;
- 468 opacity:1
- 469 }
- 470}
- 471.rotateIn {
- 472 animation-name:rotateIn
- 473}
- 474@keyframes rotateInDownLeft {
- 475 from {
- 476 transform-origin:left bottom;
- 477 transform:rotate3d(0,0,1,-45deg);
- 478 opacity:0
- 479 }
- 480 to {
- 481 transform-origin:left bottom;
- 482 transform:none;
- 483 opacity:1
- 484 }
- 485}
- 486.rotateInDownLeft {
- 487 animation-name:rotateInDownLeft
- 488}
- 489@keyframes rotateInDownRight {
- 490 from {
- 491 transform-origin:right bottom;
- 492 transform:rotate3d(0,0,1,45deg);
- 493 opacity:0
- 494 }
- 495 to {
- 496 transform-origin:right bottom;
- 497 transform:none;
- 498 opacity:1
- 499 }
- 500}
- 501.rotateInDownRight {
- 502 animation-name:rotateInDownRight
- 503}
- 504@keyframes rotateInUpLeft {
- 505 from {
- 506 transform-origin:left bottom;
- 507 transform:rotate3d(0,0,1,45deg);
- 508 opacity:0
- 509 }
- 510 to {
- 511 transform-origin:left bottom;
- 512 transform:none;
- 513 opacity:1
- 514 }
- 515}
- 516.rotateInUpLeft {
- 517 animation-name:rotateInUpLeft
- 518}
- 519@keyframes rotateInUpRight {
- 520 from {
- 521 transform-origin:right bottom;
- 522 transform:rotate3d(0,0,1,-90deg);
- 523 opacity:0
- 524 }
- 525 to {
- 526 transform-origin:right bottom;
- 527 transform:none;
- 528 opacity:1
- 529 }
- 530}
- 531.rotateInUpRight {
- 532 animation-name:rotateInUpRight
- 533}
- 534@keyframes rollIn {
- 535 from {
- 536 opacity:0;
- 537 transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)
- 538 }
- 539 to {
- 540 opacity:1;
- 541 transform:none
- 542 }
- 543}
- 544.rollIn {
- 545 animation-name:rollIn
- 546}
- 547@keyframes zoomIn {
- 548 from {
- 549 opacity:0;
- 550 transform:scale3d(.3,.3,.3)
- 551 }
- 552 50% {
- 553 opacity:1
- 554 }
- 555}
- 556.zoomIn {
- 557 animation-name:zoomIn
- 558}
- 559@keyframes zoomInDown {
- 560 from {
- 561 opacity:0;
- 562 transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);
- 563 animation-timing-function:cubic-bezier(.55,.055,.675,.19)
- 564 }
- 565 60% {
- 566 opacity:1;
- 567 transform:scale3d(.475,.475,.475) translate3d(0,60px,0);
- 568 animation-timing-function:cubic-bezier(.175,.885,.32,1)
- 569 }
- 570}
- 571.zoomInDown {
- 572 animation-name:zoomInDown
- 573}
- 574@keyframes zoomInLeft {
- 575 from {
- 576 opacity:0;
- 577 transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);
- 578 animation-timing-function:cubic-bezier(.55,.055,.675,.19)
- 579 }
- 580 60% {
- 581 opacity:1;
- 582 transform:scale3d(.475,.475,.475) translate3d(10px,0,0);
- 583 animation-timing-function:cubic-bezier(.175,.885,.32,1)
- 584 }
- 585}
- 586.zoomInLeft {
- 587 animation-name:zoomInLeft
- 588}
- 589@keyframes zoomInRight {
- 590 from {
- 591 opacity:0;
- 592 transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);
- 593 animation-timing-function:cubic-bezier(.55,.055,.675,.19)
- 594 }
- 595 60% {
- 596 opacity:1;
- 597 transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);
- 598 animation-timing-function:cubic-bezier(.175,.885,.32,1)
- 599 }
- 600}
- 601.zoomInRight {
- 602 animation-name:zoomInRight
- 603}
- 604@keyframes zoomInUp {
- 605 from {
- 606 opacity:0;
- 607 transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);
- 608 animation-timing-function:cubic-bezier(.55,.055,.675,.19)
- 609 }
- 610 60% {
- 611 opacity:1;
- 612 transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);
- 613 animation-timing-function:cubic-bezier(.175,.885,.32,1)
- 614 }
- 615}
- 616.zoomInUp {
- 617 animation-name:zoomInUp
- 618}
- 619@keyframes slideInDown {
- 620 from {
- 621 transform:translate3d(0,-100%,0);
- 622 visibility:visible
- 623 }
- 624 to {
- 625 transform:translate3d(0,0,0)
- 626 }
- 627}
- 628.slideInDown {
- 629 animation-name:slideInDown
- 630}
- 631@keyframes slideInLeft {
- 632 from {
- 633 transform:translate3d(-100%,0,0);
- 634 visibility:visible
- 635 }
- 636 to {
- 637 transform:translate3d(0,0,0)
- 638 }
- 639}
- 640.slideInLeft {
- 641 animation-name:slideInLeft
- 642}
- 643@keyframes slideInRight {
- 644 from {
- 645 transform:translate3d(100%,0,0);
- 646 visibility:visible
- 647 }
- 648 to {
- 649 transform:translate3d(0,0,0)
- 650 }
- 651}
- 652.slideInRight {
- 653 animation-name:slideInRight
- 654}
- 655@keyframes slideInUp {
- 656 from {
- 657 transform:translate3d(0,100%,0);
- 658 visibility:visible
- 659 }
- 660 to {
- 661 transform:translate3d(0,0,0)
- 662 }
- 663}
cpt-types.css
- 1h1.custom-post-types-archives-title{
- 2font-size: 44px;
- 3font-weight: 500;
- 4color: #000;
- 5text-transform: capitalize;
- 6margin: 10px 0px 30px 0px;
- 7padding: 20px 0px 20px 0px;
- 8border-bottom: 1px solid #000;
- 9}
customizer-styles.css
- 1
footer-general.css
- 1/* Default styling for navigation items */
- 2.footer-menu li {
- 3 display: inline-block;
- 4 margin-right: 15px;
- 5}
- 6
- 7/* Responsive styling for screens smaller than 576px */
- 8@media (max-width: 575.98px) {
- 9 .footer-menu {
- 10 text-align: center;
- 11 }
- 12
- 13 .footer-menu li {
- 14 display: block;
- 15 margin: 0 auto 10px;
- 16 }
- 17}
- 18
general.css
- 1h1, h2, h3, h4, h5, h6, p, span, li {
- 2word-wrap: break-word !important;
- 3}
- 4
- 5.container-fluid.single-page-template .entry-content img, .container-fluid.single-page-template .entry-content iframe, .container-fluid.single-page-template .entry-content form, .container-fluid.single-page-template .entry-content textarea, .container-fluid.single-page-template .entry-content imput, .container-fluid.single-page-template .entry-content video, .container-fluid.single-page-template .entry-content figure {
- 6max-width: 100% !important;
- 7}
- 8iframe{
- 9max-width: 100% !important;
- 10}
- 11input:focus {
- 12 zoom: 1; /* Reset zoom on input focus */
- 13}
- 14.container-fluid.single-page-template .entry-content img {
- 15 width: 100%;
- 16 max-width: 880px !important;
- 17 min-height: initial;
- 18 object-fit: cover;
- 19 max-height: initial;
- 20 height: auto;
- 21}
- 22
- 23
- 24@media only screen and (max-width: 600px) {
- 25.offcanvas-body.masterheadernavmenu {
- 26 position: fixed;
- 27 background: #000;
- 28 width: 100%;
- 29 height: 50px;
- 30 left: 0;
- 31 top: 0;
- 32 right: 0;
- 33 z-index: 9999999999999 !important;
- 34}
- 35
- 36.offcanvas.offcanvas-end.text-bg-dark.show {
- 37 height: 200vh !important;
- 38 overflow: hidden;
- 39 overflow-x: hidden;
- 40 overflow-y: scroll;
- 41 position: fixed !important;
- 42 top: 0 !important;
- 43 left: 0 !important;
- 44 right: 0 !important;
- 45 bottom: 0 !important;
- 46 max-height: 100% !important;
- 47 min-height: 100% !important;
- 48 padding: 0px !important;
- 49 margin: 0px auto !important;
- 50 width: 100% !important;
- 51}
- 52
- 53ul.navbar-nav.justify-content-end.flex-grow-1.pe-3 {
- 54 background: #fff;
- 55 padding: 20px !important;
- 56 margin: 0px !important;
- 57 width: 100%;
- 58 position: fixed;
- 59 top: 50px;
- 60 left: 0;
- 61 right: 0;
- 62 bottom: 0;
- 63 display: block;
- 64 height: 100%;
- 65 min-height: 100%;
- 66 max-height: max-content;
- 67 overflow-x: hidden;
- 68 overflow-y: scroll;
- 69}
- 70.dropdown:hover .dropdown-menu {
- 71 border-radius: 0px;
- 72 background: #ffc107 !important;
- 73 padding: 20px;
- 74 display: flex !important;
- 75 flex-direction: column;
- 76 flex-wrap: wrap;
- 77 align-content: stretch;
- 78 justify-content: space-between;
- 79 align-items: stretch;
- 80 border: 1px solid #000;
- 81 margin: 10px 0px 10px 0px;
- 82 box-shadow: 0px 20px 18px -15px #000;
- 83}
- 84button.navbar-toggler {
- 85 z-index: 99999999 !important;
- 86 color: #ffeb3a !important;
- 87 position: fixed !important;
- 88 right: 35px !important;
- 89 top: -5px !important;
- 90 border: none;
- 91}
- 92button.navbar-toggler:hover {
- 93 color: #ff3d00;
- 94}
- 95a.nav-link:hover.dropdown-toggle {
- 96 background: #fff;
- 97 line-height: 1.75rem;
- 98 font-size: 18px;
- 99}
- 100a.nav-link.dropdown-toggle {
- 101 text-transform: uppercase;
- 102 font-size: 16px;
- 103 line-height: initial;
- 104 padding: 5px 0px 5px 0px;
- 105 margin: 0px 0px 4px 0px;
- 106 border-bottom: 1px solid #000;
- 107}
- 108.navbar.navbar-expand-lg.fixed-top.navbar-dark.bg-dark.master-header-nav-menu {
- 109 position: fixed;
- 110 top: 0px !important;
- 111 left: 0 !important;
- 112 right: 0 !important;
- 113 z-index: 9999999999999999999999 !important;
- 114 height: 50px;
- 115 overflow: hidden;
- 116 width: 100%;
- 117 background: #1f0ec4 !important;
- 118 padding: 0px;
- 119 margin: 0px;
- 120 display: flex;
- 121}
- 122input#header-nav-search-box {
- 123 width: 100% !important;
- 124 font-size: 12px !IMPORTANT;
- 125 padding: 0px 5px 0px 5px;
- 126 min-height: 30px;
- 127 margin: 5px auto !important;
- 128 height: 100%;
- 129}
- 130div#search-bar-master {
- 131 margin: 0px 15px 0px 15px;
- 132 max-width: 28% !important;
- 133 position: fixed;
- 134 top: 5px;
- 135 left: 13%;
- 136 width: 30% !important;
- 137}
- 138a.navbar-brand {
- 139 margin: 8px 0px 8px 10px !important;
- 140 padding: 0px;
- 141 width: auto;
- 142 height: 32px;
- 143 overflow: hidden;
- 144 object-fit: cover;
- 145}
- 146img.brandlogoimage {
- 147 width: auto;
- 148 height: 45px;
- 149 max-height: 100%;
- 150 display: flex;
- 151 padding: 0px;
- 152 margin: 0px;
- 153 border: none;
- 154}
- 155.span.dashicons.dashicons-menu::before, .dashicons-before:before {
- 156 font-family: dashicons;
- 157 display: inline-block;
- 158 line-height: 1;
- 159 font-weight: 400;
- 160 font-style: normal;
- 161 speak: never;
- 162 text-decoration: inherit;
- 163 text-transform: none;
- 164 text-rendering: auto;
- 165 -webkit-font-smoothing: antialiased;
- 166 -moz-osx-font-smoothing: grayscale;
- 167 vertical-align: top;
- 168 text-align: center;
- 169 transition: color .1s ease-in;
- 170}
- 171a.header-cta-button {
- 172 text-align: center !important;
- 173 position: fixed;
- 174 max-width: 100px !important;
- 175 max-height: 30px !important;
- 176 overflow: hidden;
- 177 top: 9px;
- 178 right: 26%;
- 179 border-radius: 0 !important;
- 180 display: grid !important;
- 181 background: #ffe101 !IMPORTANT;
- 182}
- 183}
land-audit-section.css
- 1summary.dashicons.dashicons-editor-help::before {
- 2 content: "\f223";
- 3 font-family: dashicons;
- 4 font-size: 21px;
- 5 color: #000;
- 6 padding: 0px;
- 7 display: flex;
- 8 margin: 3px;
- 9}
- 10
- 11
- 12summary.land-faqs::before{
- 13 content: "\f223";
- 14 font-family: dashicons;
- 15color: #000;
- 16}
offcanvas-menu.css
- 1
- 2.container-xxl {
- 3 display: flex;
- 4 flex-wrap: nowrap;
- 5 align-items: center;
- 6 justify-content: center;
- 7 column-gap: 40px;
- 8 flex-direction: row;
- 9}
- 10.container.gad {
- 11 top: 140px !important;
- 12 position: relative;
- 13 margin: 10px auto 10px auto;
- 14}
- 15
- 16li.brand .dashicons, li a.brand .dashicons {
- 17 font-size: 16px !important;
- 18 background: none !important;
- 19}
- 20
- 21.social-about {
- 22 max-width: 100% !important;
- 23 display: block;
- 24 padding: 0px;
- 25 flex-direction: row;
- 26 max-height: 200px;
- 27 justify-content: flex-start;
- 28 column-gap: 10px;
- 29 overflow: hidden;
- 30}
- 31ul.social-icons {
- 32 width: 100%;
- 33 display: flex;
- 34 padding: 0px;
- 35 flex-direction: row;
- 36 height: auto;
- 37 justify-content: flex-start;
- 38 column-gap: 10px;
- 39}
- 40button.btn.cancel {
- 41 position: absolute;
- 42 right: -40px;
- 43 top: -40px;
- 44 color: #fff;
- 45 width: 30px;
- 46 height: 30px;
- 47 padding: 0px;
- 48 font-size: 25px;
- 49}
- 50
- 51.container-fluid.single-page-template iframe {
- 52 min-width: 860px;
- 53 min-height: 100%;
- 54 max-width: 100%;
- 55 margin: 90px 0px 90px 0px;
- 56 padding: 10px 0px 10px 0px;
- 57 position: relative;
- 58 display: flex;
- 59 box-shadow: 0px 43px 25px -35px #000;
- 60 height: 360px;
- 61}
- 62
- 63.ffnavbar {
- 64 overflow: hidden;
- 65 width: 100%;
- 66display: block;
- 67}
- 68
- 69.ffnavbar a {
- 70 float: left;
- 71 display: block;
- 72 color: #f2f2f2;
- 73 text-align: center;
- 74 padding: 14px 16px;
- 75 text-decoration: none;
- 76 font-size: 17px;
- 77}
- 78
- 79.ffnavbar a:hover {
- 80 background-color: #ddd;
- 81 color: black;
- 82}
- 83
- 84.ffnavbar a.active {
- 85 background-color: #04AA6D;
- 86 color: white;
- 87}
- 88
- 89a.fficon {
- 90display: none;
- 91}
- 92@media (min-width: 375px) and (max-width: 1399.98px) {
- 93 .ffnavbar a:not(:first-child) {display: none;}
- 94 .ffnavbar a.fficon {
- 95 float: right;
- 96 display: block;
- 97 }
- 98
- 99.ffnavbar {
- 100 overflow: hidden;
- 101 width: 100%;
- 102display: block;
- 103
- 104}
- 105a.fficon {
- 106display: block !important;
- 107}
- 108 .ffnavbar.ffresponsive .fficon {
- 109 position: absolute;
- 110 right: 0;
- 111 bottom:0;
- 112 }
- 113 .ffnavbar.ffresponsive a {
- 114 float: none;
- 115 display: block;
- 116 text-align: left;
- 117 }
- 118}
- 119
- 120.meta-date span.dashicons.dashicons-clock {
- 121 font-size: 18px;
- 122 line-height: 1.55rem;
- 123}
- 124#bmc-wbtn {
- 125 bottom: 20px !important;
- 126 left: 20px !important;
- 127 box-shadow: 0px 0px 25px 5px #000 !important;
- 128}
- 129.offcanvas.show:not(.hiding), .offcanvas.showing {
- 130 transition: all .8s ease-in;
- 131 transform: translate(0px, 0px);
- 132}
- 133
- 134nav.master-header-nav-menu {
- 135 background: #000 !important;
- 136 color: #000;
- 137 font-size: 16px;
- 138 border-bottom: 1px solid #000;
- 139 box-shadow: 0px 20px 10px -10px #000;
- 140 min-height: 40px;
- 141 max-height: 100%;
- 142 height: 40px;
- 143 padding: 10px;
- 144 margin: 0px auto;
- 145 width: 100%;
- 146}
- 147
- 148nav.master-header-nav-menu ul li a {
- 149 color: #000;
- 150 text-decoration: none;
- 151 font-weight: 500;
- 152}
- 153body.logged-in form#customize-controls.wp-full-overlay-sidebar { background: red !important; width: 500px !important; }
- 154
- 155code.pre-codes {
- 156 white-space: break-spaces;
- 157 font-size: 14px;
- 158 line-height: 1rem;
- 159 font-weight: 600;
- 160 color: #fff;
- 161 margin: 40px 0px 40px 10px;
- 162 display: flex;
- 163 flex-direction: column;
- 164 flex-wrap: wrap;
- 165 align-content: stretch;
- 166 justify-content: space-evenly;
- 167 align-items: stretch;
- 168 border-left: 5px solid #000 !important;
- 169 padding: 20px 20px 20px 30px;
- 170 border: 1px solid #000;
- 171 box-shadow: 0px 35px 20px -30px #000;
- 172 background: #000 !important;
- 173}
- 174#single-page-section h2, #single-page-section h3, #single-page-section h4 {
- 175 margin: 30px 0px 30px 0px;
- 176 border-bottom: 2px ridge skyblue;
- 177 padding: 15px 10px 15px 0px;
- 178 font-weight: 500;
- 179 text-transform: capitalize;
- 180 box-shadow: 0px 30px 20px -30px #000;
- 181 color: #012330;
- 182}
- 183
- 184#single-page-section h2{
- 185font-size: 36px;
- 186}
- 187
- 188
- 189#single-page-section h3{
- 190font-size: 30px;
- 191}
- 192
- 193
- 194#single-page-section h4{
- 195font-size: 26px;
- 196}
- 197
- 198div#single-page-section {
- 199 font-size: 16px;
- 200 line-height: 1.75rem;
- 201 color: #012330;
- 202 font-weight: 300;
- 203}
- 204
- 205div#single-page-section strong {
- 206 font-weight: 600;
- 207 color: #012330;
- 208}
- 209
- 210
- 211/* Table of Contents Hamburger Menu to Open the Table Of Contents Section */
- 212.dropbtn {
- 213 background: none;
- 214 padding: 0px;
- 215 border: none;
- 216 position: relative;
- 217 left: 0px;
- 218}
- 219.hamburger {
- 220 /*! max-width: 43px; */
- 221 /*! max-height:43px; */
- 222
- 223 /*! position: relative; */
- 224 /*! left: 0; */
- 225 /*! top: 0; */
- 226 /*! z-index: 1035; */
- 227}
- 228.sidenav {
- 229 height: 100%; /* 100% Full-height */
- 230 width: 0; /* 0 width - change this with JavaScript */
- 231 position: fixed; /* Stay in place */
- 232 z-index: 1; /* Stay on top */
- 233 margin-top: 0px;
- 234 left: 0;
- 235 background-color: #111; /* Black*/
- 236 overflow-x: hidden; /* Disable horizontal scroll */
- 237 overflow-y: scroll; /* Disable horizontal scroll */
- 238 padding-top: 100px; /* Place content 60px from the top */
- 239
- 240}
- 241.sidenav a {
- 242 padding: 10px;
- 243 text-decoration: none;
- 244 font-size: 25px;
- 245 color: #818181;
- 246 display: block;
- 247 transition: 0.3s;
- 248}
- 249.bar1, .bar2, .bar3{
- 250 width: 35px;
- 251 height: 5px;
- 252 background-color: #333;
- 253 margin: 6px 0;
- 254 transition: 0.4s;
- 255}
- 256
- 257.change .bar1 {
- 258 -webkit-transform: rotate(-45deg) translate(-9px, 6px);
- 259 transform: rotate(-45deg) translate(-9px, 6px);
- 260}
- 261
- 262.change .bar2 {opacity: 0;}
- 263
- 264.change .bar3 {
- 265 -webkit-transform: rotate(45deg) translate(-8px, -8px);
- 266 transform: rotate(45s);
- 267}
- 268
- 269#spsdc ul {
- 270list-style: none;
- 271padding: 0px;
- 272margin: 20px 0px 20px 0px;
- 273font-weight: 400;
- 274}
- 275#spsdc ul li a {
- 276 color: #000;
- 277 font-size: 14px;
- 278 text-decoration: none;
- 279 font-weight: 400;
- 280}
- 281#spsdc ul li {
- 282 border-bottom: 1px dotted #000;
- 283 margin: 0px 0px 10px 0px;
- 284 padding: 10px 0px 10px 0px;
- 285}
- 286#spsdc ul li .post-date {
- 287 font-size: 12px;
- 288 color: #000;
- 289 display: flex;
- 290 font-weight: 500;
- 291 text-align: right !important;
- 292 max-width: fit-content;
- 293 margin: 0px auto;
- 294 flex-direction: column;
- 295 border: 1px solid #000;
- 296 padding: 4px;
- 297 flex-flow: ;
- 298}
- 299
- 300h2.faqs-title {
- 301 font-size: 81px;
- 302 text-align: center;
- 303 width: 100%;
- 304 border-bottom: 5px ridge #05723b;
- 305 padding: 0px 0px 40px 0px;
- 306 box-shadow: 0px 30px 30px -32px #000;
- 307 text-transform: uppercase;
- 308 font-weight: 300;
- 309 color: #011d0f;
- 310}
- 311
- 312
- 313
- 314
- 315 .dropdown .dropdown-icon{
- 316 display: none;
- 317 position: absolute;
- 318 padding: 15px;
- 319 background: #000;
- 320 right: 10px;
- 321 top: 8px;
- 322}
- 323
- 324.dropdown .dropdown-icon:before{
- 325 transition: all ease 0.5s;
- 326 background: #444;
- 327 height: 2px;
- 328 width: 16px;
- 329 top: 14px;
- 330 left: 7px;
- 331 content: "";
- 332 position: absolute;
- 333}
- 334.dropdown .dropdown-icon:after{
- 335 transition: all ease 0.5s;
- 336 background: #444;
- 337 content: "";
- 338 height: 16px;
- 339 left: 14px;
- 340 position: absolute;
- 341 top: 7px;
- 342 width: 2px;
- 343}
- 344.dropdown:hover .dropdown-menu {
- 345 display: block;
- 346 border-radius: 0px;
- 347 background: #000;
- 348 padding: 15px;
- 349}
- 350.dropdown.show .dropdown-icon:after{
- 351 transform:rotate(-90deg);
- 352}
- 353
- 354.dropdown.show .dropdown-icon:before{
- 355 transform:rotate(-180deg);
- 356}
- 357
- 358.navbar .dropdown .dropdown-toggle .dropdown-icon{
- 359 display:none;
- 360 }
- 361
- 362@media(max-width:992px){
- 363 .navbar .dropdown .dropdown-toggle::after{
- 364 display:none;
- 365 }
- 366.dropdown:hover .dropdown-menu {
- 367 display: none;
- 368}
- 369 .navbar .dropdown .dropdown-toggle .dropdown-icon{
- 370 display:block;
- 371 }
- 372 .navbar .dropdown .dropdown-menu .dropdown-item{
- 373 white-space:pre-wrap;
- 374 }
- 375}
- 376
- 377/* Header Navigation Menu Cart Display Settings */
- 378
- 379#header-cart {
- 380 min-width: 14%;
- 381 width: 150px;
- 382 height: auto;
- 383 float: right;
- 384 font-size: 16px !important;
- 385 color: #feffff;
- 386 display: flex;
- 387 font-weight: 600;
- 388 flex-direction: row;
- 389 flex-wrap: wrap;
- 390 align-content: space-around;
- 391 max-width: 100%;
- 392 position: relative;
- 393 border: 2px solid #d88a1f;
- 394 border-radius: 50px;
- 395 justify-content: center;
- 396 align-items: center;
- 397 background: #006d3c;
- 398 padding: 5px 15px;
- 399 line-height: 0;
- 400 max-height: 40px;
- 401margin: 0px 10px;
- 402}
- 403#header-cart .dashicons.dashicons-cart {
- 404 font-size: 22px;
- 405 position: relative;
- 406 padding: 5px;
- 407 width: 43px;
- 408 border: none;
- 409 height: 34px;
- 410}
- 411#header-cart .dashicons.dashicons-cart:hover {
- 412 color: #2c0f55;
- 413}
- 414
- 415.text-end {
- 416 max-width: inherit;
- 417 float: right;
- 418 display: flex;
- 419 padding: 0px;
- 420 margin: 0px;
- 421 flex-wrap: nowrap;
- 422 flex-direction: row;
- 423 align-items: center;
- 424}
- 425
- 426div#main-nav li a.nav-link {
- 427 padding: 15px;
- 428 margin: 0px;
- 429}
- 430
- 431div#main-nav li a.nav-link {
- 432 padding: 15px;
- 433 margin: 0px;
- 434 color: #fff;
- 435 text-transform: uppercase;
- 436 font-weight: 300;
- 437 letter-spacing: .5px;
- 438}
- 439
- 440a.dropdown-item {
- 441 color: #fff;
- 442 font-size: 16px;
- 443 font-weight: 400;
- 444 border-bottom: 1px solid #fff;
- 445 line-height: 1.75rem;
- 446 padding: 10px;
- 447}
- 448@media (max-width: 768px){
- 449div#navbarCollapse.shown {
- 450 width: 100% !important;
- 451 position: fixed;
- 452 left: 0;
- 453 top: 0;
- 454 padding: 0px !important;
- 455 margin: 0px !important;
- 456 right: 0;
- 457 overflow: auto;
- 458}
- 459
- 460}
- 461 main#main-content.shown {
- 462 margin-left: 250px;
- 463 transition: margin-left 0.5s;
- 464}
- 465main#main-content {
- 466 transition: all 0.5s;
- 467}
- 468
- 469@media only screen and (max-width: 600px) {
- 470 h3.cat-herbs-t{
- 471 width: 100%;
- 472 }
- 473 .navbar-collapse {
- 474 flex-basis: 100%;
- 475 flex-grow: 1;
- 476 align-items: center;
- 477 z-index: 9999 !important;
- 478 position: fixed;
- 479 top: 59px;
- 480 width: 100%;
- 481 left: 0;
- 482 right: 0;
- 483 background: #180726;
- 484 padding: 10px 10px;
- 485 line-height: 16px;
- 486 }
- 487 img.spfim {
- 488 width: 100% !important;
- 489 height: 240px !important;
- 490 object-fit: cover !important;
- 491}
- 492img.bi {
- 493 height: 237px !important;
- 494 width: 100%;
- 495 object-fit: cover;
- 496}
- 497.carousel-inner {
- 498 position: relative;
- 499 width: 100%;
- 500 overflow: hidden;
- 501 max-height: 400px;
- 502}
- 503
- 504.carousel-item.active {
- 505 max-height: 400px;
- 506}
- 507
- 508.more {
- 509 width: auto;
- 510}
- 511.dropdown-menu.depth_0.show li {
- 512 border-left: 5px solid rgb(57, 5, 100);
- 513 margin: 0px 0px 10px 0px;
- 514 padding: 0px 0px 0px 10px;
- 515}
- 516.dropdown-menu.depth_0.show li a {
- 517 color: rgb(57, 5, 100) !importantaliceblue;
- 518}
- 519#herbsmenu {
- 520 display: none;
- 521}
- 522#herbsmenu.collapsing {
- 523 height:0;
- 524 overflow:hidden;
- 525 transition:height .35s ease;
- 526}
- 527#herbsmenu.collapse.show {
- 528 display: inherit;
- 529 width: 100%;
- 530 height: 280px;
- 531 background: #4b0386;
- 532 position: fixed !important;
- 533 top: 59px;
- 534 z-index: 9999;
- 535 padding: 20px 10px;
- 536 border-bottom: 5px solid #000;
- 537 margin: 0px 0px 0px 0px;
- 538 color: #fff;
- 539 font-size: 16px;
- 540 font-weight: 100;
- 541 transition: width .35s ease;
- 542 transition: height .35s ease;
- 543}
- 544.navbar.navbar-expand-sm.fixed-top #toggle.herbsmenu {
- 545 position: fixed !important;
- 546 top: 10px !important;
- 547 right: 15%;
- 548}
- 549img.d-block.w-100 {
- 550 max-width: 100%;
- 551 height: 800px;
- 552 object-fit: cover;
- 553}
- 554#main-footer-section {
- 555 width: 100%;
- 556 height: 40px;
- 557 background: #000;
- 558 position: fixed;
- 559 bottom: 0;
- 560 left: 0;
- 561 right: 0;
- 562}
- 563#toggle {
- 564 border: none;
- 565}
- 566.bar1, .bar2, .bar3 {
- 567 width: 25px;
- 568 height: 3px;
- 569 background-color: #e6db28;
- 570 margin: 5px 0;
- 571 transition: 0.7s;
- 572}
- 573
- 574.article-text h1 {
- 575 font-size: 23px;
- 576 color: #320359;
- 577 margin: 0px 0px 20px 0px;
- 578 border-bottom: 1px solid #390564;
- 579 padding: 0px 0px 10px 10px;
- 580 box-shadow: 0px 30px 20px -25px #000;
- 581}
- 582
- 583img#featured-sp-page-image, img#featured-sp-post-image {
- 584 max-width: 100%;
- 585 height: 201px;
- 586 object-fit: cover;
- 587 margin: 0px 0px 0px 0px;
- 588 padding: 0px !important;
- 589}
- 590#myCarousel {
- 591 top: 55px;
- 592 box-shadow: 0px 20px 10px -10px #000;
- 593}
- 594
- 595
- 596.change .bar1 {
- 597 -webkit-transform: rotate(-45deg) translate(-9px, 6px);
- 598 transform: rotate(-45deg) translate(-4px, 3px);
- 599}
- 600section#slide-navigation {
- 601 display: flex;
- 602 max-width: 100%;
- 603 margin: 0px 0px 40px 0px;
- 604 padding: 0px 0px 40px 0px;
- 605}
- 606.article-text blockquote {
- 607 padding: 0px 10px;
- 608 margin: 0px 0px 10px 0px;
- 609 font-style: normal;
- 610 font-weight: 400;
- 611 color: rgb(131, 14, 227);
- 612 border-left: 1px dotted rgb(57, 5, 100);
- 613 border-right: 1px dotted rgb(57, 5, 100);
- 614 border-bottom: 1px dotted rgb(57, 5, 100);
- 615 border-top: 1px dotted rgb(237, 77, 220);
- 616 font-size: 13px;
- 617 background: #e7e4ea00;
- 618 margin: 5px;
- 619 padding: 14px;
- 620 columns: 2;
- 621}
- 622section#main-article img {
- 623 margin: 20px 0px 20px 0px;
- 624 box-shadow: 0px 23px 33px -25px #390564;
- 625 width: 100%;
- 626 border: 1px solid #390564;
- 627 border-radius: 3px;
- 628}
- 629.grid-container-content {
- 630 display: inherit;
- 631 grid-template-columns: 100%;
- 632 gap: 0px;
- 633 align-content: center;
- 634 justify-content: space-between;
- 635 justify-items: center;
- 636 margin: 60px auto;
- 637}
- 638.meta-post-content {
- 639 display: flex;
- 640 border-bottom: 1px solid hsl(0deg 0% 0%);
- 641 margin-bottom: 20px;
- 642 line-height: 20px;
- 643 box-shadow: 0px 15px 15px -15px #290348;
- 644 font-size: 12px;
- 645 font-weight: 500;
- 646 flex-direction: row;
- 647 align-items: flex-start;
- 648}
- 649span.last-updated {
- 650 color: #000;
- 651 font-size: 12px;
- 652 width: 100%;
- 653 display: flex;
- 654 flex-direction: column;
- 655 align-content: space-around;
- 656 align-items: center;
- 657}
- 658details#newsletter-section {
- 659 background: #390564;
- 660 padding: 15px;
- 661 margin: 15px 0px 15px 0px;
- 662 color: #fff;
- 663 font-size: 14px;
- 664 line-height: 1.25rem;
- 665}
- 666span.material-icons.outlined.bread-separator {
- 667 font-size: 16px;
- 668 line-height: 1.5;
- 669 color: #390564;
- 670 font-weight: 900;
- 671}
- 672span.material-icons.outlined.bread-separator {
- 673 font-size: 16px;
- 674 line-height: 1.5;
- 675 color: #390564;
- 676 font-weight: 900;
- 677}
- 678
- 679ol#bilkilife-breadcrumb {
- 680 color: #0b080e;
- 681 font-size: 13px;
- 682 font-weight: 500;
- 683 border-bottom: 1px solid #ccc;
- 684}
- 685
- 686ol#bilkilife-breadcrumb li a {
- 687 color: #390564;
- 688 font-size: 14px;
- 689 font-weight: 500;
- 690}
- 691.dropdown-menu.depth_0.show {
- 692 background: none;
- 693 padding: 10px 15px;
- 694 border: 0px;
- 695}
- 696.col-md.faqs-list {
- 697 max-width: 100%;
- 698 height: auto;
- 699 padding: 15px 15px 15px 15px;
- 700 font-size: 14px;
- 701 background: rgb(246, 234, 255);
- 702 margin: 10px 0px 5px 0px;
- 703}
- 704ul.archive-cats li {
- 705 padding: 5px 0px 5px 0px;
- 706}
- 707.row.mb-1.allfaqs {
- 708 max-width: 100%;
- 709 margin: 0px auto;
- 710}
- 711.faq-page-question-title {
- 712 font-size: 16px;
- 713}
- 714
- 715.faq-page-acceptedanswer p {
- 716 font-size: 16px;
- 717}
- 718.article-text p:first-child::first-letter {
- 719 color: rgb(57, 5, 100);
- 720 font-size: 26px;
- 721 float: left;
- 722 letter-spacing: 1px;
- 723 text-transform: uppercase;
- 724 margin: 7px 7px -7px 0px;
- 725 line-height: 1;
- 726 font-weight: 500;
- 727}
- 728div#siteNavigation {
- 729 background: hsl(0deg 0% 100%);
- 730 color: hsl(0deg 0% 0%);
- 731 border: 5px solid hsl(0deg 0% 0%);
- 732 max-height: 93%;
- 733}
- 734.navbar-nav a {
- 735 color: hsl(0deg 0% 0%) !important;
- 736 line-height: 1.75rem;
- 737 font-size: 18px;
- 738 font-weight: 600;
- 739}
- 740}
- 741
single-pp-other.css
- 1div#mySidenav ul.sp-toc li a{
- 2color: #fff;
- 3text-decoration: none;
- 4font-size: 14px;
- 5}
- 6div#mySidenav ul.sp-toc li a:hover {
- 7color: #ffe101;
- 8}
- 9
- 10blockquote {padding: 10px 31px;
- 11margin: 10px 0px 10px 0px;
- 12font-style: italic;
- 13font-weight: 300;
- 14color: #000;
- 15border-left: 1px solid #000;
- 16border-right: 1px solid #000;
- 17border-bottom: 1px solid #000;
- 18border-top: 1px solid #000;
- 19}
- 20blockquote::before{
- 21position: relative;
- 22display: block;
- 23color: #000;
- 24font-size: 20px;
- 25line-height: 0px;
- 26font-weight: 900;
- 27content: "''";
- 28top: -12px;
- 29background: #fff;
- 30z-index: 1;
- 31width: 50px !important;
- 32margin: 0px auto;
- 33height: 10px;
- 34text-align: center;
- 35}
- 36
- 37
- 38/* Above The Fold Custom CSS */
- 39.whats-inc {
- 40 color: black;
- 41 font-weight: 300;
- 42 border-right: 1px solid #000;
- 43 margin: 10px 0px 10px 0px;
- 44 text-align: start;
- 45 padding: 15px;
- 46 font-size: 16px !important;
- 47}
- 48.col-md-2.password, .col-md-2.username {
- 49 font-size: 24px;
- 50 display: flex;
- 51 width: 15%;
- 52 text-align: center;
- 53 float: none;
- 54 margin: 0px auto;
- 55 padding: 20px 0px 20px 0px;
- 56 flex-direction: column;
- 57 flex-wrap: wrap;
- 58 align-content: stretch;
- 59 justify-content: center;
- 60 align-items: center;
- 61}
- 62
- 63button#reg {
- 64 padding: 10px 20px;
- 65 position: relative;
- 66 margin: 35px auto;
- 67 height: auto;
- 68 line-height: 1.75rem;
- 69 border-radius: 62px;
- 70 border: 6px ridge #000;
- 71 background-color: #cc7e30;
- 72 color: #ffcfa0;
- 73 text-transform: uppercase;
- 74 font-weight: 300;
- 75 max-width: 70%;
- 76 background-image: linear-gradient(to bottom right, #5655aa, #39d109);
- 77 font-size: 30px;
- 78 width: 70%;
- 79 min-width: 70%;
- 80 box-shadow: 0px 0px 80px 0px #ffc009;
- 81 }
- 82button:hover#reg {
- 83 background-image: linear-gradient(to bottom right, #000000, #dfb538);
- 84 border: 6px outset;
- 85 border-color: #E91E63;
- 86 color: #fff;
- 87}
- 88
- 89button.sign-in-now{
- 90background: #000000;
- 91color: #ffffff;
- 92font-size: 36px;
- 93}
- 94
- 95/* Single Page Related/Popular */
- 96#details-popularpost {
- 97 background: #ffc008;
- 98 padding: 0px;
- 99 margin: 30px auto;
- 100 border-radius: 8px;
- 101 line-height: 2.75rem;
- 102 box-shadow: 0px 5px 5px -5px #000;
- 103}
- 104details.popularpost .col {
- 105 background: #044a2b;
- 106 margin: 0px auto;
- 107 padding: 10px 20px 10px 20px;
- 108 line-height: 1.75rem;
- 109 color: #fff;
- 110 font-size: 14px;
- 111}
- 112.row.meta {
- 113 max-width: 100%;
- 114 width: 100%;
- 115 margin: 10px auto;
- 116 display: flex;
- 117 justify-content: space-evenly;
- 118 flex-direction: row;
- 119 flex-wrap: nowrap;
- 120}
- 121.row.meta .col {
- 122 width: auto;
- 123 margin: 0px auto;
- 124
- 125 display: flex;
- 126 flex-direction: row;
- 127 justify-content: flex-start;
- 128}
- 129.row.meta .col small.badge.bg-primary {
- 130 background: #f00 !important;
- 131 font-size: 16px;
- 132 color: #fff !important;
- 133 padding: 0px 20px;
- 134 line-height: 1.75rem;
- 135}
- 136small.badge.bg-primary {
- 137 background: #f00 !important;
- 138 font-size: 16px;
- 139 color: #fff !important;
- 140 padding: 0px 20px;
- 141 line-height: 1.75rem;
- 142text-decoration: none;
- 143}
- 144small.badge.bg-primary a{
- 145color: #fff !important;
- 146text-decoration: none;
- 147}
- 148#summary-popularpost {
- 149 font-size: 16px;
- 150 font-weight: 400;
- 151 padding: 0px 0px 0px 20px !important;
- 152 border-bottom: 5px solid #4888e6;
- 153 margin: 0px !important;
- 154}
- 155
- 156
- 157
- 158/*
- 159
- 160.navigation-prev {
- 161 max-width: 40px;
- 162 max-height: 78px;
- 163 background: #000;
- 164 font-size: 14px;
- 165 text-decoration: none;
- 166 padding: 15px 15px 15px 15px;
- 167 text-align: left !important;
- 168 line-height: 1.25rem;
- 169 color: #fff;
- 170 position: fixed;
- 171 left: 0px;
- 172 top: 50%;
- 173 z-index: 21474836489 !important;
- 174 overflow: hidden;
- 175}
- 176.navigation-prev:hover {
- 177 min-width: 200px;
- 178 min-height: 110px;
- 179 background: #903e8e !important;
- 180 transition: fadeIn 2.1s;
- 181 transform: scaleX(10px);
- 182}
- 183
- 184.navigation-next {
- 185 max-width: 40px;
- 186 max-height: 78px;
- 187 background: #000;
- 188 font-size: 14px;
- 189 text-decoration: none;
- 190 padding: 15px 15px 15px 15px;
- 191 text-align: left !important;
- 192 line-height: 1.25rem;
- 193 color: #fff;
- 194 position: fixed;
- 195 right: 0px;
- 196 top: 50%;
- 197 z-index: 21474836489 !important;
- 198 overflow: hidden;
- 199}
- 200.navigation-next:hover {
- 201 min-width: 200px;
- 202 min-height: 110px;
- 203 background: #903e8e !important;
- 204 transition: fadeIn 2.1s;
- 205 transform: scaleX(10px);
- 206}
- 207
- 208*/
- 209
- 210 .navigation-prev{left: 0px;}
- 211
- 212 .navigation-next{right: 0px;}
- 213
- 214 .navigation-prev,
- 215 .navigation-next {
- 216 position: fixed;
- 217 top: 50%;
- 218 transform: translateY(-50%);
- 219 width: 40px;
- 220 height: 40px;
- 221 background-color: rgba(0, 0, 0, 0.5);
- 222 border-radius: 50%;
- 223 display: flex;
- 224 align-items: center;
- 225 justify-content: center;
- 226 color: #fff;
- 227 font-size: 20px;
- 228 cursor: pointer;
- 229 z-index: 9999;
- 230 }
- 231.navigation-prev:hover {
- 232 background: #ccc;
- 233}
- 234
- 235.navigation-next:hover {
- 236 background: red !important;
- 237 position: fixed;
- 238 transition: right 0.3s ease-in-out;
- 239 top: 50%;
- 240 right: 200px;
- 241}
- 242 .navigation-title {
- 243 position: fixed;
- 244 top: 50%;
- 245 transform: translateY(-50%);
- 246 background-color: rgba(0, 0, 0, 0.8);
- 247 color: #fff;
- 248 padding: 10px;
- 249 font-size: 16px;
- 250 white-space: nowrap;
- 251 overflow: hidden;
- 252 text-overflow: ellipsis;
- 253 max-width: 0;
- 254 transition: max-width 0.3s ease-in-out;
- 255 z-index: 9998;
- 256 }
- 257
- 258 .navigation-prev:hover .navigation-title,
- 259 .navigation-next:hover .navigation-title {
- 260 max-width: 200px;
- 261 }
- 262
- 263a.top-meta-author {
- 264 color: #000;
- 265 text-decoration: none;
- 266 margin: 0px 10px;
- 267 font-size: 19px;
- 268 width: 100%;
- 269 padding: 0px 10px 0px 10px;
- 270}
- 271.top-meta-author img.bd-placeholder-img.rounded-circle {
- 272 height: 30px !important;
- 273 width: 30px !important;
- 274 margin: 0px 10px;
- 275 border: 2px solid #000;
- 276 object-fit: ;
- 277 display: initial;
- 278 object-fit: cover;
- 279}
- 280
- 281div#sp-top-metas {
- 282 font-size: 14px;
- 283 display: flex;
- 284 width: 100%;
- 285 margin: 0px auto;
- 286 padding: 0px !important;
- 287 text-align: center;
- 288 color: #012359;
- 289 flex-direction: row;
- 290 flex-wrap: nowrap;
- 291 justify-content: space-between;
- 292 align-items: flex-start;
- 293}
stepped-form.css
- 1
theme-docs-page.css
- 1.col-md-5.customize-functions ul li h2, .col-md-5.customize-functions ul li, .col-md-5.customize-functions ul li h3 {
- 2 font-size: 14px;
- 3 font-weight: 300;
- 4}
- 5
- 6/* Start Doc Filtering Animations Style CSS */
- 7@keyframes fadeLeft {
- 8 0% {
- 9 opacity: 0;
- 10 transform: translateX(-100px);
- 11 }
- 12 100% {
- 13 opacity: 1;
- 14 transform: translateX(0);
- 15 }
- 16}
- 17
- 18@keyframes fadeUp {
- 19 0% {
- 20 opacity: 0;
- 21 transform: translateY(100px);
- 22 }
- 23 100% {
- 24 opacity: 1;
- 25 transform: translateY(0);
- 26 }
- 27}
- 28
- 29@keyframes fadeDown {
- 30 0% {
- 31 opacity: 0;
- 32 transform: translateY(-100px);
- 33 }
- 34 100% {
- 35 opacity: 1;
- 36 transform: translateY(0);
- 37 }
- 38}
- 39
- 40@keyframes fadeRight {
- 41 0% {
- 42 opacity: 0;
- 43 transform: translateX(100px);
- 44 }
- 45 100% {
- 46 opacity: 1;
- 47 transform: translateX(0);
- 48 }
- 49}
- 50
- 51#docPageHeadingTitle{
- 52animation: fadeIn 1s ease-in-out 3.0s;
- 53animation-fill-mode: both;
- 54font-size: 72px;
- 55}
- 56
- 57#docPageHeadingParagraph{
- 58animation: fadeIn 1s ease-in-out 5.0s;
- 59animation-fill-mode: both;
- 60font-size: 16px;
- 61}
- 62#docPageHeadingTitleTwo{
- 63animation: fadeIn 1s ease-in-out 7.0s;
- 64animation-fill-mode: both;
- 65font-size: 32px;
- 66}
- 67#docPageHeadingTitleTwoRight{
- 68animation: fadeIn 1s ease-in-out 9.0s;
- 69animation-fill-mode: both;
- 70font-size: 40px;
- 71font-weight: 400;
- 72}
- 73
- 74/* End Doc Filtering Animations Style CSS*/
- 75div#folder-id {
- 76
- 77 padding: 0px;
- 78 word-break: revert;
- 79
- 80 color: #ffa400;
- 81 font-size: 14px;
- 82 letter-spacing: 0.1px;
- 83 word-break: break-word;
- 84 width: 100%;
- 85 height: 400px;
- 86 overflow-x: hidden;
- 87 overflow-y: scroll;
- 88 max-height: 100%;
- 89 min-height: 100%;
- 90}
- 91
- 92.line-number {
- 93 display: inline-block;
- 94 width: 70px; /* Adjust as needed */
- 95 text-align: left;
- 96 padding-right: 10px;
- 97 color: #fff7e7; /* Line number color */
- 98 border-right: 2px solid #fff;
- 99 margin: 2px 0px 2px 0px;
- 100font-size: 12px;
- 101}
- 102
- 103input.codes[type=text] {
- 104 width: 130px;
- 105 -webkit-transition: width 1.4s ease-in-out;
- 106 transition: width 1.4s ease-in-out;
- 107}
- 108
- 109/* When the input field gets focus, change its width to 100% */
- 110input.codes[type=text]:onclick {
- 111 width: 100%;
- 112}
- 113
- 114li.folder::before {
- 115 transform: rotate(90deg);
- 116}
- 117span.collapsible::before {
- 118 width: 1.25em;
- 119 line-height: 0;
- 120 content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
- 121 transition: transform .35s ease;
- 122 transform-origin: .5em 50%;
- 123}
- 124/* Style for collapsed folder content */
- 125.collapsed {
- 126 display: none;
- 127}
- 128/* Style for folders */
- 129.theme-list .folder {
- 130 background-color: black;
- 131 color: white;
- 132 padding: 5px;
- 133 margin: 5px 0;
- 134 cursor: pointer; /* Add cursor pointer */
- 135}
- 136
- 137/* Style for files */
- 138.theme-list .file {
- 139 background-color: orange;
- 140 padding: 5px;
- 141 margin: 5px 0;
- 142}
- 143
- 144/* Style for nested folders */
- 145.folder-content {
- 146 margin-left: 20px;
- 147 border-left: 2px solid white;
- 148 padding-left: 10px;
- 149}
- 150
- 151
- 152/* Default Styles for the Theme Documentation Page Themplate */
- 153
- 154h2.doch2::after {
- 155 border-bottom: 1px solid #ff7501;
- 156 height: 1px;
- 157 display: flex;
- 158 content: "";
- 159 padding: 0px;
- 160 margin: 8px auto 20px 0px;
- 161 width: 100%;
- 162 position: relative;
- 163 top: 20px;
- 164}
- 165
- 166
- 167
- 168.menu-title {
- 169 font-size: 20px;
- 170 font-weight: 300;
- 171 margin-bottom: 10px;
- 172}
- 173
- 174.menu-item {
- 175 list-style: none;
- 176}
- 177
- 178.menu-item > .menu-item-has-children > a:before {
- 179 content: "\f107"; /* FontAwesome icon for right chevron */
- 180 float: right;
- 181 font-family: "Font Awesome 5 Free";
- 182 font-weight: 900;
- 183 font-size: 14px;
- 184 line-height: 1;
- 185 margin-left: 5px;
- 186}
- 187
- 188.menu-item > .menu-item-has-children.collapsed > a:before {
- 189 transform: rotate(90deg);
- 190}
- 191
- 192.menu-item .sub-menu {
- 193 display: none;
- 194 margin-left: 15px;
- 195 padding-left: 15px;
- 196 border-left: 1px solid #ccc;
- 197}
- 198
- 199.menu-item .sub-menu li {
- 200 margin: 5px 0;
- 201}
- 202
- 203.menu-item:hover .sub-menu {
- 204 display: block;
- 205}
- 206
- 207/* Add hover effect to sub-menu items */
- 208.sub-menu .menu-item a {
- 209 color: #333;
- 210 text-decoration: none;
- 211}
- 212
- 213.sub-menu .menu-item a:hover {
- 214 color: #007bff;
- 215}
- 216/* Tooltip styles */
- 217.theme-list .file[data-toggle="tooltip"] {
- 218 position: relative;
- 219 cursor: pointer;
- 220}
- 221
- 222/* Tooltip content */
- 223.theme-list .file[data-toggle="tooltip"]:hover::before {
- 224 content: attr(title);
- 225 position: fixed;
- 226 top: 20%;
- 227 right: 30%;
- 228 left: 0%;
- 229 width: 640px;
- 230 max-width: 30%;
- 231 min-width: 30%;
- 232 height: 480px;
- 233 background-color: #390564;
- 234 color: #fff;
- 235 padding: 15px;
- 236 border-radius: 3px;
- 237 font-size: 12px;
- 238 line-height: 1.3;
- 239 white-space: pre-line;
- 240 z-index: 9999;
- 241 max-height: 40%;
- 242 min-height: 40%;
- 243 overflow-x: hidden;
- 244 overflow-y: scroll;
- 245 margin: 0px auto;
- 246 border: 5px solid #ccc;
- 247}
- 248/* Style the button that is used to open and close the collapsible content */
- 249
- 250
- 251
- 252#searchthemecodex {
- 253 background-image: url('/css/searchicon.png'); /* Add a search icon to input */
- 254 background-position: 10px 12px; /* Position the search icon */
- 255 background-repeat: no-repeat; /* Do not repeat the icon image */
- 256 width: 100%; /* Full-width */
- 257 font-size: 16px; /* Increase font-size */
- 258 padding: 12px 20px 12px 40px; /* Add some padding */
- 259 border: 1px solid #ddd; /* Add a grey border */
- 260 margin-bottom: 12px; /* Add some space below the input */
- 261}
- 262
- 263#themeCodexDataBase {
- 264 /* Remove default list styling */
- 265 list-style-type: none;
- 266 padding: 0;
- 267 margin: 0;
- 268 background-color: #000; /* Grey background color */
- 269
- 270}
- 271
- 272#themeCodexDataBase li a {
- 273 border: 1px solid #ddd; /* Add a border to all links */
- 274 margin-top: -1px; /* Prevent double borders */
- 275 background-color: #f6f6f6; /* Grey background color */
- 276 padding: 12px; /* Add some padding */
- 277 text-decoration: none; /* Remove default text underline */
- 278 font-size: 18px; /* Increase the font-size */
- 279 color: #fff; /* Add a black text color */
- 280 display: block; /* Make it into a block element to fill the whole list */
- 281}
- 282
- 283#themeCodexDataBase li a:hover:not(.header) {
- 284 background-color: #eee; /* Add a hover effect to all links, except for headers */
- 285}
- 286
- 287
- 288
- 289
- 290#SearchThemePagesLists {
- 291 background-image: url('/css/searchicon.png'); /* Add a search icon to input */
- 292 background-position: 10px 12px; /* Position the search icon */
- 293 background-repeat: no-repeat; /* Do not repeat the icon image */
- 294 width: 100%; /* Full-width */
- 295 font-size: 16px; /* Increase font-size */
- 296 padding: 12px 20px 12px 40px; /* Add some padding */
- 297 border: 1px solid #ddd; /* Add a grey border */
- 298 margin-bottom: 12px; /* Add some space below the input */
- 299}
- 300
- 301#searchThemePageListsData {
- 302 /* Remove default list styling */
- 303 list-style-type: none;
- 304 padding: 0;
- 305 margin: 0;
- 306}
- 307
- 308#searchThemePageListsData li a {
- 309 border: 1px solid #ddd; /* Add a border to all links */
- 310 margin-top: -1px; /* Prevent double borders */
- 311 background-color: #f6f6f6; /* Grey background color */
- 312 padding: 12px; /* Add some padding */
- 313 text-decoration: none; /* Remove default text underline */
- 314 font-size: 18px; /* Increase the font-size */
- 315 color: black; /* Add a black text color */
- 316 display: block; /* Make it into a block element to fill the whole list */
- 317}
- 318
- 319#searchThemePageListsData li a:hover:not(.header) {
- 320 background-color: #eee; /* Add a hover effect to all links, except for headers */
- 321}
- 322
- 323#myInput {
- 324 background-image: url('/css/searchicon.png'); /* Add a search icon to input */
- 325 background-position: 10px 12px; /* Position the search icon */
- 326 background-repeat: no-repeat; /* Do not repeat the icon image */
- 327 width: 100%; /* Full-width */
- 328 font-size: 16px; /* Increase font-size */
- 329 padding: 12px 20px 12px 40px; /* Add some padding */
- 330 border: 1px solid #ddd; /* Add a grey border */
- 331 margin-bottom: 12px; /* Add some space below the input */
- 332}
- 333
- 334#myUL {
- 335 /* Remove default list styling */
- 336 list-style-type: none;
- 337 padding: 0;
- 338 margin: 0;
- 339 white-space: nowrap;
- 340}
- 341
- 342#myUL li a {
- 343 border: 1px solid #ddd; /* Add a border to all links */
- 344 margin-top: -1px; /* Prevent double borders */
- 345 background-color: #f6f6f6; /* Grey background color */
- 346 padding: 12px; /* Add some padding */
- 347 text-decoration: none; /* Remove default text underline */
- 348 font-size: 18px; /* Increase the font-size */
- 349 color: black; /* Add a black text color */
- 350 display: block; /* Make it into a block element to fill the whole list */
- 351}
- 352
- 353#myUL li a:hover:not(.header) {
- 354 background-color: #eee; /* Add a hover effect to all links, except for headers */
- 355}
- 356
- 357/* Create a top navigation bar with a black background color */
- 358.topnav {
- 359 background-color: #333;
- 360 overflow: hidden;
- 361position: sticky;
- 362top:0;
- 363}
- 364
- 365/* Style the links inside the navigation bar */
- 366.topnav a {
- 367 float: left;
- 368 color: #f2f2f2;
- 369 text-align: center;
- 370 padding: 14px 16px;
- 371 text-decoration: none;
- 372 font-size: 17px;
- 373}
- 374
- 375/* Change the color of links on hover */
- 376.topnav a:hover {
- 377 background-color: #ddd;
- 378 color: black;
- 379}
- 380
- 381/* Create a right-aligned (split) link inside the navigation bar */
- 382.topnav a.split {
- 383 float: right;
- 384 background-color: #04AA6D;
- 385 color: white;
- 386}
- 387li.lns span {
- 388 padding: 0px 20px 0px 20px;
- 389}
- 390
- 391
- 392/* Code Navigation Main Styles */
- 393
- 394.bar1code, .bar3code, .bar3code{
- 395 width: 35px;
- 396 height: 5px;
- 397 background-color: #333;
- 398 margin: 6px 0;
- 399 transition: 0.4s;
- 400}
- 401
- 402.change .bar1code {
- 403 -webkit-transform: rotate(-45deg) translate(-9px, 6px);
- 404 transform: rotate(-45deg) translate(-9px, 6px);
- 405}
- 406
- 407.change .bar2code {opacity: 0;}
- 408
- 409.change .bar3code {
- 410 -webkit-transform: rotate(45deg) translate(-8px, -8px);
- 411 transform: rotate(45s);
- 412}
- 413
- 414div#mainCodeNavigationMenu.shown {
- 415 width: 100% !important;
- 416 position: fixed;
- 417 left: 0;
- 418 top: 0;
- 419 padding: 0px !important;
- 420 margin: 0px !important;
- 421 right: 0;
- 422 overflow: auto;
- 423}
- 424#codeElemenentNavigationBar {
- 425 width: 100%;
- 426 height: auto;
- 427 display: block;
- 428 background: #8c0000;
- 429 color: #fff;
- 430 padding: 15px 20px;
- 431 margin: 0px auto;
- 432 white-space: nowrap;
- 433 columns: 4;
- 434 position: sticky;
- 435 top: 0;
- 436 border-bottom: 3px solid #fff;
- 437}
- 438.code-icons {
- 439 height: 40px;
- 440 padding: 0px 5px 0px 5px;
- 441 margin: 0px 5px 0px 5px;
- 442 width: auto;
- 443}
- 444#codeElemenentNavigationBar .row .col .dashicons {
- 445 font-size: 20px !important;
- 446 line-height: 1.75rem;
- 447 padding: 5px 10px 5px 10px;
- 448 margin: 0px 10px 0px 10px;
- 449 font-weight: 900;
- 450 color: #fff;
- 451 vertical-align: middle;
- 452}
- 453
- 454/* Apply font size and max height to all columns */
- 455.col-lg-1,
- 456.col-md-1,
- 457.col-1 {
- 458 font-size: 14px;
- 459 max-height: 40px;
- 460}
- 461
- 462/* Apply font size and max height to the search input */
- 463.form-control {
- 464 font-size: 14px;
- 465 max-height: 40px;
- 466}
- 467 .code-data {
- 468 /* Default styles */
- 469 font-size: 14px;
- 470 margin: 10px;
- 471 padding: 10px;
- 472
- 473 line-height: 2.5rem;
- 474 font-family: Arial, sans-serif;
- 475 }
- 476
- 477
- 478
- 479.docbreads {
- 480 position: relative;
- 481 top: inherit;
- 482 left: inherit;
- 483 right: inherit;
- 484 width: 100%;
- 485 height: 43px;
- 486 padding: 0px;
- 487 margin: 0px;
- 488}
- 489.docbreads.fixed {
- 490 position: fixed;
- 491 top: 90px;
- 492 left: 0px !important;
- 493 right: 0px !important;
- 494 width: 100% !important;
- 495 height: 50px;
- 496 padding: 0px;
- 497 margin: 0px;
- 498 background: #ffb939;
- 499 z-index: 1034 !important;
- 500 border-bottom: 3px solid #000;
- 501 box-shadow: 0px 20px 20px -10px #000;
- 502 border-top: 2px solid #fff !important;
- 503
- 504transition: top .9s;
- 505
- 506}
- fonts - 3 - 0 - 0 B - August 17 2023 19:43:17
-
fonts-router.php
- 1<link href="https://fonts.googleapis.com/icon?family=Material+Icons&display=swap" rel="stylesheet" async>
- 2<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap" />
- 3<link rel="preconnect" href="https://fonts.googleapis.com">
- 4<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- 5<link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,800;1,300;1,400;1,500;1,600;1,800&family=Oswald:wght@200;300;400;500;600;700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
- images - 4 - 0 - 0 B - August 17 2023 19:43:10
- prebuilds - 1 - 0 - 0 B - August 17 2023 19:43:10
- below-the-fold - 1 - 0 - 0 B - August 17 2023 19:43:10
-
landing-centered-hero.jpg
- 1
-
- below-the-fold - 1 - 0 - 0 B - August 17 2023 19:43:10
- img - 5 - 0 - 0 B - August 17 2023 19:43:14
-
openai-logomark.svg
- 1<svg viewBox="0 0 320 320" xmlns="http://www.w3.org/2000/svg"><path d="m297.06 130.97c7.26-21.79 4.76-45.66-6.85-65.48-17.46-30.4-52.56-46.04-86.84-38.68-15.25-17.18-37.16-26.95-60.13-26.81-35.04-.08-66.13 22.48-76.91 55.82-22.51 4.61-41.94 18.7-53.31 38.67-17.59 30.32-13.58 68.54 9.92 94.54-7.26 21.79-4.76 45.66 6.85 65.48 17.46 30.4 52.56 46.04 86.84 38.68 15.24 17.18 37.16 26.95 60.13 26.8 35.06.09 66.16-22.49 76.94-55.86 22.51-4.61 41.94-18.7 53.31-38.67 17.57-30.32 13.55-68.51-9.94-94.51zm-120.28 168.11c-14.03.02-27.62-4.89-38.39-13.88.49-.26 1.34-.73 1.89-1.07l63.72-36.8c3.26-1.85 5.26-5.32 5.24-9.07v-89.83l26.93 15.55c.29.14.48.42.52.74v74.39c-.04 33.08-26.83 59.9-59.91 59.97zm-128.84-55.03c-7.03-12.14-9.56-26.37-7.15-40.18.47.28 1.3.79 1.89 1.13l63.72 36.8c3.23 1.89 7.23 1.89 10.47 0l77.79-44.92v31.1c.02.32-.13.63-.38.83l-64.41 37.19c-28.69 16.52-65.33 6.7-81.92-21.95zm-16.77-139.09c7-12.16 18.05-21.46 31.21-26.29 0 .55-.03 1.52-.03 2.2v73.61c-.02 3.74 1.98 7.21 5.23 9.06l77.79 44.91-26.93 15.55c-.27.18-.61.21-.91.08l-64.42-37.22c-28.63-16.58-38.45-53.21-21.95-81.89zm221.26 51.49-77.79-44.92 26.93-15.54c.27-.18.61-.21.91-.08l64.42 37.19c28.68 16.57 38.51 53.26 21.94 81.94-7.01 12.14-18.05 21.44-31.2 26.28v-75.81c.03-3.74-1.96-7.2-5.2-9.06zm26.8-40.34c-.47-.29-1.3-.79-1.89-1.13l-63.72-36.8c-3.23-1.89-7.23-1.89-10.47 0l-77.79 44.92v-31.1c-.02-.32.13-.63.38-.83l64.41-37.16c28.69-16.55 65.37-6.7 81.91 22 6.99 12.12 9.52 26.31 7.15 40.1zm-168.51 55.43-26.94-15.55c-.29-.14-.48-.42-.52-.74v-74.39c.02-33.12 26.89-59.96 60.01-59.94 14.01 0 27.57 4.92 38.34 13.88-.49.26-1.33.73-1.89 1.07l-63.72 36.8c-3.26 1.85-5.26 5.31-5.24 9.06l-.04 89.79zm14.63-31.54 34.65-20.01 34.65 20v40.01l-34.65 20-34.65-20z"/></svg>
openai.png
- 1
- socials - 1 - 2 - 21.11 KB - August 17 2023 19:43:16
-
facebook.png
- 1
instagram.png
- 1
linkedin.png
- 1
pinterest.png
- 1
reddit-footer.png
- 1
reddit.png
- 1
twitter.png
- 1
youtube.png
- 1
- js - 6 - 0 - 0 B - August 23 2023 10:27:44
-
docs.js
- 1// The Script Add or Remove a Class on HTML Element on Scroll Up/Down
- 2/*
- 3$(window).scroll(function() {
- 4var scroll = $(window).scrollTop();
- 5if (scroll >= 500) {
- 6$(".docbreads").addClass("sticky");
- 7}
- 8});
- 9*/
- 10$(window).scroll(function(){
- 11 if ($(this).scrollTop() > 350) {
- 12 $('.docbreads').addClass('fixed');
- 13 } else {
- 14 $('.docbreads').removeClass('fixed');
- 15 }
- 16});
scroll-top.js
- 1
- 2 function scrollToHeading(id) {
- 3 var element = document.getElementById(id);
- 4 var offset = 30; // Adjust this value as needed
- 5 var bodyRect = document.body.getBoundingClientRect().top;
- 6 var elementRect = element.getBoundingClientRect().top;
- 7 var scrollToPosition = elementRect - bodyRect - offset;
- 8
- 9 window.scrollTo({
- 10 top: scrollToPosition,
- 11 behavior: 'smooth'
- 12 });
- 13 }
- 14
- 15
- 16 function scrollToAuthor() {
- 17 var element = document.getElementById("author-name");
- 18 var offset = 130; // Adjust this value as needed
- 19 var bodyRect = document.body.getBoundingClientRect().top;
- 20 var elementRect = element.getBoundingClientRect().top;
- 21 var scrollToPosition = elementRect - bodyRect - offset;
- 22
- 23 window.scrollTo({
- 24 top: scrollToPosition,
- 25 behavior: 'smooth'
- 26 });
- 27 }
- 28
- 29 $(window).on('hashchange load', function() {
- 30 adjustAnchor();
- 31 });
- 32
- 33/*
- 34function openNav() {
- 35 document.getElementById("mySidebar").style.width = "250px";
- 36 document.getElementById("main").style.marginLeft = "250px";
- 37}
- 38
- 39function closeNav() {
- 40 document.getElementById("mySidebar").style.width = "0";
- 41 document.getElementById("main").style.marginLeft= "0";
- 42}
- 43*/
- 44function openNav() {
- 45 document.getElementById("mySidenav").style.width = "250px";
- 46 document.getElementById("main").style.marginLeft = "250px";
- 47 document.getElementById("main-nav").style.marginLeft = "250px";
- 48 document.getElementById("pbhnm").style.marginLeft = "250px";
- 49}
- 50
- 51function closeNav() {
- 52 document.getElementById("mySidenav").style.width = "0";
- 53 document.getElementById("main").style.marginLeft= "0";
- 54 document.getElementById("pbhnm").style.marginLeft= "0";
- 55 document.getElementById("main-nav").style.marginLeft= "0";
- 56}
- 57
- 58
- 59
- 60function myTocFunction(x) {
- 61 x.classList.toggle("change");
- 62 document.getElementById("mySidenavTocData").classList.toggle("shown");
- 63}
- 64function mySidenavToc(x) {
- 65 document.getElementById("mySidenavTocData").style.width = "250px";
- 66 document.getElementById("main").style.marginLeft = "250px";
- 67 document.getElementById("main-nav").style.marginLeft = "250px";
- 68 document.getElementById("pbhnm").style.marginLeft = "250px";
- 69}
- 70window.onscroll = function() {myFunction()};
- 71
- 72var navbar = document.getElementById("toct");
- 73var sticky = navbar.offsetTop;
- 74
- 75function myFunction() {
- 76 if (window.pageYOffset >= sticky) {
- 77 navbar.classList.add("sticky")
- 78 } else {
- 79 navbar.classList.remove("sticky");
- 80 }
- 81}
- 82
- 83
- 84
- 85
- 86// Modal Image Gallery
- 87
- 88
- 89
- 90// Toggle between showing and hiding the sidebar when clicking the menu icon
- 91
- 92
stepped-form.js
- 1
you-tube-embed.js
- 1/*
- 2
- 3 var tag = document.createElement('script');
- 4 tag.id = 'iframe-demo';
- 5 tag.src = 'https://www.youtube.com/iframe_api';
- 6 var firstScriptTag = document.getElementsByTagName('script')[0];
- 7 firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
- 8
- 9 var player;
- 10 function onYouTubeIframeAPIReady() {
- 11 player = new YT.Player('existing-iframe-example', {
- 12 events: {
- 13 'onReady': onPlayerReady,
- 14 'onStateChange': onPlayerStateChange
- 15 }
- 16 });
- 17 }
- 18 function onPlayerReady(event) {
- 19 document.getElementById('existing-iframe-example').style.borderColor = '#FF6D00';
- 20 }
- 21 function changeBorderColor(playerStatus) {
- 22 var color;
- 23 if (playerStatus == -1) {
- 24 color = "#37474F"; // unstarted = gray
- 25 } else if (playerStatus == 0) {
- 26 color = "#FFFF00"; // ended = yellow
- 27 } else if (playerStatus == 1) {
- 28 color = "#33691E"; // playing = green
- 29 } else if (playerStatus == 2) {
- 30 color = "#DD2C00"; // paused = red
- 31 } else if (playerStatus == 3) {
- 32 color = "#AA00FF"; // buffering = purple
- 33 } else if (playerStatus == 5) {
- 34 color = "#FF6DOO"; // video cued = orange
- 35 }
- 36 if (color) {
- 37 document.getElementById('existing-iframe-example').style.borderColor = color;
- 38 }
- 39 }
- 40 function onPlayerStateChange(event) {
- 41 changeBorderColor(event.data);
- 42 }
- 43
- 44*/
- customizer - 3 - 0 - 0 B - August 17 2023 19:42:46
- func - 1 - 0 - 0 B - August 17 2023 19:42:46
- header - 1 - 0 - 0 B - August 17 2023 19:42:46
-
search-bar-functions.php
- 1<?php
- 2
- 3
- 4
- 5
- 6// End Main Header Navigation Menu Margin Settings
- 7function yourseobook_header_main_navigation_menu_search_bar_styles() {
- 8
- 9 $header_navigation_menu_search_bar_background_color = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_background_color' );
- 10 // $header_navigation_menu_search_bar_opacity = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_opacity' );
- 11 // $header_navigation_menu_search_bar_font_size = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_font_size' );
- 12 // $header_navigation_menu_search_bar_text_transform = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_text_transform' );
- 13 // $header_navigation_menu_search_bar_text_decoration = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_text_decoration' );
- 14 $header_navigation_menu_search_bar_width = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_width' );
- 15 // $header_navigation_menu_search_bar_height = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_height');
- 16 // $header_navigation_menu_search_bar_padding_top = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_padding_top' );
- 17 // $header_navigation_menu_search_bar_padding_right = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_padding_right' );
- 18 // $header_navigation_menu_search_bar_padding_bottom = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_padding_bottom' );
- 19 // $header_navigation_menu_search_bar_padding_left = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_padding_left' );
- 20 // $header_navigation_menu_search_bar_margin_top = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_margin_top' );
- 21 // $header_navigation_menu_search_bar_margin_right = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_margin_right' );
- 22 // $header_navigation_menu_search_bar_margin_bottom = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_margin_bottom' );
- 23 // $header_navigation_menu_search_bar_margin_left = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_margin_left' );
- 24 // $header_navigation_menu_search_bar_border_radius = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_border_radius' );
- 25 $header_navigation_menu_search_bar_border_size = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_border_size' );
- 26 // $header_navigation_menu_search_bar_border_type = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_border_type' );
- 27 // $header_navigation_menu_search_bar_border_color = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_border_color' );
- 28 // $header_navigation_menu_search_bar_text_color = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_text_color' );
- 29 // $header_navigation_menu_search_bar_float = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_float' );
- 30 // $header_navigation_menu_search_bar_font_weight = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_font_weight' );
- 31 // $header_navigation_menu_search_bar_text_align = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_text_align' );
- 32 // $header_navigation_menu_search_bar_display = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_display' );
- 33 // $header_navigation_menu_search_bar_position = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_position' );
- 34 // $header_navigation_menu_search_bar_text_shadow_offset_x = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_top' );
- 35 // $header_navigation_menu_search_bar_text_shadow_offset_y = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_top' );
- 36 // $header_navigation_menu_search_bar_text_shadow_offset_blur_radius = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_top' );
- 37 // $header_navigation_menu_search_bar_text_shadow_color = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_top' );
- 38 // $header_navigation_menu_search_bar_box_shadow = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow' );
- 39 // $header_navigation_menu_search_bar_box_shadow_top = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_top' );
- 40 // $header_navigation_menu_search_bar_box_shadow_right = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_right' );
- 41 // $header_navigation_menu_search_bar_box_shadow_bottom = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_bottom' );
- 42 // $header_navigation_menu_search_bar_box_shadow_left = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_left' );
- 43 // $header_navigation_menu_search_bar_box_shadow_color = get_theme_mod( 'yourseobook_header_navigation_menu_search_bar_box_shadow_color' );
- 44
- 45
- 46
- 47// Header Navigation Menu Search Bar Settings
- 48if (
- 49$header_navigation_menu_search_bar_background_color != 'rgba(255,255,255)' || $header_navigation_menu_search_bar_width != '130px' || $header_navigation_menu_search_bar_border_size != '0px'
- 50// $header_navigation_menu_search_bar_font_size != '16px' ||
- 51// $header_navigation_menu_search_bar_font_weight != '300' ||
- 52
- 53// $header_navigation_menu_search_bar_padding_top != '0px' ||
- 54// $header_navigation_menu_search_bar_padding_right != '0px' ||
- 55// $header_navigation_menu_search_bar_padding_bottom != '0px' ||
- 56// $header_navigation_menu_search_bar_padding_left != '0px' ||
- 57// $header_navigation_menu_search_bar_margin_top != '0px' ||
- 58// $header_navigation_menu_search_bar_margin_right != '0px' ||
- 59// $header_navigation_menu_search_bar_margin_bottom != '0px' ||
- 60// $header_navigation_menu_search_bar_margin_left != '0px' ||
- 61// $header_navigation_menu_search_bar_border_radius != '0px' ||
- 62// $header_navigation_menu_search_bar_border_size != '0px' ||
- 63// $header_navigation_menu_search_bar_border_type != '' ||
- 64// $header_navigation_menu_search_bar_border_color != 'rgba(255,255,255)' ||
- 65// $header_navigation_menu_search_bar_text_color != 'rgba(255,255,255)' ||
- 66// $header_navigation_menu_search_bar_box_shadow != '' ||
- 67// $header_navigation_menu_search_bar_height != '40px' ||
- 68// $header_navigation_menu_search_bar_float != 'unset' ||
- 69// $header_navigation_menu_search_bar_text_decoration != 'none' ||
- 70// $header_navigation_menu_search_bar_text_align != 'none' ||
- 71//$header_navigation_menu_search_bar_text_shadow != 'inherit'
- 72)
- 73
- 74 :?>
- 75
- 76<style type="text/css">
- 77
- 78
- 79
- 80input#hnm-sb.header-nav-menu-search-box.search-form {
- 81background: <?php echo $header_navigation_menu_search_bar_background_color; ?>;
- 82font-size: <?php echo $header_navigation_menu_search_bar_font_size; ?>px !important;
- 83font-weight: <?php // echo $header_navigation_menu_search_bar_font_weight; ?>;
- 84text-decoration: <?php // echo $header_navigation_menu_search_bar_text_decoration; ?>;
- 85/*text-align: <?php // echo $header_navigation_menu_search_bar_text_align; ?>;*/
- 86display: flex;
- 87width: <?php echo $header_navigation_menu_search_bar_width; ?>px !important;
- 88height: <?php // echo $header_navigation_menu_search_bar_height; ?>px !important;
- 89padding: <?php // echo $header_navigation_menu_search_bar_padding_top; ?>px <?php // echo $header_navigation_menu_search_bar_padding_right; ?>px <?php // echo $header_navigation_menu_search_bar_padding_bottom; ?>px <?php // echo $header_navigation_menu_search_bar_padding_left; ?>px;
- 90float: <?php // echo $header_navigation_menu_search_bar_float; ?>;
- 91margin: <?php // echo $header_navigation_menu_search_bar_margin_top; ?>px <?php // echo $header_navigation_menu_search_bar_margin_right; ?>px <?php // echo $header_navigation_menu_search_bar_margin_bottom; ?>px <?php // echo $header_navigation_menu_search_bar_margin_left; ?>px !important;
- 92border-radius: <?php // echo $header_navigation_menu_search_bar_border_radius; ?>px;
- 93border: <?php // echo $header_navigation_menu_search_bar_border_size; ?>px <?php // echo $header_navigation_menu_search_bar_border_type; ?> <?php // echo $header_navigation_menu_search_bar_border_color; ?>;
- 94color: <?php // echo $header_navigation_menu_search_bar_text_color; ?> !important;
- 95box-shadow: <?php // echo $header_navigation_menu_search_bar_box_shadow; ?>;
- 96flex-direction: row;
- 97flex-wrap: nowrap;
- 98align-items: center;
- 99justify-content: center;
- 100text-shadow: <?php // echo $header_navigation_menu_search_bar_text_shadow; ?>;
- 101}
- 102
- 103 </style>
- 104
- 105
- 106
- 107 <?php
- 108 endif;
- 109}
- 110add_action( 'wp_head', 'yourseobook_header_main_navigation_menu_search_bar_styles' );
-
- header - 1 - 0 - 0 B - August 17 2023 19:42:46
- func - 4 - 0 - 0 B - August 31 2023 11:54:12
- alerts - 1 - 0 - 0 B - August 17 2023 19:43:18
-
pop-lead.php
- 1<div id="random-post-popup" class="popup-container">
- 2 <div class="popup-content">
- 3 <h2>Random Post</h2>
- 4 <div id="random-post-content"></div>
- 5 <button id="popup-close">Close</button>
- 6 </div>
- 7</div>
- content - 2 - 0 - 0 B - August 17 2023 19:43:18
- single - 1 - 0 - 0 B - August 17 2023 19:43:18
-
featured-image-fallback.php
- 1 <?php if ( get_theme_mod( 'yourseobook_single_page_featured_image_display_control' ) ) : ?>
- 2
- 3
- 4
- 5<div id="featimg" class="sp-featured-image" role="img" type="image" aria-label="Featured Image">
- 6
- 7
- 8<?php if ( has_post_thumbnail() ) {?>
- 9
- 10
- 11<?php $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID)); ?>
- 12
- 13<figure class="figure">
- 14<img src="<?php echo $url ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?> | <?php echo esc_html_e( get_theme_mod( 'yourseobook_main_brand_name_text_control' ) ); ?>" class="sp-feat-img" id="feat-img" loading="lazy"/>
- 15<button class="featimgopen" data-bs-toggle="collapse" data-bs-target="#feat-img-collapse" aria-expanded="false">
- 16 <span class="dashicons dashicons-media-interactive"></span>
- 17<span class="dashicons dashicons-arrow-down-alt2"></span>
- 18 </button>
- 19
- 20<div class="container text-center collapse" id="feat-img-collapse">
- 21 <div class="row">
- 22 <div class="col">
- 23 <figcaption class="image-description"><span class="dashicons dashicons-text" type="button" role="banner"></span> <?php the_title(); ?>.</figcaption>
- 24
- 25 </div>
- 26 <div class="col">
- 27<div class="image-description"><span class="dashicons dashicons-media-document"></span> <?php the_title(); ?></div>
- 28 </div>
- 29 <div class="col">
- 30 <div class="image-description"> <span class="dashicons dashicons-camera" type="button" role="banner"></span>SEO Book Pro</div>
- 31 </div>
- 32 </div>
- 33</div>
- 34
- 35
- 36</figure>
- 37
- 38<?php ?>
- 39
- 40<?php } else { ?>
- 41
- 42<?php if ( get_theme_mod( 'yourseobook_single_page_featured_image_fallback_default_image_control_settings' ) ) : ?>
- 43
- 44<img src="<?php echo esc_url( get_theme_mod( 'yourseobook_single_page_featured_image_fallback_default_image_control' ) ); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?> | <?php echo esc_html_e( get_theme_mod( 'yourseobook_main_brand_name_text_control' ) ); ?>" class="figure-img img-fluid rounded" loading="lazy"/>
- 45
- 46<?php endif; ?>
- 47
- 48<?php } ?>
- 49
- 50</div>
- 51<style>
- 52/* Start single_page_featured_image_fallback_default_image
- 53
- 54*/
- 55.featimgopen.collapsed {
- 56 position: relative;
- 57 bottom: 0px;
- 58 left: 31px;
- 59 right: 0;
- 60 width: 20px;
- 61 display: block;
- 62 top: -30px;
- 63 background: #903e8e;
- 64 border: none;
- 65 z-index: 1;
- 66 color: #fff;
- 67 float: left;
- 68}
- 69.sp-featured-image img {
- 70 padding: 0px;
- 71 margin: 20px 0px 20px 0px;
- 72 width: 100%;
- 73 height: 480px;
- 74 max-height: 480px;
- 75 object-fit: cover;
- 76 box-shadow: 0px 20px 20px -20px #000;
- 77 border-radius: 18px;
- 78 z-index: 2;
- 79 overflow: hidden;
- 80 position: relative;
- 81}
- 82.sp-featured-image img:hover{
- 83 box-shadow: 0px 20px 20px -20px blue;
- 84}
- 85figcaption.figure-caption {
- 86 position: relative;
- 87 bottom: 10px;
- 88 margin: 0px auto;
- 89 width: max-content;
- 90 font-size: 12px;
- 91 color: #000;
- 92}
- 93
- 94.image-description, {
- 95 position: relative;
- 96 bottom: 10px;
- 97 margin: 0px auto;
- 98 width: max-content;
- 99 font-size: 16px;
- 100 color: #3c3300;
- 101 font-weight: 300;
- 102}
- 103.dashicons.dashicons-camera, .dashicons.dashicons-media-document, .dashicons.dashicons-text {
- 104 font-size: 22px;
- 105 display: flex;
- 106 float: left;
- 107 margin: 0px 10px;
- 108}
- 109
- 110.image-description {
- 111 font-size: 12px;
- 112 text-align: left;
- 113 line-height: 1.55rem;
- 114 font-weight: 400;
- 115}
- 116figure.figure {
- 117 margin: 0px 0px 0px 0px;
- 118 padding: 0px 0px 15px 0px;
- 119}
- 120div#featimg {
- 121 width: 100%;
- 122 display: flex;
- 123 flex-direction: column;
- 124 flex-wrap: wrap;
- 125 border-bottom: 1px dotted #000;
- 126 margin: 0px 0px 40px 0px;
- 127 align-items: stretch;
- 128 align-content: stretch;
- 129 box-shadow: 0px 43px 33px -43px #000;
- 130}
- 131
- 132.iframe-container {
- 133 position: relative;
- 134 overflow: hidden;
- 135 padding-top: 56.25%;
- 136 margin: 40px 10px 40px 10px;
- 137 max-width: 100%;
- 138 width: auto;
- 139}
- 140iframe#iframe-in-c.iframe-in-the-content {
- 141 position: absolute;
- 142 top: 0;
- 143 left: 0;
- 144 bottom: 0;
- 145 right: 0;
- 146 width: 100%;
- 147 height: 100%;
- 148 border: none;
- 149}
- 150</style>
- 151<?php endif; ?>
land-latest-img-fallback.php
- 1 <?php if ( get_theme_mod( 'yourseobook_single_page_featured_image_display_control' ) ) : ?>
- 2
- 3
- 4
- 5<div id="featimg" class="land-featured-image" role="img" type="image" aria-label="Featured Image">
- 6
- 7
- 8<?php if ( has_post_thumbnail() ) {?>
- 9
- 10
- 11<?php $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID)); ?>
- 12
- 13<figure class="figure">
- 14<img src="<?php echo $url ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?> | <?php echo esc_html( $brand_name ); ?>" class="land-feat-img" id="feat-img" loading="lazy"/>
- 15
- 16
- 17
- 18</figure>
- 19
- 20<?php ?>
- 21
- 22<?php } else { ?>
- 23
- 24<?php if ( get_theme_mod( 'yourseobook_single_page_featured_image_fallback_default_image_control_settings' ) ) : ?>
- 25
- 26<img src="<?php echo esc_url( get_theme_mod( 'yourseobook_single_page_featured_image_fallback_default_image_control' ) ); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?> | <?php echo esc_html( $brand_name ); ?>" class="figure-img img-fluid" loading="lazy"/>
- 27
- 28<?php endif; ?>
- 29
- 30<?php } ?>
- 31
- 32</div>
- 33<style>
- 34
- 35.land-featured-image img {
- 36 padding: 0px;
- 37 margin: 20px 0px 20px 0px;
- 38 width: 100%;
- 39 min-height: 220px;
- 40 max-height: 220px;
- 41 object-fit: cover;
- 42
- 43 border-radius: 18px;
- 44 z-index: 2;
- 45 overflow: hidden;
- 46 position: relative;
- 47}
- 48
- 49figcaption.figure-caption {
- 50 position: relative;
- 51 bottom: 10px;
- 52 margin: 0px auto;
- 53 width: max-content;
- 54 font-size: 12px;
- 55 color: #000;
- 56}
- 57
- 58.image-description, {
- 59 position: relative;
- 60 bottom: 10px;
- 61 margin: 0px auto;
- 62 width: max-content;
- 63 font-size: 16px;
- 64 color: #3c3300;
- 65 font-weight: 300;
- 66}
- 67.dashicons.dashicons-camera, .dashicons.dashicons-media-document, .dashicons.dashicons-text {
- 68 font-size: 22px;
- 69 display: flex;
- 70 float: left;
- 71 margin: 0px 10px;
- 72}
- 73
- 74.image-description {
- 75 font-size: 12px;
- 76 text-align: left;
- 77 line-height: 1.55rem;
- 78 font-weight: 400;
- 79}
- 80figure.figure {
- 81 margin: 0px 0px 0px 0px;
- 82 padding: 0px 0px 15px 0px;
- 83}
- 84div#featimg {
- 85 width: 100%;
- 86 display: flex;
- 87 flex-direction: column;
- 88 margin: 0px 0px 40px 0px;
- 89 align-items: stretch;
- 90 align-content: stretch;
- 91
- 92}
- 93h3.single-page-header-title a {
- 94 text-decoration: none !important;
- 95 color: #000;
- 96}
- 97.iframe-container {
- 98 position: relative;
- 99 overflow: hidden;
- 100 padding-top: 56.25%;
- 101 margin: 40px 10px 40px 10px;
- 102 max-width: 100%;
- 103 width: auto;
- 104}
- 105iframe#iframe-in-c.iframe-in-the-content {
- 106 position: absolute;
- 107 top: 0;
- 108 left: 0;
- 109 bottom: 0;
- 110 right: 0;
- 111 width: 100%;
- 112 height: 100%;
- 113 border: none;
- 114}
- 115</style>
- 116<?php endif; ?>
-
func-back.php
- 1<?php
- 2/*
- 3function customizer_disable_publish_for_demo() {
- 4 if (current_user_can('demo_user')) {
- 5 echo '<style>#customize-save-button-wrapper { display: none !important; }</style>';
- 6 }
- 7}
- 8add_action('customize_controls_print_styles', 'customizer_disable_publish_for_demo');
- 9
- 10
- 11
- 12function customizer_enable_publish_for_administrator() {
- 13 if (current_user_can('administrator')) {
- 14 echo '<style>#customize-save-button-wrapper { display: block !important; }</style>';
- 15 }
- 16}
- 17add_action('customize_controls_print_styles', 'customizer_enable_publish_for_administrator');
- 18*/
- 19// add_action( 'wp_insert_post_data', 'disable_publish_button_for_demo_users' );
- 20//add_filter('wp_insert_post_data' , 'disable_publish_button_for_demo_users' , '99', 2);
- 21
- 22// Register Breadcrumbs on Single Page, Single Post, Categories Archives, Blog Archives, CUstom Post Types Single and Archives Pages
- 23// /httpdocs/wp-content/themes/yourseobook/api/admin/crawl/sitemaps/xml-sitemaps/register-xml-sitemaps.php
- 24require_once('api/layouts/breads/breadcrumbs.php');
- 25// require_once('api/admin/crawl/sitemaps/xml-sitemaps/register-xml-sitemaps.php');
- 26require_once('api/shop/register-woocommerce.php');
- 27
- 28// Include The Admin Menu Fix Bug for Bootstrap overlaping class navigation .fixed-top
- 29// /public_html/wp-content/themes/yourseobook/api/customizer/func/header/search-bar-functions.php
- 30// include_once trailingslashit( dirname(__FILE__) ) . 'api/admin/admin-functions.php';
- 31add_filter( 'wp_sitemaps_enabled', '__return_true' );
- 32function register_yourseobook_admin_functions(){
- 33 require_once get_template_directory() .'/api/admin/admin-functions.php';
- 34 }
- 35 add_action( 'after_setup_theme', 'register_yourseobook_admin_functions' );
- 36
- 37// require_once get_template_directory() .'/api/seo/links/auto-links.php';
- 38// /httpdocs/wp-content/themes/yourseobook/api/seo/links/auto-links.php
- 39/*
- 40function register_yourseobook_auto_internal_links_in_the_content_functions(){
- 41 require_once get_template_directory() .'/api/seo/links/auto-links.php';
- 42 }
- 43 add_action( 'after_setup_theme', 'register_yourseobook_auto_internal_links_in_the_content_functions' );
- 44*/
- 45require_once get_template_directory() .'/api/seo/links/auto-links.php';
- 46
- 47// function register_yourseobook_all_in_one_seo_api_functions(){
- 48 // require_once get_template_directory() .'/api/admin/seo/all-in-one-seo-api.php';
- 49 // }
- 50 // add_action( 'after_setup_theme', 'register_yourseobook_all_in_one_seo_api_functions' );
- 51
- 52// function register_yourseobook_header_nav_search_box_functions(){
- 53// require_once get_template_directory() .'/api/customizer/func/header/search-bar-functions.php';
- 54 // }
- 55 // add_action( 'after_setup_theme', 'register_yourseobook_header_nav_search_box_functions' );
- 56
- 57
- 58// function register_yourseobook_chat_gpt_functions(){
- 59// require_once get_template_directory() .'/api/admin/bot/chatgpt-controls.php';
- 60 // }
- 61 // add_action( 'after_setup_theme', 'register_yourseobook_chat_gpt_functions' );
- 62// add_action( 'wp_head', 'yourseobook_header_main_navigation_master_menu_styles' );
- 63
- 64// /public_html/wp-content/themes/yourseobook/inc/app/bot/chat-gpt-controls.php
- 65/*
- 66function register_my_menu() {
- 67 register_nav_menu('top_header_menu',__( 'Top Header Navigation Menu' ));
- 68 register_nav_menu('main_header_menu',__( 'Main Header Navigation Menu' ));
- 69 register_nav_menu('bottom_header_menu',__( 'Bottom Header Navigation Menu' ));
- 70 register_nav_menu('footer_main_menu',__( 'Footer Navigation Menu' ));
- 71 register_nav_menu('footer_copy_info_menu',__( 'Copyright Footer Menu' ));
- 72 register_nav_menu('footer_social_media_links_menu',__( 'Social Media Links Footer Menu' ));
- 73
- 74 // Add the custom ID and class to the menu
- 75 $locations = array(
- 76 'top_header_menu' => 'top-header-menu',
- 77 'main_header_menu' => 'main-header-menu',
- 78 'bottom_header_menu' => 'bottom-header-menu',
- 79 'footer_main_menu' => 'ffmyNavbar',
- 80 'footer_copy_info_menu' => 'footer-copy-info-menu',
- 81 'footer_social_media_links_menu' => 'footer-social-media-links-menu',
- 82 // 'footer_bottom_menu' => 'footer-bottom-menu' // Assign the custom ID here
- 83 );
- 84
- 85 // Set the custom ID and class for each menu location
- 86 foreach ($locations as $location => $id) {
- 87 $theme_locations = get_nav_menu_locations();
- 88 $theme_locations[$location] = $id;
- 89 set_theme_mod('nav_menu_locations', $theme_locations);
- 90 }
- 91}
- 92
- 93add_action('init', 'register_my_menu');
- 94*/
- 95// /wp-content/themes/yourseobook/api/admin/master-nav-function.php
- 96
- 97/**
- 98 * Register Custom Navigation Walker
- 99 */
- 100// /wp-content/themes/yourseobook/api/layouts/menus/class-wp-bootstrap-navwalker.php
- 101
- 102function yourseobook_register_cpt_router(){
- 103 require_once get_template_directory() . '/design/content/seo-cpt/cpt-router.php';
- 104}
- 105add_action( 'after_setup_theme', 'yourseobook_register_cpt_router' );
- 106
- 107
- 108function yourseobook_register_navwalker(){
- 109 require_once get_template_directory() . '/api/layouts/menus/class-wp-bootstrap-navwalker.php';
- 110}
- 111add_action( 'after_setup_theme', 'yourseobook_register_navwalker' );
- 112
- 113
- 114function yourseobook_register_doc_menu_navwalker(){
- 115 require_once get_template_directory() . '/api/layouts/menus/doc-menu-navwalker.php';
- 116}
- 117add_action( 'after_setup_theme', 'yourseobook_register_doc_menu_navwalker' );
- 118
- 119function register_my_menu() {
- 120 register_nav_menu('top_header_menu',__( 'Top Header Navigation Menu' ));
- 121 register_nav_menu('main_header_menu',__( 'Main Header Navigation Menu' ));
- 122 register_nav_menu('bottom_header_menu',__( 'Bottom Header Navigation Menu' ));
- 123 register_nav_menu('footer_main_menu',__( 'Footer Navigation Menu' ));
- 124 register_nav_menu('footer_copy_info_menu',__( 'Copyright Footer Menu' ));
- 125 register_nav_menu('additional_doc_sidebar_menu',__( 'Additional Documentation Sidebar Menu' ));
- 126}
- 127add_action( 'init', 'register_my_menu' );
- 128
- 129add_filter('use_block_editor_for_post', '__return_true');
- 130
- 131
- 132remove_theme_support( 'widgets-block-editor' );
- 133// Enable Crop Images on Upload 200 pixels wide by 630 pixels tall, soft proportional crop mode
- 134add_image_size( 'custom-size', 1280, 720 );
- 135
- 136// Enable WordPress Deafult Lazy Load Functions for Images, Videos, Iframes
- 137add_theme_support( 'wp_lazy_loading_enabled' );
- 138
- 139// Enable Website Featured images
- 140// add_theme_support( 'post-thumbnails' );
- 141add_theme_support( 'post-thumbnails', array( 'post', 'page', 'portfolio', 'category', 'taxonomy' ) ); // Posts and Movies
- 142// Remove Image Height Width Attributes on Upload and Display
- 143function yourseobook_remove_img_attr ($html) { return preg_replace('/(width|height)="\d+"\s/', "", $html);}
- 144add_filter( 'post_thumbnail_html', 'yourseobook_remove_img_attr' );
- 145
- 146// Function to set the JPEG compression quality
- 147// Increase Image compression in WordPress
- 148add_filter('jpeg_quality', function($arg){return 35;});
- 149
- 150
- 151// Remove “scaled” in File URL/Name Path when adding new image to library
- 152add_filter( 'big_image_size_threshold', '__return_false' );
- 153
- 154add_filter( 'the_content', 'wpautop' );
- 155remove_filter( 'the_excerpt', 'wpautop' );
- 156
- 157// Start enable the visual editor for category descriptions using the code snippet below
- 158/*
- 159function enable_category_description_editor() {
- 160 $taxonomy = 'category'; // Change this if you're using a custom taxonomy
- 161 $tax = get_taxonomy($taxonomy);
- 162 $tax->show_ui = true;
- 163 $tax->meta_box_cb = 'post_categories_meta_box';
- 164}
- 165add_action('init', 'enable_category_description_editor');
- 166
- 167*/
- 168/**
- 169 * Allow HTML in term (category, tag) descriptions
- 170 */
- 171
- 172foreach ( array( 'pre_term_description' ) as $filter ) {
- 173 remove_filter( $filter, 'wp_filter_kses' );
- 174 if ( ! current_user_can( 'unfiltered_html' ) ) {
- 175 add_filter( $filter, 'wp_filter_post_kses' );
- 176 }
- 177}
- 178
- 179foreach ( array( 'term_description' ) as $filter ) {
- 180 remove_filter( $filter, 'wp_kses_data' );
- 181}
- 182
- 183// Enable all HTML Tags in Profile Bios
- 184remove_filter('pre_user_description', 'wp_filter_kses');
- 185//add sanitization for WordPress posts
- 186add_filter( 'pre_user_description', 'wp_filter_post_kses');
- 187// Disable all HTML in Profile Bios// Disallowing all HTML (including the a, blockquote, em, and strong tags, to name a few), you can use the following snippet:
- 188//add_filter( 'pre_user_description', 'wp_filter_nohtml_kses');
- 189
- 190function remove_global_styles_and_svg_filters() {
- 191remove_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles' );
- 192remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' );
- 193}
- 194add_action('init', 'remove_global_styles_and_svg_filters');
- 195
- 196
- 197// Selective refresh for widgets.
- 198add_theme_support( 'customize-selective-refresh-widgets' );
- 199
- 200 add_theme_support(
- 201 'html5',
- 202 array(
- 203 'search-form',
- 204 'comment-form',
- 205 'comment-list',
- 206 'gallery',
- 207 'caption',
- 208 'style',
- 209 'script',
- 210 )
- 211 );
- 212
- 213// Start The Cut for Custom Exerpt Lenght in the source code and in to Loops
- 214/*
- 215function yourseobook_custom_excerpt_length( $length ) {
- 216 return 45;
- 217}
- 218add_filter( 'excerpt_length', 'yourseobook_custom_excerpt_length' );
- 219*/
- 220// End The Cut for Custom Exerpt Lenght in the source code and in to Loops
- 221
- 222
- 223// Start Limit Post Tags in the Source Code to 5
- 224
- 225add_filter('term_links-post_tag','yourseobook_limit_to_five_tags');
- 226function yourseobook_limit_to_five_tags($terms) {
- 227return array_slice($terms,0,7,true);
- 228}
- 229
- 230// End Limit Post Tags in the Source Code to 5
- 231
- 232
- 233// Remove WordPress Emoji icons and js to speed up the site and low the loaded scrips in the headers
- 234remove_action('wp_head', 'print_emoji_detection_script', 7);
- 235remove_action('wp_print_styles', 'print_emoji_styles');
- 236
- 237remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
- 238remove_action( 'admin_print_styles', 'print_emoji_styles' );
- 239
- 240
- 241
- 242add_filter( 'use_widgets_block_editor', '__return_false' );
- 243add_filter( 'use_block_editor_for_post', '__return_false' );
- 244add_filter( 'use_block_editor_for_page', '__return_false' );
- 245add_filter('use_block_editor_for_post_type', '__return_false');
- 246
- 247
- 248function yourseobook_remove_wp_block_library_css(){
- 249 wp_dequeue_style( 'wp-block-library' );
- 250 wp_dequeue_style( 'wp-block-library-theme' );
- 251 wp_dequeue_style( 'wc-block-style' ); // Remove WooCommerce block CSS
- 252 }
- 253add_action( 'wp_enqueue_scripts', 'yourseobook_remove_wp_block_library_css', 100 );
- 254
- 255// Remove query string from static CSS files
- 256function yourseobook_remove_query_string_from_static_files( $src ) {
- 257 if( strpos( $src, '?ver=' ) )
- 258 $src = remove_query_arg( 'ver', $src );
- 259 return $src;
- 260}
- 261add_filter( 'style_loader_src', 'yourseobook_remove_query_string_from_static_files', 10, 2 );
- 262
- 263
- 264function yourseobook_list_child_categories() {
- 265 $current_category = get_queried_object();
- 266
- 267 if ($current_category instanceof WP_Term && $current_category->term_id) {
- 268 $child_categories = get_terms(array(
- 269 'taxonomy' => 'category', // Change this if using a custom taxonomy
- 270 'parent' => $current_category->term_id,
- 271 'hide_empty' => false,
- 272 ));
- 273
- 274 if ($child_categories) {
- 275 $string = '<ul>';
- 276 foreach ($child_categories as $child_category) {
- 277 $string .= '<li><a href="' . esc_url(get_term_link($child_category)) . '">' . esc_html($child_category->name) . '</a></li>';
- 278 }
- 279 $string .= '</ul>';
- 280 }
- 281
- 282 return $string;
- 283 }
- 284 return '';
- 285}
- 286
- 287add_action('yourseobook_list_child_categories', 'yourseobook_list_child_categories');
- 288
- 289
- 290
- 291function yourseobook_list_child_pages() {
- 292
- 293 global $post;
- 294
- 295if ( is_page() && $post->ID )
- 296 $childpages = wp_list_pages( 'sort_column=menu_order&title_li=&child_of=' . $post->ID . '&echo=1&depth=4' );
- 297
- 298 if ( $childpages ) {
- 299 $string = '<ul>' . $childpages . '</ul>';
- 300 }
- 301
- 302 return $string;
- 303}
- 304
- 305// Load Current and New Styles and JavaScripts from a Folder
- 306
- 307
- 308
- 309// yourseobook - theme name
- 310include_once trailingslashit( dirname(__FILE__) ) . 'inc/yourseobook-customizer.php';
- 311include_once trailingslashit( dirname(__FILE__) ) . 'inc/functions-customizer.php';
- 312require_once trailingslashit( dirname(__FILE__) ) . 'inc/custom-controls.php';
- 313require_once trailingslashit( dirname(__FILE__) ) . 'inc/advanced-controls.php';
- 314require_once trailingslashit( dirname(__FILE__) ) . 'inc/master-controls.php';
- 315require_once trailingslashit( dirname(__FILE__) ) . 'inc/seo-controller.php';
- 316require_once trailingslashit( dirname(__FILE__) ) . 'inc/class-buttons.php';
- 317require_once trailingslashit( dirname(__FILE__) ) . 'inc/layout/head/search-bar-controller.php';
- 318require_once trailingslashit( dirname(__FILE__) ) . 'inc/layout/landing/services-controller.php';
- 319require_once trailingslashit( dirname(__FILE__) ) . 'inc/meta/head/opengraph.php';
- 320require_once trailingslashit( dirname(__FILE__) ) . 'inc/layout/head/header-menu-controlller.php';
- 321require_once trailingslashit( dirname(__FILE__) ) . 'inc/layout/footer/footer-main-controller.php';
- 322require_once trailingslashit( dirname(__FILE__) ) . 'inc/meta/seo/general/general-seo-controller.php';
- 323require_once trailingslashit( dirname(__FILE__) ) . 'inc/meta/single/seo-single-page-controller.php';
- 324// /public_html/wp-content/themes/yourseobook/inc/meta/seo/general/general-seo-controller.php
- 325// /public_html/wp-content/themes/yourseobook/inc/layout/head/header-menu-controlller.php
- 326
- 327
- 328// require_once get_template_directory() . '/design/content/seo-cpt/cpt-router.php';
- 329
- 330
- 331
- 332// Include Sitweide Widgets and Sidebars
- 333require_once get_template_directory() . '/design/content/widgets/aside/custom-site-widgets.php';
- 334
- 335// Limit the profiles with Subscriber Role to only Customizer without Save and Publish Caps
- 336//require_once get_template_directory() . '/api/admin/demo/role-subscriber.php';
- 337/*
- 338function remove_theme_caps() {
- 339 $role = get_role('author');
- 340
- 341 $role->remove_cap('update_themes');
- 342 $role->remove_cap('customize');
- 343 $role->remove_cap('update_core');
- 344 $role->remove_cap('delete_themes');
- 345 $role->remove_cap('customize_publish');
- 346 $role->remove_cap('publish_theme');
- 347 $role->remove_cap('edit_theme_options');
- 348}
- 349add_action('user_has_role', 'remove_theme_caps');
- 350*/
- 351/*
- 352add_action('init', 'yourseobook_add_roles');
- 353function yourseobook_add_roles() {
- 354 add_role(
- 355 'demo_user',
- 356 __('Demo User'),
- 357 array(
- 358 'read' => true,
- 359 'edit_posts' => false,
- 360 'edit_other_posts' => false,
- 361 'edit_published_posts' => false,
- 362 'moderate_comments' => false,
- 363 'edit_theme_options' => true,
- 364 'publish_posts' => false,
- 365 )
- 366 );
- 367}
- 368
- 369
- 370function allow_users_who_can_edit_posts_to_customize( $caps, $cap, $user_id ) {
- 371 $required_cap = 'edit_posts';
- 372 if ( 'customize' === $cap && user_can( $user_id, $required_cap ) ) {
- 373 $caps = array( $required_cap );
- 374 }
- 375 return $caps;
- 376}
- 377add_filter( 'map_meta_cap', 'allow_users_who_can_edit_posts_to_customize', 10, 4 );
- 378*/
- 379
- 380
- 381/*
- 382add_action( 'init', 'wps_david_cant_edit' );
- 383function wps_david_cant_edit() {
- 384 $user_id = 209; // The ID of the user
- 385 $user = new WP_User( $user_id );
- 386 $user->remove_cap( 'customize_publish' );
- 387}
- 388
- 389*/
- 390
- 391
- 392function yourseobook_add_id_class_to_iframe($html) {
- 393 // Check if the content contains an iframe
- 394 if (strpos($html, '<iframe') !== false) {
- 395 // Add the desired ID and class to the iframe
- 396 $html = str_replace('<iframe', '<iframe id="iframe-in-c" class="iframe-in-the-content iframe-container" width="860" height="483.75" autoplay="1" modestbranding="1" playsinline="1" loading="lazy"', $html);
- 397 }
- 398 return $html;
- 399}
- 400add_filter('embed_oembed_html', 'yourseobook_add_id_class_to_iframe');
- 401
- 402
- 403
- 404
- 405
- 406// Count Pages/Posts/Archives/Categories/Tags/Author/Home/Other Pages View
- 407
- 408// Custom Function 9
- 409// Track Posts yourseobook_post_views_count
- 410
- 411function yourseobook_set_post_views($postID) {
- 412 $count_key = 'yourseobook_post_views_count';
- 413 $count = get_post_meta($postID, $count_key, true);
- 414 if($count==''){
- 415 $count = 0;
- 416 delete_post_meta($postID, $count_key);
- 417 add_post_meta($postID, $count_key, '0');
- 418 }else{
- 419 $count++;
- 420 update_post_meta($postID, $count_key, $count);
- 421 }
- 422}
- 423//To keep the count accurate, lets get rid of prefetching
- 424remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);
- 425
- 426
- 427// Custom Function 9
- 428// Count Page Views and Imperssions After Activation
- 429function yourseobook_track_post_views ($post_id) {
- 430 if ( !is_singular() ) return;
- 431 if ( empty ( $post_id) ) {
- 432 global $post;
- 433 $post_id = $post->ID;
- 434 }
- 435 yourseobook_set_post_views($post_id);
- 436}
- 437add_action( 'wp_head', 'yourseobook_track_post_views');
- 438
- 439function yourseobook_get_post_views($postID){
- 440 $count_key = 'yourseobook_post_views_count';
- 441 $count = get_post_meta($postID, $count_key, true);
- 442 if($count==''){
- 443 delete_post_meta($postID, $count_key);
- 444 add_post_meta($postID, $count_key, '0');
- 445 return '0 Views ';
- 446 }
- 447 return $count.' Views';
- 448}
- 449
- 450
- 451// to display in content echo calculate_reading_time();
- 452
- 453function calculate_reading_time() {
- 454 $content = get_post_field('post_content', get_the_ID());
- 455 $word_count = str_word_count(strip_tags($content));
- 456 $reading_time = ceil($word_count / 300); // Assuming an average reading speed of 200 words per minute
- 457
- 458 return $reading_time . ' min read';
- 459}
- 460
- 461
- 462
- 463
- 464function yourseobook_generate_table_of_contents() {
- 465 $content = get_post_field('page_content', get_the_ID());
- 466 $modified_content = $content;
- 467
- 468
- 469 $pattern = '/<h([2-6])>(.*?)<\/h\1>/';
- 470 preg_match_all($pattern, $content, $headings);
- 471
- 472 if (!empty($headings[0])) {
- 473 $toc = '<div id="mySidenavToc" class="sidenavtoc" style="margin-top:0px !important;">';
- 474 $toc .= '<div id="page-toc" class="sp-table-of-contents" style="margin:0px auto;padding: 0px 15px 0px 15px;font-size:20px;color:red;">Table of Contents</div>';
- 475 $toc .= '<ul style="list-style:none;padding:0px;">';
- 476
- 477 foreach ($headings[0] as $index => $heading) {
- 478 $level = $headings[1][$index];
- 479 $title = $headings[2][$index];
- 480 $id = sanitize_title($title);
- 481 $brand = get_theme_mod( 'yourseobook_main_brand_name_text_control' );
- 482
- 483 // Generate a unique ID for each heading
- 484 $updated_heading = str_replace('<h' . $level . '>', '<h' . $level . ' id="' . $id . '">', $heading);
- 485
- 486 // Update the modified content with the modified heading
- 487 $modified_content = str_replace($heading, $updated_heading, $modified_content);
- 488
- 489 // Generate the table of contents with jump links
- 490 $toc .= '<li><a href="#' . $id . '" onclick="scrollToHeading(\'' . $id . '\'); return false;" title="'. $title . ' | ' . $brand .'">';
- 491
- 492 // Add indentation based on heading level
- 493 $toc .= str_repeat(' ', ($level - 2) * 6);
- 494
- 495 $toc .= $title . '</a></li>';
- 496 }
- 497
- 498 $toc .= '</ul>';
- 499 $toc .= '</div>';
- 500
- 501 // Prepend the table of contents to the content
- 502 $modified_content = $toc . $modified_content;
- 503 }
- 504
- 505 return $modified_content;
- 506}
- 507
- 508
- 509
- 510/* ================================================
- 511 * Customizer Custom Controls
- 512 * ================================================ */
- 513function yourseobook_enqueue_font_awesome() {
- 514 wp_enqueue_style( 'font-awesome', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css', array(), '5.15.3', 'all' );
- 515 // wp_enqueue_style( 'bootstrap-icons', 'https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css', array(), '1.10.5', 'all' );
- 516}
- 517add_action( 'customize_controls_enqueue_scripts', 'yourseobook_enqueue_font_awesome' );
- 518function yourseobook_enqueue_bootstrap_icons() {
- 519 wp_enqueue_style( 'bootstrap-icons', 'https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css', array(), '1.10.5', 'all' );
- 520}
- 521add_action( 'customize_controls_enqueue_scripts', 'yourseobook_enqueue_bootstrap_icons' );
- 522// add_action( 'customize_controls_print_styles', 'yourseobook_enqueue_font_awesome' );
- 523// <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
- 524/**
- 525 * Enqueue scripts and styles.
- 526 * Our sample Social Icons are using Font Awesome icons so we need to include the FA CSS when viewing our site
- 527 * The Single Accordion Control is also displaying some FA icons in the Customizer itself, so we need to enqueue FA CSS in the Customizer too
- 528 *
- 529 * @return void
- 530 */
- 531//if ( ! function_exists( 'yourseobook_scripts_styles' ) ) {
- 532 //function yourseobook_scripts_styles() {
- 533 // Register and enqueue our icon font
- 534 // We're using the awesome Font Awesome icon font. http://fortawesome.github.io/Font-Awesome
- 535 //wp_register_style( 'fontawesome', trailingslashit( get_template_directory_uri() ) . 'css/fontawesome-all.min.css' , array(), '5.8.2', 'all' );
- 536 //wp_enqueue_style( 'fontawesome' );
- 537 //wp_enqueue_style( 'dashicons' );
- 538 //}
- 539//}
- 540//add_action( 'wp_enqueue_scripts', 'yourseobook_scripts_styles' );
- 541//add_action( 'customize_controls_print_styles', 'yourseobook_scripts_styles' );
- 542
- 543
- 544/**
- 545 * Set our Social Icons URLs.
- 546 * Only needed for our sample customizer preview refresh
- 547 *
- 548 * @return array Multidimensional array containing social media data
- 549 */
- 550if ( ! function_exists( 'yourseobook_generate_social_urls' ) ) {
- 551function yourseobook_generate_social_urls() {
- 552$social_icons = array(
- 553array( 'url' => 'behance.net', 'icon' => 'dashicons dashicons-editor-bold', 'title' => esc_html__( 'Follow me on Behance', 'yourseobook' ), 'class' => 'behance' ),
- 554array( 'url' => 'whatsapp.com', 'icon' => 'dashicons dashicons-whatsapp', 'title' => esc_html__( 'Contact us on Whats App', 'yourseobook' ), 'class' => 'whatsapp' ),
- 555array( 'url' => 'bitbucket.org', 'icon' => 'dashicons dashicons-heart', 'title' => esc_html__( 'Fork me on Bitbucket', 'yourseobook' ), 'class' => 'bitbucket' ),
- 556array( 'url' => 'codepen.io', 'icon' => 'dashicons dashicons-editor-code', 'title' => esc_html__( 'Follow me on CodePen', 'yourseobook' ), 'class' => 'codepen' ),
- 557array( 'url' => 'deviantart.com', 'icon' => 'dashicons dashicons-art', 'title' => esc_html__( 'Watch me on DeviantArt', 'yourseobook' ), 'class' => 'deviantart' ),
- 558array( 'url' => 'discord.gg', 'icon' => 'dashicons dashicons-megaphone', 'title' => esc_html__( 'Join me on Discord', 'yourseobook' ), 'class' => 'discord' ),
- 559array( 'url' => 'dribbble.com', 'icon' => 'dashicons dashicons-dribbble', 'title' => esc_html__( 'Follow me on Dribbble', 'yourseobook' ), 'class' => 'dribbble' ),
- 560array( 'url' => 'etsy.com', 'icon' => 'dashicons dashicons-cart', 'title' => esc_html__( 'Favorite me on Etsy', 'yourseobook' ), 'class' => 'etsy' ),
- 561array( 'url' => 'facebook.com', 'icon' => 'dashicons dashicons-facebook', 'title' => esc_html__( 'Like me on Facebook', 'yourseobook' ), 'class' => 'facebook' ),
- 562array( 'url' => 'flickr.com', 'icon' => 'dashicons dashicons-camera', 'title' => esc_html__( 'Connect with me on Flickr', 'yourseobook' ), 'class' => 'flickr' ),
- 563array( 'url' => 'foursquare.com', 'icon' => 'dashicons dashicons-location-alt', 'title' => esc_html__( 'Follow me on Foursquare', 'yourseobook' ), 'class' => 'foursquare' ),
- 564array( 'url' => 'github.com', 'icon' => 'dashicons dashicons-external', 'title' => esc_html__( 'Fork me on GitHub', 'yourseobook' ), 'class' => 'github' ),
- 565array( 'url' => 'instagram.com', 'icon' => 'dashicons dashicons-instagram', 'title' => esc_html__( 'Follow me on Instagram', 'yourseobook' ), 'class' => 'instagram' ),
- 566array( 'url' => 'kickstarter.com', 'icon' => 'dashicons dashicons-lightbulb', 'title' => esc_html__( 'Back me on Kickstarter', 'yourseobook' ), 'class' => 'kickstarter' ),
- 567array( 'url' => 'last.fm', 'icon' => 'dashicons dashicons-controls-play', 'title' => esc_html__( 'Follow me on Last.fm', 'yourseobook' ), 'class' => 'lastfm' ),
- 568array( 'url' => 'linkedin.com', 'icon' => 'dashicons dashicons-linkedin', 'title' => esc_html__( 'Connect with me on LinkedIn', 'yourseobook' ), 'class' => 'linkedin' ),
- 569array( 'url' => 'medium.com', 'icon' => 'dashicons dashicons-admin-post', 'title' => esc_html__( 'Follow me on Medium', 'yourseobook' ), 'class' => 'medium' ),
- 570array( 'url' => 'patreon.com', 'icon' => 'dashicons dashicons-heart', 'title' => esc_html__( 'Support me on Patreon', 'yourseobook' ), 'class' => 'patreon' ),
- 571array( 'url' => 'pinterest.com', 'icon' => 'dashicons dashicons-pinterest', 'title' => esc_html__( 'Follow me on Pinterest', 'yourseobook' ), 'class' => 'pinterest' ),
- 572array( 'url' => 'reddit.com', 'icon' => 'dashicons dashicons-reddit', 'title' => esc_html__( 'Join me on Reddit', 'yourseobook' ), 'class' => 'reddit' ),
- 573array( 'url' => 'slack.com', 'icon' => 'dashicons dashicons-slides', 'title' => esc_html__( 'Join me on Slack', 'yourseobook' ), 'class' => 'slack' ),
- 574array( 'url' => 'slideshare.net', 'icon' => 'dashicons dashicons-slideshare', 'title' => esc_html__( 'Follow me on SlideShare', 'yourseobook' ), 'class' => 'slideshare' ),
- 575array( 'url' => 'snapchat.com', 'icon' => 'dashicons dashicons-video-alt3', 'title' => esc_html__( 'Add me on Snapchat', 'yourseobook' ), 'class' => 'snapchat' ),
- 576array( 'url' => 'soundcloud.com', 'icon' => 'dashicons dashicons-format-audio', 'title' => esc_html__( 'Follow me on SoundCloud', 'yourseobook' ), 'class' => 'soundcloud' ),
- 577array( 'url' => 'spotify.com', 'icon' => 'dashicons dashicons-playlist-audio', 'title' => esc_html__( 'Follow me on Spotify', 'yourseobook' ), 'class' => 'spotify' ),
- 578array( 'url' => 'stackoverflow.com', 'icon' => 'dashicons dashicons-format-status', 'title' => esc_html__( 'Join me on Stack Overflow', 'yourseobook' ), 'class' => 'stackoverflow' ),
- 579array( 'url' => 'tumblr.com', 'icon' => 'dashicons dashicons-tumblr', 'title' => esc_html__( 'Follow me on Tumblr', 'yourseobook' ), 'class' => 'tumblr' ),
- 580array( 'url' => 'twitch.tv', 'icon' => 'dashicons dashicons-video-alt2', 'title' => esc_html__( 'Follow me on Twitch', 'yourseobook' ), 'class' => 'twitch' ),
- 581array( 'url' => 'twitter.com', 'icon' => 'dashicons dashicons-twitter', 'title' => esc_html__( 'Follow me on Twitter', 'yourseobook' ), 'class' => 'twitter' ),
- 582array( 'url' => 'vimeo.com', 'icon' => 'dashicons dashicons-vimeo', 'title' => esc_html__( 'Follow me on Vimeo', 'yourseobook' ), 'class' => 'vimeo' ),
- 583array( 'url' => 'weibo.com', 'icon' => 'dashicons dashicons-share-alt2', 'title' => esc_html__( 'Follow me on Weibo', 'yourseobook' ), 'class' => 'weibo' ),
- 584array( 'url' => 'youtube.com', 'icon' => 'dashicons dashicons-youtube', 'title' => esc_html__( 'Subscribe to me on YouTube', 'yourseobook' ), 'class' => 'youtube' ),
- 585array( 'url' => 'tiktok.com', 'icon' => 'dashicons dashicons-heart', 'title' => esc_html__( 'Follow Me on TikTok', 'yourseobook' ), 'class' => 'tiktok' ),
- 586array( 'url' => 'g.dev', 'icon' => 'dashicons dashicons-heart', 'title' => esc_html__( 'Follow Me on Google Developers', 'yourseobook' ), 'class' => 'gdev' ),
- 587array( 'url' => 'issuu.com', 'icon' => 'dashicons dashicons-heart', 'title' => esc_html__( 'Follow Me on Issue', 'yourseobook' ), 'class' => 'issuu' ),
- 588array( 'url' => 'gumroad.com', 'icon' => 'dashicons dashicons-heart', 'title' => esc_html__( 'Follow Me on Gumroad', 'yourseobook' ), 'class' => 'gumroad' ),
- 589);
- 590
- 591return apply_filters( 'yourseobook_social_icons', $social_icons );
- 592}
- 593}
- 594
- 595
- 596
- 597
- 598if ( ! function_exists( 'yourseobook_get_social_media' ) ) {
- 599 function yourseobook_get_social_media() {
- 600 $defaults = yourseobook_generate_defaults();
- 601 $output = array();
- 602 $social_icons = yourseobook_generate_social_urls();
- 603 $social_urls = explode( ',', get_theme_mod( 'social_urls', $defaults['social_urls'] ) );
- 604 $social_newtab = get_theme_mod( 'social_newtab', $defaults['social_newtab'] );
- 605 $social_alignment = get_theme_mod( 'social_alignment', $defaults['social_alignment'] );
- 606 $contact_phone = get_theme_mod( 'contact_phone', $defaults['contact_phone'] );
- 607
- 608 if( !empty( $contact_phone ) ) {
- 609 $output[] = sprintf( '<li class="%1$s"><i class="%2$s"></i>%3$s</li>',
- 610 'phone',
- 611 'fas fa-phone fa-flip-horizontal',
- 612 $contact_phone
- 613 );
- 614 }
- 615
- 616 foreach( $social_urls as $key => $value ) {
- 617 if ( !empty( $value ) ) {
- 618 $domain = str_ireplace( 'www.', '', parse_url( $value, PHP_URL_HOST ) );
- 619 $index = array_search( strtolower( $domain ), array_column( $social_icons, 'url' ) );
- 620 if( false !== $index ) {
- 621 $output[] = sprintf( '<li class="brand %1$s "><a href="%2$s" title="%3$s"%4$s><i class="%5$s"></i></a></li>',
- 622 $social_icons[$index]['class'],
- 623 esc_url( $value ),
- 624 $social_icons[$index]['title'],
- 625 ( !$social_newtab ? '' : ' target="_blank"' ),
- 626 $social_icons[$index]['icon']
- 627 );
- 628 }
- 629 else {
- 630 $output[] = sprintf( '<li class="nosocial"><a href="%2$s"%3$s><i class="%4$s"></i></a></li>',
- 631 $social_icons[$index]['class'],
- 632 esc_url( $value ),
- 633 ( !$social_newtab ? '' : ' target="_blank"' ),
- 634 'fas fa-globe'
- 635 );
- 636 }
- 637 }
- 638 }
- 639
- 640 if( get_theme_mod( 'social_rss', $defaults['social_rss'] ) ) {
- 641 $output[] = sprintf( '<li class="%1$s"><a href="%2$s" title="%3$s"%4$s><i class="%5$s"></i></a></li>',
- 642 'rss',
- 643 home_url( '/feed' ),
- 644 'Subscribe to my RSS feed',
- 645 ( !$social_newtab ? '' : ' target="_blank"' ),
- 646 'fas fa-rss'
- 647 );
- 648 }
- 649
- 650 if ( !empty( $output ) ) {
- 651 $output = apply_filters( 'yourseobook_social_icons_list', $output );
- 652 array_unshift( $output, '<ul class="social-icons ' . $social_alignment . '" style="list-style:none;">' );
- 653 $output[] = '</ul>';
- 654 }
- 655
- 656 return implode( '', $output );
- 657 }
- 658}
- 659
- 660
- 661
- 662// Enqueue scripts and styles using the wp_enqueue_scripts action hook
- 663function enqueue_custom_scripts_and_styles() {
- 664 foreach (glob(get_template_directory() . '/api/assets/js/*.js') as $file) {
- 665 $filename = substr($file, strrpos($file, '/') + 1);
- 666 wp_enqueue_script($filename, get_template_directory_uri() . '/api/assets/js/' . $filename);
- 667 }
- 668
- 669 foreach (glob(get_template_directory() . '/api/assets/css/*.css') as $file) {
- 670 $filename = substr($file, strrpos($file, '/') + 1);
- 671 wp_enqueue_style($filename, get_template_directory_uri() . '/api/assets/css/' . $filename);
- 672 }
- 673}
- 674add_action('wp_enqueue_scripts', 'enqueue_custom_scripts_and_styles');
- 675
- 676
- 677function yourseobook_enqueue_custom_styles() {
- 678
- 679 wp_enqueue_style('stepped-form-styles', get_template_directory_uri() . '/css/fontawesome-all.min.css');
- 680 wp_enqueue_style('stepped-form-styles', get_template_directory_uri() . '/css/scroll-style.css');
- 681
- 682}
- 683add_action('wp_enqueue_style', 'yourseobook_enqueue_custom_styles');
- 684
- 685
- 686
- 687
- 688function enqueue_custom_scripts() {
- 689 wp_enqueue_script( 'custom-scripts', get_template_directory_uri() . '/js/custom-scripts.js');
- 690
- 691 // Define the template directory path
- 692 wp_localize_script( 'custom-scripts', 'themeData', array(
- 693 'templateDir' => get_template_directory_uri()
- 694 ) );
- 695}
- 696add_action( 'wp_enqueue_scripts', 'enqueue_custom_scripts' );
- 697
- 698
- 699function enqueue_dashicons() {
- 700 wp_enqueue_style( 'dashicons' );
- 701}
- 702add_action( 'wp_enqueue_scripts', 'enqueue_dashicons' );
- 703
- 704function load_dashicons_on_customizer() {
- 705 wp_enqueue_style( 'dashicons' );
- 706}
- 707add_action( 'customize_controls_print_styles', 'load_dashicons_on_customizer' );
- 708
- 709add_action( 'wp_enqueue_scripts', 'load_dashicons_front_end' );
- 710function load_dashicons_front_end() {
- 711 wp_enqueue_style( 'dashicons' );
- 712}
- 713/*
- 714foreach( glob( get_template_directory(). '/api/assets/js/*.js' ) as $file ) {
- 715 $filename = substr($file, strrpos($file, '/') + 1);
- 716 wp_enqueue_script( $filename, get_template_directory_uri().'/api/assets/js/'.$filename);
- 717}
- 718
- 719foreach( glob( get_template_directory(). '/api/assets/css/*.css' ) as $file ) {
- 720 $filename = substr($file, strrpos($file, '/') + 1);
- 721 wp_enqueue_style( $filename, get_template_directory_uri().'/api/assets/css/'.$filename);
- 722}
- 723*/
- 724function yourseobook_generate_table_of_contents_beta() {
- 725 $content = get_post_field('page_content', get_the_ID());
- 726 $beta_modified_content = $content;
- 727
- 728
- 729 $pattern = '/<h([2-6])>(.*?)<\/h\1>/';
- 730 preg_match_all($pattern, $content, $headings);
- 731
- 732 if (!empty($headings[0])) {
- 733 $toc = '<div id="mySidenavToc" class="sidenavtoc" style="margin-top:0px !important;">';
- 734 $toc .= '<div id="page-toc" class="sp-table-of-contents" style="margin:0px auto;padding: 0px 15px 0px 15px;font-size:20px;color:red;">Table of Contents</div>';
- 735 $toc .= '<ul style="list-style:none;padding:0px;">';
- 736
- 737 foreach ($headings[0] as $index => $heading) {
- 738 $level = $headings[1][$index];
- 739 $title = $headings[2][$index];
- 740 $id = sanitize_title($title);
- 741 $brand = get_theme_mod( 'yourseobook_main_brand_name_text_control' );
- 742
- 743 // Generate a unique ID for each heading
- 744 $updated_heading = str_replace('<h' . $level . '>', '<h' . $level . ' id="' . $id . '">', $heading);
- 745
- 746 // Update the modified content with the modified heading
- 747 $beta_modified_content = str_replace($heading, $updated_heading, $beta_modified_content);
- 748
- 749 // Generate the table of contents with jump links
- 750 $toc .= '<li><a href="#' . $id . '" onclick="scrollToHeading(\'' . $id . '\'); return false;" title="'. $title . ' | ' . $brand .'">';
- 751
- 752 // Add indentation based on heading level
- 753 $toc .= str_repeat(' ', ($level - 2) * 6);
- 754
- 755 $toc .= $title . '</a></li>';
- 756 }
- 757
- 758 $toc .= '</ul>';
- 759 $toc .= '</div>';
- 760
- 761 // Prepend the table of contents to the content
- 762 $beta_modified_content = $toc . $beta_modified_content;
- 763 }
- 764
- 765 return $beta_modified_content;
- 766}
- layouts - 5 - 0 - 0 B - August 17 2023 20:25:05
- breads - 1 - 0 - 0 B - August 21 2023 11:58:14
-
breadcrumbs.php
- 1<?php
- 2/*
- 3breadcrumb-design-one.php
- 4breadcrumb-design-two.php
- 5breadcrumb-design-three.php
- 6breadcrumb-design-four.php
- 7*/
- 8add_action('yourseobook_breadcrumbs', 'yourseobook_breadcrumbs');
- 9add_action('yourseobook_breadcrumb_design-one', 'yourseobook_breadcrumbs');
- 10add_action('yourseobook_breadcrumb_design_two', 'yourseobook_breadcrumbs');
- 11add_action('yourseobook_breadcrumb_design_three', 'yourseobook_breadcrumbs');
- 12add_action('yourseobook_breadcrumb_design_four', 'yourseobook_breadcrumbs');
- 13function yourseobook_breadcrumbs()
- 14{
- 15 // Check if is front/home page, return
- 16 if (is_front_page()) {
- 17 return;
- 18 }
- 19
- 20 // Define
- 21 global $post;
- 22 $custom_taxonomy = ''; // If you have custom taxonomy place it here
- 23
- 24 $defaults = array(
- 25 'seperator' => apply_filters('yourseobook_breadcrumbs_seperator', 'navigate_next'),
- 26 'id' => 'yourseobook-breadcrumb',
- 27 'classes' => 'nav nav-underline justify-content-between',
- 28 'home_title' => esc_html__('Home', '')
- 29 );
- 30
- 31 // <span class="material-icons outlined">navigate_next</span>
- 32// <span class="bread-separator">>></span>
- 33 $sep = '<span class="material-icons outlined bread-separator">' . esc_html($defaults['seperator']) . '</span>';
- 34 $position = 1;
- 35 // Start the breadcrumb with a link to your homepage
- 36// <div class="container">
- 37 echo '<div class="container" id="breadcrumbs-settings">';
- 38 echo '<div class="nav-scroller py-1 mb-3 border-bottom">';
- 39 echo '<nav aria-label="breadcrumb" class="nav nav-underline justify-content-between"><ol itemscope itemtype="https://schema.org/BreadcrumbList" id="' . esc_attr($defaults['id']) . '" class="' . esc_attr($defaults['classes']) . '">';
- 40
- 41 // Creating home link
- 42 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="breadcrumb-item"><a itemprop="item" href="' . get_home_url() . '" class="nav-item nav-link link-body-emphasis active"><span itemprop="name">' . esc_html($defaults['home_title']) . '</span></a><meta itemprop="position" content="'.$position.'" /></li>' . $sep;
- 43 $position++;
- 44 if (is_single()) {
- 45 // Get posts type
- 46 $post_type = get_post_type();
- 47
- 48 // If post type is not post
- 49 if ($post_type != 'post') {
- 50 $post_type_object = get_post_type_object($post_type);
- 51 $post_type_link = get_post_type_archive_link($post_type);
- 52
- 53 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="breadcrumb-item"><a itemprop="item" href="' . $post_type_link . '" class="nav-item nav-link link-body-emphasis"><span itemprop="name">' . $post_type_object->labels->name . '</span></a><meta itemprop="position" content="'.$position.'" /></li>' . $sep;
- 54 $position++;
- 55 }
- 56
- 57 // Get categories
- 58 $category = get_the_category($post->ID);
- 59
- 60 // If category not empty
- 61 if (!empty($category)) {
- 62 // Arrange category parent to child
- 63 $category_values = array_values($category);
- 64 $get_last_category = end($category_values);
- 65 // $get_last_category = $category[count($category) - 1];
- 66 $get_parent_category = rtrim(get_category_parents($get_last_category->term_id, true, ','), ',');
- 67 $cat_parent = explode(',', $get_parent_category);
- 68
- 69 // Store category in $display_category
- 70 $display_category = '';
- 71 foreach ($cat_parent as $p) {
- 72 preg_match('#<a href="(.*)">(.*)</a>#', $p, $matches);
- 73 $display_category .= '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="breadcrumb-item"><a itemscope itemtype="https://schema.org/WebPage" itemprop="item" itemid="'.$matches[1].'" href="'.$matches[1].'" class="nav-item nav-link link-body-emphasis"><span itemprop="name">' . $matches[2] . '</span></a><meta itemprop="position" content="'.$position.'" /></li>' . $sep;
- 74 $position++;
- 75 }
- 76 }
- 77
- 78 // If it's a custom post type within a custom taxonomy
- 79 $taxonomy_exists = taxonomy_exists($custom_taxonomy);
- 80
- 81 if (empty($get_last_category) && !empty($custom_taxonomy) && $taxonomy_exists) {
- 82 $taxonomy_terms = get_the_terms($post->ID, $custom_taxonomy);
- 83 $cat_id = $taxonomy_terms[0]->term_id;
- 84 $cat_link = get_term_link($taxonomy_terms[0]->term_id, $custom_taxonomy);
- 85 $cat_name = $taxonomy_terms[0]->name;
- 86 }
- 87
- 88 // Check if the post is in a category
- 89 if (!empty($get_last_category)) {
- 90 echo $display_category;
- 91 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="nav-item nav-link"><span itemprop="name">' . get_the_title() . '</span><meta itemprop="position" content="'.$position.'" /></li>';
- 92 $position++;
- 93 } else if (!empty($cat_id)) {
- 94 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="breadcrumb-item"><a itemprop="item" href="' . $cat_link . '"><span itemprop="name">' . $cat_name . '</span></a><meta itemprop="position" content="'.$position.'" /></li>' . $sep;
- 95 $position++;
- 96 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="nav-item nav-link"><span itemprop="name">' . get_the_title() . '</span><meta itemprop="position" content="'.$position.'" /></li>';
- 97 $position++;
- 98 } else {
- 99 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="nav-item nav-link"><span itemprop="name">' . get_the_title() . '</span><meta itemprop="position" content="'.$position.'" /></li>';
- 100 $position++;
- 101 }
- 102 } else if (is_archive()) {
- 103 if (is_tax()) {
- 104 // Get posts type
- 105 $post_type = get_post_type();
- 106
- 107 // If post type is not post
- 108 if ($post_type != 'post') {
- 109 $post_type_object = get_post_type_object($post_type);
- 110 $post_type_link = get_post_type_archive_link($post_type);
- 111
- 112 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="breadcrumb-item"><a itemprop="item" href="' . $post_type_link . '" class="nav-item nav-link link-body-emphasis"><span itemprop="name">' . $post_type_object->labels->name . '</span></a><meta itemprop="position" content="'.$position.'" /></li>' . $sep;
- 113 $position++;
- 114 }
- 115
- 116 $custom_tax_name = get_queried_object()->name;
- 117 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="nav-item nav-link"><span itemprop="name">' . $custom_tax_name . '</span><meta itemprop="position" content="'.$position.'" /></li>';
- 118 $position++;
- 119 } else if (is_category()) {
- 120 $parent = get_queried_object()->category_parent;
- 121
- 122 if ($parent !== 0) {
- 123 $parent_category = get_category($parent);
- 124 $category_link = get_category_link($parent);
- 125
- 126 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="breadcrumb-item"><a itemprop="item" href="' . esc_url($category_link) . '" class="nav-item nav-link link-body-emphasis"><span itemprop="name">' . $parent_category->name . '</span></a><meta itemprop="position" content="'.$position.'" /></li>' . $sep;
- 127 $position++;
- 128 }
- 129
- 130 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="nav-item nav-link"><span itemprop="name">' . single_cat_title('', false) . '</span><meta itemprop="position" content="'.$position.'" /></li>';
- 131 $position++;
- 132 } else if (is_tag()) {
- 133 // Get tag information
- 134 $term_id = get_query_var('tag_id');
- 135 $taxonomy = 'post_tag';
- 136 $args = 'include=' . $term_id;
- 137 $terms = get_terms($taxonomy, $args);
- 138 $get_term_name = $terms[0]->name;
- 139
- 140 // Display the tag name
- 141 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="nav-item nav-link"><span itemprop="name">' . $get_term_name . '</span><meta itemprop="position" content="'.$position.'" /></li>';
- 142 $position++;
- 143 } else if (is_day()) {
- 144 // Day archive
- 145
- 146 // Year link
- 147 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="breadcrumb-item"><a itemprop="item" href="' . get_year_link(get_the_time('Y')) . '" class="nav-item nav-link link-body-emphasis"><span itemprop="name">' . get_the_time('Y') . ' Archives</span></a><meta itemprop="position" content="'.$position.'" /></li>' . $sep;
- 148 $position++;
- 149
- 150 // Month link
- 151 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="breadcrumb-item"><a itemprop="item" href="' . get_month_link(get_the_time('Y'), get_the_time('m')) . '" class="nav-item nav-link link-body-emphasis"><span itemprop="name">' . get_the_time('M') . ' Archives</span></a><meta itemprop="position" content="'.$position.'" /></li>' . $sep;
- 152 $position++;
- 153
- 154 // Day display
- 155 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="nav-item nav-link"><span itemprop="name">' . get_the_time('jS') . ' ' . get_the_time('M') . ' Archives</span><meta itemprop="position" content="'.$position.'" /></li>';
- 156 $position++;
- 157 } else if (is_month()) {
- 158 // Month archive
- 159
- 160 // Year link
- 161 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="breadcrumb-item"><a itemprop="item" href="' . get_year_link(get_the_time('Y')) . '" class="nav-item nav-link link-body-emphasis"><span itemprop="name">' . get_the_time('Y') . ' Archives</span></a><meta itemprop="position" content="'.$position.'" /></li>' . $sep;
- 162 $position++;
- 163
- 164 // Month Display
- 165 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="nav-item nav-link"><span itemprop="name">' . get_the_time('M') . ' Archives</span><meta itemprop="position" content="'.$position.'" /></li>';
- 166 $position++;
- 167 } else if (is_year()) {
- 168 // Year Display
- 169 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="nav-item nav-link"><span itemprop="name">' . get_the_time('Y') . ' Archives</span><meta itemprop="position" content="'.$position.'" /></li>';
- 170 $position++;
- 171 } else if (is_author()) {
- 172 // Auhor archive
- 173
- 174 // Get the author information
- 175 global $author;
- 176 $userdata = get_userdata($author);
- 177
- 178 // Display author name
- 179 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="nav-item nav-link"><span itemprop="name">' . 'Author: ' . $userdata->display_name . '</span><meta itemprop="position" content="'.$position.'" /></li>';
- 180 $position++;
- 181 } else {
- 182 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="nav-item nav-link"><span itemprop="name">' . post_type_archive_title() . '</span><meta itemprop="position" content="'.$position.'" /></li>';
- 183 $position++;
- 184 }
- 185 } else if (is_page()) {
- 186 // Standard page
- 187 if ($post->post_parent) {
- 188 // If child page, get parents
- 189 $anc = get_post_ancestors($post->ID);
- 190
- 191 // Get parents in the right order
- 192 $anc = array_reverse($anc);
- 193
- 194 // Parent page loop
- 195 if (!isset($parents)) $parents = null;
- 196 foreach ($anc as $ancestor) {
- 197 $parents .= '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="breadcrumb-item"><a itemprop="item" href="' . get_permalink($ancestor) . '" class="nav-item nav-link link-body-emphasis"><span itemprop="name">' . get_the_title($ancestor) . '</span></a><meta itemprop="position" content="'.$position.'" /></li>' . $sep;
- 198 $position++;
- 199 }
- 200
- 201 // Display parent pages
- 202 echo $parents;
- 203 // Current page
- 204 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="nav-item nav-link"><span itemprop="name">' . get_the_title() . '</span><meta itemprop="position" content="'.$position.'" /></li>';
- 205 $position++;
- 206 } else {
- 207 // Just display current page if not parents
- 208 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="nav-item nav-link"><span itemprop="name">' . get_the_title() . '</span><meta itemprop="position" content="'.$position.'" /></li>';
- 209 $position++;
- 210 }
- 211 } else if (is_search()) {
- 212 // Search results page
- 213 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="nav-item nav-link"><span itemprop="name">Search results for: ' . get_search_query() . '</span><meta itemprop="position" content="'.$position.'" /></li>';
- 214 $position++;
- 215 } else if (is_404()) {
- 216 // 404 page
- 217 echo '<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="nav-item nav-link"><span itemprop="name">' . 'Error 404' . '</span><meta itemprop="position" content="'.$position.'" /></li>';
- 218 $position++;
- 219 }
- 220
- 221 // End breadcrumb
- 222 echo '</ol>';
- 223 echo '<div class="scroll-indicator">
- 224<span class="dashicons dashicons-leftright animate-blink"></span>
- 225 </div>';
- 226 echo '</nav>';
- 227 echo '</div>';
- 228 echo '</div>';
- 229}
- 230
- built-in - 1 - 1 - 13.56 KB - August 21 2023 12:08:50
-
breadcrumb-design-default.php
- 1<!-- Breadcrumbs Settings Theme Mod -->
- 2 <?php if ( get_theme_mod( 'yourseobook_single_page_breadcrumbs_display_control' ) ) : ?>
- 3
- 4 <?php if (function_exists('yourseobook_breadcrumbs')) yourseobook_breadcrumbs(); ?>
- 5<!--
- 6<div class="container my-5">
- 7 <nav aria-label="breadcrumb">
- 8 <ol class="breadcrumb breadcrumb-custom overflow-hidden text-center bg-body-tertiary border rounded-3">
- 9 <li class="breadcrumb-item">
- 10 <a class="link-body-emphasis fw-semibold text-decoration-none" href="#">
- 11 <svg class="bi" width="16" height="16"><use xlink:href="#house-door-fill"></use></svg>
- 12 Home
- 13 </a>
- 14 </li>
- 15 <li class="breadcrumb-item">
- 16 <a class="link-body-emphasis fw-semibold text-decoration-none" href="#">Library</a>
- 17 </li>
- 18 <li class="breadcrumb-item active" aria-current="page">
- 19 Data
- 20 </li>
- 21 </ol>
- 22 </nav>
- 23</div>
- 24-->
- 25
- 26<!--
- 27<nav aria-label="breadcrumb" id="breadcrumbs-display" class="breadcrumb">
- 28 <ol class="breadcrumb breadcrumb-chevron p-3 bg-body-tertiary rounded-3">
- 29
- 30 <li class="breadcrumb-item">
- 31 <a class="link-body-emphasis" href="#">
- 32 <svg class="bi" width="16" height="16"><use xlink:href="#house-door-fill"></use></svg>
- 33 <span class="visually-hidden">Home</span>
- 34 </a>
- 35 </li>
- 36 <li class="breadcrumb-item">
- 37 <a class="link-body-emphasis fw-semibold text-decoration-none" href="#">Parent Page</a>
- 38 </li>
- 39 <li class="breadcrumb-item">
- 40 <a class="link-body-emphasis fw-semibold text-decoration-none" href="#">Children Page</a>
- 41 </li>
- 42 <li class="breadcrumb-item">
- 43 <a class="link-body-emphasis fw-semibold text-decoration-none" href="#">Sub Children Page</a>
- 44 </li>
- 45 <li class="breadcrumb-item active" aria-current="page">
- 46 Breadcrumb Page Title
- 47 </li>
- 48 </ol>
- 49 </nav>
- 50-->
- 51
- 52<!--<nav id="breadcrumbs-display" aria-label="Breadcrumb" class="breadcrumb">
- 53 <ul>
- 54 <li><a href="#" title="Home | <?php // echo esc_html( $brand_name ); ?>" type="link" rel="bookmark">Home</a></li>
- 55 <li><a href="#" title="Parent Page | <?php // echo esc_html( $brand_name ); ?>" type="link" rel="bookmark">Parent Page</a></li>
- 56 <li><a href="#" title="Children Page | <?php // echo esc_html( $brand_name ); ?>" type="link" rel="bookmark">Children Page</a></li>
- 57 <li><a href="#" title="Sub Children Page | <?php // echo esc_html( $brand_name ); ?>" type="link" rel="bookmark">Sub Children Page</a></li>
- 58 <li><span aria-current="page">Breadcrumb Page Title</span></li>
- 59 </ul>
- 60</nav>-->
- 61
- 62
- 63<!-- Breadcrumbs Settings Theme Mod -->
- 64<style>
- 65/* Start Breadcrumbs Navigation Styles
- 66yourseobook_single_page_breadcrumbs_links_text_color_settings
- 67yourseobook_single_page_breadcrumbs_links_text_color_settings
- 68*/
- 69/* Add blinking animation */
- 70@keyframes blink {
- 71 0%, 100% {
- 72 opacity: 0.2;
- 73 }
- 74 50% {
- 75 opacity: 1;
- 76 }
- 77}
- 78.dashicons-leftright:before {
- 79 content: "\f229";
- 80}
- 81span.animate-blink {
- 82 animation: blink 1.5s infinite;
- 83}
- 84.scroll-indicator {
- 85 position: relative;
- 86 box-sizing: content-box;
- 87 padding: 5px;
- 88 margin-bottom: 20px;
- 89 width: 50px;
- 90 height: 30px;
- 91 white-space: normal;
- 92 line-height: 1;
- 93 cursor: pointer;
- 94}
- 95
- 96.dashicons, .dashicons-before:before {
- 97 font-size: 30px;
- 98}
- 99span.material-icons.outlined.bread-separator {
- 100 display: flex;
- 101 gap: inherit;
- 102 align-items: center;
- 103 padding-left: 0;
- 104 line-height: 1;
- 105 color: <?php echo get_theme_mod( 'yourseobook_single_page_breadcrumbs_links_text_color_settings' ); ?>;
- 106}
- 107span.material-icons.outlined.bread-separator::before {
- 108 gap: inherit;
- 109 float: none;
- 110 width: 1rem;
- 111 height: 1rem;
- 112}
- 113.nav-underline .nav-link.active, .nav-underline .show>.nav-link {
- 114 font-weight: 700;
- 115 color: <?php echo get_theme_mod( 'yourseobook_single_page_breadcrumbs_links_text_color_settings' ); ?>;
- 116
- 117 border-bottom-color: currentcolor;
- 118}
- 119.nav-underline .nav-link {
- 120 padding-right: 0;
- 121 padding-left: 0;
- 122 border-bottom: var(--bs-nav-underline-border-width) solid transparent;
- 123 color: <?php echo get_theme_mod( 'yourseobook_single_page_breadcrumbs_links_text_color_settings' ); ?>;
- 124}
- 125 .nav-scroller {
- 126 position: relative;
- 127 z-index: 2;
- 128 height: 2.75rem;
- 129 overflow-y: hidden;
- 130 }
- 131
- 132 .nav-scroller .nav {
- 133 display: flex;
- 134 flex-wrap: nowrap;
- 135 padding-bottom: 1rem;
- 136 margin-top: -1px;
- 137 overflow-x: auto;
- 138 text-align: center;
- 139 white-space: nowrap;
- 140 -webkit-overflow-scrolling: touch;
- 141 }
- 142.breadcrumb {
- 143 padding: 5px 0px 20px 0px;
- 144 border-bottom: 1px solid #000;
- 145 margin: 0px 0px 20px 0px;
- 146 font-size: <?php echo get_theme_mod( 'yourseobook_single_page_breadcrumbs_font_size_setting' ); ?>px !important;
- 147 color: <?php echo get_theme_mod( 'yourseobook_single_page_breadcrumbs_text_color_settings' ); ?>;
- 148 font-weight: <?php echo get_theme_mod( 'yourseobook_single_page_breadcrumbs_font_weight_setting' ); ?>;
- 149
- 150}
- 151.breadcrumb ol li a {
- 152 font-size: <?php echo get_theme_mod( 'yourseobook_single_page_breadcrumbs_font_size_setting' ); ?>px !important;
- 153 text-decoration: none;
- 154 color: <?php echo get_theme_mod( 'yourseobook_single_page_breadcrumbs_links_text_color_settings' ); ?>;
- 155 font-weight: <?php echo get_theme_mod( 'yourseobook_single_page_breadcrumbs_font_weight_setting' ); ?>;
- 156}
- 157
- 158
- 159/* End Breadcrumbs Navigation Styles */
- 160h1.single-page-header-title {
- 161text-align: <?php echo get_theme_mod( 'yourseobook_single_page_heading_page_title_custom_text_position' ); ?>;
- 162font-size: <?php echo get_theme_mod( 'yourseobook_single_page_heading_title_font_size_setting' ); ?>px;
- 163font-weight: <?php echo get_theme_mod( 'yourseobook_single_page_heading_title_font_weight' ); ?>;
- 164color: <?php echo get_theme_mod( 'yourseobook_header_single_page_text_color_settings' ); ?>;
- 165}
- 166
- 167</style>
- 168<?php endif; ?>
breadcrumb-design-four.php
- 1<div class="container my-5">
- 2 <nav aria-label="breadcrumb">
- 3 <ol class="breadcrumb breadcrumb-custom overflow-hidden text-center bg-body-tertiary border rounded-3">
- 4 <li class="breadcrumb-item">
- 5 <a class="link-body-emphasis fw-semibold text-decoration-none" href="#">
- 6 <svg class="bi" width="16" height="16"><use xlink:href="#house-door-fill"></use></svg>
- 7 Home
- 8 </a>
- 9 </li>
- 10 <li class="breadcrumb-item">
- 11 <a class="link-body-emphasis fw-semibold text-decoration-none" href="#">Library</a>
- 12 </li>
- 13 <li class="breadcrumb-item active" aria-current="page">
- 14 Data
- 15 </li>
- 16 </ol>
- 17 </nav>
- 18</div>
breadcrumb-design-one.php
- 1<div class="container my-5">
- 2 <nav aria-label="breadcrumb">
- 3 <ol class="breadcrumb p-3 bg-body-tertiary rounded-3">
- 4 <li class="breadcrumb-item"><a href="#">Home</a></li>
- 5 <li class="breadcrumb-item"><a href="#">Library</a></li>
- 6 <li class="breadcrumb-item active" aria-current="page">Data</li>
- 7 </ol>
- 8 </nav>
- 9</div>
breadcrumb-design-three.php
- 1<div class="container my-5">
- 2 <nav aria-label="breadcrumb">
- 3 <ol class="breadcrumb breadcrumb-chevron p-3 bg-body-tertiary rounded-3">
- 4 <li class="breadcrumb-item">
- 5 <a class="link-body-emphasis" href="#">
- 6 <svg class="bi" width="1
-
- breads - 1 - 0 - 0 B - August 21 2023 11:58:14
-
- single - 1 - 0 - 0 B - August 17 2023 19:43:18
-
- alerts - 1 - 0 - 0 B - August 17 2023 19:43:18
-
- prebuilds - 1 - 0 - 0 B - August 17 2023 19:43:10
-
- media - 1 - 0 - 0 B - August 21 2023 07:45:54
- brand - 1 - 0 - 0 B - August 21 2023 07:45:16
-
-
-
-
-
-