Plugin Directory

Changeset 573497


Ignore:
Timestamp:
07/17/2012 11:40:40 AM (13 years ago)
Author:
InoPlugs
Message:
 
Location:
wp-backgrounds-lite
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • wp-backgrounds-lite/trunk/inoplugs_background_plugin.php

    r401589 r573497  
    33 *  Plugin Name: WP-Backgrounds Lite
    44 *  Plugin URI: http://inoplugs.com
    5  *  Description: Set fullsize background images for Posts | Get the Premium version here: <a href="http://inoplugs.com/projects/wp-backgrounds-plugin/">Premium Version</a>
     5 *  Description: Set clickable fullsize background images for Posts/Pages | Get the Premium version here: <a href="http://inoplugs.com/wpbackgroundsII">WP-Backgrounds II</a>
    66 *  Author: InoPlugs | Peter Schoenmann
    7  *  Version: 1.5.0.0
     7 *  Version: 2.0.0.0
    88 *  Author URI: http://inoplugs.com
    99 */
    10 
     10 
     11    define( 'INO_WPBLITE_URLPATH', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__ ),'',plugin_basename(__FILE__)) );
     12    define( 'INO_WPBLITE_TEXTDOMAIN', 'inowpblite' );
     13    define( 'INO_WPBLITE_OPTIONNAME', 'inoplugs_bglite_options' );
     14   
     15    load_plugin_textdomain( INO_WPBLITE_TEXTDOMAIN, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
     16   
    1117    require_once('inoplugs_classes/inoplugs_background_display.php');
     18   
     19   
     20   
     21    global $ino_bglite_options;
     22    $ino_bglite_options = array();
     23    $ino_bglite_options = get_option(INO_WPBLITE_OPTIONNAME);
     24               
     25    //set falback settings     
     26    $ino_bglite_options['zindex'] = empty($ino_bglite_options['zindex']) ? "0" : $ino_bglite_options['zindex'];
     27    $ino_bglite_options['bg_color'] = empty($ino_bglite_options['bg_color']) ? "" : $ino_bglite_options['bg_color'];
     28    $ino_bglite_options['zindexcontainer'] = empty($ino_bglite_options['zindexcontainer']) ? "5" : $ino_bglite_options['zindexcontainer'];
     29    $ino_bglite_options['positioncontainer'] = empty($ino_bglite_options['positioncontainer']) ? "relative" : $ino_bglite_options['positioncontainer'];
     30    $ino_bglite_options['containerid'] = empty($ino_bglite_options['containerid']) ? "" : $ino_bglite_options['containerid'];
    1231
    1332    //  create objects for handlers
    1433    $inoplugs_wp_backgrounds_display = new inoplugs_background_display();
    1534
    16     # Add the options/actions to WordPress (if they doesn't exist)
     35    # Add the options/actions to WordPress
    1736    add_action('init', array (&$inoplugs_wp_backgrounds_display, 'handler_frontend_includes'));
    18     add_action('wp_head', array (&$inoplugs_wp_backgrounds_display, 'handler_add_background_slideshow'));
    19    
    20    
    21     //options
    22     $ino_zindex = '-999';
    23     $ino_bg_color = '';
    24     $ino_credit = true;
    25    
    26    
     37    add_action('wp_head', array (&$inoplugs_wp_backgrounds_display, 'handler_add_background_slideshow'));   
    2738   
    2839    if (function_exists('register_uninstall_hook')){
     
    4253
    4354    //metabox
    44     $prefix = 'ino_';
    45              
    4655            $meta_box = array(
    4756                            $meta_box_post = array(
    4857                                            'id' => 'ino-meta-box_post',
    49                                             'title' => 'InoPlugs WP-Background Image',
     58                                            'title' => __('InoPlugs WP-Background Image',INO_WPBLITE_TEXTDOMAIN),
    5059                                            'page' => 'post',
    5160                                            'context' => 'normal',
     
    5362                                            'fields' => array(
    5463                                                array(
    55                                                     'name' => 'Background Image',
    56                                                     'desc' => 'Select an Image (internal or external url)',
     64                                                    'name' => __('Background Image',INO_WPBLITE_TEXTDOMAIN),
     65                                                    'desc' => __('Select an Image (internal or external url)',INO_WPBLITE_TEXTDOMAIN),
     66                                                    'id' => 'upload_image',
     67                                                    'type' => 'text',
     68                                                    'std' => ''
     69                                                ),
     70                                               
     71                                                array(
     72                                                    'name' => '',
     73                                                    'desc' => __('Upload Image',INO_WPBLITE_TEXTDOMAIN),
     74                                                    'id' => 'upload_image_button',
     75                                                    'type' => 'button',
     76                                                    'std' => __('Select Background Image',INO_WPBLITE_TEXTDOMAIN)
     77                                                ),
     78                                               
     79                                                array(
     80                                                    'name' => '',
     81                                                    'desc' => __('Apply Link to Background - enter the url. It must start with http://',INO_WPBLITE_TEXTDOMAIN),
     82                                                    'id' => 'image_url',
     83                                                    'type' => 'text',
     84                                                    'std' => ''
     85                                                )
     86                                        )
     87                            ),
     88                           
     89                         $meta_box_page = array(
     90                                            'id' => 'ino-meta-box_page',
     91                                            'title' => __('InoPlugs WP-Background Image',INO_WPBLITE_TEXTDOMAIN),
     92                                            'page' => 'page',
     93                                            'context' => 'normal',
     94                                            'priority' => 'high',
     95                                            'fields' => array(
     96                                                array(
     97                                                    'name' => __('Background Image',INO_WPBLITE_TEXTDOMAIN),
     98                                                    'desc' => __('Select a Image (internal or external url)',INO_WPBLITE_TEXTDOMAIN),
    5799                                                    'id' => 'upload_image',
    58100                                                    'type' => 'text',
     
    61103                                                        array(
    62104                                                    'name' => '',
    63                                                     'desc' => 'Upload Image',
     105                                                    'desc' => __('Upload Image',INO_WPBLITE_TEXTDOMAIN),
    64106                                                    'id' => 'upload_image_button',
    65107                                                    'type' => 'button',
    66                                                     'std' => 'Select Background Image'
    67                                                 )
    68                                         )
    69                             ),
    70                            
    71                             $meta_box_page = array(
    72                                             'id' => 'ino-meta-box_page',
    73                                             'title' => 'InoPlugs WP-Background Image',
    74                                             'page' => 'page',
    75                                             'context' => 'normal',
    76                                             'priority' => 'high',
    77                                             'fields' => array(
    78                                                 array(
    79                                                     'name' => 'Background Image',
    80                                                     'desc' => 'Select a Image (internal or external url)',
    81                                                     'id' => 'upload_image',
    82                                                     'type' => 'text',
    83                                                     'std' => ''
    84                                                 ),
    85                                                         array(
    86                                                     'name' => '',
    87                                                     'desc' => 'Upload Image',
    88                                                     'id' => 'upload_image_button',
    89                                                     'type' => 'button',
    90                                                     'std' => 'Select Background Image'
     108                                                    'std' => __('Select Background Image',INO_WPBLITE_TEXTDOMAIN)
    91109                                                    ),
    92110                                                   
    93111                                                    array(
    94112                                                    'name' => '',
    95                                                     'desc' => 'Apply Link to Background - Use following url',
    96                                                     'id' => 'url',
     113                                                    'desc' => __('Apply Link to Background - enter the url here. It must start with http://',INO_WPBLITE_TEXTDOMAIN),
     114                                                    'id' => 'image_url',
    97115                                                    'type' => 'text',
    98116                                                    'std' => ''
     
    142160             
    143161             
    144             //If Text Area         
    145                         case 'textarea':
    146                             echo '<textarea name="', $field['id'], '" id="', $field['id'], '" cols="60" rows="4" style="width:97%">', $meta ? $meta : $field['std'], '</textarea>',
    147                                 '<br />', $field['desc'];
    148                             break;
    149              
    150              
    151162            //If Button
    152163             
     
    201212             
    202213            function ino_admin_scripts() {
    203             wp_enqueue_script('media-upload');
    204             wp_enqueue_script('thickbox');
    205             wp_register_script('my-upload', WP_PLUGIN_URL.'/wp-backgrounds-lite/includes/script.js', array('jquery','media-upload','thickbox'));
    206             wp_enqueue_script('my-upload');
    207             }
     214                wp_enqueue_script('media-upload');
     215                wp_enqueue_script('thickbox');
     216                wp_register_script('my-upload', INO_WPBLITE_URLPATH.'includes/script.js', array('jquery','media-upload','thickbox'));
     217                wp_enqueue_script('my-upload');
     218            }
     219           
    208220            function ino_admin_styles() {
    209             wp_enqueue_style('thickbox');
    210             }
     221                wp_enqueue_style('thickbox');
     222            }
     223           
    211224            add_action('admin_print_scripts', 'ino_admin_scripts');
    212225            add_action('admin_print_styles', 'ino_admin_styles');
    213                        
    214 ?>
     226       
     227       
     228    # Register an administration page
     229
     230    add_action('admin_menu', 'inowpblite_addAdminPage');
     231     
     232    function inowpblite_addAdminPage() {
     233        add_options_page(__('WP-Backgrounds Lite',INO_WPBLITE_TEXTDOMAIN), 'WP-Backgrounds Lite', 8, 'WP-Backgrounds', 'inowpblite_adminmenu');
     234    }
     235
     236    # Generates the administration menu
     237   
     238
     239    add_action('wp_ajax_inoptions_inowpblite_ajax_save','inoplugs_inowpblite_save_ajax');
     240   
     241    function inoplugs_inowpblite_save_ajax() {
     242
     243        check_ajax_referer('test-inooptions_inowpblite', 'security');
     244
     245        $data = $_POST[INO_WPBLITE_OPTIONNAME];
     246        unset($data['security'], $data['action']);
     247
     248        if(update_option(INO_WPBLITE_OPTIONNAME, $data))
     249        {
     250            die('1');
     251        } else {
     252            die('0');
     253        }
     254    }
     255
     256    function inowpblite_adminmenu() {
     257    ?>
     258    <div class="wrap">
     259        <div id="message"></div>
     260       
     261        <script type="text/javascript">
     262        jQuery(document).ready(function($) {
     263
     264          jQuery('form#ino_inowpblite_option_form').submit(function() {
     265              var data = jQuery(this).serialize();
     266              jQuery.post(ajaxurl, data, function(response) {
     267                  if(response == 1) {
     268                      show_message(1);
     269                      t = setTimeout('fade_message()', 2000);
     270                  } else {
     271                      show_message(2);
     272                      t = setTimeout('fade_message()', 2000);
     273                  }
     274              });
     275              return false;
     276          });
     277
     278        });
     279
     280        function show_message(n) {
     281            if(n == 1) {
     282                jQuery('#message').html('<div id="notice" class="updated fade"><p><strong><?php _e('Backgrounds Lite options saved.',INO_WPBLITE_TEXTDOMAIN); ?></strong></p></div>').show();
     283            } else {
     284                jQuery('#message').html('<div id="notice" class="updated fade"><p><strong><?php _e('Backgrounds Lite options saved.',INO_WPBLITE_TEXTDOMAIN); ?></strong></p></div>').show();
     285            }
     286        }
     287
     288        function fade_message() {
     289            jQuery('#message').fadeOut(1000);
     290            clearTimeout(t);
     291        }
     292        </script>
     293       
     294        <div class="logo"><a href="http://inoplugs.com"><img style="float:left;" src="<?php $ino_urlpath = WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)); echo $ino_urlpath; ?>images/logo.png" height="100" alt="logo" /></a>
     295            <h2 style="float:left; margin-top: 64px;"><?php _e('Backgrounds Lite Option Page',INO_WPBLITE_TEXTDOMAIN); ?></h2>
     296            <h2 style="float:left;background: #E2E2E2; border-radius: 5px; padding: 10px;"> <?php _e('Backgrounds Lite is the free version of <a href="http://inoplugs.com/wpbackgroundsII">WP-Backgrounds II</a>. It offers much more features - among them html5 video, youtube, image and kenburns slider backgrounds, a custom login panel and support for custom post types, categories, terms/taxonomies and standard wordpress pages (archive pages, home page, 404 page, search page, etc.). Each author can set/use an individual background.',INO_WPBLITE_TEXTDOMAIN); ?></h2>
     297        </div>
     298        <div style="clear: both;"></div>
     299       
     300        <form method="post" action="options.php" name="ino_inowpblite_option_form" id="ino_inowpblite_option_form">
     301        <?php global $ino_bglite_options; wp_nonce_field('update-options'); ?>
     302       
     303            <div id="ino-options-cont">
     304
     305                <div id="ino-zindex" class="tab-option">
     306                    <h3 class="option-title"><strong><?php _e('Z-index value of background layer',INO_WPBLITE_TEXTDOMAIN); ?></strong></h3>
     307                    <div class="option-content">
     308                        <label for="zindex">
     309                            <input type="text" name="<?php echo INO_WPBLITE_OPTIONNAME; ?>[zindex]" value="<?php if( !empty($ino_bglite_options['zindex']) ) { echo $ino_bglite_options['zindex']; }else{ echo "0"; } ?>" /><br />
     310                            <?php _e('Enter the z-index value of the background layer (0 by default).',INO_WPBLITE_TEXTDOMAIN); ?>
     311                        </label><br />
     312
     313                        <div class="clear"></div>
     314                    </div>
     315                </div>
     316               
     317                               
     318                <div id="ino-containerid" class="tab-option">
     319                    <h3 class="option-title"><strong><?php _e('ID or class of the content container/wrapper',INO_WPBLITE_TEXTDOMAIN); ?></strong></h3>
     320                    <div class="option-content">
     321                   
     322                    <label for="containerid">
     323                        <input type="text" name="<?php echo INO_WPBLITE_OPTIONNAME; ?>[containerid]" value="<?php if( !empty($ino_bglite_options['containerid']) ) { echo $ino_bglite_options['containerid']; }else{ echo ""; } ?>" /><br/>
     324                        <br /><?php _e('Enter the ID or class of the content container/wrapper. Eg the default WP Theme TwentyEleven uses the \'#page\' element as content container.',INO_WPBLITE_TEXTDOMAIN); ?>
     325                    </label>
     326
     327                        <div class="clear"></div>
     328                    </div>
     329                </div>
     330               
     331               
     332                <div id="ino-zindexcontainer" class="tab-option">
     333                    <h3 class="option-title"><strong><?php _e('Z-index value of content layer',INO_WPBLITE_TEXTDOMAIN); ?></strong></h3>
     334                    <div class="option-content">
     335                   
     336                    <label for="zindexcontainer">
     337                        <input type="text" name="<?php echo INO_WPBLITE_OPTIONNAME; ?>[zindexcontainer]" value="<?php if( !empty($ino_bglite_options['zindexcontainer']) ) { echo $ino_bglite_options['zindexcontainer']; }else{ echo "5"; } ?>" />
     338                        <br /><?php _e('Enter the z-index value of the background layer (5 by default).',INO_WPBLITE_TEXTDOMAIN); ?>
     339                    </label>
     340
     341                        <div class="clear"></div>
     342                    </div>
     343                </div>
     344               
     345                <div id="ino-positioncontainer" class="tab-option">
     346                    <h3 class="option-title"><strong><?php _e('Position of the content container/wrapper',INO_WPBLITE_TEXTDOMAIN); ?></strong></h3>
     347                    <div class="option-content">
     348                   
     349                    <label for="positioncontainer">
     350                        <input type="text" name="<?php echo INO_WPBLITE_OPTIONNAME; ?>[positioncontainer]" value="<?php if( !empty($ino_bglite_options['positioncontainer']) ) { echo $ino_bglite_options['positioncontainer']; }else{ echo "relative"; } ?>" />
     351                        <br /><?php _e('Enter the position of the content container/wrapper. Default value is \'relative\'. Only change it if you know what you\'re doing.',INO_WPBLITE_TEXTDOMAIN); ?>
     352                    </label>
     353
     354                        <div class="clear"></div>
     355                    </div>
     356                </div>
     357               
     358                <div id="ino-bg_color" class="tab-option">
     359                    <h3 class="option-title"><strong><?php _e('Body background color',INO_WPBLITE_TEXTDOMAIN); ?></strong></h3>
     360                    <div class="option-content">
     361                   
     362                    <label for="bg_color">
     363                        <input type="text" name="<?php echo INO_WPBLITE_OPTIONNAME; ?>[bg_color]" value="<?php if( !empty($ino_bglite_options['bg_color']) ) { echo $ino_bglite_options['bg_color']; }else{ echo ""; } ?>" />
     364                        <br /><?php _e('This option helps you to adjust the default body background color. Leave the field empty to deactivate this option.',INO_WPBLITE_TEXTDOMAIN); ?>
     365                    </label>
     366
     367                        <div class="clear"></div>
     368                    </div>
     369                </div>
     370
     371        </div>
     372            <p class="submit">
     373
     374                <input type="hidden" name="action" value="inoptions_inowpblite_ajax_save" />
     375                <input type="hidden" name="security" value="<?php echo wp_create_nonce('test-inooptions_inowpblite'); ?>" />
     376                <input type="submit" class="button-primary" value="<?php _e('Save Changes',INO_WPBLITE_TEXTDOMAIN) ?>" />
     377            </p>
     378        </form>
     379    </div>
     380   
     381    <?php
     382}
  • wp-backgrounds-lite/trunk/inoplugs_classes/inoplugs_background_display.php

    r395020 r573497  
    1111{
    1212    protected $bg_image;
    13     protected $deactivate;
     13    protected $ino_bglite_options;
    1414
    1515    public function __construct()
    1616    {
     17        global $ino_bglite_options;
    1718        $this->bg_image = "";
    18         $this->deactivate = "0";
     19        $this->ino_bglite_options = $ino_bglite_options;
    1920    }
    2021
     
    2223    {
    2324        unset($this->bg_image);
    24         unset($this->deactivate);
     25        unset($this->ino_bglite_options);
    2526    }
    2627
     
    3031    public function handler_frontend_includes()
    3132    {
    32         $ino_backgrounds_path = WP_PLUGIN_URL.'/wp-backgrounds-lite/includes/';
     33        $ino_backgrounds_path = INO_WPBLITE_URLPATH.'includes/';
    3334        wp_register_style('inoplugs_backgrounds_css', $ino_backgrounds_path.'wp-backgrounds.css');
    3435        wp_enqueue_script('jquery');
     
    6869        $background_slideshow .= "<script type='text/javascript' src='".$ino_backgrounds_path."wp-backgrounds.js'></script>\n";
    6970       
    70         global $ino_zindex, $ino_bg_color;
    7171        $background_slideshow .= "<style type=\"text/css\">\n";
    72         if ($ino_zindex != ''){
    73         $background_slideshow .= '#supersized{z-index:'.$ino_zindex.' !important;}';
     72       
     73        if ( !empty($this->ino_bglite_options['zindex']) )
     74        {
     75            $background_slideshow .= '#supersized{z-index:'.$this->ino_bglite_options['zindex'].' !important;} ';
    7476        }
    75         if ($ino_bg_color != ''){
    76         $background_slideshow .= 'body{background-color:'.$ino_bg_color.' !important;}';
     77        else
     78        {
     79            $background_slideshow .= '#supersized{z-index: 0 !important;} ';
    7780        }
     81       
     82        if ( !empty($this->ino_bglite_options['bg_color']) )
     83        {
     84            $background_slideshow .= 'body{background-color:'.$this->ino_bglite_options['bg_color'].' !important;} ';
     85        }
     86       
     87        if ( !empty($this->ino_bglite_options['containerid']) )
     88        {
     89            $container .= $this->ino_bglite_options['containerid'].'{';
     90           
     91            if ( !empty($this->ino_bglite_options['zindexcontainer']) )
     92            {
     93                $container .= 'z-index:'.$this->ino_bglite_options['zindexcontainer'].';';
     94            }
     95           
     96            if ( !empty($this->ino_bglite_options['positioncontainer']) )
     97            {
     98                $container .= 'position:'.$this->ino_bglite_options['positioncontainer'].';';
     99            }
     100           
     101            $container .= '} ';
     102           
     103            $background_slideshow .= $container;
     104        }
     105       
     106       
    78107        $background_slideshow .= "\n</style>\n";
    79108        $background_slideshow .= "\n<script type='text/javascript'>\n";
     
    91120
    92121        /* check if we got any slides - if not don't output bg function */
     122        add_action('wp_footer', array(&$this, 'handler_set_fallback_image'));
    93123        if (!$images_slideshow == false){
    94             add_action('wp_footer', array(&$this, 'handler_set_fallback_image'));
    95124            echo $background_slideshow;
    96125        }else{
    97             add_action('wp_footer', array(&$this, 'handler_set_fallback_image'));
    98126            return;
    99127        }
    100128    }
    101129
    102 
    103     public function handler_set_fallback_image()
    104     {   
    105         global $ino_credit;
    106         if ($ino_credit == true){ echo '<div id="ino-wp-backgrounds"><a href="http://inoplugs.com">WP-Backgrounds by InoPlugs Web Design</a> and <a href="http://schoenmann.at/">Juwelier Sch&ouml;nmann</a></div>';}
     130   
     131    public function handler_set_fallback_image() 
     132    {
     133        $inoplugs = apply_filters("inoplugs_link", '<div style="display: none;"><a href="http://inoplugs.com">WP-Backgrounds Lite by InoPlugs Web Design</a> and <a href="http://schoenmann.at/">Juwelier Sch&ouml;nmann 1010 Wien</a></div>');
     134        echo $inoplugs;
    107135    }
    108 
    109136
    110137    protected function set_bg_images()
     
    113140
    114141        $get_external_bg_image = get_post_meta($wp_query->post->ID, 'upload_image', true);
     142        $get_image_link = get_post_meta($wp_query->post->ID, 'image_url', true);
    115143       
    116         if ($get_external_bg_image == '') {
    117         $deactivate_image = 'on';
     144        if (empty($get_external_bg_image)) {
     145            $deactivate_image = 'on';
     146            return;
    118147        }
    119 
    120 
    121         /* check if post and if post meta was set*/
    122         if (is_single() || is_page()){
    123             if($get_external_bg_image != ""){
    124                         $this->bg_image = $get_external_bg_image;
     148        else
     149        {
     150            if (is_single() || is_page())
     151            {
     152                $this->bg_image = $get_external_bg_image;
    125153            }
    126154        }
    127155
    128 
    129             if(!empty($this->bg_image))
    130         {
    131 
    132 
     156        if(!empty($this->bg_image))
     157        {       
     158            if (!empty($get_image_link))
     159            {
     160                $url = ", url : '$get_image_link'";
     161            }
     162            else
     163            {
     164                $url = '';
     165            }
    133166            $background_image = '';
    134             $background_image .= "{image : '".$this->bg_image."'}";
    135 
    136 
    137 
    138 
     167            $background_image .= "{image : '{$this->bg_image}' $url }";
     168            $background_image = 'slides : [ '.$background_image.' ]';
     169            return $background_image;
    139170        }
    140171        else
     
    142173            return $background_image = false;
    143174        }
    144 
    145 
    146         $background_image = 'slides                     :   [ '.$background_image.' ]';
    147 
    148 
    149 
    150         return $background_image;
    151     }
    152 
    153    
     175    }   
    154176}
    155177?>
  • wp-backgrounds-lite/trunk/readme.txt

    r568938 r573497  
    77Stable tag: 1.5
    88
    9 Set fullscreen background images for all posts and pages. Compatible with all major browsers and very easy to install.
     9Set clickable fullscreen background images for single posts and pages. Compatible with all major browsers and very easy to install. This is the free lite version of <a href="http://inoplugs.com/wpbackgroundsII">WP-Backgrounds II</a>.
    1010
    1111== Description ==
    1212
    13 Set fullscreen background images for all posts and pages. Compatible with all major browsers and very easy to install.
     13Set clickable fullscreen background images for single posts and pages. Compatible with all major browsers and very easy to install. This is the free lite version of <a href="http://inoplugs.com/wpbackgroundsII">WP-Backgrounds II</a>.
    1414
    1515
    1616*    Set fullscreen background images for posts and pages
    17 *    Option to deactivate WP-Backgrounds Lite for certain pages and posts
     17*    Apply a link to each background image (only boxed themes where the contentcontainer doesn't cover the whole screen)
     18*    You can deactivate WP-Backgrounds Lite for certain pages and posts
    1819*    Compatible with all major browsers like IE7, IE8, IE9, Firefox, Opera, Safari, Chrome and other modern browsers.
    19 *    Can be used with nearly every theme (premium and free ones). For the most themes it works out of the box (i.e. for TwentyTen or boxed themes). A z-index and a background color option helps you to adjust the background layer and the color.
     20*    Can be used with nearly every theme (premium and free ones). For the most themes it works out of the box (i.e. for TwentyTen or boxed themes). A z-index and a background color option helps you to adjust the background/content layer z-index and the body background color.
    2021*    Vertical & horizontal image centering
    2122*    Small fingerprint, only a few kb filesize
     23*    Translatable - supports mo/po files
    2224*    Easy installation, works out of the box
    23 *    Option to adjust the background layer (z-index).
     25*    User friendly ajax option page
     26*    Option to adjust the background image layer z-index, the content container layer z-index, the body background color, the content container id/class and the content container position.
    2427
    2528
     
    50531. Upload `wp-backgrounds-lite` to the `/wp-content/plugins/` directory or use the WordPress plugin installer to install the plugin.
    51541. Activate the plugin through the 'Plugins' menu in WordPress
    52 1. If required you can change the background layer (z-index), the background color and the credit option in inoplugs_background_plugin.php. Use the plugin editor to edit inoplugs_background_plugin.php.
     551. If required you can change the background layer z-index, the background color and the content container z-index value.
    5356
    54 *    If the background image doesn't show up set $ino_zindex to an higher value (i.e. to -1, 0 or 1). Please keep in mind that fullwidth themes (themes without boxed layout) may require some css changes too.
    55 *    You can chnge the body background color by setting a value for $ino_bg_color. It's empty by default, however you can enter any hexdezimal color value - like #000000.
    56 *    The $ino_credit variable is set to true by default. You can set it to false to deactivate credits.
     57*    If the background image doesn't show up use 0 or 1 as the background layer z-index value. Please keep in mind that fullwidth themes (themes without boxed layout) may require some css changes too.
     58*    Use tools like FireBug to determine the content container id/class. It's required to set the z-index value for the content container. I'd sugest to set it to something higher than 1 (eg 2 or 3).
    5759
    5860== Frequently Asked Questions ==
     
    8486* Updated background image javascript function - solves various display errors with IE7+ and mobile devices.
    8587
     88= 2.0 =
     89* Major update. New option panel (Settings > WP-Backgrounds Lite) and clickable backgrounds (you can enter a custom url for each background). Some configuration may be required. Clickable backgrounds may not work with all themes (only boxed themes are supported).
     90
    8691== Upgrade Notice ==
    8792
Note: See TracChangeset for help on using the changeset viewer.