forked from friendica/friendica-addons
Merge pull request #275 from swathe/master
Add HTML code to planets.php as requested to match spec
This commit is contained in:
commit
e452272dec
|
@ -92,7 +92,7 @@ function planets_post_hook($a, &$item) {
|
|||
*
|
||||
*/
|
||||
|
||||
$planets = array('Alderaan','Tatooine','Dagoba','Polis Massa','Coruscant','Hoth','Endor','Kamino','Rattatak','Mustafar','Iego','Geonosis','Felucia','Dantooine','Ansion','Artaru','Bespin','Boz Pity','Cato Neimoidia','Christophsis','Kashyyk','Kessel','Malastare','Mygeeto','Nar Shaddaa','Ord Mantell','Saleucami','Subterrel','Death Star','Teth','Tund','Utapau','Yavin');
|
||||
$planets = array('Alderaan','Tatooine','Dagobah','Polis Massa','Coruscant','Hoth','Endor','Kamino','Rattatak','Mustafar','Iego','Geonosis','Felucia','Dantooine','Ansion','Artaru','Bespin','Boz Pity','Cato Neimoidia','Christophsis','Kashyyyk','Kessel','Malastare','Mygeeto','Nar Shaddaa','Ord Mantell','Saleucami','Subterrel','Death Star','Teth','Tund','Utapau','Yavin');
|
||||
|
||||
$planet = array_rand($planets,1);
|
||||
$item['location'] = $planets[$planet];
|
||||
|
@ -146,12 +146,20 @@ function planets_settings(&$a,&$s) {
|
|||
|
||||
/* Add some HTML to the existing form */
|
||||
|
||||
$s .= '<span id="settings_planets_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_planets_expanded\'); openClose(\'settings_planets_inflated\');">';
|
||||
$s .= '<h3>' . t('Planets') . '</h3>';
|
||||
$s .= '</span>';
|
||||
$s .= '<div id="settings_planets_expanded" class="settings-block" style="display: none;">';
|
||||
$s .= '<span class="fakelink" onclick="openClose(\'settings_planets_expanded\'); openClose(\'settings_planets_inflated\');">';
|
||||
$s .= '<h3>' . t('Planets') . '</h3>';
|
||||
$s .= '</span>';
|
||||
|
||||
$s .= '<div class="settings-block">';
|
||||
$s .= '<h3>' . t('Planets Settings') . '</h3>';
|
||||
$s .= '<div id="planets-enable-wrapper">';
|
||||
$s .= '<label id="planets-enable-label" for="planets-checkbox">' . t('Enable Planets Plugin') . '</label>';
|
||||
$s .= '<input id="planets-checkbox" type="checkbox" name="planets" value="1" ' . $checked . '/>';
|
||||
$s .= '</div><div class="clear"></div>';
|
||||
$s .= '</div><div class="clear"></div></div>';
|
||||
|
||||
/* provide a submit button */
|
||||
|
||||
|
|
Loading…
Reference in a new issue