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
| ## BEGIN GZIP Compression ## | |
| <IfModule mod_deflate.c> | |
| AddOutputFilterByType DEFLATE text/plain | |
| AddOutputFilterByType DEFLATE text/html | |
| AddOutputFilterByType DEFLATE text/xml | |
| AddOutputFilterByType DEFLATE text/css | |
| AddOutputFilterByType DEFLATE application/xml | |
| AddOutputFilterByType DEFLATE application/xhtml+xml | |
| AddOutputFilterByType DEFLATE application/rss+xml | |
| AddOutputFilterByType DEFLATE application/javascript |
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
| // create pagintaion | |
| function display_pagination(total) { | |
| var pages = total / 8; | |
| var pagination_top = pages - 4; | |
| var dots = false; | |
| var pagination_html = '<nav aria-label="Blog Listing Navigation" class="col-md-10 col-md-offset-1"><ul class="pagination">'; | |
| pagination_html += '<li id="pagination-back" class="pagination-link arrow page-item" data-start="BACK" data-end="BACK"><span aria-label="Previous" class="arrow-nobg page-link"><span aria-hidden="true">«</span><span class="sr-only">Previous</span></span></li>'; | |
| var pagination_start = 0; | |
| var pagination_end = total < 8 ? total % 8 : 7; | |
| for(var i = 0; i < pages; i++) { |
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
| RewriteEngine On | |
| RewriteCond %{SERVER_PORT} 80 | |
| RewriteRule ^(.*)$ https://domain.com/$1 [R=301,L] |
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
| <!-- head includes begin ---> | |
| <link rel="apple-touch-icon" sizes="180x180" href="/wp-content/uploads/fbrfg/apple-touch-icon.png"> | |
| <link rel="icon" type="image/png" sizes="32x32" href="/wp-content/uploads/fbrfg/favicon-32x32.png"> | |
| <link rel="icon" type="image/png" sizes="16x16" href="/wp-content/uploads/fbrfg/favicon-16x16.png"> | |
| <link rel="shortcut icon" href="/wp-content/uploads/fbrfg/favicon.ico"> | |
| <!-- head includes end ---> |
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 | |
| /* Blog post page */ | |
| get_header(); | |
| $show_default_title = get_post_meta( get_the_ID(), '_et_pb_show_title', true ); | |
| $is_page_builder_used = et_pb_is_pagebuilder_used( get_the_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
| const urlNodes = document.querySelectorAll('.text'); // use '.line .text' if you want to only search site pages, not blog also | |
| for (let k = 0; k < urlNodes.length; k++) { | |
| const nodeObject = urlNodes[k]; | |
| const text = nodeObject.innerText; | |
| const url = text.toString(); | |
| if (url.includes('http')) { | |
| // console.log('fetching from ' + url) | |
| fetch(url) | |
| .then(response => { | |
| if (response.ok) { |
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 | |
| function my_theme_enqueue_styles() { | |
| $parent_style = 'parent_style'; | |
| wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); | |
| wp_enqueue_style( 'child-style', | |
| get_stylesheet_directory_uri() . '/style.css', | |
| array( $parent_style ), | |
| wp_get_theme()->get('Version') | |
| ); | |
| } |
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
| var userEmails = [ | |
| // 'nickdeckerdevs@gmail.com' | |
| // , | |
| '6studiozero@gmail.com' | |
| ]; | |
| function allThePromises(email) { | |
| return Promise.resolve() | |
| .then(function(result) { |
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
| # Patterns in .gitignore file apply recursively to the (sub)directory the file is in | |
| # and all its subdirectories, unless pattern contains '/'. | |
| # Example: license.txt applies to any file named license.txt in given (root) directory and all its subdirectories, | |
| # while /license.txt applies to file with named license.txt in given (root) directory). | |
| # Example 2: node_modules will ignore all folders called node_modules. /node_modules will ignore only | |
| # the node_modules folder in the root directory | |
| wp-config.php | |
| wp-content/advanced-cache.php | |
| wp-content/backup-db/ |
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
| # Attempt to load files from production if they're | |
| # not in our dev/local version. | |
| # replace domain with website name on line 10 | |
| # Attempt to load files from production if they're not in our local version. Put this file in "wp-content/uploads" folder. | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_FILENAME} !-f |