__('Main Menu', 'friendica') )); } add_action('wp_enqueue_scripts', 'friendica_load_scripts'); function friendica_load_scripts() { $basedir = get_template_directory_uri() . '/assets/js/'; wp_deregister_script('jquery'); //let's use our jsquery. wp_enqueue_script('jquery', $basedir.'jquery.min.js', array(), "1.11.3", true); wp_enqueue_script('skel', $basedir.'skel.min.js', array(), "3.0.1", true); wp_enqueue_script('friendica.util', $basedir.'util.js', array('jquery'), "1.0.0", true); wp_enqueue_script('friendica.main', $basedir.'main.js', array('friendica.util'), "1.0.0", true); } add_action('comment_form_before', 'friendica_enqueue_comment_reply_script'); function friendica_enqueue_comment_reply_script() { if (get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } } add_filter('the_title', 'friendica_title'); function friendica_title($title) { if ($title == '') { return '→'; } else { return $title; } } add_filter('wp_title', 'friendica_filter_wp_title'); function friendica_filter_wp_title($title) { return $title . esc_attr(get_bloginfo('name')); } add_action('widgets_init', 'friendica_widgets_init'); function friendica_widgets_init() { register_sidebar(array( 'name' => __('Sidebar Widget Area', 'friendica') , 'id' => 'primary-widget-area', 'before_widget' => '
", 'before_title' => '