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
find /var/www/joomla -type f -exec chmod 0644 {} \; | |
find /var/www/joomla -type d -exec chmod 0755 {} \; |
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 | |
function gallery_shortcode_defaults( $out, $pairs, $atts ) { | |
$out['link'] = 'none'; | |
return $out; | |
} | |
add_filter( 'shortcode_atts_gallery', 'gallery_shortcode_defaults', 10, 3 ); |
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
#!/usr/bin/env sh | |
------------------------------------------ | |
openssl genrsa -out jbzoo-com-ca.key 2048 | |
openssl req -x509 -new -key jbzoo-com-ca.key -days 10000 -out jbzoo-com-ca.crt | |
openssl genrsa -out jbzoo-com-server.key 2048 | |
openssl req -new -key jbzoo-com-server.key -out jbzoo-com-server.csr | |
openssl x509 -req -in jbzoo-com-server.csr -CA jbzoo-com-ca.crt -sha256 -CAkey jbzoo-com-ca.key -CAcreateserial -out jbzoo-com-server.crt -days 5000 |
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 | |
/** | |
* Function is responsible for returning the parent of the current | |
* page. | |
* | |
* This function should be placed in your functions.php file, or equivalent | |
* | |
* @param unknown_type $post | |
* @return object |
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
jQuery(document).ready(function () { | |
// calendar | |
uikit_jcalendar(); | |
// button | |
uikit_jcalendar_btn('#news_created_btn', 'uk-button-primary', 'calendar'); | |
uikit_jcalendar_btn('#news_publish_up_btn', 'uk-button-secondary', 'future'); | |
}); | |
// calendar |
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
# Deny access to include files. | |
<Files ~ "\.inc$"> | |
Order Allow,Deny | |
Deny from All | |
</Files> | |
# Deny access to hidden files. | |
RedirectMatch 403 /\..*$ | |
# Deny access to folders. |
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
#! /bin/bash | |
##################################################################################################### | |
# == wpmd 2 grav == # | |
# This script converts the headers from wp2md to Grav headers format # | |
# wp2md : https://github.com/dreikanter/wp2md ; with `wp2md -d ./ export.xml -ps {title}/item.md` # | |
# Grav : http://getgrav.org/ # | |
# @author : Tom Canac http://tomcanac.com/ # | |
# @version : 0.1 # | |
# @licence : CC-BY # |
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 | |
// don't load directly | |
if (!defined('ABSPATH')) die('-1'); | |
class CreditznatokAddwiki | |
{ | |
private static $_instance; | |
static function getInstance() |
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 | |
//Do not copy the above php tag | |
// Stop JetPacks Minified/Concatention CSS file | |
add_filter( 'jetpack_implode_frontend_css', '__return_false' ); | |
//Remove JepPack CSS | |
function themeprefix_remove_jetpack_css() { | |
wp_deregister_style( 'AtD_style' ); // After the Deadline | |
wp_deregister_style( 'jetpack_likes' ); // Likes |
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 | |
return array( | |
'JAccess' => 'Joomla\\Access\\Access', | |
'JAccessRule' => 'Joomla\\Access\\Rule', | |
'JAccessRules' => 'Joomla\\Access\\Rules', | |
'JApplicationBase' => 'Joomla\\Application\\Base', | |
'JApplicationCli' => 'Joomla\\Application\\Cli', | |
'JApplicationDaemon' => 'Joomla\\Application\\Daemon', | |
'JRoute' => 'Joomla\\Application\\Route', |
OlderNewer