Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Dinamiko's full-sized avatar
💭
just coding stuff

Emili Castells Dinamiko

💭
just coding stuff
View GitHub Profile
@Dinamiko
Dinamiko / sum.js
Last active December 5, 2018 08:28
class App extends Component {
render() {
return (
<div>
<Sum/>
<Multiply/>
</div>
);
}
}
Lorem <span style="font-family: Montserrat;">ipsum dolor</span> sit amet.
<?php
/**
* Define the directory with the font via fontDir configuration key.
*/
add_filter( 'dkpdf_mpdf_font_dir', function ( $font_dir ) {
// path to wp-content directory
$wp_content_dir = trailingslashit( WP_CONTENT_DIR );
<?php
class SettingsPageCest {
public function _before( AcceptanceTester $I ) {
$I->amOnPage( '/wp-login.php' );
$I->wait( 1 );
$I->fillField( [ 'name' => 'log' ], 'admin' );
$I->fillField( [ 'name' => 'pwd' ], 'password' );
.tablepress-table-description{clear:both;display:block}.tablepress{border-collapse:collapse;border-spacing:0;width:100%;margin-bottom:1em;border:none}.tablepress td,.tablepress th{padding:8px;border:none;background:0 0;text-align:left;float:none!important}.tablepress tbody td{vertical-align:top}.tablepress tbody td,.tablepress tfoot th{border-top:1px solid #ddd}.tablepress tbody tr:first-child td{border-top:0}.tablepress thead th{border-bottom:1px solid #ddd}.tablepress tfoot th,.tablepress thead th{background-color:#d9edf7;font-weight:700;vertical-align:middle}.tablepress .odd td{background-color:#f9f9f9}.tablepress .even td{background-color:#fff}.tablepress .row-hover tr:hover td{background-color:#f3f3f3}.tablepress img{margin:0;padding:0;border:none;max-width:none}.dataTables_wrapper{clear:both;margin-bottom:1em}.dataTables_wrapper .tablepress{clear:both;margin:0!important}.dataTables_length{float:left;white-space:nowrap}.dataTables_filter{float:right;white-space:nowrap}.dataTables_wrapper .dataTables_filt
<?php
/**
* dkpdf-index.php
* This template is used to display the content in the PDF
*
* Do not edit this template directly,
* copy this template and paste in your theme inside a directory named dkpdf
*/
?>
<?php
/**
* dkpdfg-index.php
* This template is used to display the content in the PDF
*
* Do not edit this template directly,
* copy this template and paste in your theme (or child theme) inside a directory named dkpdfg
*/
?>
<?php
// creating and setting the pdf
$mpdf = new mPDF('utf-8', $format, $dkpdf_font_size, $dkpdf_font_family,
$dkpdf_margin_left, $dkpdf_margin_right, $dkpdf_margin_top, $dkpdf_margin_bottom, $dkpdf_margin_header
);
// write cover
$dkpdf_show_cover = get_option( 'dkpdfg_show_cover', 'on' );
if( $dkpdf_show_cover == 'on' ) {
[dkpdf-columns]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin convallis quam sit amet erat egestas mattis. Vestibulum eros dui, bibendum non ante non, placerat placerat nibh.
<ul>
<li>Pellentesque laoreet arcu lorem</li>
<li>At sagittis leo suscipit eu</li>
<li>Nam egestas lorem ornare</li>
<li>Class aptent taciti sociosqu</li>
<li>Ad litora torquent per conubia</li>
<li>Nostra, per inceptos himenaeos.</li>
</ul>
[dkpdf-columns]
Your content goes here....
[/dkpdf-columns]