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
// Load DOM Basic usage | |
window.addEventListener('DOMContentLoaded', (event) => { | |
console.log('DOM fully loaded and parsed'); | |
}); | |
// Window Location | |
window.location.href // returns the href (URL) of the current page | |
window.location.hostname // returns the domain name of the web host |
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
<!-- BS4 --> | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<!-- Bootstrap CSS --> |
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 | |
/************ Global Variables and settings ************/ | |
// for external file to include WP environment | |
require( '../sitename-base/wp-load.php' ); | |
// Global Var | |
// https://codex.wordpress.org/Global_Variables |
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
http://jquery.com/ | |
// Inlude and Test if jQuery Work | |
http://learn.jquery.com/using-jquery-core/document-ready/ | |
http://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/ | |
3.x: | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | |
2.x: |
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
https://www.w3schools.com/jquery/jquery_ref_ajax.asp | |
Method Description | |
// jQuery | |
$.ajax() Performs an async AJAX request | |
$.ajaxPrefilter() Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax() | |
$.ajaxSetup() Sets the default values for future AJAX requests | |
$.ajaxTransport() Creates an object that handles the actual transmission of Ajax data | |
$.get() Loads data from a server using an AJAX HTTP GET request | |
$.getJSON() Loads JSON-encoded data from a server using a HTTP GET request | |
$.parseJSON() - ! Deprecated in version 3.0, use JSON.parse() instead, it's Vanilla JS. Takes a well-formed JSON string and returns the resulting JavaScript value |
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
----------------------- Must have/new projects ------------------------- | |
Check Email | |
Query Monitor | |
Show Current Template | |
Theme Check (nu mereu, doar sa verific thema dupa standard) | |
----------------------- Widgets ------------------------- | |
Widgets / General ( widget settings ) | |
- WooSidebar - widget config |
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 | |
PHP: Hypertext Preprocessor (PHP) | |
Server side programming language | |
// Code style | |
https://gist.github.com/jesseschalken/0f47a2b5a738ced9c845 | |
// TODO: de citit | |
https://www.codementor.io/@veenitchauhan/basics-of-naming-conventions-for-php-developers-eliexmew6 |
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
<!-- Util links --> | |
Font-awesome v.5: https://kit.fontawesome.com/a076d05399.js | |
Meta tags | |
<!-- For bootstrap --> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- To prevent Mobile Safari from automatically detecting phone numbers, add the following meta tag to the top of the page: --> | |
<meta name="format-detection" content="telephone=no"> |
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
/* Css Helper */ | |
/* Connect CSS */ | |
<link rel="stylesheet"href="style.css"> | |
<!-- Browser suffixes --> | |
Chrome -chrome- | |
Safari -webkit- | |
Mozilla -moz- |
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 | |
************ Debug, Debuging ************ | |
//Activate log files in wp-config.php | |
define( 'WP_DEBUG', true ); // Enabling WP_DEBUG will cause all PHP errors, notices and warnings to be displayed. | |
define( 'WP_DEBUG_LOG', true ); // Enable Debug logging to the /wp-content/debug.log file | |
define( 'WP_DEBUG_DISPLAY', true ); // Controls whether debug messages are shown inside the HTML of pages or not. | |
// use this | |
define( 'WP_DEBUG', true ); | |
define( 'WP_DEBUG_LOG', true ); |
OlderNewer