__( 'Primary Menu', 'dokumentasi_template' ),
'social' => __( 'Social Links Menu', 'dokumentasi_template' ),
) );
/*
* Switch default core markup for search form, comment form, and comments
* to output valid HTML5.
*/
add_theme_support( 'html5', array(
'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'
) );
/*
* Enable support for Post Formats.
*/
add_theme_support( 'post-formats', array(
'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat'
) );
}
endif; // dokumentasi_template_setup
add_action( 'after_setup_theme', 'dokumentasi_template_setup' );
if ( ! function_exists( 'dokumentasi_template_init' ) ) :
function dokumentasi_template_init() {
// Use categories and tags with attachments
register_taxonomy_for_object_type( 'category', 'attachment' );
register_taxonomy_for_object_type( 'post_tag', 'attachment' );
/*
* Register custom post types. You can also move this code to a plugin.
*/
/* Pinegrow generated Custom Post Types Begin */
/* Pinegrow generated Custom Post Types End */
/*
* Register custom taxonomies. You can also move this code to a plugin.
*/
/* Pinegrow generated Taxonomies Begin */
/* Pinegrow generated Taxonomies End */
}
endif; // dokumentasi_template_setup
add_action( 'init', 'dokumentasi_template_init' );
if ( ! function_exists( 'dokumentasi_template_widgets_init' ) ) :
function dokumentasi_template_widgets_init() {
/*
* Register widget areas.
*/
/* Pinegrow generated Register Sidebars Begin */
register_sidebar( array(
'name' => __( 'Doc Sidebar', 'dokumentasi_template' ),
'id' => 'sidebar_doc',
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Search Form sidebar', 'dokumentasi_template' ),
'id' => 'search_widget',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Doc Sidebar', 'dokumentasi_template' ),
'id' => 'sidebar_doc',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Search Form sidebar', 'dokumentasi_template' ),
'id' => 'search_widget',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Doc Sidebar', 'dokumentasi_template' ),
'id' => 'sidebar_doc',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Search Form sidebar', 'dokumentasi_template' ),
'id' => 'search_widget',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Doc Sidebar', 'dokumentasi_template' ),
'id' => 'sidebar_doc',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Search Form sidebar', 'dokumentasi_template' ),
'id' => 'search_widget',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Woocomerce 1', 'dokumentasi_template' ),
'id' => 'woocommerce_satu',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Woocomerce 2', 'dokumentasi_template' ),
'id' => 'woocommerce_dua',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Doc Sidebar', 'dokumentasi_template' ),
'id' => 'sidebar_doc',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Search Form sidebar', 'dokumentasi_template' ),
'id' => 'search_widget',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Doc Sidebar', 'dokumentasi_template' ),
'id' => 'sidebar_doc',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Search Form sidebar', 'dokumentasi_template' ),
'id' => 'search_widget',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Doc Sidebar', 'dokumentasi_template' ),
'id' => 'sidebar_doc',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Search Form sidebar', 'dokumentasi_template' ),
'id' => 'search_widget',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Doc Sidebar', 'dokumentasi_template' ),
'id' => 'sidebar_doc',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
register_sidebar( array(
'name' => __( 'Search Form sidebar', 'dokumentasi_template' ),
'id' => 'search_widget',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
) );
/* Pinegrow generated Register Sidebars End */
}
add_action( 'widgets_init', 'dokumentasi_template_widgets_init' );
endif;// dokumentasi_template_widgets_init
if ( ! function_exists( 'dokumentasi_template_customize_register' ) ) :
function dokumentasi_template_customize_register( $wp_customize ) {
// Do stuff with $wp_customize, the WP_Customize_Manager object.
/* Pinegrow generated Customizer Controls Begin */
$wp_customize->add_section( 'logo_section', array(
'title' => __( 'logo section', 'dokumentasi_template' )
));
$wp_customize->add_setting( 'logo_image', array(
'type' => 'theme_mod',
'default' => 'index_files/pinegrow-logo.png',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'logo_image', array(
'label' => __( 'logo image', 'dokumentasi_template' ),
'type' => 'media',
'mime_type' => 'image',
'section' => 'logo_section'
) ) );
$wp_customize->add_section( 'logo_section', array(
'title' => __( 'logo section', 'dokumentasi_template' )
));
$wp_customize->add_setting( 'logo_image', array(
'type' => 'theme_mod',
'default' => 'index_files/pinegrow-logo.png',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'logo_image', array(
'label' => __( 'logo image', 'dokumentasi_template' ),
'type' => 'media',
'mime_type' => 'image',
'section' => 'logo_section'
) ) );
$wp_customize->add_section( 'logo_section', array(
'title' => __( 'logo section', 'dokumentasi_template' )
));
$wp_customize->add_setting( 'logo_image', array(
'type' => 'theme_mod',
'default' => 'index_files/pinegrow-logo.png',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'logo_image', array(
'label' => __( 'logo image', 'dokumentasi_template' ),
'type' => 'media',
'mime_type' => 'image',
'section' => 'logo_section'
) ) );
$wp_customize->add_section( 'logo_section', array(
'title' => __( 'logo section', 'dokumentasi_template' )
));
$wp_customize->add_setting( 'logo_image', array(
'type' => 'theme_mod',
'default' => 'index_files/pinegrow-logo.png',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'logo_image', array(
'label' => __( 'logo image', 'dokumentasi_template' ),
'type' => 'media',
'mime_type' => 'image',
'section' => 'logo_section'
) ) );
$wp_customize->add_section( 'logo_section', array(
'title' => __( 'logo section', 'dokumentasi_template' )
));
$wp_customize->add_setting( 'logo_image', array(
'type' => 'theme_mod',
'default' => 'index_files/pinegrow-logo.png',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'logo_image', array(
'label' => __( 'logo image', 'dokumentasi_template' ),
'type' => 'media',
'mime_type' => 'image',
'section' => 'logo_section'
) ) );
$wp_customize->add_section( 'logo_section', array(
'title' => __( 'logo section', 'dokumentasi_template' )
));
$wp_customize->add_setting( 'logo_image', array(
'type' => 'theme_mod',
'default' => 'index_files/pinegrow-logo.png',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'logo_image', array(
'label' => __( 'logo image', 'dokumentasi_template' ),
'type' => 'media',
'mime_type' => 'image',
'section' => 'logo_section'
) ) );
$wp_customize->add_section( 'logo_section', array(
'title' => __( 'logo section', 'dokumentasi_template' )
));
$wp_customize->add_setting( 'logo_image', array(
'type' => 'theme_mod',
'default' => 'index_files/pinegrow-logo.png',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'logo_image', array(
'label' => __( 'logo image', 'dokumentasi_template' ),
'type' => 'media',
'mime_type' => 'image',
'section' => 'logo_section'
) ) );
$wp_customize->add_section( 'logo_section', array(
'title' => __( 'logo section', 'dokumentasi_template' )
));
$wp_customize->add_setting( 'logo_image', array(
'type' => 'theme_mod',
'default' => 'index_files/pinegrow-logo.png',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize, 'logo_image', array(
'label' => __( 'logo image', 'dokumentasi_template' ),
'type' => 'media',
'mime_type' => 'image',
'section' => 'logo_section'
) ) );
/* Pinegrow generated Customizer Controls End */
}
add_action( 'customize_register', 'dokumentasi_template_customize_register' );
endif;// dokumentasi_template_customize_register
if ( ! function_exists( 'dokumentasi_template_enqueue_scripts' ) ) :
function dokumentasi_template_enqueue_scripts() {
/* Pinegrow generated Enqueue Scripts Begin */
wp_enqueue_script( '', get_template_directory_uri() . '/./index_files/6332858.js', false, null, false);
wp_enqueue_script( 'analytics', get_template_directory_uri() . '/./index_files/analytics.js', false, null, false);
wp_enqueue_script( 'wpemojirelease', get_template_directory_uri() . '/./index_files/wp-emoji-release.min.js', false, null, false);
wp_enqueue_script( 'jquery', get_template_directory_uri() . '/./index_files/jquery.min.js', false, null, true);
wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/./index_files/bootstrap.min.js', false, null, true);
wp_enqueue_script( 'ieviewportbugworkaround', get_template_directory_uri() . '/./index_files/ie10-viewport-bug-workaround.js', false, null, true);
/* Pinegrow generated Enqueue Scripts End */
/* Pinegrow generated Enqueue Styles Begin */
wp_enqueue_style( 'advancedresponsivevideoembedderpublic', get_template_directory_uri() . '/./index_files/advanced-responsive-video-embedder-public.css', false, null, 'all');
wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/./index_files/bootstrap.css', false, null, 'all');
wp_enqueue_style( 'docs', get_template_directory_uri() . '/./index_files/docs.css', false, null, 'all');
wp_enqueue_style( 'style-1', get_template_directory_uri() . '/./index_files/css', false, null, 'all');
wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/./index_files/font-awesome.min.css', false, null, 'all');
wp_enqueue_style( 'style-2', get_template_directory_uri() . '/./index_files/saved_resource', false, null, 'all');
/* Pinegrow generated Enqueue Styles End */
}
add_action( 'wp_enqueue_scripts', 'dokumentasi_template_enqueue_scripts' );
endif;
function dokumentasi_template_pagination( $wp_query_object = null )
{
global $wp_query;
$query_object = !empty( $wp_query_object ) ? $wp_query_object : $wp_query;
if ( !is_page() && $query_object->max_num_pages < 2 ) {
return;
}
$big = 999999999; // need an unlikely integer
echo '';
}
//breadcrumbs
if ( ! function_exists( 'breadcrumbs' ) ) :
function breadcrumbs() {
$delimiter = '';
$tagicon = '';
$home = 'Home';
echo '';
}
endif;
if ( !isset( $content_width ) ) {
$content_width = 740; /* pixels */
}
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
/*
* Resource files included by Pinegrow.
*/
/* Pinegrow generated Include Resources Begin */
require_once "inc/bootstrap/wp_bootstrap_navwalker.php";
/* Pinegrow generated Include Resources End */
?>