Permalink
Browse files

0.32.1

- custom_background issue fixed
- 3.4 compatibility
- small fixes
  • Loading branch information...
jimo committed Jun 8, 2012
1 parent eab37cf commit 17f21a240ec6dadd1421b4bf922000c990f1647f
Showing with 30 additions and 31 deletions.
  1. +1 −3 footer.php
  2. +5 −7 functions.php
  3. +1 −1 js/fastfoodscript.dev.js
  4. +5 −5 lib/admin.php
  5. +3 −8 lib/my-custom-background.php
  6. +2 −1 mobile/style-mobile.css
  7. +1 −1 readme.html
  8. +12 −5 style.css
View
@@ -9,9 +9,7 @@
&copy; <?php echo date( 'Y' ); ?> <strong><?php bloginfo( 'name' ); ?></strong> <?php _e( 'All rights reserved','fastfood' ); ?>
<?php if ( ( !isset( $fastfood_opt['fastfood_mobile_css'] ) || ( $fastfood_opt['fastfood_mobile_css'] == 1) ) ) echo '<span class="hide_if_print"> - <a href="' . home_url() . '?mobile_override=mobile">'. __('Mobile View','fastfood') .'</a></span>'; ?>
- <br />
- <br />
- <small>
+ <small id="credits">
<?php if ( $fastfood_opt['fastfood_tbcred'] == 1 ) { ?>Fastfood theme by <a href="http://www.twobeers.net/" title="<?php _e( 'Visit author homepage','fastfood' ); ?> @ TwoBeers.net">TwoBeers Crew</a> - Powered by <a href="http://wordpress.org/" title="<?php _e( 'Powered by WordPress','fastfood' ); ?>">WordPress</a><?php } ?>
</small>
<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
View
@@ -28,7 +28,7 @@
add_filter( 'user_contactmethods', 'fastfood_new_contactmethods', 10, 1 );
add_filter( 'img_caption_shortcode', 'fastfood_img_caption_shortcode', 10, 3 );
add_filter( 'the_title', 'fastfood_title_tags_filter', 10, 2 );
-add_filter( 'excerpt_more', 'fastfood_new_excerpt_more' );
+add_filter( 'excerpt_more', 'fastfood_excerpt_more' );
add_filter( 'the_content_more_link', 'fastfood_more_link', 10, 2 );
//add_filter( 'get_search_form', 'fastfood_search_form' );
@@ -45,7 +45,7 @@
require_once( 'lib/hooks.php' ); // load the custom hooks
require_once( 'lib/gallery-editor.php' ); // load the gallery editor
require_once( 'lib/my-custom-background.php' ); // load the custom background feature
-require_once( 'lib/header-image-slider.php' ); // load the admin stuff
+require_once( 'lib/header-image-slider.php' ); // load the custom header stuff
require_once( 'lib/admin.php' ); // load the admin stuff
if ( $fastfood_opt['fastfood_audio_player'] == 1 ) require_once( 'lib/audio-player.php' ); // load the audio player module
if ( $fastfood_opt['fastfood_custom_widgets'] == 1 ) require_once( 'lib/widgets.php' ); // load the custom widgets module
@@ -1229,7 +1229,7 @@ function fastfood_I_like_it_js(){
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk' ));
+ }(document, 'script', 'facebook-jssdk'));
</script>
<?php } ?>
@@ -1283,8 +1283,6 @@ function fastfood_share_this( $args = '' ){
$share['bookmarks'] = array( 'Bookmarks', 'https://www.google.com/bookmarks/mark?op=edit&bkmk=' . $pHref . '&title=' . $pName );
$share['blogger'] = array( 'Blogger', 'http://www.blogger.com/blog_this.pyra?t&u=' . $pHref . '&n=' . $pName . '&pli=1' );
$share['delicious'] = array( 'Delicious', 'http://delicious.com/save?v=5&noui&jump=close&url=' . $pHref . '&title=' . $pName );
-
- //http://vk.com/share.php?url=http%3A%2F%2Ffilepost.com%2Ffiles%2Fb7d6973b%2FHMT-02.part1.rar%2F%23.T8gQS-2mFcs.vk&title=FilePost.com%3A+Download+HMT-02.part1.rar+-+fast+%26+secure!
$outer = '<div class="article-share fixfloat">';
foreach( $share as $key => $btn ){
@@ -1551,7 +1549,7 @@ function fastfood_mini_login() {
'redirect' => home_url(),
'form_id' => 'ff-loginform',
'id_username' => 'ff-user_login',
- 'id_pasfford' => 'ff-user_pass',
+ 'id_password' => 'ff-user_pass',
'id_remember' => 'ff-rememberme',
'id_submit' => 'ff-submit' );
?>
@@ -1656,7 +1654,7 @@ function fastfood_excerpt_length( $length ) {
}
// use the "excerpt more" string as a link to the post
-function fastfood_new_excerpt_more( $more ) {
+function fastfood_excerpt_more( $more ) {
global $fastfood_opt, $post;
if ( is_admin() ) return $more;
if ( isset( $fastfood_opt['fastfood_excerpt_more_txt'] ) && isset( $fastfood_opt['fastfood_excerpt_more_link'] ) ) {
View
@@ -13,7 +13,7 @@ fastfoodAnimations = {
var margintop_in = 50; //the starting distance between menu item and the popup submenu
var margintop_out = 20; //the exiting distance between menu item and the popup submenu
if(d.size() !== 0){ //if the sub list exists...
- $(this).children('a').append('<span class="hiraquo"> »</span>'); //add a raquo to the main item
+ $(this).children('a').append('<span class="hiraquo"> &#187;</span>'); //add a raquo to the main item
d.css({'opacity' : 0 , 'margin-top' : margintop_in });
View
@@ -642,7 +642,7 @@ function fastfood_get_coa( $option = false ) {
'type' => 'chk',
'default' => 1,
'description' => __( 'editor style', 'fastfood' ),
- 'info' => __( "add style to the editor in order to write the post exactly how it will appear in the site", 'fastfood' ),
+ 'info' => __( 'add style to the editor in order to write the post exactly how it will appear in the site', 'fastfood' ),
'req' => ''
),
'fastfood_mobile_css' =>
@@ -659,11 +659,11 @@ function fastfood_get_coa( $option = false ) {
array(
'group' => 'mobile',
'type' => 'opt',
- 'default' => 'dark',
+ 'default' => 'light',
'options' => array('light','dark'),
'options_readable' => array('<img src="' . get_template_directory_uri() . '/images/mobile-light.png" alt="light" />','<img src="' . get_template_directory_uri() . '/images/mobile-dark.png" alt="dark" />'),
'description' => __( 'colors', 'fastfood' ),
- 'info' => __( "", 'fastfood' ),
+ 'info' => '',
'req' => '',
'sub' => false
),
@@ -787,7 +787,7 @@ function fastfood_get_coa( $option = false ) {
'type' => 'chk',
'default' => 1,
'description' => __( 'navigation buttons', 'fastfood' ),
- 'info' => __( "the fixed navigation bar on the right. Note: Is strongly recommended to keep it enabled", 'fastfood' ),
+ 'info' => __( 'the fixed navigation bar on the right. Note: Is strongly recommended to keep it enabled', 'fastfood' ),
'req' => '',
'sub' => array('fastfood_navbuttons_print','fastfood_navbuttons_comment','fastfood_navbuttons_feed','fastfood_navbuttons_trackback','fastfood_navbuttons_home','fastfood_navbuttons_nextprev','fastfood_navbuttons_newold','fastfood_navbuttons_topbottom')
),
@@ -877,7 +877,7 @@ function fastfood_get_coa( $option = false ) {
'type' => 'chk',
'default' => 1,
'description' => __( 'status bar', 'fastfood' ),
- 'info' => __( "the fixed bar on bottom of page", 'fastfood' ),
+ 'info' => __( 'the fixed bar on bottom of page', 'fastfood' ),
'req' => ''
),
'fastfood_custom_widgets' =>
@@ -37,16 +37,11 @@ function fastfood_add_custom_background( $header_callback = '', $admin_header_ca
if ( isset( $GLOBALS['custom_background'] ) )
return;
- if ( empty( $header_callback ) )
- $header_callback = '_custom_background_cb';
-
add_action( 'wp_head', $header_callback );
- add_theme_support( 'custom-background', array( 'callback' => $header_callback ) );
-
if ( ! is_admin() )
return;
- $GLOBALS['custom_background'] =& new Custom_Background( $admin_header_callback, $admin_image_div_callback );
+ $GLOBALS['custom_background'] =& new Fastfood_Custom_Background( $admin_header_callback, $admin_image_div_callback );
add_action( 'admin_menu', array( &$GLOBALS['custom_background'], 'init' ) );
}
}
@@ -92,7 +87,7 @@ function fastfood_custom_bg() {
}
}
-class Custom_Background {
+class Fastfood_Custom_Background {
/* Holds default background images. */
@@ -108,7 +103,7 @@ class Custom_Background {
var $page = '';
/* PHP4 Constructor - Register administration header callback. */
- function Custom_Background( $admin_header_callback = '', $admin_image_div_callback = '' ) {
+ function Fastfood_Custom_Background( $admin_header_callback = '', $admin_image_div_callback = '' ) {
$this->admin_header_callback = $admin_header_callback;
$this->admin_image_div_callback = $admin_image_div_callback;
}
View
@@ -734,7 +734,8 @@ body.light {
background-image: url("images/light/arrows-dark.png");
background-color: #ddd;
}
-.light .tbm-seztit > a:hover {
+.light .tbm-seztit > a:hover,
+.light .tbm-seztit > a:focus {
background-image: url("images/light/arrows.png");
}
.light .tbm-pc-navi a {
View
@@ -1,6 +1,6 @@
<h3>Fastfood - WordPress theme</h3>
<ul>
- <li>version: 0.32</li>
+ <li>version: 0.32.1</li>
</ul>
<h3>Project page:</h3>
View
@@ -1,8 +1,8 @@
/*
Theme Name: Fastfood
Theme URI: http: //www.twobeers.net/annunci/tema-per-wordpress-fastfood
-Description: Simple and clear theme with a lot of features, like a "quick links" menu, an "easy navigation" bar, the print preview, 7 integrated widgets ( "Social Links", "Popular Post", "Latest Activity" and many more ). Fastfood has customizable header, customizable background (with a lot of predefined themes), one or two columns layout, up to five widgets areas and three menu. It supports custom menus, posts thumbnail, post formats ("gallery", "status" and "aside") and also mobile devices, with a dedicated style. WP3.3 full compatible.
-Version: 0.32
+Description: Simple and clear theme with a lot of features, like a "quick links" menu, an "easy navigation" bar, the print preview, 7 integrated widgets ( "Social Links", "Popular Post", "Latest Activity" and many more ). Fastfood has customizable header, customizable background (with a lot of predefined themes), one or two columns layout, up to five widgets areas and three menu. It supports custom menus, posts thumbnail, post formats ("gallery", "status" and "aside") and also mobile devices, with a dedicated style. WP3.4 full compatible.
+Version: 0.32.1
Tags: translation-ready, threaded-comments, custom-menu, custom-header, theme-options, fixed-width, two-columns, right-sidebar, white, silver, orange, light, sticky-post, custom-background, editor-style, rtl-language-support, custom-colors, post-formats
Author: TwoBeers Crew
Author URI: http: //www.twobeers.net/
@@ -243,6 +243,7 @@ input[type=reset]:hover {
clear: both;
text-align: center;
padding-bottom: 45px;
+ padding-top: 20px;
}
#ff_background {
top: 0;
@@ -263,8 +264,6 @@ input[type=reset]:hover {
width: 960px;
}
-
-
/* =Header
----------------------------------------------------------*/
#head {
@@ -281,6 +280,15 @@ input[type=reset]:hover {
font-size: 3em;
}
+/* =other elements
+----------------------------------------------------------*/
+#credits {
+ border-top: 1px solid #ddd;
+ display: block;
+ margin-top: 5px;
+ padding-top: 5px;
+}
+
/* =menu items (quickbar)
----------------------------------------------------------*/
#quickbar {
@@ -320,7 +328,6 @@ input[type=reset]:hover {
.menuitem:hover #mii_cuser {
background-position: right -250px;
}
-
.menuback,
.menuback_js {
background: url("images/main.png") repeat-x left 20px #404040;

0 comments on commit 17f21a2

Please sign in to comment.