WordPress.org

Plugin Directory

Changeset 1156655


Ignore:
Timestamp:
05/09/15 05:32:12 (3 years ago)
Author:
UnderWordPressure
Message:

Code maintenance for WP 4.2

Location:
cosimo/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cosimo/trunk/Cosimo.class.php

    r827653 r1156655  
    55 Version: latest 
    66 ---------------------------------------------------------------------------------------- 
    7  Copyright 2009-2013 andurban.de  (email: http://www.andurban.de/kontakt) 
     7 Copyright 2009-2015 andurban.de  (email: http://www.andurban.de/kontakt) 
    88 
    99 This program is free software; you can redistribute it and/or modify 
     
    3939    function out($imgurl,$csstag="body") { 
    4040        echo <<<_EOT 
    41 <!--Cosimo \$Rev$--> 
    4241<style type="text/css" media="screen"> 
    4342${csstag} {background-image:url(${imgurl}) !important;} 
  • cosimo/trunk/CosimoAdmin.class.php

    r827653 r1156655  
    55 Version: latest 
    66 ---------------------------------------------------------------------------------------- 
    7  Copyright 2009-2013 andurban.de  (email: http://www.andurban.de/kontakt) 
     7 Copyright 2009-2015 andurban.de  (email: http://www.andurban.de/kontakt) 
    88 
    99 This program is free software; you can redistribute it and/or modify 
     
    6767   <td></td> 
    6868   <td style="line-height:5px;"> 
    69     <input type="checkbox" id="orflag" name="orflag" value="true"'.($orflag ? ' checked="checked"' : null).' /><label for="orflag"> AND</label></td> 
     69    <input type="checkbox" id="orflag" name="orflag" value="true"'.((bool)$orflag ? ' checked="checked"' : null).' /><label for="orflag"> AND</label></td> 
    7070   </td> 
    7171    </tr> 
     
    8383 
    8484        // Hardcore Defaults 
    85         $orflag = $nggallery = $title = $desc = $caption = null; 
     85        $startat = $orflag = $nggallery = $title = $desc = $caption = null; 
    8686        $interval = 1; 
    8787        $unit = 'weeks'; 
     
    9494            $opts = array(); 
    9595 
     96            // Das zuletzt verwendete Image wird verworfen. 
     97            unset($opts['imgurl']); 
     98 
     99        // Die verbliebenen Optionen extrahieren 
    96100        extract($opts,EXTR_OVERWRITE); 
    97101 
     
    106110                if (substr($k,0,1) == '_') unset($_POST[$k]); 
    107111 
     112            // zuletzt gespeicherte Checkbutton-Flagsverwerfen. 
     113            // diese durch den POST entweder bestätigt oder entfernt. 
     114            $caption = $desc = $orflag = $title = null; 
     115 
    108116            // Werte zum Säubern extrahieren 
    109117            extract($_POST,EXTR_OVERWRITE); 
     
    119127            $_POST['pattern'] = $pattern; 
    120128            $_POST['interval'] = $interval; 
    121  
    122             // evtl. vorhandene ImageURL verwerfen 
    123             unset($_POST['imgurl']); 
    124129 
    125130            // $_POST Werte in die zu speichernden Optionen überführen 
     
    209214           <option value="years"${years}>Years</option> 
    210215          </select> 
    211         </tr> 
     216       </td> 
     217        </tr> 
     218        <!-- <tr> 
     219          <td>Start at: <span style="font-size: x-small;">(hh:mi)</span></td> 
     220          <td><input type="text" id="startat" name="startat" size="5" value="'.$startat.'" /></td> 
     221        </tr> --> 
    212222        <tr> 
    213223         <td><label for="tag">CSS-Selector:</label></td> 
  • cosimo/trunk/cosimo.php

    r827653 r1156655  
    55Description: Change Of Scene Image Many Often 
    66Author: andurban.de 
    7 Version:  0.4 
     7Version:  0.5 
    88Author URI:  http://www.andurban.de/ 
    99---------------------------------------------------------------------------------------- 
  • cosimo/trunk/readme.txt

    r827653 r1156655  
    44Donate link: http://donate.andurban.de/ 
    55Requires at least: 2.7 
    6 Tested up to: 3.8 
    7 Stable tag: 0.4 
     6Tested up to: 4.2 
     7Stable tag: 0.5 
    88 
    99Change the background image of the BODY-Tag. A pool of images from Media Library and / or a NextGEN gallery can be used. 
     
    3333* OTH = Other 
    3434 
     35= 0.5 = 
     36* CLN: Code maintenance for WP 4.2 
     37 
    3538= 0.4 = 
    3639* CLN: Code maintenance for WP 3.8 
Note: See TracChangeset for help on using the changeset viewer.