function wppa_slide_name_box($key = 'optional') { $do_it = false; if ($key != 'optional') { $do_it = true; } if (wppa('is_slideonly')) { if (wppa('name_on')) { $do_it = true; } } else { if (wppa_switch('show_full_name') || wppa_switch('show_full_owner')) { $do_it = true; } } if ($do_it) { wppa_out('<div' . ' id="namebox-' . wppa('mocc') . '"' . ' class="wppa-box wppa-name-desc"' . ' style="' . __wcs('wppa-box') . __wcs('wppa-name-desc') . '"' . ' >'); wppa_slide_name($key); // The name of the photo wppa_out('</div>'); } }
function wppa_slide_name_box($key = 'optional') { global $wppa; global $wppa_opt; $do_it = false; if ($key != 'optional') { $do_it = true; } if ($wppa['is_slideonly']) { if ($wppa['name_on']) { $do_it = true; } } else { if (wppa_switch('wppa_show_full_name') || wppa_switch('wppa_show_full_owner')) { $do_it = true; } } if ($do_it) { $wppa['out'] .= wppa_nltab('+') . '<div id="namebox-' . $wppa['mocc'] . '" class="wppa-box wppa-name-desc" style="' . __wcs('wppa-box') . __wcs('wppa-name-desc') . '" >'; wppa_slide_name($key); // The name of the photo $wppa['out'] .= wppa_nltab('-') . '</div><!-- #namedesc -->'; } }