Permalink
Browse files

textdomain changed

  • Loading branch information...
tareq1988 committed Jan 23, 2014
1 parent 65b9fd3 commit 097d99b8cffc5fbb821dd1e3e8b149fb76d6ab3d
View
@@ -1,13 +1,13 @@
<?php get_template_part( 'templates/page', 'header' ); ?>
<div class="alert alert-warning">
- <?php _e( 'Sorry, but the page you were trying to view does not exist.', 'roots' ); ?>
+ <?php _e( 'Sorry, but the page you were trying to view does not exist.', 'wedocs' ); ?>
</div>
-<p><?php _e( 'It looks like this was the result of either:', 'roots' ); ?></p>
+<p><?php _e( 'It looks like this was the result of either:', 'wedocs' ); ?></p>
<ul>
- <li><?php _e( 'a mistyped address', 'roots' ); ?></li>
- <li><?php _e( 'an out-of-date link', 'roots' ); ?></li>
+ <li><?php _e( 'a mistyped address', 'wedocs' ); ?></li>
+ <li><?php _e( 'an out-of-date link', 'wedocs' ); ?></li>
</ul>
<?php get_search_form(); ?>
View
@@ -3,7 +3,7 @@
<!--[if lt IE 8]>
<div class="alert alert-warning">
- <?php _e( 'You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'wedevs-docs' ); ?>
+ <?php _e( 'You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'wedocs' ); ?>
</div>
<![endif]-->
@@ -19,12 +19,12 @@
<div class="wrap container" role="document">
<div class="content row">
- <main class="main <?php echo roots_main_class(); ?>" role="main">
+ <main class="main <?php echo wedocs_main_class(); ?>" role="main">
<?php include roots_template_path(); ?>
</main><!-- /.main -->
- <?php if ( wedevs_display_sidebar() ) : ?>
- <aside class="sidebar <?php echo roots_sidebar_class(); ?>" role="complementary">
+ <?php if ( wedocs_display_sidebar() ) : ?>
+ <aside class="sidebar <?php echo wedocs_sidebar_class(); ?>" role="complementary">
<?php include roots_sidebar_path(); ?>
</aside><!-- /.sidebar -->
<?php endif; ?>
View
@@ -7,7 +7,7 @@
* Remove inline CSS used by posts with galleries
* Remove self-closing tag and change ''s to "'s on rel_canonical()
*/
-function wedevs_docs_head_cleanup() {
+function wedocs_head_cleanup() {
// Originally from http://wpengineer.com/1438/wordpress-header/
remove_action('wp_head', 'feed_links', 2);
remove_action('wp_head', 'feed_links_extra', 3);
@@ -22,11 +22,11 @@ function wedevs_docs_head_cleanup() {
if (!class_exists('WPSEO_Frontend')) {
remove_action('wp_head', 'rel_canonical');
- add_action('wp_head', 'wedevs_docs_rel_canonical');
+ add_action('wp_head', 'wedocs_rel_canonical');
}
}
-function wedevs_docs_rel_canonical() {
+function wedocs_rel_canonical() {
global $wp_the_query;
if (!is_singular()) {
@@ -40,7 +40,7 @@ function wedevs_docs_rel_canonical() {
$link = get_permalink($id);
echo "\t<link rel=\"canonical\" href=\"$link\">\n";
}
-add_action('init', 'wedevs_docs_head_cleanup');
+add_action('init', 'wedocs_head_cleanup');
/**
* Remove the WordPress version from RSS feeds
@@ -52,7 +52,7 @@ function wedevs_docs_rel_canonical() {
*
* Remove dir="ltr"
*/
-function wedevs_docs_language_attributes() {
+function wedocs_language_attributes() {
$attributes = array();
$output = '';
@@ -67,16 +67,16 @@ function wedevs_docs_language_attributes() {
}
$output = implode(' ', $attributes);
- $output = apply_filters('wedevs_docs_language_attributes', $output);
+ $output = apply_filters('wedocs_language_attributes', $output);
return $output;
}
-add_filter('language_attributes', 'wedevs_docs_language_attributes');
+add_filter('language_attributes', 'wedocs_language_attributes');
/**
* Manage output of wp_title()
*/
-function wedevs_docs_wp_title($title) {
+function wedocs_wp_title($title) {
if (is_feed()) {
return $title;
}
@@ -85,23 +85,23 @@ function wedevs_docs_wp_title($title) {
return $title;
}
-add_filter('wp_title', 'wedevs_docs_wp_title', 10);
+add_filter('wp_title', 'wedocs_wp_title', 10);
/**
* Clean up output of stylesheet <link> tags
*/
-function wedevs_docs_clean_style_tag($input) {
+function wedocs_clean_style_tag($input) {
preg_match_all("!<link rel='stylesheet'\s?(id='[^']+')?\s+href='(.*)' type='text/css' media='(.*)' />!", $input, $matches);
// Only display media if it is meaningful
$media = $matches[3][0] !== '' && $matches[3][0] !== 'all' ? ' media="' . $matches[3][0] . '"' : '';
return '<link rel="stylesheet" href="' . $matches[2][0] . '"' . $media . '>' . "\n";
}
-add_filter('style_loader_tag', 'wedevs_docs_clean_style_tag');
+add_filter('style_loader_tag', 'wedocs_clean_style_tag');
/**
* Add and remove body_class() classes
*/
-function wedevs_docs_body_class($classes) {
+function wedocs_body_class($classes) {
// Add post/page slug
if (is_single() || is_page() && !is_front_page()) {
$classes[] = basename(get_permalink());
@@ -117,26 +117,26 @@ function wedevs_docs_body_class($classes) {
return $classes;
}
-add_filter('body_class', 'wedevs_docs_body_class');
+add_filter('body_class', 'wedocs_body_class');
/**
* Wrap embedded media as suggested by Readability
*
* @link https://gist.github.com/965956
* @link http://www.readability.com/publishers/guidelines#publisher
*/
-function wedevs_docs_embed_wrap($cache, $url, $attr = '', $post_ID = '') {
+function wedocs_embed_wrap($cache, $url, $attr = '', $post_ID = '') {
return '<div class="entry-content-asset">' . $cache . '</div>';
}
-add_filter('embed_oembed_html', 'wedevs_docs_embed_wrap', 10, 4);
+add_filter('embed_oembed_html', 'wedocs_embed_wrap', 10, 4);
/**
* Add Bootstrap thumbnail styling to images with captions
* Use <figure> and <figcaption>
*
* @link http://justintadlock.com/archives/2011/07/01/captions-in-wordpress
*/
-function wedevs_docs_caption($output, $attr, $content) {
+function wedocs_caption($output, $attr, $content) {
if (is_feed()) {
return $output;
}
@@ -167,59 +167,59 @@ function wedevs_docs_caption($output, $attr, $content) {
return $output;
}
-add_filter('img_caption_shortcode', 'wedevs_docs_caption', 10, 3);
+add_filter('img_caption_shortcode', 'wedocs_caption', 10, 3);
/**
* Remove unnecessary dashboard widgets
*
* @link http://www.deluxeblogtips.com/2011/01/remove-dashboard-widgets-in-wordpress.html
*/
-function wedevs_docs_remove_dashboard_widgets() {
+function wedocs_remove_dashboard_widgets() {
remove_meta_box('dashboard_incoming_links', 'dashboard', 'normal');
remove_meta_box('dashboard_plugins', 'dashboard', 'normal');
remove_meta_box('dashboard_primary', 'dashboard', 'normal');
remove_meta_box('dashboard_secondary', 'dashboard', 'normal');
}
-add_action('admin_init', 'wedevs_docs_remove_dashboard_widgets');
+add_action('admin_init', 'wedocs_remove_dashboard_widgets');
/**
* Clean up the_excerpt()
*/
-function wedevs_docs_excerpt_length($length) {
+function wedocs_excerpt_length($length) {
return POST_EXCERPT_LENGTH;
}
-function wedevs_docs_excerpt_more($more) {
+function wedocs_excerpt_more($more) {
return ' &hellip; <a href="' . get_permalink() . '">' . __('Read more &rarr;', 'wedevs-docs') . '</a>';
}
-add_filter('excerpt_length', 'wedevs_docs_excerpt_length');
-add_filter('excerpt_more', 'wedevs_docs_excerpt_more');
+add_filter('excerpt_length', 'wedocs_excerpt_length');
+add_filter('excerpt_more', 'wedocs_excerpt_more');
/**
* Remove unnecessary self-closing tags
*/
-function wedevs_docs_remove_self_closing_tags($input) {
+function wedocs_remove_self_closing_tags($input) {
return str_replace(' />', '>', $input);
}
-add_filter('get_avatar', 'wedevs_docs_remove_self_closing_tags'); // <img />
-add_filter('comment_id_fields', 'wedevs_docs_remove_self_closing_tags'); // <input />
-add_filter('post_thumbnail_html', 'wedevs_docs_remove_self_closing_tags'); // <img />
+add_filter('get_avatar', 'wedocs_remove_self_closing_tags'); // <img />
+add_filter('comment_id_fields', 'wedocs_remove_self_closing_tags'); // <input />
+add_filter('post_thumbnail_html', 'wedocs_remove_self_closing_tags'); // <img />
/**
* Don't return the default description in the RSS feed if it hasn't been changed
*/
-function wedevs_docs_remove_default_description($bloginfo) {
+function wedocs_remove_default_description($bloginfo) {
$default_tagline = 'Just another WordPress site';
return ($bloginfo === $default_tagline) ? '' : $bloginfo;
}
-add_filter('get_bloginfo_rss', 'wedevs_docs_remove_default_description');
+add_filter('get_bloginfo_rss', 'wedocs_remove_default_description');
/**
* Redirects search results from /?s=query to /search/query/, converts %20 to +
*
* @link http://txfx.net/wordpress-plugins/nice-search/
*/
-function wedevs_docs_nice_search_redirect() {
+function wedocs_nice_search_redirect() {
global $wp_rewrite;
if (!isset($wp_rewrite) || !is_object($wp_rewrite) || !$wp_rewrite->using_permalinks()) {
return;
@@ -232,7 +232,7 @@ function wedevs_docs_nice_search_redirect() {
}
}
if (current_theme_supports('nice-search')) {
- add_action('template_redirect', 'wedevs_docs_nice_search_redirect');
+ add_action('template_redirect', 'wedocs_nice_search_redirect');
}
/**
@@ -241,21 +241,21 @@ function wedevs_docs_nice_search_redirect() {
* @link http://wordpress.org/support/topic/blank-search-sends-you-to-the-homepage#post-1772565
* @link http://core.trac.wordpress.org/ticket/11330
*/
-function wedevs_docs_request_filter($query_vars) {
+function wedocs_request_filter($query_vars) {
if (isset($_GET['s']) && empty($_GET['s'])) {
$query_vars['s'] = ' ';
}
return $query_vars;
}
-add_filter('request', 'wedevs_docs_request_filter');
+add_filter('request', 'wedocs_request_filter');
/**
* Tell WordPress to use searchform.php from the templates/ directory
*/
-function wedevs_docs_get_search_form($form) {
+function wedocs_get_search_form($form) {
$form = '';
locate_template('/templates/searchform.php', true, false);
return $form;
}
-add_filter('get_search_form', 'wedevs_docs_get_search_form');
+add_filter('get_search_form', 'wedocs_get_search_form');
View
@@ -42,8 +42,9 @@ function end_el(&$output, $comment, $depth = 0, $args = array()) {
}
}
-function roots_get_avatar($avatar) {
+function wedocs_get_avatar($avatar) {
$avatar = str_replace("class='avatar", "class='avatar pull-left media-object", $avatar);
return $avatar;
}
-add_filter('get_avatar', 'roots_get_avatar');
+
+add_filter('get_avatar', 'wedocs_get_avatar');
View
@@ -15,8 +15,8 @@
/**
* .main classes
*/
-function roots_main_class() {
- if ( wedevs_display_sidebar() ) {
+function wedocs_main_class() {
+ if ( wedocs_display_sidebar() ) {
// Classes on pages with the sidebar
$class = 'col-sm-8';
} else {
@@ -30,7 +30,7 @@ function roots_main_class() {
/**
* .sidebar classes
*/
-function roots_sidebar_class() {
+function wedocs_sidebar_class() {
return 'col-sm-4';
}
@@ -39,7 +39,7 @@ function roots_sidebar_class() {
*
* See lib/sidebar.php for more details
*/
-function wedevs_display_sidebar() {
+function wedocs_display_sidebar() {
$sidebar_config = new Roots_Sidebar(
/**
* Conditional tag checks (http://codex.wordpress.org/Conditional_Tags)
@@ -66,7 +66,7 @@ function wedevs_display_sidebar() {
)
);
- return apply_filters('wedevs_display_sidebar', $sidebar_config->display);
+ return apply_filters('wedocs_display_sidebar', $sidebar_config->display);
}
/**
@@ -77,5 +77,5 @@ function wedevs_display_sidebar() {
* Default: 1140px is the default Bootstrap container width.
*/
if ( !isset( $content_width ) ) {
- $content_width = 1140;
+ $content_width = 640;
}
View
@@ -4,7 +4,7 @@
*/
-function wedevs_docs_custom_breadcrumbs() {
+function wedocs_breadcrumbs() {
$showOnHome = 0; // 1 - show breadcrumbs on the homepage, 0 - don't show
$delimiter = '<i class="fa fa-chevron-right sep"></i>'; // delimiter between crumbs
@@ -108,42 +108,4 @@ function wedevs_docs_custom_breadcrumbs() {
echo '</div>';
}
-}
-
-
-function wdevs_docs_share_buttons() {
- ?>
- <ul class="list-inline">
- <li class="facebook">
- <div class="fb-like" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false"></div>
- </li>
- <li class="twitter">
- <a href="https://twitter.com/share" class="twitter-share-button"><?php _e( 'Tweet', 'wedevs-docs' ); ?></a>
- </li>
- <li class="gplus">
- <div class="g-plusone" data-size="medium"></div>
- </li>
- </ul>
-
-
- <div id="fb-root"></div>
- <script>(function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) return;
- js = d.createElement(s); js.id = id;
- js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=150649678345378";
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));</script>
-
- <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
-
- <!-- Place this tag after the last +1 button tag. -->
- <script type="text/javascript">
- (function() {
- var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
- po.src = 'https://apis.google.com/js/plusone.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
- })();
- </script>
- <?php
}
Oops, something went wrong.

0 comments on commit 097d99b

Please sign in to comment.