PATH:
home
/
lab2454c
/
datmont.com
/
wp-content
/
plugins
/
insert-headers-and-footers
/
includes
<?php /** * Handle the generic WPCode shortcode. * * @package WPCode */ add_shortcode( 'wpcode', 'wpcode_shortcode_handler' ); /** * Generic handler for the shortcode. * * @param array $args The shortcode attributes. * * @return string */ function wpcode_shortcode_handler( $args ) { $atts = wp_parse_args( $args, array( 'id' => 0, ) ); if ( 0 === $atts['id'] ) { return ''; } $snippet = new WPCode_Snippet( absint( $atts['id'] ) ); if ( ! $snippet->is_active() ) { return ''; } // Let's check that conditional logic rules are met. if ( $snippet->conditional_rules_enabled() && ! wpcode()->conditional_logic->are_snippet_rules_met( $snippet ) && apply_filters( 'wpcode_shortcode_use_conditional_logic', true ) ) { return ''; } $shortcode_location = apply_filters( 'wpcode_get_snippets_for_location', array( $snippet ), 'shortcode' ); if ( empty( $shortcode_location ) ) { return ''; } return wpcode()->execute->get_snippet_output( $snippet ); }
[-] class-wpcode-error.php
[edit]
[+]
admin
[+]
..
[-] legacy.php
[edit]
[+]
conditional-logic
[-] icons.php
[edit]
[+]
execute
[-] class-wpcode-file-cache.php
[edit]
[+]
generator
[-] class-wpcode-library-auth.php
[edit]
[-] class-wpcode-generator.php
[edit]
[-] class-wpcode-file-logger.php
[edit]
[-] class-wpcode-library.php
[edit]
[-] compat.php
[edit]
[-] global-output.php
[edit]
[-] shortcode.php
[edit]
[-] ihaf.php
[edit]
[-] safe-mode.php
[edit]
[-] helpers.php
[edit]
[-] class-wpcode-capabilities.php
[edit]
[-] class-wpcode-conditional-logic.php
[edit]
[+]
auto-insert
[-] class-wpcode-snippet-cache.php
[edit]
[-] class-wpcode-snippet-execute.php
[edit]
[-] class-wpcode-install.php
[edit]
[-] class-wpcode-settings.php
[edit]
[-] class-wpcode-snippet.php
[edit]
[-] post-type.php
[edit]
[+]
lite
[-] class-wpcode-auto-insert.php
[edit]