Plugin Directory

Changeset 670029


Ignore:
Timestamp:
02/19/2013 12:49:33 AM (13 years ago)
Author:
websitezcom
Message:

This is a the first version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • furnishedcom/trunk/furnished-com.php

    r669905 r670029  
    211211                endif;
    212212            endfor;
    213             echo "<div class='furnished_powered_by'>Browse thousands of <a href='http://furnished.com' title='Furnished Apartments'>Furnished Apartments</a> at Furnished.com <a href='http://furnished.com' target='_blank'><img src='http://furnished.com/images/furnished-logo-small.gif'></a></div>";
     213            if(array_key_exists('city',$atts) && array_key_exists('state',$atts)):
     214                $city = str_ireplace(" ","-",strtolower($atts['city']));
     215                $state = str_ireplace(" ","-",strtolower($atts['state']));
     216                echo "<div class='furnished_powered_by'>Browse hundreds of <a href='http://furnished.com/loc/".$state."/".$city."/' title='".$atts['city']." Furnished Apartments' target='_blank'>".$atts['city']." Furnished Apartments</a> at Furnished.com <a href='http://furnished.com' target='_blank'><img src='http://furnished.com/images/furnished-logo-small.gif'></a></div>";
     217            else:
     218                echo "<div class='furnished_powered_by'>Browse thousands of <a href='http://furnished.com' title='Furnished Apartments' target='_blank'>Furnished Apartments</a> at Furnished.com <a href='http://furnished.com' target='_blank'><img src='http://furnished.com/images/furnished-logo-small.gif'></a></div>";
     219            endif;
    214220        else:
    215221            _e('<h2>No furnished rentals could be found.</h2>');
Note: See TracChangeset for help on using the changeset viewer.