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
| @echo off | |
| setlocal enabledelayedexpansion | |
| :: Acest fisier genereaza un director pe baza promptului | |
| :: De ex: mydomain.loc in directorul curent | |
| :: Genereaza informatiile pentru vhost si host in Windows, fisierele .htaccess vhost.conf index.php | |
| :: Genereaza certificate ssl in mydomain.loc/ssl/ (daca true) | |
| :: =========================== | |
| :: START DOMAIN |
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
| # ========== https + www ========== | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{HTTPS} off [OR] | |
| RewriteCond %{HTTP_HOST} !^www\. [NC] | |
| RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
| </IfModule> | |
| # ========== https + www ========== |
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
| @echo off | |
| setlocal enabledelayedexpansion | |
| :: Acest fisier genereaza un director pe baza promptului | |
| :: De ex: mydomain.loc in directorul curent | |
| :: Genereaza informatiile pentru vhost si host in Windows, fisierele .httaccess vhost.conf index.php | |
| :: Genereaza certificate ssl in mydomain.loc/ssl/ | |
| :: Variabilă pentru generarea certificatelor | |
| :: Daca e true, se genereaza certificatele cu mkcert |
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
| # =========================== | |
| # localhost default | |
| <VirtualHost *:80> | |
| DocumentRoot "C:/xampp/htdocs" | |
| ServerName localhost | |
| </VirtualHost> | |
| # 127.0.0.1 localhost |
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
| @echo off | |
| setlocal enableDelayedExpansion | |
| :: Setează variabilele | |
| set DOMAIN=mrk.local | |
| set WWW_DOMAIN=www.%DOMAIN% | |
| set MAIL_SUBDOMAIN=mail.%DOMAIN% | |
| set WWW_MAIL_SUBDOMAIN=www.mail.%DOMAIN% | |
| set COMPANY_NAME=My Company | |
| set COUNTRY=RO |
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
| @echo off | |
| setlocal enableDelayedExpansion | |
| :: Setează variabilele | |
| set DOMAIN=mrk.local | |
| set WWW_DOMAIN=www.%DOMAIN% | |
| set COMPANY_NAME=My Company | |
| set COUNTRY=RO | |
| set STATE=Some-State | |
| set LOCALITY=Some-City |
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
| @echo off | |
| setlocal enabledelayedexpansion | |
| :: Setare directoare | |
| :: Directorul de output este in directorul unde se afla fisierul bat | |
| :: De ex: C:\xampp\apache\cert-generator\domeniu.loc\ | |
| :: Se genereaza doua fisiere: server.key si server.crt | |
| set CERT_DIR=%~dp0output2 | |
| set OPENSSL_BIN=C:\xampp\apache\bin\openssl.exe | |
| set OPENSSL_CNF=C:\xampp\apache\conf\openssl.cnf |
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
| <?php | |
| /* | |
| Lazy Loading Responsive Images in WordPress Without a Plugin | |
| https://adambalee.com/lazy-loading-responsive-images-in-wordpress-without-a-plugin/ | |
| https://developer.wordpress.org/reference/functions/wp_get_attachment_image/ | |
| */ | |
| // Step 1 |
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
| // Must be in 'after_setup_theme' | |
| // add_action( 'after_setup_theme', 'image_size_function' ); | |
| // Post thumbnail and Images size | |
| add_theme_support( 'post-thumbnails' ); | |
| // set_post_thumbnail_size( 500, 1000 ); | |
| add_image_size( 'gallery-thumb', 400, 800, false ); // Imagine folosita in galerie ca thumb | |
| add_image_size( 'gallery-big', 1200, 1800, false ); // Imagine folosita in galerie ca thumb | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder