Changeset 1726 for trunk/wp-includes/template-functions-general.php
- Timestamp:
- 09/30/2004 05:56:16 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-general.php
r1683 r1726 52 52 function get_bloginfo($show='') { 53 53 54 switch($show) { 55 case 'url': 56 case 'siteurl': 57 $output = get_settings('home'); 58 break; 59 case 'description': 60 $output = get_settings('blogdescription'); 61 break; 62 case 'rdf_url': 63 $output = get_feed_link('rdf'); 64 break; 65 case 'rss_url': 66 $output = get_feed_link('rss'); 67 break; 68 case 'rss2_url': 69 $output = get_feed_link('rss2'); 70 break; 71 case 'atom_url': 72 $output = get_feed_link('atom'); 73 break; 74 case 'comments_rss2_url': 75 $output = get_feed_link('comments_rss2'); 76 break; 77 case 'pingback_url': 78 $output = get_settings('siteurl') .'/xmlrpc.php'; 79 break; 80 case 'stylesheet_url': 81 $output = get_settings('stylesheet');; 82 if (empty($output) || $output == 'default') { 83 $output = get_settings('siteurl') . "/wp-layout.css"; 84 } else { 85 $output = get_settings('siteurl') . "/wp-content/themes/$output/style.css"; 86 } 87 break; 88 case 'template_url': 89 $output = get_settings('template');; 90 if (empty($output) || $output == 'default') { 91 $output = get_settings('siteurl'); 92 } else { 93 $output = get_settings('siteurl') . "/wp-content/themes/$output"; 94 } 95 break; 96 case 'admin_email': 97 $output = get_settings('admin_email'); 98 break; 99 case 'charset': 100 $output = get_settings('blog_charset'); 101 if ('' == $output) $output = 'UTF-8'; 102 break; 103 case 'version': 104 global $wp_version; 105 $output = $wp_version; 106 break; 107 case 'name': 108 default: 109 $output = get_settings('blogname'); 110 break; 111 } 112 return $output; 54 switch($show) { 55 case 'url': 56 case 'siteurl': 57 $output = get_settings('home'); 58 break; 59 case 'description': 60 $output = get_settings('blogdescription'); 61 break; 62 case 'rdf_url': 63 $output = get_feed_link('rdf'); 64 break; 65 case 'rss_url': 66 $output = get_feed_link('rss'); 67 break; 68 case 'rss2_url': 69 $output = get_feed_link('rss2'); 70 break; 71 case 'atom_url': 72 $output = get_feed_link('atom'); 73 break; 74 case 'comments_rss2_url': 75 $output = get_feed_link('comments_rss2'); 76 break; 77 case 'pingback_url': 78 $output = get_settings('siteurl') .'/xmlrpc.php'; 79 break; 80 case 'stylesheet_url': 81 $output = get_settings('stylesheet');; 82 if (empty($output) || $output == 'default') { 83 $output = get_settings('siteurl') . "/wp-layout.css"; 84 } else { 85 $output = get_settings('siteurl') . "/wp-content/themes/$output/style.css"; 86 } 87 break; 88 case 'stylesheet_directory': 89 $output = get_settings('stylesheet');; 90 if (empty($output) || $output == 'default') { 91 $output = get_settings('siteurl'); 92 } else { 93 $output = get_settings('siteurl') . "/wp-content/themes/$output"; 94 } 95 break; 96 case 'template_directory': 97 case 'template_url': 98 $output = get_settings('template');; 99 if (empty($output) || $output == 'default') { 100 $output = get_settings('siteurl'); 101 } else { 102 $output = get_settings('siteurl') . "/wp-content/themes/$output"; 103 } 104 break; 105 case 'admin_email': 106 $output = get_settings('admin_email'); 107 break; 108 case 'charset': 109 $output = get_settings('blog_charset'); 110 if ('' == $output) $output = 'UTF-8'; 111 break; 112 case 'version': 113 global $wp_version; 114 $output = $wp_version; 115 break; 116 case 'name': 117 default: 118 $output = get_settings('blogname'); 119 break; 120 } 121 return $output; 113 122 } 114 123
Note: See TracChangeset
for help on using the changeset viewer.