Skip to content

Commit

Permalink
Merge pull request #27 from ARCANEDEV/feature-set_image_method
Browse files Browse the repository at this point in the history
Feature set image method + Fixing misc stuff
  • Loading branch information
arcanedev-maroc authored Feb 27, 2017
2 parents abd274e + 74e8358 commit 070f80c
Show file tree
Hide file tree
Showing 38 changed files with 433 additions and 407 deletions.
134 changes: 72 additions & 62 deletions _docs/4-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@

interface Renderable
{
/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Render the tag.
Expand Down Expand Up @@ -68,9 +68,9 @@ use Arcanedev\SeoHelper\Contracts\Renderable;

interface Title extends Renderable
{
/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Getters & Setters
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Get title only (without site name or separator).
Expand Down Expand Up @@ -157,9 +157,9 @@ interface Title extends Renderable
*/
public function setMax($max);

/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Make a Title instance.
Expand All @@ -183,9 +183,9 @@ use Arcanedev\SeoHelper\Contracts\Renderable;

interface Description extends Renderable
{
/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Getters & Setters
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Get raw description content.
Expand Down Expand Up @@ -226,9 +226,9 @@ interface Description extends Renderable
*/
public function setMax($max);

/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Make a description instance.
Expand All @@ -251,9 +251,9 @@ use Arcanedev\SeoHelper\Contracts\Renderable;

interface Keywords extends Renderable
{
/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Getters & Setters
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Get content.
Expand All @@ -271,9 +271,9 @@ interface Keywords extends Renderable
*/
public function set($content);

/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Make Keywords instance.
Expand Down Expand Up @@ -313,9 +313,9 @@ use Arcanedev\SeoHelper\Contracts\Renderable;

interface MiscTags extends Renderable
{
/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Getters & Setters
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Get the current URL.
Expand All @@ -333,9 +333,9 @@ interface MiscTags extends Renderable
*/
public function setUrl($url);

/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Make MiscTags instance.
Expand Down Expand Up @@ -392,9 +392,9 @@ use Arcanedev\SeoHelper\Contracts\Renderable;

interface Webmasters extends Renderable
{
/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Make Webmaster instance.
Expand Down Expand Up @@ -433,9 +433,9 @@ use Arcanedev\SeoHelper\Contracts\Renderable;

interface Analytics extends Renderable
{
/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Getters & Setters
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Set Google Analytics code.
Expand All @@ -457,9 +457,9 @@ use Arcanedev\SeoHelper\Contracts\Renderable;

interface OpenGraph extends Renderable
{
/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Getters & Setters
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Set the open graph prefix.
Expand Down Expand Up @@ -560,9 +560,9 @@ use Arcanedev\SeoHelper\Contracts\Renderable;
*/
interface TwitterCard extends Renderable
{
/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Constants
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
const TYPE_APP = 'app';
const TYPE_GALLERY = 'gallery';
Expand All @@ -572,9 +572,9 @@ interface TwitterCard extends Renderable
const TYPE_SUMMARY = 'summary';
const TYPE_SUMMARY_LARGE_IMAGE = 'summary_large_image';

/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Getters & Setters
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Set the card type.
Expand Down Expand Up @@ -647,9 +647,9 @@ interface TwitterCard extends Renderable
*/
public function types();

/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Reset the card.
Expand All @@ -671,9 +671,9 @@ use Arcanedev\SeoHelper\Contracts\Renderable;

interface Meta extends Renderable
{
/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Getters and Setters
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Get the meta name.
Expand All @@ -700,9 +700,9 @@ interface Meta extends Renderable
*/
public function setNameProperty($nameProperty);

/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Make Meta instance.
Expand Down Expand Up @@ -740,9 +740,9 @@ interface Meta extends Renderable
*/
interface SeoHelper extends Renderable
{
/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Getters & Setters
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Get SeoMeta instance.
Expand Down Expand Up @@ -811,6 +811,16 @@ interface SeoHelper extends Renderable
* @return self
*/
public function setTitle($title, $siteName = null, $separator = null);

/**
* Set the site name.
*
* @param string $siteName
*
* @return self
*/
public function setSiteName($siteName);

/**
* Set description.
*
Expand All @@ -830,17 +840,17 @@ interface SeoHelper extends Renderable
public function setKeywords($keywords);

/**
* Set the site name.
* Set Image.
*
* @param string $siteName
* @param string $imageUrl
*
* @return self
*/
public function setSiteName($siteName);
public function setImage($imageUrl);

/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Render all seo tags with HtmlString object.
Expand Down Expand Up @@ -898,9 +908,9 @@ use Arcanedev\SeoHelper\Contracts\Entities\Webmasters as WebmastersContract;
*/
interface SeoMeta extends Renderable
{
/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Getters & Setters
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Set the Title instance.
Expand Down Expand Up @@ -1031,9 +1041,9 @@ interface SeoMeta extends Renderable
*/
public function setGoogleAnalytics($code);

/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Add a meta tag.
Expand Down Expand Up @@ -1088,9 +1098,9 @@ use Arcanedev\SeoHelper\Contracts\Entities\OpenGraph as OpenGraphContract;

interface SeoOpenGraph extends Renderable
{
/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Getters & Setters
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Set the Open Graph instance.
Expand Down Expand Up @@ -1194,9 +1204,9 @@ use Arcanedev\SeoHelper\Entities\Twitter\Card as CardContract;

interface SeoTwitter extends Renderable
{
/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Getters & Setters
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
*/
/**
* Set the twitter card instance.
Expand Down Expand Up @@ -1271,9 +1281,9 @@ interface SeoTwitter extends Renderable
*/
public function addMeta($name, $content);

/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
*/
/**
* Reset the twitter card.
Expand Down
Loading

0 comments on commit 070f80c

Please sign in to comment.