function structured_data_get_site_logo in Structured Data (JSON+LD Rich Snippets) 7
Gets the a URL to the site logo.
Return value
(string) Path to a suitable logo file.
2 calls to structured_data_get_site_logo()
- structured_data_marketing_form in ./structured_data.admin.inc 
- Fieldset builder for the Marketing details settings form.
- structured_data_preprocess_html in ./structured_data.module 
- Implements template_preprocess_html().
File
- ./structured_data.module, line 120 
- Annotate your content to generate Rich Search Snippets.
Code
function structured_data_get_site_logo() {
  if ($custom_logo = variable_get('structured_data_site_logo_custom', FALSE)) {
    if ($logo = file_load($custom_logo)) {
      $logo_path = file_create_url($logo->uri);
    }
  }
  else {
    $default_theme = variable_get('theme_default', 'bartik');
    $logo_path = theme_get_setting('logo', $default_theme);
  }
  return $logo_path;
}