Changeset 1523017
- Timestamp:
- 10/27/2016 10:25:52 AM (9 years ago)
- Location:
- wp-ldp
- Files:
-
- 26 added
- 3 edited
-
svn-commit.tmp (added)
-
svn-commit.tmp.save (added)
-
trunk/public/templates/event (added)
-
trunk/public/templates/event/event-browser.handlebars (added)
-
trunk/public/templates/goodorservice (added)
-
trunk/public/templates/goodorservice/goodorservice-browser.handlebars (added)
-
trunk/public/templates/initiative (added)
-
trunk/public/templates/initiative/initiative-browser.handlebars (added)
-
trunk/public/templates/initiative/initiative-detail.handlebars (added)
-
trunk/public/templates/initiative/initiative-list.handlebars (added)
-
trunk/public/templates/organization (added)
-
trunk/public/templates/organization/organization-browser.handlebars (added)
-
trunk/public/templates/organization/organization-detail.handlebars (added)
-
trunk/public/templates/person (added)
-
trunk/public/templates/person/person-browser.handlebars (added)
-
trunk/public/templates/person/person-detail.handlebars (added)
-
trunk/public/templates/person/person-item.handlebars (added)
-
trunk/public/templates/person/person-list.handlebars (added)
-
trunk/public/templates/person/person-posts.handlebars (added)
-
trunk/public/templates/place (added)
-
trunk/public/templates/place/place-browser.handlebars (added)
-
trunk/public/templates/theme (added)
-
trunk/public/templates/theme/theme-browser.handlebars (added)
-
trunk/public/templates/theme/theme-detail.handlebars (added)
-
trunk/public/templates/thesis (added)
-
trunk/public/templates/thesis/thesis-browser.handlebars (added)
-
trunk/single-ldp_resource.php (modified) (1 diff)
-
trunk/wpldp-settings.php (modified) (2 diffs)
-
trunk/wpldp.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-ldp/trunk/single-ldp_resource.php
r1523012 r1523017 160 160 $post = $loop->post; 161 161 echo " {\n"; 162 echo " \" url\": \"" . get_permalink ($post->ID) . "\",\n";162 echo " \"@id\": \"" . get_permalink ($post->ID) . "\",\n"; 163 163 echo ' "dc:title":' . json_encode($post->post_title) . ",\n"; 164 164 $post_content = (!empty($post->post_content) && $post->post_content !== false) ? json_encode(substr($post->post_content, 0, 150)) : ""; -
wp-ldp/trunk/wpldp-settings.php
r1523012 r1523017 28 28 * @return {type} description 29 29 */ 30 function initialize_container( ) {31 if (isset($_GET['settings-updated']) ) {30 function initialize_container( $force = false ) { 31 if (isset($_GET['settings-updated']) || $force ) { 32 32 $ldp_container_init = get_option('ldp_container_init', false); 33 33 34 if ($ldp_container_init ) {34 if ($ldp_container_init || $force ) { 35 35 //TODO: Initialize the PAIR containers 36 36 $pair_terms = array( 37 'project' => array(38 'label' => __('Project', 'wpldp'),39 'rdftype' => 'foaf:project'40 ),41 37 'initiative' => array( 42 38 'label' => __('Initiative', 'wpldp'), … … 79 75 'rdftype' => 'pair:thesis' 80 76 ), 81 'actor' => array(82 'label' => __('Actor', 'wpldp'),83 'rdftype' => 'pair:actor'84 ),85 77 'person' => array( 86 78 'label' => __('Person', 'wpldp'), 87 'rdftype' => 'pair:actor' 88 ), 89 'idea' => array( 90 'label' => __('Idea', 'wpldp'), 91 'rdftype' => 'pair:label' 92 ), 93 'resource' => array( 94 'label' => __('Resource', 'wpldp'), 95 'rdftype' => 'pair:resource' 79 'rdftype' => 'pair:person' 96 80 ) 97 81 ); -
wp-ldp/trunk/wpldp.php
r1523012 r1523017 5 5 * Description: This is a plugin which aims to emulate the default caracteristics of a Linked Data Platform compatible server 6 6 * Text Domain: wpldp 7 * Version: 1.1. 07 * Version: 1.1.1 8 8 * Author: Sylvain LE BON, Benoit ALESSANDRONI 9 9 * Author URI: http://www.happy-dev.fr/team/sylvain, http://benoit-alessandroni.fr/ … … 30 30 * The current plugin version number 31 31 */ 32 protected static $version_number = '1.1. 0';32 protected static $version_number = '1.1.1'; 33 33 34 34 /** … … 82 82 83 83 if (self::$version_number !== $plugin_version) { 84 if (self::$version_number == '1.1.0') {84 if (self::$version_number >= '1.1.0') { 85 85 //Force reinitializing the ldp containers models: 86 global $wpLdpSettings; 86 87 if ( !empty( $wpLdpSettings ) ) { 87 $wpLdpSettings->initialize_container( );88 $wpLdpSettings->initialize_container( true ); 88 89 } 89 90 $actor_term = get_term_by('slug', 'actor', 'ldp_container');
Note: See TracChangeset
for help on using the changeset viewer.