function IIRS_0_set_message($mess_no, $message, $message_detail = null, $level = IIRS_MESSAGE_USER_INFORMATION, $_user_action = null, $_args = null)
 {
     // global $IIRS_widget_mode requires that the message is included in the HTML output
     // because the user is viewing the message through HTML transported in the widget on a *different* website
     // normal message display, that is through a plugin / module on *this* website can use the host framework function
     // e.g. Drupal uses drupal_set_message() which *indirectly* queues the message for display (once)
     $class = IIRS_0_message_class($level);
     IIRS_0_print_HTML("<div class=\"IIRS_0_message IIRS_0_message_{$mess_no} IIRS_0_message_level_{$class}\">" . IIRS_0_escape_for_HTML_text($message) . '</div>');
 }
Esempio n. 2
0
  </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>
          <h2 class="entry-title"><a href="/IIRS/view?ID={$TI['native_ID']}">{$name_escaped}</a></h2>
          <div class="entry-meta">
            <span class="edit-link">{$edit_link}</span>
          </div>
          <div class="IIRS_0_status">{$date}</div>
        </li>
HTML;
    IIRS_0_print_HTML($html);
}
?>
  </ul>
</div>
Esempio n. 3
0
    <?php 
    if ($list_mode) {
        ?>
      <a target="_blank" href="<?php 
        IIRS_0_print_HTML_href($maps_href);
        ?>
">
        <img class="IIRS_0_map_thumb" src="/IIRS/images/google_map_icon.png" />
      </a>
    <?php 
    }
    ?>

    <p class="IIRS_0_summary">
      <?php 
    IIRS_0_print_HTML($TI['summary']);
    ?>
    </p>

    <?php 
    if ($full_mode) {
        ?>
      <div class="IIRS_0_map">
        map loading...
        <?php 
        IIRS_0_print_HTML_encode_array($TI);
        ?>
        <div class="markers">
          <div class="TI">
            <?php 
        IIRS_0_print_HTML_encode_array($TI);
Esempio n. 4
0
        if ($towns_searched_for && !$towns_found) {
            ?>
          <li class="IIRS_0_place IIRS_0_message IIRS_0_message_level_information">
            <img src="<?php 
            IIRS_0_print_HTML_image_src("{$IIRS_URL_image_stem}/information");
            ?>
" />
            <?php 
            IIRS_0_print_HTML_text(IIRS_0_translation('no towns found matching') . " {$town_name} " . '<br/>' . IIRS_0_translation('you will need to email') . ' ' . IIRS_EMAIL_TEAM_LINK . ' ' . IIRS_0_translation('to register by email because we cannot find your town on our maps system!'));
            ?>
          </li>
        <?php 
        }
        ?>
        <?php 
        IIRS_0_print_HTML($location_options);
        ?>
        <li id="IIRS_0_other" class="IIRS_0_place">
          <?php 
        IIRS_0_print_translated_HTML_text('change location');
        ?>
:
          <input id="IIRS_0_research_town_name_new" value="<?php 
        IIRS_0_print_HTML_form_value($town_name);
        ?>
" />
          <input id="IIRS_0_research" type="button" value="<?php 
        IIRS_0_print_translated_HTML_text('search');
        ?>
" />
        </li>
Esempio n. 5
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>
        ?>
          <!--li class="IIRS_0_domain IIRS_0_message">
            <img src="< ?php IIRS_0_print_HTML_image_src("$IIRS_URL_image_stem/information"); ?>" />
            < ?php
              IIRS_0_print_translated_HTML_text(IGNORE_TRANSLATION, 'no registered websites found for this town');
              IIRS_0_print_HTML_text( " $town_name " );
              IIRS_0_print_translated_HTML_text(IGNORE_TRANSLATION, 'you will need to email');
              IIRS_0_print_HTML( ' ' . IIRS_EMAIL_TEAM_LINK . ' ' );
              IIRS_0_print_translated_HTML_text(IGNORE_TRANSLATION, 'to register by email. please type your website name in below if you have one');
            ?>
          </li -->
        <?php 
    }
    ?>
        <?php 
    IIRS_0_print_HTML($nice_domains_html);
    ?>
        <li>
          <input name="domain" class="IIRS_0_radio" value="none" type="radio" id="IIRS_0_domain_none_input" />
          <label for="IIRS_0_domain_none_input">
            <?php 
    IIRS_0_print_translated_HTML_text('no website');
    ?>
            <div class="IIRS_0_status"><?php 
    IIRS_0_print_translated_HTML_text('we do not currently have a website');
    ?>
</div>
          </label>
        </li>
        <li id="IIRS_0_other">
          <?php