Two columns layout
This commit is contained in:
parent
49eb4988e5
commit
a89a752cc1
|
|
@ -34,5 +34,17 @@ main,
|
||||||
page-break-inside: avoid; /* or 'auto' */
|
page-break-inside: avoid; /* or 'auto' */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#post-grid {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post-grid-column2 {
|
||||||
|
flex: 75%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.attached-gpxes {
|
||||||
|
flex: 25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,14 +9,25 @@ if ( ! defined( 'WPINC' ) ) {
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ! array_key_exists('print', $_GET)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
add_action('wp_enqueue_scripts', 'wpdfh_enqueue_scripts');
|
add_action('wp_enqueue_scripts', 'wpdfh_enqueue_scripts');
|
||||||
function wpdfh_enqueue_scripts() {
|
function wpdfh_enqueue_scripts() {
|
||||||
if (array_key_exists('print', $_GET)) {
|
|
||||||
wp_enqueue_style( 'wpdfh', plugin_dir_url( __FILE__ ) . 'assets/wp-pdf-helper.css' );
|
wp_enqueue_style( 'wpdfh', plugin_dir_url( __FILE__ ) . 'assets/wp-pdf-helper.css' );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#error_log("PHP: parse_url($url, PHP_URL_QUERY): ".print_r(parse_url($url, PHP_URL_QUERY), true), 0);
|
#error_log("PHP: parse_url($url, PHP_URL_QUERY): ".print_r(parse_url($url, PHP_URL_QUERY), true), 0);
|
||||||
#error_log('PHP: $_GET: '.print_r($_GET, true), 0);
|
#error_log('PHP: $_GET: '.print_r($_GET, true), 0);
|
||||||
|
|
||||||
|
add_filter( 'wpagpx_shortcode_parameters', 'filter_shortcode_parameters' );
|
||||||
|
|
||||||
|
function filter_shortcode_parameters($parameters) {
|
||||||
|
$parameters['mheight'] = '200px';
|
||||||
|
$parameters['gheight'] = '150px';
|
||||||
|
$parameters['download'] = 'false';
|
||||||
|
$parameters['attachments'] = 'false';
|
||||||
|
return $parameters;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue