__( 'Right Menu', 'Dostogir' ),
'id' => 'right_sidebar',
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
) );
}
add_action('widgets_init', 'sidebar_widget_areas');
function comment_scripts(){
if ( is_singular() ) wp_enqueue_script( 'comment-reply' );
}
add_action( 'wp_enqueue_scripts', 'comment_scripts' );
set_post_thumbnail_size( 200, 200, true );
add_image_size( 'post-image', 150, 150, true );
add_image_size( 'post-image_single', 550, 250, true );
function excerpt($num) {
$limit = $num+1;
$excerpt = explode(' ', get_the_excerpt(), $limit);
array_pop($excerpt);
$excerpt = implode(" ",$excerpt)." ";
echo $excerpt;
}
$args = array(
'before' => '' . __('Pages:',''),
'after' => '
',
'link_before' => '',
'link_after' => '',
'next_or_number' => 'number',
'nextpagelink' => __('Next page',''),
'previouspagelink' => __('Previous page',''),
'pagelink' => '%',
'echo' => 1
);
?>