Added data classes bases, Trivial modifications to many files
Update .gitignore, .htaccess, and 19 more files...
This commit is contained in:
3
commons/content/article.php
Normal file
3
commons/content/article.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
?>
|
||||
3
commons/content/content.php
Normal file
3
commons/content/content.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
?>
|
||||
19
commons/content/data/metadata.php
Normal file
19
commons/content/data/metadata.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
// Making sure the file is included and not accessed directly.
|
||||
if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
|
||||
header('HTTP/1.1 403 Forbidden');
|
||||
die();
|
||||
}
|
||||
|
||||
// Including required helpers.
|
||||
include_once 'commons/langs.php';
|
||||
|
||||
// Including subclasses.
|
||||
include_once 'commons/content/data/opengraph.php';
|
||||
include_once 'commons/content/data/twitter_card.php';
|
||||
|
||||
class ContentMetadata {
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -49,4 +49,4 @@ class OpenGraphData {
|
||||
);
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
20
commons/content/data/twitter_card.php
Normal file
20
commons/content/data/twitter_card.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/*enum Suit {
|
||||
case Hearts;
|
||||
case Diamonds;
|
||||
case Clubs;
|
||||
case Spades;
|
||||
}*/
|
||||
|
||||
// See: https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/markup
|
||||
/*class ContentTwitterMetadata {
|
||||
public string $title;
|
||||
public string $description;
|
||||
public string $type;
|
||||
public string $url;
|
||||
public string $image;
|
||||
public string $image_type;
|
||||
}*/
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user