• id="li-comment-">
    comment_approved == '0') : ?>
    $depth, 'max_depth' => $args['max_depth']))) ?>
    '; } echo $icon_link; } add_action( 'wp_head', 'acool_favicon' ); /** * Gets option value from the single theme option, stored as an array in the database * if all options stored in one row. * Stores the serialized array with theme options into the global variable on the first function run on the page. * * If options are stored as separate rows in database, it simply uses get_option() function. * * @param string $option_name Theme option name. * @param string $default_value Default value that should be set if the theme option isn't set. * @param string $used_for_object "Object" name that should be translated into corresponding "object" if WPML is activated. * @return mixed Theme option value or false if not found. */ if ( ! function_exists( 'ct_get_option' ) ){ function ct_get_option( $ct_row,$option_name ) { $arr = get_option($ct_row); $option_value = sanitize_text_field($arr[$option_name]); return $option_value; } } /* add widgets to wp-admin */ function ct_widgets_init() { register_sidebar( array( 'name' => 'Sidebar', 'id' => 'sidebar-1', 'before_widget' => '
    ', 'after_widget' => '
    ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => 'Footer Area #1', 'id' => 'sidebar-2', 'before_widget' => '
    ', 'after_widget' => '
    ', 'before_title' => '', 'after_title' => '', ) ); register_sidebar( array( 'name' => 'Footer Area #2', 'id' => 'sidebar-3', 'before_widget' => '
    ', 'after_widget' => '
    ', 'before_title' => '', 'after_title' => '', ) ); register_sidebar( array( 'name' => 'Footer Area #3', 'id' => 'sidebar-4', 'before_widget' => '
    ', 'after_widget' => '
    ', 'before_title' => '', 'after_title' => '', ) ); register_sidebar( array( 'name' => 'Footer Area #4', 'id' => 'sidebar-5', 'before_widget' => '
    ', 'after_widget' => '
    ', 'before_title' => '', 'after_title' => '', ) ); $ct_pb_widgets = get_theme_mod( 'ct_pb_widgets' ); if ( $ct_pb_widgets['areas'] ) { foreach ( $ct_pb_widgets['areas'] as $id => $name ) { register_sidebar( array( 'name' => sanitize_text_field( $name ), 'id' => sanitize_text_field( $id ), 'before_widget' => '
    ', 'after_widget' => '
    ', 'before_title' => '', 'after_title' => '', ) ); } } } add_action( 'widgets_init', 'ct_widgets_init' ); ?>