Пример #1
0
require_once IIRS__COMMON_DIR . 'framework_abstraction_layer.php';
require_once IIRS__COMMON_DIR . 'environment.php';
IIRS_0_debug_print($debug_environment);
$all_TIs = IIRS_0_TIs_all();
usort($all_TIs, 'IIRS_0_sort_date_desc');
$usersTI = IIRS_0_details_TI_user();
?>
</pre></div>

<div id="IIRS_0">
  <style>
    body .entry-meta {display:block;}
  </style>

  <div class="IIRS_0_h1"><?php 
IIRS_0_print_translated_HTML_text(IGNORE_TRANSLATION, 'list of Transition Initiative around the world');
?>
    <?php 
IIRS_0_print_language_selector();
?>
  </div>

  <ul id="list" class="IIRS_0_bare_list">
    <?php 
foreach ($all_TIs as $TI) {
    $date = $TI['date'];
    $editable = $usersTI && $usersTI['native_ID'] == $TI['native_ID'];
    $edit_link = $editable ? '<a class="IIRS_0_edit_link post-edit-link" href="/IIRS/edit">' . IIRS_0_translation(IGNORE_TRANSLATION, 'edit') . '</a>' : '';
    $name_escaped = IIRS_0_escape_for_HTML_text($TI['name']);
    $html = <<<HTML
        <li>
        ?>
</td><td><input /></td></tr>
          <tr><td><?php 
        IIRS_0_print_translated_HTML_text(IGNORE_TRANSLATION, 'description of thing');
        ?>
</td><td><input /></td></tr>
        </table>
        <div id="IIRS_0_details_teaser">
          <img src="<?php 
        IIRS_0_print_HTML_image_src("{$imageURLStem}/network_paper");
        ?>
" />
          <?php 
        IIRS_0_print_translated_HTML_text(IGNORE_TRANSLATION, 'Your nearest Transition Initiative is only 4km away and we will connect them with you. They have budget, and have done loads of stuff. But you probably know that already do you? :)');
        ?>
        </div>

        <input disabled="1" class="IIRS_0_bigbutton" type="button" value="<?php 
        IIRS_0_print_translated_HTML_text(IGNORE_TRANSLATION, 'add another thing');
        ?>
" />
      </div></form>
    <?php 
    }
    ?>
  <?php 
}
?>
</div>

Пример #3
0
      </div>

      <input type="hidden" name="form" value="update transition initiative" />
      <input type="submit" class="IIRS_0_bigbutton IIRS_0_clear" name="submit" value="<?php 
        IIRS_0_print_translated_HTML_text('update transition initiative');
        ?>
" />
    </form>
  <?php 
    } else {
        // ------------------------------------------------------------- login
        ?>

      <form action="index" class="IIRS_0_clear IIRS_0_formPopupNavigate" method="POST">
        <h2><?php 
        IIRS_0_print_translated_HTML_text('login required to edit');
        ?>
:</h2>
        <input type="text" name="name" value="<?php 
        IIRS_0_print_HTML_form_value($name);
        ?>
" />
        <input type="password" name="pass" />
        <input type="hidden" name="form" value="login" />
        <input name="submit" type="submit" class="IIRS_0_bigbutton IIRS_0_clear" value="login" />
      </form>
    <?php 
    }
    ?>
  <?php 
}
Пример #4
0
</pre></div>

<div id="IIRS_0">
  <div class="IIRS_0_no_javascript IIRS_0_message IIRS_0_message_level_warning">
    <?php 
IIRS_0_print_translated_HTML_text('Oops, Javascript failed to run, services unavailable, please go to');
?>
    &nbsp;<a href="http://transitionnetwork.org/">Transition Network</a>&nbsp;
    <?php 
IIRS_0_print_translated_HTML_text('to register instead');
?>
  </div>

  <!-- intial form -->
  <div class="IIRS_0_h1"><?php 
IIRS_0_print_translated_HTML_text('map of Transition Initiatives near you');
?>
    <?php 
IIRS_0_print_language_selector();
?>
  </div>
  <div class="IIRS_0_map IIRS_0_fit_bounds">
    map loading...
    <div class="IIRS_0_HTML_data location_latitude">0</div>
    <div class="IIRS_0_HTML_data location_longitude">0</div>
    <div class="IIRS_0_HTML_data zoom">1</div>
    <div class="IIRS_0_HTML_data markers">
      <?php 
