About 758 results: "php link repo:crypticrod/sr_wp_code"
Page 9 of 38
Filter Results
Sources
Languages
Filter Results
Try Search On













generate-embed-code.php in sr_wp_code https://bitbucket.org/crypticrod/sr_wp_code | 489 lines | PHP
  1. * @param	string		$style			Stylesheet information
  2. * @param	string		$link			Link back to YouTube
  3. * @param	string		$theme			Use dark or light theme
  4. * @param	string		$https			Use HTTPS for links
  5. 
                        
  6. function ye_generate_youtube_code( $id = '', $type = '', $width = '', $height = '', $fullscreen = '', $related = '', $autoplay = '', $loop = '', $start = '', $info = '', $annotation = '', $cc = '', $style = '', $link = '', $react = '', $stop = '', $sweetspot = '', $disablekb = '', $ratio = '', $autohide = '', $controls = '', $profile = '', $list_style = '', $audio = '', $template = '', $hd = '', $color = '', $theme = '', $https = '' )  {
  7. 	// Generate a cache key for the above passed parameters
  8. 	$cache_key = 'ye_video_' . base64_encode( sha1( $id . $type . $width . $height . $fullscreen . $related . $autoplay . $loop . $start . $info . $annotation . $cc . $style . $link . $react . $stop . $sweetspot . $disablekb . $ratio . $autohide . $controls . $profile . $list_style . $audio . $template . $hd . $color . $theme . $https . print_r( $general, true ) . print_r( $options, true ) . print_r( $list, true ) ) );
  9. 
                        
  10. 	// If this is a feed then display a thumbnail and/or text link to the original video
  11. 	if ( $cc == '' ) { $cc = $options[ 'cc' ]; }
  12. 	if ( $link == '' ) { $link = $options[ 'link' ]; }
  13. 		if ( $fullscreen == 1 ) { $result .= $tab . "\t<param name=\"allowFullScreen\" value=\"true\" />\n"; }
  14. 		if ( ( $link != 1 ) && ( $link != '' ) ) { $result .= $tab . "\t<param name=\"allowNetworking\" value=\"internal\" />\n"; }



edit-comments.php in sr_wp_code https://bitbucket.org/crypticrod/sr_wp_code | 243 lines | PHP
  1. 
                        
  2. add_contextual_help( $current_screen, '<p>' . __( 'You can manage comments made on your site similar to the way you manage Posts and other content. This screen is customizable in the same ways as other management screens, and you can act on comments using the on-hover action links or the Bulk Actions.' ) . '</p>' .
  3. 	'<p>' . __( 'A yellow row means the comment is waiting for you to moderate it.' ) . '</p>' .
  4. 	'<p>' . __( 'In the Author column, in addition to the author&#8217;s name, email address, and blog URL, the commenter&#8217;s IP address is shown. Clicking on this link will show you all the comments made from this IP address.' ) . '</p>' .
  5. 	'<p>' . __( 'In the Comment column, above each comment it says &#8220;Submitted on,&#8221; followed by the date and time the comment was left on your site. Clicking on the date/time link will take you to that comment on your live site. Hovering over any comment gives you options to approve, reply (and approve), quick edit, edit, spam mark, or trash that comment.' ) . '</p>' .
  6. 	'<p>' . __( 'In the In Response To column, there are three elements. The text is the name of the post that inspired the comment, and links to the post editor for that entry. The &#8220;#&#8221; permalink symbol below leads to that post on your live site. The small bubble with the number in it shows how many comments that post has received. If the bubble is gray, you have moderated all comments for that post. If it is blue, there are pending comments. Clicking the bubble will filter the comments screen to show only comments on that post.' ) . '</p>' .
  7. 	'<p>' . __( 'Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link below to learn more.' ) . '</p>' .
  8. 	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
  9. 		sprintf('<a href="%s">%s</a>',
  10. 			get_edit_post_link($post_id),


options-discussion.php in sr_wp_code https://bitbucket.org/crypticrod/sr_wp_code | 249 lines | PHP
  1. add_contextual_help($current_screen,
  2. 	'<p>' . __('This screen provides many options for controlling the management and display of comments and links to your posts/pages. So many, in fact, they won&#8217;t all fit here! :) Use the documentation link below to get information on what each discussion setting does.') . '</p>' .
  3. <input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_option('default_pingback_flag')); ?> />
  4. <?php _e('Attempt to notify any blogs linked to from the article.') ?></label>
  5. <input name="default_ping_status" type="checkbox" id="default_ping_status" value="open" <?php checked('open', get_option('default_ping_status')); ?> />
  6. <?php _e('Allow link notifications from other blogs (pingbacks and trackbacks.)') ?></label>
  7. <td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Moderation') ?></span></legend>
  8. <p><label for="comment_max_links"><?php printf(__('Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="text" id="comment_max_links" value="' . esc_attr(get_option('comment_max_links')) . '" class="small-text" />' ) ?></label></p>
  9. 
                        
  10. <?php // the above would be a good place to link to codex documentation on the gravatar functions, for putting it in themes. anything like that? ?>


Back to Top