mirror of
https://github.com/10h30/genesis-simple-sidebars.git
synced 2026-06-05 15:08:34 +09:00
Introducing coding standards validation.
This commit is contained in:
committed by
Nathan Rice
parent
6e40c921ab
commit
fd504d41ac
@@ -1,13 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* Genesis Simple Sidebars Term.
|
||||
*
|
||||
* @package genesis-simple-sidebars
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class Genesis Simple Sidebars Term.
|
||||
*/
|
||||
class Genesis_Simple_Sidebars_Term {
|
||||
|
||||
/**
|
||||
* Init functiom.
|
||||
*/
|
||||
public function init() {
|
||||
|
||||
add_action( 'init', array( $this, 'add_term_fields' ), 12 );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds term fields.
|
||||
*/
|
||||
public function add_term_fields() {
|
||||
|
||||
$taxonomies = Genesis_Simple_Sidebars()->core->get_public_taxonomies();
|
||||
@@ -17,14 +31,19 @@ class Genesis_Simple_Sidebars_Term {
|
||||
foreach ( $taxonomies as $tax ) {
|
||||
add_action( "{$tax}_edit_form", array( $this, 'term_sidebar_form' ), 9, 2 );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Import the sidebar form.
|
||||
*
|
||||
* @param string $tag Tag.
|
||||
* @param string $taxonomy Taxonomy.
|
||||
*/
|
||||
public function term_sidebar_form( $tag, $taxonomy ) {
|
||||
|
||||
require_once( Genesis_Simple_Sidebars()->plugin_dir_path . 'includes/views/term-edit-sidebar-form.php' );
|
||||
require_once GENESIS_SIMPLE_SIDEBARS_PLUGIN_DIR . '/includes/views/term-edit-sidebar-form.php';
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user