• Anna
    February 3, 2015 at 3:19 pm #102441

    The printing is made via ajax.

    The javascription action that trigger the printing function is at control.js at line 162

    $(‘#print_page’).click(function(event){ ……

    The php function called via ajax is in ajax_functions.php at line 14 and is called ajax_create_print

    There also some separated css styles for the print page that are located at the end of style.css

    Other notes:

    First of all estate_listing_details function is also used on property page. So i suggest to not change something in this function but create a duplicate of it and edit that.

    This function is located in listings_functions at line 267

    the custom fields code is  after this mark up ” // Custom Fields ” – line 324

    in the while there is this if

    if($value!=”){ ….

    }

    You need to add there the extra conditions checking if the $name of the custom field is the one you want to show

    Again do this in a copy of this function and use the new name on ajax_function at line 262

    Print CSS in style.css

    /*=Print
    ===================================================*/

    .print_title{
    margin-left:15px;
    font-size:40px;
    }

    .print-addr,
    .print-price{
    margin-left:15px;
    font-size:22px;
    margin-bottom: 10px;
    }

    .print-addr{
    margin-bottom: 30px;
    }

    .print_header{
    margin-top: 20px;
    width: 100%;
    background-color: #f0f0f0;
    padding: 10px;
    }
    .print_agent .listing_detail,
    .print_wrapper .listing_detail {
    margin-bottom:5px;
    margin-left:15px;
    }

    .print-col-img img{
    margin-bottom:15px;
    }

    .agent_name{
    font-size:22px;
    }
    .print-content{
    width:100%;
    padding-left:15px;
    line-height: 1.6em;
    }

    .printlogo{
    margin-left:15px;
    }

    .listing_detail_agent{
    margin-bottom:5px;
    line-height:1.3em;

    }

    .printimg{
    height: 350px;
    margin-bottom: 20px
    }

    .printimg img{
    height:100%;
    width:auto;
    }

    .printbreak {
    page-break-after: always;
    page-break-inside: avoid;
    width: 100%;
    }

    @media print {
    body, html, #wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    }
    marquee { -moz-binding: none; }
    body{overflow:visible !important;}

    }

You must be logged in to reply to this topic.

'
Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.