WordPress.org

Make WordPress Themes

Changes from mace/1.1 at r81985 to mace/1.2 at r81985


Ignore:
Location:
mace/1.2
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • mace/1.2/inc/custom-walker-class.php

    r81985 r81985  
    33class Walker_Nav_Menu_Dropdown extends Walker_Nav_Menu { 
    44  
    5     function start_lvl($output, $depth) {    } 
     5    function start_lvl(&$output, $depth = 0, $args = array()) {    } 
    66  
    7     function end_lvl($output, $depth) {    } 
     7    function end_lvl(&$output, $depth = 0, $args = array()) {    } 
    88  
    9     function start_el($output, $item, $depth, $args) { 
     9    function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) { 
    1010        // Here is where we create each option. 
    1111        $item_output = ''; 
     
    2626        // Add this new item to the output string. 
    2727        $output .= $item_output; 
    28   
    2928    } 
    30   
    31     function end_el($output, $item, $depth) { 
     29 
     30    function end_el(&$output, $item, $depth = 0, $args = array()) { 
    3231        // Close the item. 
    33         $output .= "</option>\n"; 
    34   
     32        $output .= "</option>\n";  
    3533    } 
    3634} 
  • mace/1.2/inc/options-panel.php

    r81985 r81985  
    237237 
    238238function mace_validator($input){ 
    239     var_dump($input); 
    240239    //General settings 
    241240    $output['favicon']      = esc_url($input['favicon']); 
    242241    $output['logo']         = esc_url($input['logo']); 
    243242    $output['custom_css']   = wp_kses($input['custom_css'], array()); 
    244     $output['color_scheme'] = $input['color_scheme']; 
    245243    $output['layout']       = $input['layout']; 
    246244 
     
    248246    $output['disable_slider']   = $input['disable_slider']; 
    249247    $output['show_excerpts']    = $input['show_excerpts']; 
    250     $index = 0; 
    251     if(is_array($input['slides'])){ 
    252         foreach ($input['slides'] as $slide) { 
     248    if(isset($input['slides']) && is_array($input['slides'])){ 
     249        foreach ($input['slides'] as $index => $slide) { 
    253250            if($slide['img']) { 
    254251                $output['slides'][$index]['img'] = esc_url($slide['img']); 
     
    256253                $index++; 
    257254            } 
    258         }        
    259     } 
    260     else { 
    261         $output['slides'] = $input['slides']; 
     255        } 
    262256    } 
    263257 
  • mace/1.2/style.css

    r81985 r81985  
    55Author URI: http://the-hosts.com/ 
    66Description: Mace is a fully responsive WordPress theme designed for restaurants, cafes and food bloggers. It has a warm color scheme consisting of a brown background and an elegant orange navigation bar. It comes with a built-in slider, two sidebar positions, social icons and tons of customization options. If you want to setup a food related website quickly and effortlessly then Mace is the theme that you have been looking for. 
    7 Version: 1.1 
     7Version: 1.2 
    88License: GNU General Public License 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
Note: See TracChangeset for help on using the changeset viewer.