PageRenderTime 76ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/themes/nonus/theme/options/_custom.php

https://github.com/alniko009/magic
PHP | 43 lines | 36 code | 6 blank | 1 comment | 0 complexity | cc030cb5f43f1e7b262c65c2c170e386 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <?php
  2. $theme_data = wp_get_theme();
  3. $theme_uri = $theme_data->get('ThemeURI');
  4. $description = $theme_data->get('Description');
  5. $author = $theme_data->get('Author');
  6. $authorUri = $theme_data->get('AuthorURI');
  7. $version = $theme_data->get('Version');
  8. $docs_uri = CT_THEME_DIR_URI.'/docs/index.html';
  9. $theme_info = '<div class="ct_theme-section-desc">';
  10. $theme_info .= '<p class="ct_theme-theme-data description theme-author">' . __('<strong>Documentation:</strong> ', 'ct_theme') . '<a target="_blank" href="' . $docs_uri . '">' . $docs_uri . '</a></p>';
  11. $theme_info .= '<p class="ct_theme-theme-data description theme-uri">' . __('<strong>Support forum:</strong> ', 'ct_theme') . '<a href="http://support.themewoodmen.createit.pl" target="_blank">http://support.themewoodmen.createit.pl</a></p>';
  12. $theme_info .= '<p class="ct_theme-theme-data description theme-author">' . __('<strong>Author:</strong> ', 'ct_theme') .'<a target="_blank" href="'.$authorUri.'">'. $author . '</a></p>';
  13. $theme_info .= '<p class="ct_theme-theme-data description theme-version">' . __('<strong>Version:</strong> ', 'ct_theme') . $version . '</p>';
  14. $theme_info .= '<p class="ct_theme-theme-data description theme-description">' . $description . '</p>';
  15. $theme_info .= '</div>';
  16. $sections['theme_info'] = array(
  17. 'icon' => NHP_OPTIONS_URL . 'img/glyphicons/glyphicons_195_circle_info.png',
  18. 'title' => __('Theme Information', 'ct_theme'),
  19. 'content' => $theme_info,
  20. 'group' => __("General",'ct_theme'),
  21. 'fields' => array(array(
  22. 'type' => 'info',
  23. 'id' => "general_info",
  24. 'desc' => $theme_info
  25. ))
  26. );
  27. //Setup custom links in the footer for share icons
  28. $args['share_icons']['logo'] = array(
  29. 'link' => 'http://themeforest.net/user/ThemeWoodmen/portfolio',
  30. 'title' => __('Browse our portfolio', 'ct_theme'),
  31. 'img' => CT_THEME_SETTINGS_MAIN_DIR_URI . '/img/themewoodmen-logo.png'
  32. );
  33. $args['share_icons']['docs'] = array(
  34. 'link' => $docs_uri,
  35. 'title' => __('Online documentation', 'ct_theme'),
  36. 'style'=>'position:relative;top:-18px'
  37. );