Diff
checker
टेक्स्ट
टेक्स्ट
छवियां
दस्तावेज़
Excel
फ़ोल्डर्स
Legal
Enterprise
डेस्कटॉप
मूल्य
साइन इन करें
Diffchecker डेस्कटॉप डाउनलोड करें
टेक्स्ट की तुलना करें
दो टेक्स्ट फ़ाइलों के बीच अंतर ढूंढें
उपकरण
इतिहास
रियल-टाइम एडिटर
अपरिवर्तित संक्षिप्त करें
लाइन रैप बंद
लेआउट
विभाजित
संयुक्त
परिवर्तन हाइलाइट करें
स्मार्ट
शब्द
अक्षर
सिंटैक्स हाइलाइटिंग
सिंटैक्स चुनें
अनदेखा करें
टेक्स्ट बदलें
पहले अंतर पर जाएँ
इनपुट संपादित करें
Diffchecker Desktop
Diffchecker चलाने का सबसे सुरक्षित तरीका। Diffchecker Desktop ऐप पाएं: आपके diffs कभी आपके कंप्यूटर से बाहर नहीं जाते!
Desktop पाएं
Untitled diff
बनाया गया
11 वर्ष पहले
Diff कभी समाप्त नहीं होता
साफ़
निर्यात करें
शेयर करें
समझाएं
8 हटाए गए
लाइनें
कुल
हटाया गया
अक्षर
कुल
हटाया गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
71 लाइनें
सभी को कॉपी करें
0 जोड़े गए
लाइनें
कुल
जोड़ा गया
अक्षर
कुल
जोड़ा गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
68 लाइनें
सभी को कॉपी करें
<?php
<?php
/**
/**
* @package Spun
* @package Spun
* @since Spun 1.0
* @since Spun 1.0
*/
*/
/*
/*
* Get the post thumbnail; if one does not exist, try to get the first attached image.
* Get the post thumbnail; if one does not exist, try to get the first attached image.
* If no images exist, let's print the post title instead.
* If no images exist, let's print the post title instead.
*/
*/
global $post;
global $post;
$postclass = '';
$postclass = '';
$url = '';
$url = '';
$custom_link = '';
$custom_link = '';
// Get the custom link
// Get the custom link
if ( function_exists( 'get_custom_field' ) ) {
if ( function_exists( 'get_custom_field' ) ) {
$custom_link = get_custom_field( 'custom_link' );
$custom_link = get_custom_field( 'custom_link' );
} else {
} else {
$custom_link = '';
$custom_link = '';
}
}
// Check if the custom link exists
// Check if the custom link exists
if ( !empty( $custom_link ) ) {
if ( !empty( $custom_link ) ) {
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
//Add in "http://" if it isn't there already
//Add in "http://" if it isn't there already
if ( strpos( $custom_link,'http://') === false ){
if ( strpos( $custom_link,'http://') === false ){
$custom_link = 'http://' . $custom_link;
$custom_link = 'http://' . $custom_link;
}
}
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
$url = $custom_link;
$url = $custom_link;
} else {
} else {
$url = the_permalink();
$url = the_permalink();
}
}
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
if ( '' != get_the_post_thumbnail() ) {
if ( '' != get_the_post_thumbnail() ) {
$thumb = get_the_post_thumbnail( $post->ID, 'post-thumbnail', array( 'title' => esc_attr( get_the_title() ) ) );
$thumb = get_the_post_thumbnail( $post->ID, 'post-thumbnail', array( 'title' => esc_attr( get_the_title() ) ) );
}
}
else {
else {
$args = array(
$args = array(
'post_type' => 'attachment',
'post_type' => 'attachment',
'numberposts' => 1,
'numberposts' => 1,
'post_status' => null,
'post_status' => null,
'post_mime_type' => 'image',
'post_mime_type' => 'image',
'post_parent' => $post->ID,
'post_parent' => $post->ID,
);
);
$first_attachment = get_children( $args );
$first_attachment = get_children( $args );
if ( $first_attachment ) {
if ( $first_attachment ) {
foreach ( $first_attachment as $attachment ) {
foreach ( $first_attachment as $attachment ) {
$thumb = wp_get_attachment_image( $attachment->ID, 'post-thumbnail', false, array( 'title' => esc_attr( get_the_title() ) ) );
$thumb = wp_get_attachment_image( $attachment->ID, 'post-thumbnail', false, array( 'title' => esc_attr( get_the_title() ) ) );
}
}
}
}
else {
else {
$thumb = '<span class="no-thumbnail">' . get_the_title() . '</span>';
$thumb = '<span class="no-thumbnail">' . get_the_title() . '</span>';
$postclass = 'no-thumbnail';
$postclass = 'no-thumbnail';
}
}
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
}
}
?>
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( $postclass ); ?>>
<article id="post-<?php the_ID(); ?>" <?php post_class( $postclass ); ?>>
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
<a
href="<?php echo $url ?
>" title="<?php echo esc_attr( the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo $thumb; ?></a>
<a
>" title="<?php echo esc_attr( the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo $thumb; ?></a>
</article><!-- #post-<?php the_ID(); ?> -->
</article><!-- #post-<?php the_ID(); ?> -->
सेव किए गए Diffs
ऑरिजनल टेक्स्ट
फ़ाइल खोलें
<?php /** * @package Spun * @since Spun 1.0 */ /* * Get the post thumbnail; if one does not exist, try to get the first attached image. * If no images exist, let's print the post title instead. */ global $post; $postclass = ''; $url = ''; $custom_link = ''; // Get the custom link if ( function_exists( 'get_custom_field' ) ) { $custom_link = get_custom_field( 'custom_link' ); } else { $custom_link = ''; } // Check if the custom link exists if ( !empty( $custom_link ) ) { //Add in "http://" if it isn't there already if ( strpos( $custom_link,'http://') === false ){ $custom_link = 'http://' . $custom_link; } $url = $custom_link; } else { $url = the_permalink(); } if ( '' != get_the_post_thumbnail() ) { $thumb = get_the_post_thumbnail( $post->ID, 'post-thumbnail', array( 'title' => esc_attr( get_the_title() ) ) ); } else { $args = array( 'post_type' => 'attachment', 'numberposts' => 1, 'post_status' => null, 'post_mime_type' => 'image', 'post_parent' => $post->ID, ); $first_attachment = get_children( $args ); if ( $first_attachment ) { foreach ( $first_attachment as $attachment ) { $thumb = wp_get_attachment_image( $attachment->ID, 'post-thumbnail', false, array( 'title' => esc_attr( get_the_title() ) ) ); } } else { $thumb = '<span class="no-thumbnail">' . get_the_title() . '</span>'; $postclass = 'no-thumbnail'; } } ?> <article id="post-<?php the_ID(); ?>" <?php post_class( $postclass ); ?>> <a href="<?php echo $url ?>" title="<?php echo esc_attr( the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo $thumb; ?></a> </article><!-- #post-<?php the_ID(); ?> -->
परिवर्तित टेक्स्ट
फ़ाइल खोलें
<?php /** * @package Spun * @since Spun 1.0 */ /* * Get the post thumbnail; if one does not exist, try to get the first attached image. * If no images exist, let's print the post title instead. */ global $post; $postclass = ''; $url = ''; $custom_link = ''; // Get the custom link if ( function_exists( 'get_custom_field' ) ) { $custom_link = get_custom_field( 'custom_link' ); } else { $custom_link = ''; } // Check if the custom link exists if ( !empty( $custom_link ) ) { //Add in "http://" if it isn't there already if ( strpos( $custom_link,'http://') === false ){ $custom_link = 'http://' . $custom_link; } $url = $custom_link; } else { $url = the_permalink(); } if ( '' != get_the_post_thumbnail() ) { $thumb = get_the_post_thumbnail( $post->ID, 'post-thumbnail', array( 'title' => esc_attr( get_the_title() ) ) ); } else { $args = array( 'post_type' => 'attachment', 'numberposts' => 1, 'post_status' => null, 'post_mime_type' => 'image', 'post_parent' => $post->ID, ); $first_attachment = get_children( $args ); if ( $first_attachment ) { foreach ( $first_attachment as $attachment ) { $thumb = wp_get_attachment_image( $attachment->ID, 'post-thumbnail', false, array( 'title' => esc_attr( get_the_title() ) ) ); } } else { $thumb = '<span class="no-thumbnail">' . get_the_title() . '</span>'; $postclass = 'no-thumbnail'; } } ?> <article id="post-<?php the_ID(); ?>" <?php post_class( $postclass ); ?>> <a>" title="<?php echo esc_attr( the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo $thumb; ?></a> </article><!-- #post-<?php the_ID(); ?> -->
अंतर खोजें