</h3>
          <div class="region">
            <?php 
echo render_value($contactInformation->getRegion(array('cultureFallback' => true)));
?>
          </div>
        </div>

        <div class="field">
          <h3><?php 
echo __('Country name');
?>
</h3>
          <div class="country-name">
            <?php 
echo format_country($contactInformation->countryCode);
?>
          </div>
        </div>

        <div class="field">
          <h3><?php 
echo __('Postal code');
?>
</h3>
          <div class="postal-code">
            <?php 
echo render_value($contactInformation->postalCode);
?>
          </div>
        </div>
Пример #2
0
?>
</h1>
                                <?php 
/* @var $petition Petition */
$widget_data_owner = $widget->getDataOwner() == WidgetTable::DATA_OWNER_YES && $widget->getUserId() ? $widget->getUser() : null;
$data_owner = $widget_data_owner ? $widget_data_owner : ($petition->getCampaign()->getDataOwnerId() ? $petition->getCampaign()->getDataOwner() : null);
/* @var $data_owner sfGuardUser */
$privacy_policy = $petition_text['privacy_policy_body'];
$orga = $data_owner ? $data_owner->getOrganisation() : '';
$name = $data_owner ? $data_owner->getFullName() : '';
$street = $data_owner ? $data_owner->getStreet() : '';
$postcode = $data_owner ? $data_owner->getPostCode() : '';
$city = $data_owner ? $data_owner->getCity() : '';
$country = $data_owner ? $data_owner->getCountry() : '';
if ($country) {
    $country = format_country($country);
}
$address = $orga . ($orga ? "<br />" : '');
$address .= $name . ($name ? "<br />" : '');
$address .= $street . ($street ? "<br />" : '');
$address .= $postcode . ' ' . $city . ($postcode || $city ? "<br />" : '');
$address .= $country . ($country ? "<br />" : '');
$privacy_policy = strtr($privacy_policy, array('#DATA-OFFICER-NAME#' => $name, '#DATA-OFFICER-ORGA#' => $orga, '#DATA-OFFICER-EMAIL#' => $data_owner ? $data_owner->getEmailAddress() : '', '#DATA-OFFICER-WEBSITE#' => $data_owner ? $data_owner->getWebsite() : '', '#DATA-OFFICER-PHONE#' => $data_owner ? $data_owner->getPhone() : '', '#DATA-OFFICER-MOBILE#' => $data_owner ? $data_owner->getMobile() : '', '#DATA-OFFICER-STREET#' => $street, '#DATA-OFFICER-POST-CODE#' => $postcode, '#DATA-OFFICER-CITY#' => $city, '#DATA-OFFICER-COUNTRY#' => $country, '#DATA-OFFICER-ADDRESS#' => $address));
echo UtilMarkdown::transform($privacy_policy);
?>
                            </div>
                        </div>
                        <a class="back button_color button_btn"><?php 
echo __('Back');
?>
</a>
 public function __get($name)
 {
     switch ($name) {
         case 'identifier':
             return $this->resource->referenceCode;
         case 'name':
             $name = array();
             foreach ($this->resource->getActorEvents() as $item) {
                 if (isset($item->actor)) {
                     $name[] = $item;
                 }
             }
             return $name;
         case 'physicalLocation':
             $list = array();
             if (isset($this->resource->repository)) {
                 $list[] = $resource->repository->identifier;
                 $list[] = $resource->repository;
                 if (null !== ($contact = $this->resource->repository->getPrimaryContact())) {
                     $physicalLocation = array();
                     if (isset($contact->city)) {
                         $physicalLocation[] = $contact->city;
                     }
                     if (isset($contact->region)) {
                         $physicalLocation[] = $contact->region;
                     }
                     if (isset($contact->countryCode)) {
                         $physicalLocation[] = format_country($contact->countryCode);
                     }
                     $list[] = implode(', ', $physicalLocation);
                 }
             }
             return $list;
         case 'sourceCulture':
             return $this->resource->sourceCulture;
         case 'typeOfResource':
             return $this->resource->getTermRelations(QubitTaxonomy::MODS_RESOURCE_TYPE_ID);
     }
 }
Пример #4
0
    echo $shipping_address['first_name'] . " " . $shipping_address['last_name'];
    ?>
<br/>
        <?php 
    echo $shipping_address['address_1'];
    ?>
<br/>
        <?php 
    echo $shipping_address['address_2'] != '' ? $shipping_address['address_2'] . '<br/>' : '';
    ?>
        <?php 
    echo $shipping_address['town'] . " " . $shipping_address['postcode'] . " " . $shipping_address['state'];
    ?>
<br/>
        <?php 
    echo format_country($shipping_address['country']);
    ?>
<br/>
        <?php 
    if ($shipping_address['phone'] != '') {
        echo __('Phone');
        ?>
: <?php 
        echo $shipping_address['phone'];
        ?>
<br/><?php 
    }
    ?>
        <?php 
    if ($shipping_address['instructions'] != '') {
        echo $shipping_address['instructions'];
Пример #5
0
 public function getCountryName()
 {
     return format_country($this->getCountry());
 }
Пример #6
0
 /**
  * Get country of primary contact for repository (If one exists)
  *
  * @return string primary contact's country
  */
 public function getCountry()
 {
     if ($this->getCountryCode()) {
         return format_country($this->getCountryCode());
     }
 }
Пример #7
0
        <?php 
        if (isset($contact->region)) {
            ?>
          <?php 
            echo $contact->region;
            ?>
        <?php 
        }
        ?>

        <?php 
        if (isset($contact->countryCode)) {
            ?>
          <?php 
            echo format_country($contact->countryCode);
            ?>
        <?php 
        }
        ?>

      <?php 
    }
    ?>

    <?php 
}
?>
  </div>
</div>
Пример #8
0
?>

    <?php 
if (QubitTerm::RIGHT_BASIS_COPYRIGHT_ID == $resource->basisId) {
    ?>

      <?php 
    echo render_show(__('Copyright status'), render_value($resource->copyrightStatus));
    ?>

      <?php 
    echo render_show(__('Copyright status date'), render_value($resource->copyrightStatusDate));
    ?>

      <?php 
    echo render_show(__('Copyright jurisdiction'), render_value(format_country($resource->copyrightJurisdiction)));
    ?>

      <?php 
    echo render_show(__('Copyright note'), render_value($resource->getCopyrightNote(array('cultureFallback' => true))));
    ?>

    <?php 
} elseif (QubitTerm::RIGHT_BASIS_LICENSE_ID == $resource->basisId) {
    ?>

      <?php 
    echo render_show(__('License identifier'), render_value($resource->getLicenseIdentifier(array('cultureFallback' => true))));
    ?>

      <?php