} ?>
$uid=get_current_user_id();
if (empty($uid)) $uid=0;
if (!empty($_REQUEST['set_like']) && !empty($uid))
{
// set here
$sql="select * from island_like where user_id=\"".mysql_real_escape_string($uid)."\",1,0) and post_id=\"".mysql_real_escape_string(get_the_ID())."\"";
$rs = $wpdb->get_results($sql);
if (count($rs)<1) // not yet added
{
$sql="insert into island_like (user_id, post_id, date_added) values (\"".mysql_real_escape_string($uid)."\", \"".mysql_real_escape_string(get_the_ID())."\", NOW());";
$rs = $wpdb->get_results($sql);
}
}
elseif (!empty($_REQUEST['remove_like']) && !empty( $uid))
{
// unset here
$sql="delete from island_like where user_id=\"".mysql_real_escape_string($uid)."\" and post_id=\"".mysql_real_escape_string(get_the_ID())."\";";
$rs = $wpdb->get_results($sql);
}
/*
$sql="select U.display_name, U.user_nicename, U.id as uid, if(U.id=\"".mysql_real_escape_string($uid)."\",1,0) as is_current, if (U.id=19, 1,0) as is_allee ".
"from island_like as L, wp_users as U ".
"where L.post_id=\"".mysql_real_escape_string(get_the_ID())."\" ".
"and U.ID=L.user_id ".
"order by is_current DESC, is_allee DESC, date_added DESC;";
$jealous_rs = $wpdb->get_results($sql);
$user_is_jealous=0;
if (count($jealous_rs)>0)
{
if ($jealous_rs[0]->uid==$uid)
{
$user_is_jealous=1;
}
}*/
?>
$is_award=$is_gold_award=$is_hair=0;
$is_byallee=0;
$is_askallee=0;
$c=get_the_category();
foreach ($c as $cat)
{
if ($cat->slug=='certifikitsch-winners')
{
$is_award=1;
}
if ($cat->slug=='classique-d-camembert-winners')
{
$is_gold_award=1;
}
if ($cat->slug=='love-is-in-the-hair-award-winners')
{
$is_hair=1;
}
}
// true added because this table will now always exist - jealous button
if ($is_award || $is_gold_award || $is_hair || true)
{
$admin_email_pop_coa=$admin_email_pop_cdc=$admin_email_pop_liith="";
if ( current_user_can('level_10') )
{
$now=gmdate("Y-m-d H:i:s");
$key=sha1("A".$now."B");
$the_title=single_post_title("", false);
?>
$admin_email_pop_coa="
Send Certifikitsch Confirmation Email to: ".get_the_author_meta('display_name')."";
$admin_email_pop_cdc="
Send Classique d' Camembert Confirmation Email to: ".get_the_author_meta('display_name')."";
$admin_email_pop_liith="
Send Love Is In The Hair Confirmation Email to: ".get_the_author_meta('display_name')."";
}
echo "
";
if ($is_award)
{
echo '
';
echo ' .'/library/img/certifikitsch-of-authenkitschity.gif)
'.$admin_email_pop_coa;
}
if ($is_gold_award)
{
echo '
';
echo ' .'/library/img/classique-d-camembert-post.gif)
'.$admin_email_pop_cdc;
}
if ($is_hair)
{
echo '
';
echo ' .'/library/img/icon-love-is-in-the-hair-sm.png)
'.$admin_email_pop_liith;
}
/*
if (empty($uid))
{
$str="Click if you\\'re Jealous!
(You must be logged in to be Jealous.)";
}
elseif ($user_is_jealous)
{
$str="You are Jealous of this Kitsch!";
}
else
{
$str="Click if you\\'re Jealous!";
}
if (empty($uid))
{
echo '
 .'/library/img/jealous-button-med.png)
';
}
elseif ($user_is_jealous)
{
echo '
 .'/library/img/jealous-button-med.png)
';
}
else
{
echo '
 .'/library/img/jealous-button-med.png)
';
}
if (count($jealous_rs)>0)
{
echo "(
".count($jealous_rs).")";
}
*/
echo "
\n\n";
}
?>
Allee Willis
Beautiful! Having grown up with a scrap dealer father I’m always going to love things like this.
Really great that you can just light the center and have a choice of three light locations. Fantastic that it also throws incredible patterns and colors on the wall. That’s one of my favorite things about lamps when well placed.
It must weigh a ton. How heavy do you think it is?
Michael Ely
I weighed it on a bathroom scale and it weighs aprox. 10 pounds. Some of Lane Patterson’s other metal lamps weigh as much as 20 or more pounds (depending on the materials he uses). Right now Lane is doing a commission job for a tavern / restaurant in Albuquerque creating a set of 12 lighting fixures made of old New Mexico license plates! He is very inventive and one of my fave artists here in Tucson, plus a good friend. To see more of his fantastic lamps and sculptures check out this link – http://ostyn-newman.com/Patterson_Home_Page_of_Sculptures.html
Danny
Gorgeous!
denny
This is beautiful.
k2dtw
Michael, this is a great post. I’m new to steampunk… but I just love found objects art/artist. I especially love the found object robots.