foreach ($all_TIs as $TI) {
    ?>
        <div class="TI">
Пример #5
0
 */
?>

<div id="IIRS_0_debug"><pre>
debug output:
<?php 
/* TODO: complete the search function
 */
global $debug_environment;
require_once IIRS__COMMON_DIR . 'utility.php';
require_once IIRS__COMMON_DIR . 'framework_abstraction_layer.php';
require_once IIRS__COMMON_DIR . 'environment.php';
IIRS_0_debug_print($debug_environment);
$listTIs = '';
?>
</pre></div>

<div id="IIRS_0">
  <style>
  </style>

  <div class="IIRS_0_h1"><?php 
IIRS_0_print_translated_HTML_text(IGNORE_TRANSLATION, 'search the Transition Initiatives of the world');
?>
    <?php 
IIRS_0_print_language_selector();
?>
  </div>
  <ul id="list">
  </ul>
</div>
      <div id="IIRS_0_details_teaser">
        <?php 
    IIRS_0_print_translated_HTML_text('This email address may be used by people in your area who would like to contact you and / or join your projects.');
    ?>
      </div>

      <br class="IIRS_0_clear" />
      <?php 
    /* this is the submit button for the initial POST data in to the IIRS database
     * we are creating several buttons and hiding one of them to prevent robots from clicking anything
     * the previous screen of course requires a valid location which will also thwart robots
     */
    $false_submit_HTML = '<input name="false_submit" type="submit" class="IIRS_0_bigbutton IIRS_0_false_submit" value="register" />';
    print $false_submit_HTML;
    print $false_submit_HTML;
    print $false_submit_HTML;
    print $false_submit_HTML;
    print "<input name=\"submit\" type=\"submit\" {$no_towns_found_disabled} class=\"IIRS_0_bigbutton {$no_towns_found_disabled_class} \" value=\"" . IIRS_0_translation('join network') . " &gt;&gt;\" />";
    print $false_submit_HTML;
    print $false_submit_HTML;
    ?>

      <?php 
    IIRS_0_print_translated_HTML_text('and then connect with local Transition Initiatives :)');
    ?>
    </div></form>
  <?php 
}
?>
</div>
Пример #7
0
    <?php 
IIRS_0_print_language_selector();
?>
  </div>
  <!-- using an absolute @action here because this HTML is also presented out-of-IIRS-context, e.g. a wordpress shortcode -->
  <form method="POST" id="IIRS_0_form_sidebar" class="IIRS_0_formPopupNavigate IIRS_0_form" action="/IIRS/registration/location_general"><div>
    <input id="IIRS_0_town_name" class="IIRS_0_hint IIRS_0_required" name="town_name" value="<?php 
IIRS_0_print_translated_HTML_text('town or area');
?>
" />
    <input id="IIRS_0_submit" name="submit" type="submit" disabled="1" value="<?php 
IIRS_0_print_translated_HTML_text('register');
?>
 &gt;&gt;" />
  </div></form>
  <div class="IIRS_0_rules"><a target="_blank" href="<?php 
IIRS_0_print_translated_HTML_text('http://www.transitionnetwork.org/support/becoming-official#criteria');
?>
"><?php 
IIRS_0_print_translated_HTML_text('what is a Transition Initiative?');
?>
</a></div>
  <div class="IIRS_0_reason"><?php 
IIRS_0_print_HTML($why_register_html);
?>
</div>
  <div class="IIRS_0_reason"><?php 
IIRS_0_print_translated_HTML_text('connect to the Transition Network and advertise yourself on our website.');
?>
</div>
</div>
        ?>
</label></li>
          <li><input id="IIRS_0_domain_setup_none" checked="1" name="domain_setup" type="radio" /> <label for="IIRS_0_domain_setup_none"><?php 
        IIRS_0_print_translated_HTML_text(IGNORE_TRANSLATION, 'stop being clever and just give me the domains');
        ?>
</label></li>
        </ul>
        <input id="IIRS_0_buydomains" class="IIRS_0_bigbutton" disabled="1" type="button" value="<?php 
        IIRS_0_print_translated_HTML_text(IGNORE_TRANSLATION, 'buy marked domains');
        ?>
" />
      <?php 
    }
    ?>

      <div class="IIRS_0_horizontal_section">
        <input class="IIRS_0_bigbutton IIRS_0_back" type="button" value="&lt;&lt; <?php 
    IIRS_0_print_translated_HTML_text('back');
    ?>
" />
        <input class="IIRS_0_bigbutton" type="submit" value="<?php 
    IIRS_0_print_translated_HTML_text('save and continue');
    ?>
 &gt;&gt;" />
      </div>
    </form>
  <?php 
}
?>
</div> <!-- /IIRS_0 -->
Пример #9
0
require_once IIRS__COMMON_DIR . 'framework_abstraction_layer.php';
require_once IIRS__COMMON_DIR . 'environment.php';
require_once IIRS__COMMON_DIR . 'registration/inputs.php';
//------------------------------------- values
IIRS_0_TI_update_TI(array('summary' => $summary));
//------------------------------------- about us section
?>
</pre></div>

<div id="IIRS_0">
  <div class="IIRS_0_h1"><?php 
IIRS_0_print_translated_HTML_text(IGNORE_TRANSLATION, 'advanced settings');
?>
</div>
  <form method="POST" id="IIRS_0_form_popup_advanced" action="finished" class="IIRS_0_clear"><div>
    <?php 
IIRS_0_printEncodedPostParameters();
?>

    <br class="IIRS_0_clear" />
    <input class="IIRS_0_bigbutton IIRS_0_back" type="button" value="&lt;&lt; <?php 
IIRS_0_print_translated_HTML_text(IGNORE_TRANSLATION, 'back');
?>
" />
    <input class="IIRS_0_bigbutton" type="submit" value="<?php 
IIRS_0_print_translated_HTML_text(IGNORE_TRANSLATION, 'finish');
?>
" />
  </div></form>
</div>