array( 'value' => 'silver', 'label' => __( 'Silver    (default)', 'absolum' ) ), '1' => array( 'value' => 'grey', 'label' => __( 'Grey', 'absolum' ) ), '2' => array( 'value' => 'black', 'label' => __( 'Black', 'absolum' ) ), '3' => array( 'value' => 'purple', 'label' => __( 'Purple', 'absolum' ) ), '4' => array( 'value' => 'orange', 'label' => __( 'Orange', 'absolum' ) ), '5' => array( 'value' => 'red', 'label' => __( 'Red', 'absolum' ) ), '6' => array( 'value' => 'green', 'label' => __( 'Green', 'absolum' ) ), '7' => array( 'value' => 'blue', 'label' => __( 'Blue', 'absolum' ) ) ); $absselect_content_font = array( '0' => array( 'value' => 'georgia', 'label' => __( 'Trebuchet MS    (default)', 'absolum' ) ), '1' => array( 'value' => 'segoe', 'label' => __( 'Segoe UI', 'absolum' ) ), '2' => array( 'value' => 'arial', 'label' => __( 'Arial', 'absolum' ) ), '3' => array( 'value' => 'times', 'label' => __( 'Times', 'absolum' ) ), '4' => array( 'value' => 'courier', 'label' => __( 'Courier New', 'absolum' ) ), '5' => array( 'value' => 'calibri', 'label' => __( 'Calibri', 'absolum' ) ) ); $absselect_slider = array( '0' => array( 'value' => 'disable', 'label' => __( 'Disable    (default)', 'absolum' ) ), '1' => array( 'value' => 'one', 'label' => __( 'Last post - static', 'absolum' ) ), '2' => array( 'value' => 'slow', 'label' => __( 'Slow slideshow', 'absolum' ) ), '3' => array( 'value' => 'normal', 'label' => __( 'Normal slideshow', 'absolum' ) ), '4' => array( 'value' => 'fast', 'label' => __( 'Fast slideshow', 'absolum' ) ) ); $absselect_title = array( '0' => array( 'value' => 'black', 'label' => __( 'Black    (default)', 'absolum' ) ), '1' => array( 'value' => 'blue', 'label' => __( 'Blue', 'absolum' ) ), '2' => array( 'value' => 'silver', 'label' => __( 'Silver', 'absolum' ) ), '3' => array( 'value' => 'brown', 'label' => __( 'Brown', 'absolum' ) ), '4' => array( 'value' => 'red', 'label' => __( 'Red', 'absolum' ) ), '5' => array( 'value' => 'green', 'label' => __( 'Green', 'absolum' ) ) ); $absselect_background = array( '0' => array( 'value' => 'blue', 'label' => __( 'Blue    (default)', 'absolum' ) ), '1' => array( 'value' => 'green', 'label' => __( 'Green', 'absolum' ) ), '2' => array( 'value' => 'silver', 'label' => __( 'Silver', 'absolum' ) ), '3' => array( 'value' => 'black', 'label' => __( 'Black', 'absolum' ) ), '4' => array( 'value' => 'red', 'label' => __( 'Red', 'absolum' ) ), '5' => array( 'value' => 'yellow', 'label' => __( 'Yellow', 'absolum' ) ), '6' => array( 'value' => 'brown', 'label' => __( 'Brown', 'absolum' ) ) ); $absselect_sidebar = array( '0' => array( 'value' => 'right', 'label' => __( 'Right    (default)', 'absolum' ) ), '1' => array( 'value' => 'left', 'label' => __( 'Left', 'absolum' ) ), '2' => array( 'value' => 'disable', 'label' => __( 'Disable', 'absolum' ) ) ); $absshortname = "abs"; $absoptionlist = array ( array( "id" => $absshortname, "type" => "open-tab"), array( "type" => "open"), array( "type" => "close"), array( "type" => "close-tab"), // Design array( "id" => $absshortname."-tab-1", "type" => "open-tab"), array( "type" => "open"), array( "name" => "Blog title color scheme", "desc" => "", "id" => $absshortname."_title_scheme", "type" => "select4", "std" => "false" ), array( "name" => "Menu color scheme", "desc" => "", "id" => $absshortname."_color_scheme", "type" => "select1", "std" => "false" ), array( "name" => "Background color scheme", "desc" => "", "id" => $absshortname."_back_scheme", "type" => "select5", "std" => "false" ), array( "name" => "Sidebar position", "desc" => "", "id" => $absshortname."_pos_sidebar", "type" => "select6", "std" => "false" ), array( "name" => "Display last post static/slideshow", "desc" => "Choose if you want to display last post or last 10 posts in a slideshow", "id" => $absshortname."_header_slider", "type" => "select3", "std" => "false" ), // Subscribe buttons // RSS Feed array( "name" => "RSS Feed", "desc" => "Insert custom RSS Feed URL, e.g. http://feeds.feedburner.com/Example", "id" => $absshortname."_rss_feed", "type" => "text", "std" => ""), // Newsletter array( "name" => "Newsletter", "desc" => "Insert custom newsletter URL, e.g. http://feedburner.google.com/fb/a/mailverify?uri=Example&loc=en_US", "id" => $absshortname."_newsletter", "type" => "text", "std" => ""), // Facebook array( "name" => "Facebook", "desc" => "Insert your Facebook ID", "id" => $absshortname."_facebook", "type" => "text", "std" => ""), // Twitter array( "name" => "Twitter", "desc" => "Insert your Twitter ID", "id" => $absshortname."_twitter_id", "type" => "text", "std" => ""), // LinkedIn array( "name" => "LinkedIn", "desc" => "Insert your LinkedIn profile URI", "id" => $absshortname."_linkedin_id", "type" => "text", "std" => ""), // Google+ array( "name" => "Google+", "desc" => "Insert your Google+ profile URI", "id" => $absshortname."_googleplus_id", "type" => "text", "std" => ""), // Styles array( "name" => "Content font", "desc" => "Examples: Trebuchet MS Segoe UI Arial Times Courier New Calibri ", "id" => $absshortname."_content_font", "type" => "select2", "std" => "false"), array( "name" => "Custom CSS", "desc" => 'For advanced users only: insert custom CSS, default style.css file', "id" => $absshortname."_css_content", "type" => "textarea", "std" => "false"), array( "type" => "close"), array( "type" => "close-tab"), // Themes Page array( "id" => $absshortname."-tab-2", "type" => "open-tab"), array( "name" => "Theme4Press Themes", "type" => "title"), array( "type" => "open"), array( "type" => "t4pthemes"), array( "type" => "close"), array( "type" => "close-tab"), ); /** * Create the options page */ function absolum_theme_options_do_page() { global $absthemename, $absshortname, $absoptionlist, $absselect_scheme, $absselect_slider, $absselect_content_font, $absselect_title, $absselect_background, $absselect_sidebar; if ( ! isset( $_REQUEST['updated'] ) ) { $_REQUEST['updated'] = false; } if( isset( $_REQUEST['reset'] )) { global $wpdb; $query = "DELETE FROM $wpdb->options WHERE option_name LIKE 'absolum'"; $wpdb->query($query); header("Location: themes.php?page=theme_options"); die; } ?>

Settings


Theme4Press Affiliates

'.$absthemename.' settings saved

'; ?>

'.$absthemename.' settings reset

'; } ?>


get_error_code(); if($error == 'simplepie-error') { //Simplepie Error echo "

An error has occured with the RSS feed. (". $error .")

"; } return; } ?> get_item_quantity(10); $items = $rss->get_items(0, 10); ?>
" />                         />   

   Be carefull, all options will be removed!

__( 'Primary Navigation', 'absolum' ), ) ); // This theme allows users to set a custom background add_custom_background(); // Your changeable header business starts here define( 'HEADER_TEXTCOLOR', '' ); // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI. define( 'HEADER_IMAGE', '%s/images/headers/blue.jpg' ); // The height and width of your custom header. You can hook into the theme's own filters to change these values. // Add a filter to absolum_header_image_width and absolum_header_image_height to change these values. define( 'HEADER_IMAGE_WIDTH', apply_filters( 'absolum_header_image_width', 940 ) ); define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'absolum_header_image_height', 198 ) ); // We'll be using post thumbnails for custom header images on posts and pages. // We want them to be 940 pixels wide by 198 pixels tall. // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); // Don't support text inside the header image. define( 'NO_HEADER_TEXT', true ); // Add a way for the custom header to be styled in the admin panel that controls // custom headers. See absolum_admin_header_style(), below. add_custom_image_header( '', 'absolum_admin_header_style' ); // ... and thus ends the changeable header business. // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. register_default_headers( array( 'grassland' => array( 'url' => '%s/images/headers/red.jpg', 'thumbnail_url' => '%s/images/headers/red-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Red', 'absolum' ) ), 'clouds' => array( 'url' => '%s/images/headers/green.jpg', 'thumbnail_url' => '%s/images/headers/green-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Green', 'absolum' ) ), 'city' => array( 'url' => '%s/images/headers/yellow.jpg', 'thumbnail_url' => '%s/images/headers/yellow-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Yellow', 'absolum' ) ), 'squares' => array( 'url' => '%s/images/headers/violet.jpg', 'thumbnail_url' => '%s/images/headers/violet-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Violet', 'absolum' ) ), 'flowers' => array( 'url' => '%s/images/headers/black.jpg', 'thumbnail_url' => '%s/images/headers/black-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Black', 'absolum' ) ), 'circles' => array( 'url' => '%s/images/headers/brown.jpg', 'thumbnail_url' => '%s/images/headers/brown-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Brown', 'absolum' ) ), 'ink' => array( 'url' => '%s/images/headers/silver.jpg', 'thumbnail_url' => '%s/images/headers/silver-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Silver', 'absolum' ) ), 'stripes' => array( 'url' => '%s/images/headers/blue.jpg', 'thumbnail_url' => '%s/images/headers/blue-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Blue', 'absolum' ) ) ) ); } endif; if ( ! function_exists( 'absolum_admin_header_style' ) ) : function absolum_admin_header_style() { ?> ' . __( 'Read more »', 'absolum' ) . ''; } function absolum_auto_excerpt_more( $more ) { return ' …' . absolum_continue_reading_link(); } add_filter( 'excerpt_more', 'absolum_auto_excerpt_more' ); function absolum_custom_excerpt_more( $output ) { if ( has_excerpt() && ! is_attachment() ) { $output .= absolum_continue_reading_link(); } return $output; } add_filter( 'get_the_excerpt', 'absolum_custom_excerpt_more' ); function absolum_remove_gallery_css( $css ) { return preg_replace( "##s", '', $css ); } add_filter( 'gallery_style', 'absolum_remove_gallery_css' ); if ( ! function_exists( 'absolum_comment' ) ) : function absolum_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : ?>
  • id="li-comment-">
    %s', get_comment_author_link() ) ); ?>
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
  • __( 'Primary Widget Area', 'absolum' ), 'id' => 'primary-widget-area', 'description' => __( 'The primary widget area', 'absolum' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); // Area 2, located below the Primary Widget Area in the sidebar. Empty by default. register_sidebar( array( 'name' => __( 'Secondary Widget Area', 'absolum' ), 'id' => 'secondary-widget-area', 'description' => __( 'The secondary widget area', 'absolum' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); // Area 3, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'First Footer Widget Area', 'absolum' ), 'id' => 'first-footer-widget-area', 'description' => __( 'The first footer widget area', 'absolum' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); // Area 4, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'Second Footer Widget Area', 'absolum' ), 'id' => 'second-footer-widget-area', 'description' => __( 'The second footer widget area', 'absolum' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); // Area 5, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'Third Footer Widget Area', 'absolum' ), 'id' => 'third-footer-widget-area', 'description' => __( 'The third footer widget area', 'absolum' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); // Area 6, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'Fourth Footer Widget Area', 'absolum' ), 'id' => 'fourth-footer-widget-area', 'description' => __( 'The fourth footer widget area', 'absolum' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); } /** Register sidebars by running absolum_widgets_init() on the widgets_init hook. */ add_action( 'widgets_init', 'absolum_widgets_init' ); function absolum_remove_recent_comments_style() { global $wp_widget_factory; remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); } add_action( 'widgets_init', 'absolum_remove_recent_comments_style' ); if ( ! function_exists( 'absolum_posted_on' ) ) : function absolum_posted_on() { printf( __( 'Posted on %2$s by %3$s', 'absolum' ), 'meta-prep meta-prep-author', sprintf( '%3$s', get_permalink(), esc_attr( get_the_time() ), get_the_date() ), sprintf( '%3$s', get_author_posts_url( get_the_author_meta( 'ID' ) ), sprintf( esc_attr__( 'View all posts by %s', 'absolum' ), get_the_author() ), get_the_author() ) ); } endif; if ( ! function_exists( 'absolum_posted_in' ) ) : function absolum_posted_in() { // Retrieves tag list of current post, separated by commas. $tag_list = get_the_tag_list( '', ', ' ); if ( $tag_list ) { $posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the permalink.', 'absolum' ); } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { $posted_in = __( 'This entry was posted in %1$s. Bookmark the permalink.', 'absolum' ); } else { $posted_in = __( 'Bookmark the permalink.', 'absolum' ); } // Prints the string, replacing the placeholders. printf( $posted_in, get_the_category_list( ', ' ), $tag_list, get_permalink(), the_title_attribute( 'echo=0' ) ); } endif; function absolum_new_excerpt_length($length) { return 28; } add_filter('excerpt_length', 'absolum_new_excerpt_length'); function absolum_new_excerpt_more($more) { return ' [..]'; } add_filter('excerpt_more', 'absolum_new_excerpt_more'); // Need to remove background image if a color is set add_custom_background('absolum_custom_background'); function absolum_custom_background() { $color = get_background_color(); if ( ! $color ) return; $style = $color ? "background-image:none;" : ''; ?> $length) { return mb_substr($str,0,$length).$trailing; } else { $res = $str; } return $res; } /* Get first image */ function absolum_get_first_image() { global $post, $posts; $first_img = ''; $output = preg_match_all('//i', $post->post_content, $matches); if(isset($matches[1][0])){ $first_img = $matches [1][0]; return $first_img; } } function absolum_footer_hook() { ?> '.stripslashes($css_content).''; } } add_action('wp_head', 'absolum_custom_css'); ?>