6787a428 by Jeff Balicki

searchwp

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent afd6dedf
......@@ -99,14 +99,10 @@ global $wpdb;
) . '/images/pdf-2.svg" width="20px" style="margin-right:10px;" />';
$url = wp_get_attachment_url($post->ID);
$data = 'hidemepdf' . $i . '';
$class = 'pdfLink';
$permalink = "#";
$class = 'no_icon';
$permalink = $url;
?>
<div style="display:none" class="hidemepdf" id="hidemepdf<?php echo $i; ?>" class="hidemepdf">
<?php echo do_shortcode(
'[pdfjs-viewer url=' . $url . ' search=' . $_REQUEST['searchvar'] . ' viewer_width=800px viewer_height=700px fullscreen=true download=true print=true]'
); ?>
</div>
<?php
$i++;
......@@ -129,8 +125,7 @@ global $wpdb;
?>
<div class="post">
<h3>
<a href="<?php echo $permalink; ?>" class="<?php echo $class; ?>"
data="<?php echo $data; ?>" target="_blank">
<a href="<?php echo $permalink; ?>" class="<?php echo $class; ?>" target="_blank">
<?php
echo $icon;
// highlight the title
......@@ -209,36 +204,12 @@ global $wpdb;
<script>
jQuery(document).ready(
function ($) {
$(".pdfLink").colorbox(
{
className: 'noButton', top: 150, width: 800, html: function () {
var pdfloc = $(this).attr('data');
var pdf = $('#' + pdfloc).html();
return pdf;
}
}
);
$(document).bind(
'cbox_complete', function () {
if ($(window).width() < 799) {
document.getElementById("fullscreen").click();
}
$('#colorbox,#cboxOverlay,#cboxWrapper').css('z-index', '99999999');
}
);
$("#findInput").val("<?php echo $_REQUEST['searchvar'];?>");
$('<a id="cboxCloseBox" style="float:right;right:0px;position:absolute;" href="javascript:void(0)">close</a>').appendTo("#cboxTopRight");
$("#cboxCloseBox").click(
function () {
document.getElementById("cboxClose").click();
}
);
var smallMenu = jQuery('.col-sm-smallMenu');
// Change zIndex when a user hovers the side menu
......
......@@ -76,7 +76,7 @@ function theme_broker_enqueue_scripts()
|| get_post_type() == 'notifications'
) {
wp_enqueue_style('global', get_bloginfo('template_url') . '/styles/brokers/landing-page/broker_landing.css', [], "0.0.67");
wp_enqueue_style('broker_new', get_bloginfo('template_url') . '/styles/broker_new.css', [], "0.0.71");
wp_enqueue_style('broker_new', get_bloginfo('template_url') . '/styles/broker_new.css', [], "0.0.72");
wp_enqueue_script('script', get_bloginfo('template_url') . '/scripts/script.js', [], "0.0.12", true);
wp_enqueue_style('main', get_bloginfo('template_url') . '/styles/main.css', [], "0.0.830");
......
......@@ -1008,7 +1008,7 @@ a[href$=".doc"]:hover, a[href$=".pdf"]:hover {
a[href$=".doc"]:before,
a[href$=".docx"]:before,
a[href$=".pdf"]:before {
a:not(.no_icon)[href$=".pdf"]:before {
background-image: url(../images/pdf@3x.png) !important;
background-repeat: no-repeat;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.