Results 1 to 1 of 1

Thread: Edit post update button after pressed my admin showing blank white. Please help me an

  1. #1
    sreenubfa's Avatar
    Join Date
    Feb 2015
    Posts
    71
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Edit post update button after pressed my admin showing blank white. Please help me an

    Hi Iam using child theme this is functions.php code :





    <?php


    // Unhook default ClassiPress functions
    function unhook_classipress_functions() {
    remove_action( 'appthemes_before_post_title', 'cp_ad_loop_price' );
    }
    add_action('init','unhook_classipress_functions');

    function cp_remove_loop_price() {
    if ( is_page() ) return; // don't do ad-meta on pages
    global $post;
    if ( $post->post_type == 'page' || $post->post_type == 'post' ) return;
    $price = get_post_meta($post->ID, 'cp_price', true);
    if (!empty($price) AND ($price>0)){
    ?>
    <div class="price-wrap">
    <span class="tag-head">&nbsp;</span><p class="post-price">
    <?php if ( get_post_meta( $post->ID, 'price', true ) ) cp_get_price_legacy( $post->ID );
    else cp_get_price( $post->ID, 'cp_price' ); ?></p>
    </div>
    <?php
    } else { ?>
    <?php
    }
    }
    add_action( 'appthemes_before_post_title', 'cp_remove_loop_price' );



    // @sreenubfa :: registering a new thumbnail size for ads :: START

    if ( function_exists( 'add_theme_support' ) ) {
    add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size( 150, 150 ); // default Post Thumbnail dimensions
    }
    if ( function_exists( 'add_image_size' ) ) {
    add_image_size( 'rb_adthumb', 130, 100, true ); // Hard Crop Mode
    }

    // @sreenubfa :: registering a new thumbnail size for ads :: ENDS


    // @sreenubfa :: get the image associated to the ad used on the home page :: START

    if ( ! function_exists( 'rb_ad_loop_thumbnail' ) ) :
    function rb_ad_loop_thumbnail() {
    global $post, $cp_options;

    // go see if any images are associated with the ad
    $image_id = cp_get_featured_image_id( $post->ID );

    // set the class based on if the hover preview option is set to "yes"
    $prevclass = ( $cp_options->ad_image_preview ) ? 'preview' : 'nopreview';

    if ( $image_id > 0 ) {

    // get 75x75 v3.0.5+ image size
    $adthumbarray = wp_get_attachment_image( $image_id, 'rb_adthumb' );

    // grab the large image for onhover preview
    $adlargearray = wp_get_attachment_image_src( $image_id, 'large' );
    $img_large_url_raw = $adlargearray[0];

    // must be a v3.0.5+ created ad
    if ( $adthumbarray ) {
    echo '<a href="'. get_permalink() .'" title="'. the_title_attribute( 'echo=0' ) .'" class="'. $prevclass .'" data-rel="'. $img_large_url_raw .'">'. $adthumbarray .'</a>';

    // maybe a v3.0 legacy ad
    } else {
    $adthumblegarray = wp_get_attachment_image_src($image_id, 'thumbnail');
    $img_thumbleg_url_raw = $adthumblegarray[0];
    echo '<a href="'. get_permalink() .'" title="'. the_title_attribute( 'echo=0' ) .'" class="'. $prevclass .'" data-rel="'. $img_large_url_raw .'">'. $adthumblegarray .'</a>';
    }

    // no image so return the placeholder thumbnail
    } else {
    echo '<a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '"><img class="attachment-medium" alt="" title="" src="' . appthemes_locate_template_uri( 'images/sreethemes-130-no-pic.png' ) . '" /></a>';
    }

    }
    endif;

    // @sreenubfa :: get the image associated to the ad used on the home page :: ENDS


    ?>
    Regards
    Sreenubfa
    sreenubfa@gmail.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: June 10th, 2015, 02:56 AM
  2. [SOLVED] vantage 3 update - admin white screen
    By tradeamillion in forum Shortys for Vantage
    Replies: 11
    Last Post: May 17th, 2015, 07:26 AM
  3. vantage 3 update - admin white screen
    By tradeamillion in forum Help Using Vantage (Legacy)
    Replies: 8
    Last Post: May 14th, 2015, 05:50 PM
  4. Blank homepage and no ads showing in admin
    By rallysales1 in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: September 23rd, 2013, 08:58 AM