Diff
checker
टेक्स्ट
टेक्स्ट
छवियां
दस्तावेज़
Excel
फ़ोल्डर्स
Legal
Enterprise
डेस्कटॉप
मूल्य
साइन इन करें
Diffchecker डेस्कटॉप डाउनलोड करें
टेक्स्ट की तुलना करें
दो टेक्स्ट फ़ाइलों के बीच अंतर ढूंढें
उपकरण
इतिहास
रियल-टाइम एडिटर
अपरिवर्तित संक्षिप्त करें
लाइन रैप बंद
लेआउट
विभाजित
संयुक्त
परिवर्तन हाइलाइट करें
स्मार्ट
शब्द
अक्षर
सिंटैक्स हाइलाइटिंग
सिंटैक्स चुनें
अनदेखा करें
टेक्स्ट बदलें
पहले अंतर पर जाएँ
इनपुट संपादित करें
Diffchecker Desktop
Diffchecker चलाने का सबसे सुरक्षित तरीका। Diffchecker Desktop ऐप पाएं: आपके diffs कभी आपके कंप्यूटर से बाहर नहीं जाते!
Desktop पाएं
Untitled diff
बनाया गया
9 वर्ष पहले
Diff कभी समाप्त नहीं होता
साफ़
निर्यात करें
शेयर करें
समझाएं
51 हटाए गए
लाइनें
कुल
हटाया गया
अक्षर
कुल
हटाया गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
77 लाइनें
सभी को कॉपी करें
50 जोड़े गए
लाइनें
कुल
जोड़ा गया
अक्षर
कुल
जोड़ा गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
73 लाइनें
सभी को कॉपी करें
<?php
<?php
/**
/**
* Showcase Pro
* Showcase Pro
*
*
* This file adds the entry grid shortcode to the Showcase Pro Theme.
* This file adds the entry grid shortcode to the Showcase Pro Theme.
*
*
* @package Showcase
* @package Showcase
* @author Bloom
* @author Bloom
* @license GPL-2.0+
* @license GPL-2.0+
* @link http://my.studiopress.com/themes/showcase/
* @link http://my.studiopress.com/themes/showcase/
*/
*/
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
// Add Entry Grid Shortcode
// Add Entry Grid Shortcode
add_shortcode( 'entry-grid', 'showcase_entry_grid_shortcode' );
add_shortcode( 'entry-grid', 'showcase_entry_grid_shortcode' );
function showcase_entry_grid_shortcode( $atts ) {
function showcase_entry_grid_shortcode( $atts ) {
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
global $post;
extract( shortcode_atts( array(
'limit' => -1,
'category' => '',
'name' => '',
'type' => 'page',
'id' => $post->ID
), $atts ) );
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
$args =
array(
extract( shortcode_atts(
array(
'post_type' => $type,
'limit' => -1,
'post_parent' => ($type == 'post') ? '' : $id,
'category' => '',
'posts_per_page' => $limit,
'name' => '',
'category_name' => $category,
'type'
=> '
page
',
'order' => 'ASC',
'id'
=> get_
the_ID(),
'orderby'
=> '
menu_order
',
), $atts )
);
'paged'
=> get_
query_var( 'paged' )
);
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
global $wp
_query
;
$args = array(
'post_type' => $type,
'post_parent' => ($type === 'post') ? '' : $id,
'posts_per_page' => $limit,
'category_name' => $category,
'order' => 'ASC',
'orderby' => 'menu_order',
'paged' => get
_query
_var( 'paged' ),
)
;
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
$loop = new WP_Query( $args );
$loop = new WP_Query( $args );
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
ob_start();
ob_start();
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
$i = 0;
$i = 0;
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
while ( $loop->have_posts() ) {
while ( $loop->have_posts() ) {
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
$loop->the_post();
$loop->the_post();
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
$classes = ($i % 4 == 0) ? 'one-fourth first' : ' one-fourth';
$classes = ($i % 4 == 0) ? 'one-fourth first' : ' one-fourth';
?>
?>
<div id="post-<?php the_ID(); ?>" <?php post_class($classes) ?>>
<div id="post-<?php the_ID(); ?>" <?php post_class($classes) ?>>
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'showcase' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'showcase' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
<div class="overlay">
<div class="overlay">
<div class="overlay-inner">
<div class="overlay-inner">
<div class="overlay-details">
<div class="overlay-details">
<?php the_title( '<h4>', '</h4>' );?>
<?php the_title( '<h4>', '</h4>' );?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php if(has_post_thumbnail()) : the_post_thumbnail( 'showcase_entry_grid' ); endif; ?>
<?php if(has_post_thumbnail()) : the_post_thumbnail( 'showcase_entry_grid' ); endif; ?>
</a>
</a>
</div>
</div>
<?php
<?php
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
$i++;
$i++;
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
}
}
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
$output = ob_get_clean
();
wp_reset_postdata
();
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
if (
$output
) {
$output
= ob_get_clean();
return '<div class="showcase-entry-grid">' . $output . '</div>';
}
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
wp_reset_query();
if ( $output ) {
return '<div class="showcase-entry-grid">' . $output . '</div>';
}
}
}
सेव किए गए Diffs
ऑरिजनल टेक्स्ट
फ़ाइल खोलें
<?php /** * Showcase Pro * * This file adds the entry grid shortcode to the Showcase Pro Theme. * * @package Showcase * @author Bloom * @license GPL-2.0+ * @link http://my.studiopress.com/themes/showcase/ */ // Add Entry Grid Shortcode add_shortcode( 'entry-grid', 'showcase_entry_grid_shortcode' ); function showcase_entry_grid_shortcode( $atts ) { global $post; extract( shortcode_atts( array( 'limit' => -1, 'category' => '', 'name' => '', 'type' => 'page', 'id' => $post->ID ), $atts ) ); $args = array( 'post_type' => $type, 'post_parent' => ($type == 'post') ? '' : $id, 'posts_per_page' => $limit, 'category_name' => $category, 'order' => 'ASC', 'orderby' => 'menu_order', 'paged' => get_query_var( 'paged' ) ); global $wp_query; $loop = new WP_Query( $args ); ob_start(); $i = 0; while ( $loop->have_posts() ) { $loop->the_post(); $classes = ($i % 4 == 0) ? 'one-fourth first' : ' one-fourth'; ?> <div id="post-<?php the_ID(); ?>" <?php post_class($classes) ?>> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'showcase' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"> <div class="overlay"> <div class="overlay-inner"> <div class="overlay-details"> <?php the_title( '<h4>', '</h4>' );?> </div> </div> </div> <?php if(has_post_thumbnail()) : the_post_thumbnail( 'showcase_entry_grid' ); endif; ?> </a> </div> <?php $i++; } $output = ob_get_clean(); if ( $output ) { return '<div class="showcase-entry-grid">' . $output . '</div>'; } wp_reset_query(); }
परिवर्तित टेक्स्ट
फ़ाइल खोलें
<?php /** * Showcase Pro * * This file adds the entry grid shortcode to the Showcase Pro Theme. * * @package Showcase * @author Bloom * @license GPL-2.0+ * @link http://my.studiopress.com/themes/showcase/ */ // Add Entry Grid Shortcode add_shortcode( 'entry-grid', 'showcase_entry_grid_shortcode' ); function showcase_entry_grid_shortcode( $atts ) { extract( shortcode_atts( array( 'limit' => -1, 'category' => '', 'name' => '', 'type' => 'page', 'id' => get_the_ID(), ), $atts ) ); $args = array( 'post_type' => $type, 'post_parent' => ($type === 'post') ? '' : $id, 'posts_per_page' => $limit, 'category_name' => $category, 'order' => 'ASC', 'orderby' => 'menu_order', 'paged' => get_query_var( 'paged' ), ); $loop = new WP_Query( $args ); ob_start(); $i = 0; while ( $loop->have_posts() ) { $loop->the_post(); $classes = ($i % 4 == 0) ? 'one-fourth first' : ' one-fourth'; ?> <div id="post-<?php the_ID(); ?>" <?php post_class($classes) ?>> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'showcase' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"> <div class="overlay"> <div class="overlay-inner"> <div class="overlay-details"> <?php the_title( '<h4>', '</h4>' );?> </div> </div> </div> <?php if(has_post_thumbnail()) : the_post_thumbnail( 'showcase_entry_grid' ); endif; ?> </a> </div> <?php $i++; } wp_reset_postdata(); $output = ob_get_clean(); if ( $output ) { return '<div class="showcase-entry-grid">' . $output . '</div>'; } }
अंतर खोजें