Skip to content

Instantly share code, notes, and snippets.

Emili Castells Dinamiko

Block or report user

Report or block Dinamiko

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View add-font-snippet.php
<?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 );
View sum.js
class App extends Component {
render() {
return (
<div>
<Sum/>
<Multiply/>
</div>
);
}
}
View test-custom-font.html
Lorem <span style="font-family: Montserrat;">ipsum dolor</span> sit amet.
View test-settings-page.php
<?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' );
View tablepress.css
.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
View dkpdf-index.php
<?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
*/
?>
View boton_02.php
<?php
/**
* Plugin Name: Boton
* Description: Un ejemplo de shortcode
*/
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Crea shortcode [boton]
* [boton url="" color="#ff6c00"]texto[/boton]
View dkpdf-index.php
<?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
*/
?>
View dkpdf-genetor-multiple-pages.php
<?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' ) {
View dkpdf-columns-02.php
[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>
You can’t perform that action at this time.