Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| <?php | |
| return PhpCsFixer\Config::create() | |
| ->setRules(array( | |
| '@PSR2' => true, | |
| 'array_syntax' => array('syntax' => 'short'), | |
| 'combine_consecutive_unsets' => true, | |
| 'method_separation' => true, | |
| 'no_multiline_whitespace_before_semicolons' => true, | |
| 'single_quote' => true, |
| /* Remove the Archive Headline and Text from the default location */ | |
| remove_action( 'genesis_archive_title_descriptions', 'genesis_do_archive_headings_open', 5); | |
| remove_action( 'genesis_archive_title_descriptions', 'genesis_do_archive_headings_close', 15); | |
| remove_action( 'genesis_archive_title_descriptions', 'genesis_do_archive_headings_headline', 10); | |
| remove_action( 'genesis_archive_title_descriptions', 'genesis_do_archive_headings_intro_text', 12); | |
| /* Now, add it back at the bottom */ | |
| add_action( 'woocommerce_after_shop_loop', 'ar_add_custom_hook_archive_description', 8); | |
| add_action( 'ar_add_wc_archive_descr_text' , 'ar_do_custom_archive_description_text', 7, 3); | |
| function ar_add_custom_hook_archive_description() { |
| <?php | |
| /** | |
| Need to run this code just ONCE, | |
| so remove it after one pageload once spaces are removed | |
| **/ | |
| # List of Taxonomies with terms which have leading spaces | |
| $taxos = array('rooms', 'settings', 'views', 'features'); | |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
| <?php | |
| // This file assumes that you have included the nav walker from https://github.com/twittem/wp-bootstrap-navwalker | |
| // somewhere in your theme. | |
| ?> | |
| <header class="banner navbar navbar-default navbar-static-top" role="banner"> | |
| <div class="container"> | |
| <div class="navbar-header"> | |
| <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> | |
| <span class="sr-only"><?= __('Toggle navigation', 'sage'); ?></span> |
| #!/bin/sh | |
| # replace cmd1 for the command to execute | |
| host=192.168.1.1 | |
| port=23 | |
| user=myuser | |
| pass=mypass | |
| cmd1='ifconfig wl0 down' | |
| ( echo open ${host} |
| <?php | |
| /** | |
| * AJAX call for parsing HTML | |
| * | |
| */ | |
| public function parse_html() { | |
| // get content from textarea | |
| $text = $_POST['content']; |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |