Plugin Directory

Changeset 1499774


Ignore:
Timestamp:
09/21/2016 04:01:25 PM (9 years ago)
Author:
balessan
Message:

Updating the templates based on new properties name and upgrading to 1.0.9

Location:
wp-ldp/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • wp-ldp/trunk/public/templates/actor/actor-browser.handlebars

    r1499124 r1499774  
    55      {{#ldpeach object.foaf:knows "ul"}}{{> actorItem }}{{/ldpeach}}
    66    {{/if}}
    7     {{#if object.project_contributes}}
    8       {{#ldpeach object.project_contributes "ul"}}{{> actorItem }}{{/ldpeach}}
     7    {{#if object.pair:worksWith}}
     8      {{#ldpeach object.pair:worksWith "ul"}}{{> actorItem }}{{/ldpeach}}
     9    {{/if}}
     10    {{#if object.pair:manage2}}
     11      {{#ldpeach object.pair:manage2 "ul"}}{{> actorItem }}{{/ldpeach}}
     12    {{/if}}
     13    {{#if object.pair:contributesTo}}
     14      {{#ldpeach object.pair:contributesTo "ul"}}{{> actorItem }}{{/ldpeach}}
     15    {{/if}}
     16    {{#if object.pair:hasDirector}}
     17      {{#ldpeach object.pair:hasDirector "ul"}}{{> actorItem }}{{/ldpeach}}
     18    {{/if}}
     19    {{#if object.pair:hasPartner}}
     20      {{#ldpeach object.pair:hasPartner "ul"}}{{> actorItem }}{{/ldpeach}}
    921    {{/if}}
    1022    </div>
  • wp-ldp/trunk/public/templates/actor/actor-detail.handlebars

    r1499660 r1499774  
    33  <div class="detail-content">
    44    <h2>Description</h2>
    5     <p>{{object.description}}</p>
     5    <p>{{object.pair:description}}</p>
    66
    77    <div class="row personal-information">
     
    1111      </div>
    1212      <div class="col-md-9 equal information-content">
    13         <p>Date de naissance: {{object.birthdate}}</p>
    14         <p>Adresse: {{object.address}}, {{object.zipcode}} {{object.city}}</p>
    15 
    16         <p>Personal Website: {{object.foaf:homePage}}</p>
    17         <p>Contact: <a href="mailto:{{object.foaf:mbox}}">{{object.foaf:mbox}}</a></p>
    18 
    19         <p>
    20           Reseaux sociaux:
     13        {{#if object.pair:zipCode}}
     14          <p>Adresse: {{object.pair:zipCode}} {{object.pair:town}}, {{object.pair:country}}</p>
     15        {{/if}}
     16        {{#if object.foaf:homePage}}
     17          <p>Personal Website: {{object.foaf:homePage}}</p>
     18        {{/if}}
     19        {{#if object.foaf:mbox}}
     20          <p>Contact: <a href="mailto:{{object.foaf:mbox}}">{{object.foaf:mbox}}</a></p>
     21        {{/if}}
     22        {{#if object.pair:socialNetworks}}
     23        <p>Réseaux sociaux:
    2124          <ul>
    22             {{#if object.linkedin }}<li>Linkedin: <a href="{{object.linkedin}}">{{object.linkedin}}</a></li>{{/if}}
    23             {{#if object.twitter }}<li>Twitter:   <a href="{{object.twitter}}">{{object.twitter}}</a></li>{{/if}}
    24             {{#if object.github }}<li>Github:     <a href="{{object.github}}">{{object.github}}</a></li>{{/if}}
    25             {{#if object.facebook }}<li>Facebook: <a href="{{object.facebook}}">{{object.facebook}}</a></li>{{/if}}
     25            {{#each object.pair:socialNetworks}}
     26              <li><a href="{{this}}">{{this}}</a></li>
     27            {{/each}}
    2628          </ul>
    2729        </p>
     30        {{/if}}
    2831      </div>
    2932    </div>
  • wp-ldp/trunk/public/templates/project/project-browser.handlebars

    r1499124 r1499774  
    55      {{#ldpeach object.foaf:currentProject "ul"}}{{> projectItem }}{{/ldpeach}}
    66    {{/if}}
    7     {{#if object.related}}
    8       {{#ldpeach object.related "ul"}}{{> projectItem }}{{/ldpeach}}
     7    {{#if object.pair:supports}}
     8      {{#ldpeach object.pair:supports "ul"}}{{> projectItem }}{{/ldpeach}}
     9    {{/if}}
     10    {{#if object.pair:hasUseCase}}
     11      {{#ldpeach object.pair:hasUseCase "ul"}}{{> projectItem }}{{/ldpeach}}
    912    {{/if}}
    1013  </div>
  • wp-ldp/trunk/public/templates/project/project-detail.handlebars

    r1499124 r1499774  
    11<div class="project-detail-active">
    22  <h1 class="text-center text-uppercase">
    3     Le projet {{object.project_title}}
     3    Le projet {{object.foaf:name}}
    44  </h1>
    55  <div class="detail-content">
     
    88    </h2>
    99    <p>
    10       {{object.project_description}}
     10      {{object.pair:shortDescription}}
    1111    </p>
    1212
    13     <h2>Objectifs</h2>
    14     <p>{{object.project_goal}}</p>
     13    <h2>Licence associée</h2>
     14    <p>{{object.pair:licence}}</p>
    1515
    16     <h2>Vision</h2>
     16    <h2>Informations de contact</h2>
     17    <ul>
     18      {{#if object.pair:zipCode}}
     19        <li>Adresse: {{object.pair:zipCode}} {{object.pair:town}}, {{object.pair:country}}</li>
     20      {{/if}}
     21      {{#if object.foaf:weblog}}
     22        <li>Site web: {{object.foaf:weblog}}</li>
     23      {{/if}}
     24      {{#if object.foaf:mbox}}
     25        <li>Contact: <a href="mailto:{{object.foaf:mbox}}">{{object.foaf:mbox}}</a></li>
     26      {{/if}}
     27    </ul>
     28
     29    {{#if object.pair:socialNetworks}}
     30    <p>Réseaux sociaux:
     31      <ul>
     32      {{#each object.pair:socialNetworks}}
     33        <li><a href="{{object}}">{{object}}</a></li>
     34      {{/each}}
     35      </ul>
     36    {{/if}}
     37   
    1738    <p>{{object.project_vision}}</p>
    1839
  • wp-ldp/trunk/public/templates/project/project-item.handlebars

    r1499124 r1499774  
    11<li>
    22  <a onclick="displayProject('#detail', &quot;{{'@id'}}&quot;,  '#project-detail-template')">
    3     {{project_title}}
     3    {{foaf:name}}
    44  </a>
    55</li>
  • wp-ldp/trunk/public/templates/project/project-list.handlebars

    r1499124 r1499774  
    66          <div class="project-item">
    77            <h2>
    8               {{title}}
     8              {{foaf:name}}
    99            </h2>
    1010            <p>
    11               {{description}}
     11              {{pair:shortDescription}}
    1212            </p>
    1313          </div>
  • wp-ldp/trunk/wpldp.php

    r1499660 r1499774  
    55 * Description: This is a plugin which aims to emulate the default caracteristics of a Linked Data Platform compatible server
    66 * Text Domain: wpldp
    7  * Version: 1.0.8
     7 * Version: 1.0.9
    88 * Author: Sylvain LE BON, Benoit ALESSANDRONI
    99 * Author URI: http://www.happy-dev.fr/team/sylvain, http://benoit-alessandroni.fr/
     
    3030       * The current plugin version number
    3131       */
    32       protected static $version_number = '1.0.8';
     32      protected static $version_number = '1.0.9';
    3333
    3434      /**
Note: See TracChangeset for help on using the changeset viewer.