Skip to content

Commit af11cb0

Browse files
committed
Doc
1 parent 5acee6d commit af11cb0

File tree

5 files changed

+93
-30
lines changed

5 files changed

+93
-30
lines changed

README.md

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,56 @@
1-
# simple-metadata-relation
1+
# Simple Metadata Relation
2+
3+
* Contributors: @colomet, @davideC00
4+
* Donate link: https://opencollective.com/mylanguageskills
5+
* Tags: wordpress, simple metadata, metadata, relation
6+
* Requires at least: 4.9.6
7+
* Tested up to: 5.2.2
8+
* Requires PHP: 7.0
9+
* Stable tag: 1.0
10+
* License: GNU 3.0
11+
* License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
12+
* Gutenberg: compatible
13+
14+
## Description
215
This addon defines the relationship between the content and other content, if any.
16+
17+
## Installation
18+
1. Clone (or copy) this repository to the /wp-content/plugins/ directory.
19+
2. Activate the plugin through the 'Plugins' screen in WordPress.
20+
21+
## Frequently Asked Questions
22+
1. If i don't need to use all the fields of the plugin, can i leave them empty? Yes, you can leaves them empty. If one field is empty the link will not appear in the frontend.
23+
24+
## Requirements
25+
Plugin works with:
26+
27+
- ![PHP](https://img.shields.io/badge/PHP-7.2.X-blue.svg)
28+
- ![WordPress](https://img.shields.io/badge/WordPress-4.9.8-blue.svg)
29+
30+
## Disclaimers
31+
The Simple Metadata Relation plugin is supplied "as is" and all use is at your own risk.
32+
33+
## Roadmap
34+
35+
## Changelog
36+
Take a look at detailed changelog [here](/doc/CHANGELOG.md)
37+
38+
39+
### 1.0
40+
* Initial release
41+
* Resources
42+
* Bibliography
43+
* json-ld metadata
44+
45+
46+
## Credits
47+
48+
Here's a link to [WordPress](https://wordpress.org/)
49+
50+
Here's a llink to [PressBooks](https://pressbooks.org/get-involved/)
51+
52+
Here's a link to [Markdown's Syntax Documentation](https://daringfireball.net/projects/markdown/syntax)
53+
54+
---
55+
56+
[Up](/README.md)

admin/smdre-bibliography/smdre-bibliography-output.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function smdre_print_tags_bibliography($post_id){
2626
return $metadata;
2727
}
2828

29+
// Fills the citations_metadata array with all the values
2930
foreach($meta_values as $id => $meta_value){
3031
if(!empty($meta_value)){
3132
$citation_metadata = [[
@@ -37,6 +38,7 @@ function smdre_print_tags_bibliography($post_id){
3738
}
3839
}
3940

41+
// add citations to the metadata array
4042
if(!empty($citations_metadata)){
4143
$metadata['citation'] = $citations_metadata;
4244
}

admin/smdre-resources/smdre-resources-output.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,19 @@ function smdre_print_tags_resources($post_id){
3838
continue;
3939
}
4040

41+
// Fills the resources metadata with all the values from post_meta
4142
foreach($meta_values as $id => $meta_value){
4243
if(!empty($meta_value)){
43-
//there is the meta_value for this row
44+
// There is the meta_value for this row
4445

46+
// The object for the current resource
4547
$resorce_metadata = [[
4648
'type' => 'CreativeWork',
4749
'url' => $meta_value,
4850
'learningResourceType' => $learningResourceType
4951
]];
52+
53+
// Add the resource to the resources array
5054
$resources_metadata = array_merge($resources_metadata, $resorce_metadata);
5155
}
5256
}

doc/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Changelog
2+
3+
# 1.0
4+
5+
* Metaboxes
6+
* **Added** Bibliography
7+
* **Added** Citations
8+
9+
* **Added** Resources
10+
* **Added** Activities
11+
* **Added** Exercises
12+
* **Added** Audios
13+
* **Added** Videos
14+
15+
* Properties
16+
* Resources
17+
* **Added** hasPart
18+
* Bibliography
19+
* **Added** citation

readme.txt

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,20 @@
11
=== Simple metadata relation ===
2-
Contributors: colomet,
2+
Contributors: colomet, davideC00
33
Donate link: https://opencollective.com/mylanguageskills
4-
Tags: multisite, pressbooks, simple metadata, metadata, schema.org, rich snippets, wordpress-plugin,
5-
Requires at least: 5.2
4+
Tags: wordpress, simple metadata, metadata, relation
5+
Requires at least: 4.9.6
66
Tested up to: 5.2.2
7-
Stable tag: 1.3
7+
Stable tag: 1.0
88
Requires PHP: 5.6
99
License: GPLv3 or later
1010
License URI: https://www.gnu.org/licenses/gpl-3.0.html
11+
Gutenberg: compatible
1112

1213
This plugin enhance [Simple metadata](https://github.com/my-language-skills/simple-metadata) with metametadata related metadata.
1314

1415
== Description ==
1516

16-
This plugin provides the ability to have XXX metafield with the XXX schema properties.
17-
18-
19-
== Front-page related content =
20-
21-
22-
* Properties
23-
* Creative Work type
24-
* **Added:** xxxxx property
25-
26-
27-
= Pages related content =
28-
29-
* Properties
30-
* Creative Work type
31-
* **Added:** xxxx property
32-
33-
34-
= Posts and CPTs related content =
35-
36-
* Creative Work type
37-
* **Added:** xxxx property
38-
17+
This addon defines the relationship between the content and other content, if any.
3918

4019
== Installation ==
4120

@@ -77,7 +56,12 @@ As Simple metadata annotation is an extension of Simple metadata, visit the [Sim
7756
== Changelog ==
7857

7958
= 1.0 =
80-
* Initial release.
59+
60+
- Initial release
61+
- Resources
62+
- Bibliography
63+
- json-ld metadata
64+
8165

8266

8367
== Upgrade Notice ==

0 commit comments

Comments
 (0)