Giter VIP home page Giter VIP logo

multividas-cards-php's Introduction

Multividas Cards PHP

Tests Total Downloads License

Multividas Cards summarize webpage content for inline expansion of linked content on Multividas.com and Multividas native applications (iOS, Android, Mac). Multividas users may select an individual Thread and immediately view a content summary including a linked title, content description, image, author attribution, site attribution, and inline video.

The MultividasCard PHP class helps you build Multividas Card markup for your website. Build a summary or photo card, set the appropriate attributes, and build elements suitable for output inside your (x)HTML document .

Installation

Require this package with composer.

composer require multividas/multividas-cards-php 

Multividas Card meta tags

These HTML meta tags provide Multividas with information about your webpage, including the card type, your Multividas handle, page title, a brief description, and an image link for effective content sharing on the platform.

<meta name="multividas:card" content="summary" />
<meta name="multividas:site" content="@itsmedragoncode" />
<meta name="multividas:title" content="ItsMeDragonCode" />
<meta name="multividas:description" content="Lorem Ipsum is simply dummy text of the printing and typesetting industry." />
<meta name="multividas:image" content="https://avatars.githubusercontent.com/u/89612812?v=4" />

multividas:card

Summary Card

A Multividas Card is a "summary" by default.

Create a summary card By including Multividas Card markup in your :

<?php

// load MultividasCard
if (!class_exists('MultividasCard'))
  require_once(dirname(__FILE__) .'/multividas-card.php');

// build a card
$card = new MultividasCard("summary");
$card->setSite('multividas');
$card->setTitle('https://multividas.com/');
$card->setDescription('With Multividas.com you can share short texts and posts, leaving comments and have discussions on threads.');
// optional
$card->setImage('01hm6xtg795hj1wx3dh33ftqy9', 'https://static-assets.multividas.com/storage/factory/pages/multividas/multividas-blogging-platform-multividas-social-media-blog-multividas-posts-threads-multividas-comments-discussions-multividas-short-texts-multividas-social-blogging.png', 'image/webp');

// echo a string of <meta> elements
echo $card->asHTML();

?>

🤝 Contributing

Please read the contributing guide.

🛡️ Security Issues

If you discover a security vulnerability within Multividas, we would appreciate your help in disclosing it to us responsibly, please check out our security issues guidelines.

🛡️ License

Licensed under the MIT license.


Email: [email protected]

multividas-cards-php's People

Contributors

soulaimaneyahya avatar

Stargazers

 avatar

Forkers

soulaimaneyahya

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.