Blog

Code Snippet – Quoteable

Code Snippet – Quoteable

<?php
$data = wpgetapi_endpoint( 'quotable', 'random', array( 'debug' => false ) );
?>
    <!-- wp:paragraph {"style":{"spacing":{"margin":{"top":"0px"}},"typography":{"fontSize":"19px","fontStyle":"normal","fontWeight":"500"}},"fontFamily":"roboto"} -->
    <p class="has-roboto-font-family" style="margin-top:0px;font-size:19px;font-style:normal;font-weight:500"><?php echo $data['content']; ?></p>
    <!-- /wp:paragraph -->

    <!-- wp:paragraph {"style":{"spacing":{"margin":{"top":"20px"}},"typography":{"fontSize":"11px","textTransform":"uppercase"}},"fontFamily":"pt-mono"} -->
    <p class="has-pt-mono-font-family" style="margin-top:20px;font-size:11px;text-transform:uppercase"><?php echo $data['author']; ?></p>
    <!-- /wp:paragraph -->

Category:

Tags: