Code Monkey home page Code Monkey logo

laravel-shortcode-plus's Introduction

💫 About Me:

🔭 I’m currently working on 3Labs as CTO
🤝 I’m helping in SSO
🌱 I’m currently mastering TALL stack

🌐 Socials:

LinkedIn Twitter

💻 Tech Stack:

Laravel PHP JavaScript HTML5 CSS3 GraphQL Cloudflare Vercel Next JS React Vue.js Nginx Apache MySQL MariaDB Redis Figma Adobe Photoshop Adobe Illustrator Affinity Designer Raspberry Pi LINUX

📊 GitHub Stats:



🏆 GitHub Trophies

🔝 Top Contributed Repo


💰 You can help me by Donating

Ko-Fi

laravel-shortcode-plus's People

Contributors

claudio-emmolo avatar dependabot[bot] avatar dispatchcode avatar github-actions[bot] avatar murdercode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

laravel-shortcode-plus's Issues

add carousel in photo

Add carousel attribute to photo tag

e.g.

[photo id="123" carousel]

or

[photo id="123" carousel="true"]

Youtube frame

Check for height (480px) not working
Missing docs?

Just Watch image fix

Da mettere in build

.justwatch-logo-box img{margin:0px !important; height:10px;width:84px;}

Youtube per ID non funziona

Nella documentazione riportate l'esempio di poter usare lo shortcode anche tramite l'id del video, che sinceramente è la scelta più comoda e pure quella logicamente più corretta anziché riportare l'url completo:

[youtube id="123456789"]

Questo però non funziona, difatti nel file test di YouTubeShortcode usate gli esempi: https://github.com/murdercode/laravel-shortcode-plus/blob/main/tests/YoutubeShortcodeTest.php

infatti richiede l'id del video usando
[youtube url=""]

Tuttavia qui c'é un errore, come potete vedere pure dal test, rimuove la prima lettera dell'id. Se voglio mettere l'ID lFk2cDTqWvw, lui prende Fk2cDTqWvw, esattamente come nel vostro esempio:

it('can parse youtube shortcode, even if the url is incorrect', function () {
    $html = '[youtube url="blablabla"]';
    $youtubeOembed = LaravelShortcodePlus::source($html)->parseAll();
    expect($youtubeOembed)->toContain('https://www.youtube-nocookie.com/embed/lablabla&autoplay=1');
});

L'id blablabla diventa lablabla

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.