Instantly share code, notes, and snippets.

Embed
What would you like to do?
Snippet 3 from helloTestable.php
<?php
/**
* Output the lyric string
*/
public function echoLyric()
{
$lyricString = $this->lyrics->getLyric();
echo "<p id='dolly'>$lyricString</p>";
}
/**
* Output plugin css
*/
public function echoCss()
{
// This makes sure that the positioning is also good for right-to-left languages
$x = is_rtl() ? 'left' : 'right';
echo "\n<style type='text/css'>
#dolly {
float: $x;
padding-$x: 15px;
padding-top: 5px;
margin: 0;
font-size: 11px;
}
</style>\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment