This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios, { AxiosRequestConfig } from 'axios'; | |
import { useEffect, useState } from 'react'; | |
axios.defaults.baseURL = `${process.env.NEXT_PUBLIC_SITE_URL}/api/${process.env.NEXT_PUBLIC_API_VERSION}`; | |
export const useAxiosFetch = (params: AxiosRequestConfig<any>) => { | |
const [data, setData] = useState<any>(null); | |
const [error, setError] = useState<any>(null); | |
const [loading, setLoading] = useState<boolean>(true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Enqueue Google Tag Manager script | |
* | |
*/ | |
/* Add Google Tag Manager javascript code as close to | |
the opening <head> tag as possible | |
=====================================================*/ | |
define("GTM_TAG","GTM-XXXXXX", false); // Replace with GTM tracking ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Enqueue Google Analytics 4 script | |
* | |
*/ | |
/* Add Google Analytics 4 Site Tag as close to | |
the opening <head> tag as possible | |
=====================================================*/ | |
define("GA4","G-XXXXXX", false); // Replace GA4 ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- | |
HTML Examples | |
--> | |
<html> | |
<head> | |
<link rel="stylesheet" href="https://rawgit.com/Gorea235/4844ce9e603d34c82b2d1253b1a71799/raw/remote-image-slider.css"> | |
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" | |
crossorigin="anonymous"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Callback function of the shortcode. | |
*/ | |
function ot_brand_products_cb($atts, $content){ | |
/** | |
* Setting variable value none. | |
*/ | |
$content = null; |
NewerOlder