View acf-polylang.php
<?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;
}
View functions.php
<?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;
}
View taxonomy-hierarchical_keywords.php
<?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">
View tp_toolbox.php
<?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) {
View tp_toolbox.php
<?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) {
View scripts.js
(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
View WP admin
javascript:( function(){ with(window.open('http://'+window.location.host+'/wp-admin','_blank')){ document.close(); } })()
View acf-missing.php
<?php
if( !class_exists('acf') )
{
$tp_acf_notice_msg = __( 'This website needs "Advanced Custom Fields Pro" to run. Please download and activate it', 'tp-notice-acf' );
/*
* Admin notice
*/
add_action( 'admin_notices', 'tp_notice_missing_acf' );
function tp_notice_missing_acf()
View functions.php
<?php
add_filter('wp_terms_checklist_args','tp_wp_terms_checklist_args');
function tp_wp_terms_checklist_args($args) {
$args['checked_ontop'] = false;
return $args;
}
View .htaccess
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.presse-citron.net.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
</IfModule>