Server : LiteSpeed System : Linux in-mum-web983.main-hosting.eu 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : u520472703 ( 520472703) PHP Version : 8.2.29 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail Directory : /home/u520472703/domains/gadhiaassociate.com/public_html/ |
<?php
include "admin/includes/config.db.php";
include "admin/includes/helper.php";
if (!isset($_GET['id'])) {
header("location:index.php");
}
$id = $_GET['id'];
$value = getById('gallery', $id);
$categories = getBycId("category", $value["c_id"]);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>
<?= $value['title'] ?> | Gadhia Associate
</title>
<!-- ---------------------------- Favicon Icon ----------------------------- -->
<link rel="shortcut icon" href="/assets/img/favicon.ico" type="image/x-icon">
<!-- ----------------------- AOS Library CDN Sources ----------------------- -->
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<!-- ------------------------ Bootstrap CDN Sources ------------------------ -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- ---------------------------- External CSS ----------------------------- -->
<link rel="stylesheet" href="/assets/css/styles.css" type="text/css" />
<link rel="stylesheet" href="/assets/css/custom.css" type="text/css" />
<!-- ---------------------------- Font Awesome ----------------------------- -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- ----------------------------- Body Fonts ------------------------------ -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.css" />
<script src="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.js"></script>
<!-- ---------------------------- SEO Meta Tags ---------------------------- -->
<!-- -------------------------- Primary Meta Tags -------------------------- -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="title" content="Article <?= $value['title'] ?> by Gadhia Associate" />
<meta name="description"
content="Read our Article, <?= $value['title'] ?>. It might will help you to impact the real world." />
<!-- ------------------------ Open Graph / Facebook ------------------------ -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://<?php echo $_SERVER['HTTP_HOST']; ?>/article.php?id=<?= $id ?>" />
<meta property="og:title" content="Article '<?= $value['title'] ?>' by Gadhia Associate" />
<meta property="og:description"
content="Read our Article, <?= $value['title'] ?>. It might will help you to impact the real world." />
<meta property="og:image" content="/assets/img/<?php foreach (explode(",", $value['imgSrc']) as $img) {
echo $img;
break;
} ?>" />
<!-- ------------------------------- Twitter ------------------------------- -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://<?php echo $_SERVER['HTTP_HOST']; ?>/article.php?id=<?= $id ?>" />
<meta property="twitter:title" content="Article '<?= $value['title'] ?>' by Gadhia Associate" />
<meta property="twitter:description"
content="Read our Article, <?= $value['title'] ?>. It might will help you to impact the real world." />
<meta property="twitter:image" content="/assets/img/<?php foreach (explode(",", $value['imgSrc']) as $img) {
echo $img;
break;
} ?>" />
<!-- ---------------------------- Meta Keywords ---------------------------- -->
<meta name="keywords"
content="<?= ucfirst($value['title']) ?>, <?= ucfirst(strtolower($categories['name'])) ?>, Gadhia Associate, Advocate, Lawyer, Best Advice, Junagadh, Akshit R Gadhia, Rakesh P Gadhia, Akshit, Rakesh, Gadhia, Business Advice, Advocate in Junagadh, Practice advice, Practice Advice to Impact the Real world, Business Advisory, K, V, KV, Associate, Association, 5 Star Advocate, Law, Firm, Business Help, Mahavir Vinay Mandir, Law degree, Alpha High School, Institute of ICSI" />
<style>
.content {
color: var(---bs-primary-light);
}
.a2a_full_footer {
display: none;
}
.share {
margin: 0 1px;
}
/*
.skiptranslate {
display: none !important;
position: fixed;
top: -100px;
left: -100px;
}
#google_translate_element .skiptranslate {
display: block !important;
} */
.goog-logo-link,
.goog-te-gadget span {
display: none !important;
}
.goog-te-gadget {
font-size: 0px !important;
}
.goog-te-combo {
font-family: 'Quantico';
border-radius: 5px;
border: 0;
color: #000;
padding: 10px 8px;
font-size: 15px;
outline: 0;
min-width: 130px;
margin-bottom: 15px;
border: 1px solid #999;
cursor: pointer;
}
.goog-te-combo option {
/* padding: 10px; */
font-family: Arial, sans-serif;
font-size: 16px;
color: #333;
background-color: #fff;
}
.goog-te-combo option:hover {
background-color: #f5f5f5;
}
body>.skiptranslate {
display: none;
}
body {
top: 0px !important;
}
.goog-te-banner-frame.skiptranslate,
.goog-te-balloon-frame {
display: none !important;
}
</style>
</head>
<body>
<article>
<div class="container">
<div class="my-3 d-flex align-items-center">
<a href="/blog.php" class="btn button text-nowrap" style="color: var(--bs-primary);">
<i class="fa fa-chevron-left me-2"></i> Back
</a>
|
<a href="/#blogs" class="btn button" style="color: var(--bs-primary);">
Home
</a>
>
<a href="/blog.php" class="btn button" style="color: var(--bs-primary);">
Blogs
</a>
>
<a class="btn button" style="color: var(--bs-primary);">
Article <?= $id ?> <!-- Maximum width 333px, Else Design will be little bit weird for Mobile -->
</a>
</div>
<div class="row">
<div class="col-12 col-md-4">
<div class="swiper gallary-img swiper_<?php echo $value["id"]; ?>">
<div class="swiper-wrapper">
<?php
foreach (explode(",", $value['imgSrc']) as $img) {
if ($img == "" || !file_exists("assets/img/" . $img)) {
$img = "404.jpg";
} ?>
<div class="swiper-slide"> <img class="img-fluid" src="/assets/img/<?= $img ?>" title="<?= $img ?>"
alt="<?= $img ?>"></div>
<?php } ?>
</div>
<div class="swiper-pagination"></div>
</div>
<script>
new Swiper('<?php echo '.swiper_' . $value["id"]; ?>', {
direction: 'horizontal',
loop: true,
pagination: {
el: '.swiper-pagination',
},
});
</script>
</div>
<div class="col-12 col-md-8 text-primary">
<div class="p-2">
<div class="d-flex mt-3 justify-content-between">
<p><b>Category:</b>
<a href="#related">
<?= ucfirst(strtolower($categories['name'])) ?>
</a>
</p>
<div class="services-card-description">
<?php echo explode(" ", $value["created_at"])[0]; ?>
</div>
</div>
<hr>
<h2 class="fw-bolder text-capitalize my-4">
<?= $value["title"]; ?>
</h2>
<div class="d-md-flex align-items-center justify-content-between ">
<!-- Translate Button -->
<div class="m-4 ">
<div class="d-flex d-block justify-content-center" id="google_translate_element"></div>
</div>
<!-- Share Buttons -->
<div class="m-4 d-flex d-block justify-content-center a2a_kit a2a_kit_size_32 a2a_default_style"
data-a2a-url="https://www.gadhiaassociate.com/article.php?id=<?= $value["id"] ?>"
data-a2a-title="Read our Article, <?= $value['title'] ?>. Written by Sunil Shiyani">
<a class="share a2a_dd" href="https://www.addtoany.com/share"></a>
<a class="share a2a_button_facebook"></a>
<a class="share a2a_button_whatsapp"></a>
<a class="share a2a_button_twitter"></a>
<a onclick="copyToClipboard()" class="share copy_link"><img style="width: 32px;"
src="https://ps.w.org/add-link-on-copied-text/assets/icon.svg"></a>
</div>
</div>
<script>
function copyToClipboard() {
var linkToCopy = "Article '<?= $value['title'] ?>' by Gadhia Associate - https://www.gadhiaassociate.com/article.php?id=<?= $value["id"] ?>"; // Replace with your specific link
var input = document.createElement("input");
input.setAttribute("value", linkToCopy);
document.body.appendChild(input);
input.select();
document.execCommand("copy");
document.body.removeChild(input);
alert("Link copied to clipboard");
}
var a2a_config = a2a_config || {};
a2a_config.onclick = 1;
</script>
<script async src="https://static.addtoany.com/menu/page.js"></script>
<!-- Share Buttons END -->
<hr>
<div class="content">
<?= $value["content"]; ?>
</div>
<hr>
<div class="d-flex mt-4 justify-content-between">
<?php
$lockPreElement = false;
$goForNext = false;
$allBlogs = getAll2("gallery");
foreach ($allBlogs as $blog) {
if ($goForNext) {
$nextPost = $blog['id'];
break;
}
if ($blog['id'] == $value['id']) {
$lockPreElement = true;
$goForNext = true;
}
if (!$lockPreElement) {
$previousPost = $blog['id'];
}
}
?>
<?php if (isset($previousPost)) { ?>
<a href="/article.php?id=<?= $previousPost ?>" class="btn button bg-secondary text-white px-3 py-2"
style="min-width:120px">« Previous</a>
<?php } ?>
<?php if (isset($nextPost)) { ?>
<a href="/article.php?id=<?= $nextPost ?>" class="btn button bg-secondary text-white px-3 py-2"
style="min-width:120px">Next »</a>
<?php } ?>
</div>
</div>
</div>
<!-- ---------------------------- Related Blogs ---------------------------- -->
<div class="col-12 text-primary">
<section id="related" data-aos="fade-bottom" data-aos-duration="1000">
<div class="d-flex flex-column align-items-center section-starting my-5">
<h3 class="m-3" title="Articles Related to <?php echo ucfirst(strtolower($categories['name'])); ?>">
Related <span class="bg-primary text-white py-1 px-2 rounded-3">Articles</span></h3>
<p class="tiny-description text-center">More about
<?php echo ucfirst(strtolower($categories['name'])); ?>
</p>
<div class="position-relative rounded-5 design-parent mb-3">
<div class="bg-primary position-absolute top-50 start-50 translate-middle rounded-5 design-child">
</div>
</div>
</div>
<div class="row">
<?php
$query = "select * from gallery where c_id = $value[c_id]";
$result = mysqli_query($conn, $query);
if ($result) {
foreach ($result as $key => $value) {
?>
<div class="col-6 col-md-3 p-0">
<div class="p-3">
<div class="swiper gallary-img swiper_<?php echo $value["id"]; ?>">
<div class="swiper-wrapper">
<?php
foreach (explode(",", $value['imgSrc']) as $img) {
if ($img == "" || !file_exists("assets/img/" . $img)) {
$img = "404.jpg";
}
?>
<a href="/article.php?id=<?= $value["id"]; ?>" class="swiper-slide">
<img class="img-fluid" src="/assets/img/<?= $img ?>">
<?php
if ($value['title']) {
?>
<div class="image-desc-card">
<div class="title fw-bolder">
<?= $value['title'] ?>
</div>
</div>
<?php
}
?>
</a>
<?php
}
?>
</div>
<div class="swiper-pagination"></div>
</div>
<script>
new Swiper('<?php echo '.swiper_' . $value["id"]; ?>', {
direction: 'horizontal',
loop: true,
pagination: {
el: '.swiper-pagination',
},
});
</script>
</div>
</div>
<?php
}
}
?>
</div>
</section>
</div>
</div>
</div>
</article>
<div class="mt-5">
<?php include("components/footer.php") ?>
</div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({ pageLanguage: 'en', includedLanguages: 'en,gu,hi' }, 'google_translate_element');
}
</script>
<script type="text/javascript">
// Wait until the DOM is fully loaded
document.addEventListener("DOMContentLoaded", function () {
// Function to hide the Google Translate tooltip
function hideTranslateTooltip() {
var tooltip = document.getElementById("goog-gt-tt");
if (tooltip) {
tooltip.style.display = "none"; // Hide the tooltip
}
}
// Run the hide function on page load
hideTranslateTooltip();
// Use MutationObserver to handle dynamic changes
var observer = new MutationObserver(function (mutations) {
mutations.forEach(function () {
hideTranslateTooltip(); // Check and hide the tooltip again
});
});
// Observe changes in the document body
observer.observe(document.body, {
childList: true,
subtree: true,
});
});
</script>
<script type="text/javascript"
src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<!-- ------------------------ AOS Animation Script ------------------------- -->
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.9.2/umd/popper.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.0/js/bootstrap.min.js"></script>
<script> AOS.init(); </script>
</body>
</html>