About 881 results: "php link repo:sergiohzlz/reportaprod"
Page 4 of 45
Filter Results
Sources
Languages
Filter Results
Try Search On












attachment.php in reportaprod https://bitbucket.org/sergiohzlz/reportaprod | 54 lines | PHP
  1. 
                        
  2. <?php $attachment_link = get_the_attachment_link($post->ID, true, array(600, 800)); // Finds attachment, sizes it ?>
  3. 
                        
  4. 			<h2 class="page-title"><a href="<?php echo get_permalink($post->post_parent) ?>" rev="attachment"><?php echo get_the_title($post->post_parent) ?></a></h2>
  5. 				<div class="entry-content">
  6. 					<p class="<?php echo $classname ?>"><?php echo $attachment_link ?></p>
  7. 
                        
  8. <?php link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'sandbox'), "</div>\n", 'number'); ?>
  9. 				<div class="entry-meta">
  10. 					<?php printf(__('This entry was written by %1$s and posted on <abbr class="published" title="%2$sT%3$s">%4$s at %5$s</abbr>. Bookmark the <a href="%6$s" title="Permalink to %7$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%8$s" title="Comments RSS to %7$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'sandbox'),
  11. 						'<span class="author vcard"><a class="url fn n" href="'.get_author_link(false, $authordata->ID, $authordata->user_nicename).'" title="' . sprintf(__('View all posts by %s', 'sandbox'), $authordata->display_name) . '">'.get_the_author().'</a></span>',
  12. 						get_the_time('Y-m-d'),
  13. 						get_the_time(),
  14. 						get_permalink(),
  15. <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) : // Comments and trackbacks open ?>
  16. 					<?php printf(__('<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox'), get_trackback_url()) ?>
  17. <?php elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) : // Only trackbacks open ?>



image.php in reportaprod https://bitbucket.org/sergiohzlz/reportaprod | 106 lines | PHP
  1. 
                        
  2. 			<h2 class="title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'zbench' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  3. 				<div>
  4. 					<span class="comments-meta"><a href="<?php the_permalink(); ?>#respond"><?php comments_number(__( 'Leave a Comment', 'zbench' ), __( '1 Comment', 'zbench' ), __( '% Comments', 'zbench' )); ?></a></span>
  5. 						$metadata = wp_get_attachment_metadata();
  6. 						printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span>  at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', 'zbench' ),
  7. 							$metadata['height'],
  8. 							get_permalink( $post->post_parent ),
  9. 					?>
  10. 					<?php edit_post_link( __( 'Edit', 'zbench' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
  11. 						 * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
  12. 						 * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
  13. 								// get the URL of the next image attachment
  14. 								$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
  15. 								// or get the URL of the first image attachment
  16. 								$next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );





Back to Top