Plugin Directory

Changeset 2245558


Ignore:
Timestamp:
02/17/2020 12:47:01 PM (6 years ago)
Author:
Hellstrom
Message:

1.7.1

  • Minor CSS fixes
Location:
i-plant-a-tree
Files:
45 added
3 edited

Legend:

Unmodified
Added
Removed
  • i-plant-a-tree/trunk/assets/css/ipat_style.css

    r2243992 r2245558  
    211211    font-size:11px;}
    212212.ipat_widgetType_white_100x100 .ipat_m_widgetCo2SavingText {
    213     color:#81aa1e;
     213    color:#81aa1e !important;
    214214    position: absolute;
    215215    left: 0;
     
    217217    width: 50%;}
    218218.ipat_widgetType_white_100x100 .ipat_m_widgetCo2Saving {
    219     color:#81aa1e;
     219    color:#81aa1e !important;
    220220    position: absolute;
    221221    right: 0;
  • i-plant-a-tree/trunk/iplantatree.php

    r2243958 r2245558  
    545545function ipat_generateWidgetHTML_modern($ipat_widgetType,$ipat_widgetControlAlign,$ipat_isTeamWidget,$ipat_userName,$ipat_teamID,$ipat_treeCount,$ipat_co2Saving,$ipat_extraClass) {
    546546
    547     $ipat_sidebarWidgetHTML='<a ';
    548     if ($ipat_co2Saving>1) {
    549         $ipat_sidebarWidgetHTML.='title="'.round(($ipat_co2Saving*1000),1).' kg" ';
    550     }
    551     if ($ipat_isTeamWidget) {
    552         $ipat_sidebarWidgetHTML.='href="https://www.iplantatree.org/team/'.$ipat_teamID.'" target="_blank" rel="noopener">';
    553     } else {
    554         $ipat_sidebarWidgetHTML.='href="https://www.iplantatree.org/user/'.$ipat_userName.'" target="_blank" rel="noopener">';
    555     }
    556 
    557     $ipat_sidebarWidgetHTML.='<div ';
    558     $ipat_sidebarWidgetHTML.='style=background-image:url('.plugins_url().'/'.dirname(plugin_basename(__FILE__)).'/assets/image/ipat_widget_'.$ipat_widgetType.'.svg)';
    559     $ipat_sidebarWidgetHTML.=' class="ipat_widget ipat_widgetType_'.$ipat_widgetType;
     547    $ipat_sidebarWidgetHTML='<div class="ipat_widget ipat_widgetType_'.$ipat_widgetType;
    560548
    561549    switch ($ipat_widgetControlAlign) {
     
    569557    $ipat_sidebarWidgetHTML.=' '.$ipat_extraClass.'">';
    570558
     559    $ipat_sidebarWidgetHTML.='<a ';
     560    if ($ipat_co2Saving>1) {
     561        $ipat_sidebarWidgetHTML.='title="'.round(($ipat_co2Saving*1000),1).' kg" ';
     562    }
     563    if ($ipat_isTeamWidget) {
     564        $ipat_sidebarWidgetHTML.='href="https://www.iplantatree.org/team/'.$ipat_teamID.'" target="_blank" rel="noopener">';
     565    } else {
     566        $ipat_sidebarWidgetHTML.='href="https://www.iplantatree.org/user/'.$ipat_userName.'" target="_blank" rel="noopener">';
     567    }
     568
     569    $ipat_sidebarWidgetHTML.='<img src="'.plugins_url().'/'.dirname(plugin_basename(__FILE__)).'/assets/image/ipat_widget_'.$ipat_widgetType.'.svg" />';
     570
    571571    $ipat_sidebarWidgetHTML.='<div class="ipat_m_widgetTreeCountTextWrapper">';
    572572    $ipat_sidebarWidgetHTML.='<div class="ipat_m_widgetTreeCountText">';
     
    589589    $ipat_sidebarWidgetHTML.='</div>';
    590590
     591    $ipat_sidebarWidgetHTML.='</a>';
    591592    $ipat_sidebarWidgetHTML.='</div>';
    592     $ipat_sidebarWidgetHTML.='</a>';
    593593
    594594    return $ipat_sidebarWidgetHTML;
  • i-plant-a-tree/trunk/readme.txt

    r2243958 r2245558  
    44Requires at least: 4.2.2
    55Tested up to: 5.3.2
    6 Stable tag: 1.7
     6Stable tag: 1.7.1
    77License: GPLv3
    88License URI: https://www.gnu.org/licenses/gpl-3.0
     
    2525
    2626== Changelog ==
     27
     28= 1.7.1 =
     29* Minor CSS fixes
    2730
    2831= 1.7 =
     
    104107Dieses Update bringt einen deutlich moderneren Look des Widgets mit sich.
    105108This update brings a much more modern look to the widget.
     109
     110= 1.7.1 =
     111Das 1.7.x Update bringt einen deutlich moderneren Look des Widgets mit sich.
     112The 1.7.x update brings a much more modern look to the widget.
Note: See TracChangeset for help on using the changeset viewer.