This file contains 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 Container from "components/ui/Container" | |
import VideoCard from "components/VideoCard" | |
import fetchData from "helpers/fetchData" | |
import { useEffect, useState, Fragment, useRef } from "react" | |
import { useInfiniteQuery } from "react-query" | |
import useIntersectionObserver from "../hooks/useIntersectionObserver" | |
import Select from "react-select" | |
import { useUIDSeed } from "react-uid" | |
import { useRouter } from "next/router" | |
import Seo from "components/Seo" |
This file contains 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
<?php | |
/** | |
* Plugin Name: Custom API | |
* Plugin URI: http://chrushingit.com | |
* Description: Crushing it! | |
* Version: 1.0 | |
* Author: Art Vandelay | |
* Author URI: http://watch-learn.com | |
*/ |
This file contains 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
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="<?php echo get_template_directory_uri() ?>/style.css"> | |
<title>Watch Learn Theme</title> | |
</head> | |
<body> | |
<h1>Hello World</h1> |
This file contains 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 Link from "next/link"; | |
import { useRouter } from "next/router"; | |
function Page({ content }) { | |
const router = useRouter(); | |
console.log(router); | |
return ( | |
<div className="container"> |
This file contains 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
// Check the video for more info: https://www.youtube.com/watch?v=Nrg7BFOWwuc | |
import React, {useEffect, useState} from 'react'; | |
import Papa from "papaparse"; | |
const AddMovies = () => { | |
const [moviesList, setMoviesList] = useState([]) | |
const handleSubmit = (e) => { |
This file contains 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
// This is the code used in video "How To Add Svelte To Your Site?" | |
// Check out the video here: https://www.youtube.com/watch?v=ZL7mKFQHSAY | |
const gulp = require('gulp') | |
const sass = require('gulp-sass') | |
const browsersync = require('browser-sync').create() | |
const webpack = require('webpack') | |
const webpackStream = require('webpack-stream') |
This file contains 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
RewriteEngine On | |
RewriteRule ^$ http://127.0.0.1:8080/ [P,L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ http://127.0.0.1:1337/$1 [P,L] |
This file contains 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
<?php | |
/*Just add this anywhere in yopur template where you want language switcher to appear. | |
This switcher just shows the flags. But you can make it work anyway you like */ | |
?> | |
<ul class="lang-switcher"> | |
<?php | |
$languages = icl_get_languages('skip_missing=N&orderby=KEY&order=DIR&link_empty_to=str'); | |
foreach($languages as $language){ | |
$flag = $language['country_flag_url']; |
This file contains 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
<?php | |
/** | |
* Plugin Name: Custom API | |
* Plugin URI: http://chrushingit.com | |
* Description: Crushing it! | |
* Version: 1.0 | |
* Author: Art Vandelay | |
* Author URI: http://watch-learn.com | |
*/ |
This file contains 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
<?php | |
$newFromDate = Mage::getModel('catalog/product')->load($_product->getID())->getNewsFromDate(); | |
$newToDate = Mage::getModel('catalog/product')->load($_product->getID())->getNewsToDate(); | |
$now = Mage::app()->getLocale()->date()->toString(Varien_Date::DATETIME_INTERNAL_FORMAT); | |
if(($newFromDate < $now && $newFromDate != NULL) && ($newToDate > $now || $newToDate == "")){ | |
echo "New Product"; | |
} | |
?> |
NewerOlder