#
',
esc_url( get_comment_link( $comment->comment_ID ) ),
get_comment_time( 'c' ),
/* translators: 1: date, 2: time */
sprintf( __( '%1$s at %2$s', 'bootpress' ), get_comment_date(), get_comment_time() )
);
?>
comment_approved ) : ?>
__( 'Reply', 'bootpress' ), 'after' => ' ↓', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
esc_attr__( 'Default', 'bootpress' ), //0
"amelia" => esc_attr__( 'Amelia', 'bootpress' ), //1
"cerulean" => esc_attr__( 'Cerulean', 'bootpress' ), //2
"cosmo" => esc_attr__( 'Cosmo', 'bootpress' ), //3
"cyborg" => esc_attr__( 'Cyborg', 'bootpress' ), //4
"flatly" => esc_attr__( 'Flatly', 'bootpress' ), //13
"journal" => esc_attr__( 'Journal', 'bootpress' ), //5
"readable" => esc_attr__( 'Readable', 'bootpress' ), //6
"simplex" => esc_attr__( 'Simplex', 'bootpress' ), //7
"slate" => esc_attr__( 'Slate', 'bootpress' ), //8
"spacelab" => esc_attr__( 'Spacelab', 'bootpress' ), //9
"united" => esc_attr__( 'United', 'bootpress' ), //12
);
$bootpress_styles_url_default = get_template_directory_uri() . '/dist/css/';
$bootpress_settings["styles_url"] = array(
"default" => $bootpress_styles_url_default. "default", //0
"amelia" => $bootpress_styles_url_default. "amelia", //1
"cerulean" => $bootpress_styles_url_default. "cerulean", //2
"cosmo" => $bootpress_styles_url_default. "cosmo", //3
"cyborg" => $bootpress_styles_url_default. "cyborg", //4
"flatly" => $bootpress_styles_url_default. "flatly", //13
"journal" => $bootpress_styles_url_default. "journal", //5
"readable" => $bootpress_styles_url_default. "readable", //6
"simplex" => $bootpress_styles_url_default. "simplex", //7
"slate" => $bootpress_styles_url_default. "slate", //8
"spacelab" => $bootpress_styles_url_default. "spacelab", //9
"united" => $bootpress_styles_url_default. "united", //12
);
if (class_exists("WP_Customize_Control")){
class Bootpress_Customize_ImageOptions_Control extends WP_Customize_Control {
public $type = 'imageoptions';
public function render_content() {
if ( empty( $this->choices ) )
return;
global $bootpress_settings;
$name = '_customize-imageoptions-' . $this->id;
?>
label ); ?>
choices as $value => $label ) :
$selected = "";
if ($this->value() == $value) $selected = "of-radio-img-selected";
if(!isset($bootpress_settings["thumbnail_url"][esc_attr( $value )]))
$bootpress_settings["thumbnail_url"][esc_attr( $value )] = $bootpress_settings["styles_url"][esc_attr( $value )];
?>
add_section( 'bootpress' , array(
'title' => 'Bootstrap Theme',
'priority' => 30,
) );
// Theme Style
$wp_customize->add_setting( 'bootpress_settings[style]', array(
'default' => 'united',
'type' => 'option',
'transport' => 'postMessage'
) );
$wp_customize->add_control( new Bootpress_Customize_ImageOptions_Control( $wp_customize, 'bootpress_settings[style]', array(
'label' => esc_attr__( 'Theme Style', 'bootpress' ),
'section' => 'bootpress',
'type' => 'imageoptions',
'settings'=>'bootpress_settings[style]',
'priority' => '20',
'choices' => $bootpress_settings["styles"],
) ) );
}
add_action( 'customize_register', 'bootpress_register_theme_customizer' );
add_action( 'customize_preview_init', "bootpress_preview_init" );
function bootpress_preview_init() {
wp_enqueue_script( 'customizer-panel', get_template_directory_uri() . '/js/customizer-panel.js', array( 'jquery','customize-preview' ) );
}
add_action( 'customize_controls_print_styles', "bootpress_customizer_print_styles" );
function bootpress_customizer_print_styles() {
wp_enqueue_style( 'bootpress_customizer', get_template_directory_uri() . '/css/customizer.css' );
}
?>
', '
' ); ?>