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
| javascript:( function(){ with(window.open('http://'+window.location.host+'/wp-admin','_blank')){ document.close(); } })() |
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
| (function($){ | |
| $(document).ready(function(){ | |
| /** | |
| * This part handles the highlighting functionality. | |
| * We use the scroll functionality again, some array creation and | |
| * manipulation, class adding and class removing, and conditional testing | |
| */ | |
| var aChildren = $("header ul.menu li").children(); // find the a children of the list items |
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 | |
| /** | |
| * Display taxonomy selection as radios | |
| * | |
| * @param WP_Post $post | |
| * @param array $box | |
| */ | |
| if( !function_exists('tp_taxonomy_radio_meta_box') ) { | |
| function tp_taxonomy_radio_meta_box($post, $box) { |
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 | |
| /** | |
| * Display taxonomy selection as radios | |
| * | |
| * @param WP_Post $post | |
| * @param array $box | |
| */ | |
| if( !function_exists('wearewp_taxonomy_radio_meta_box') ) { | |
| function wearewp_taxonomy_radio_meta_box($post, $box) { |
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 get_header(); ?> | |
| <?php $hierarchical_keywords = get_query_var( 'hierarchical_keywords' ); ?> | |
| <div class="fl-archive container"> | |
| <div class="row"> | |
| <?php FLTheme::sidebar('left'); ?> | |
| <div class="fl-content <?php FLTheme::content_class(); ?>" itemscope="itemscope" itemtype="http://schema.org/Blog"> |
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 | |
| add_filter( 'register_post_type_args', 'tp_change_attachment_post_type_args', 10, 2 ); | |
| function tp_change_attachment_post_type_args($args, $post_type){ | |
| if( 'attachment' == $post_type ){ | |
| $args['has_archive'] = true; | |
| $args['rewrite'] = array( 'slug' => 'media' ); | |
| } | |
| return $args; | |
| } |
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 | |
| add_filter('pll_get_post_types', 'wearewp_add_acf_pll', 10, 2); | |
| function wearewp_add_acf_pll( $post_types, $is_settings ) { | |
| $post_types[] = 'acf-field-group'; | |
| return $post_types; | |
| } |
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
| #!/usr/bin/env bash | |
| while ! mysqladmin ping --silent; do | |
| sleep 1 | |
| done | |
| if mysql -e "SELECT USER(),CURRENT_USER();" -proot 2> /dev/null | |
| then | |
| echo "mysql password: root" | |
| mysql -e "DROP DATABASE IF EXISTS local; CREATE DATABASE local;" -proot |
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 | |
| // Add this function in the functions.php of your theme | |
| add_filter( 'fl_theme_google_fonts', 'wearewp_theme_google_fonts' ); | |
| function wearewp_theme_google_fonts( $google ){ | |
| // Add a font from https://fonts.google.com/ : font name => font size (100, 200...) | |
| $google['Saira'] = array( | |
| "100", | |
| "200", | |
| "400", |
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 | |
| /* | |
| Plugin Name: Jokes | |
| Plugin URI: https://www.wearewp.pro | |
| Description: Manage jokes | |
| Author: WeAre[WP] | |
| Author URI: https://www.wearewp.pro | |
| Text Domain: waw-joke | |
| Domain Path: /languages/ | |
| Version: 1.0 |