‎/*** Implements hook_html_head_alter()‎.‎* This will overwrite the default meta character type tag with HTML5 version.‎*‎/function farhangi_html_head_alter(&$head_elements) {$head_elements['system_meta_content_type']['#attributes'] = array('charset' => 'utf-8');‎// Unset Genarator meta tag from head.‎//unset($head_elements['system_meta_generator']);‎}/*** Insert themed breadcrumb page navigation at top of the node content.‎*‎/function farhangi_breadcrumb($variables) {$breadcrumb = $variables['breadcrumb'];‎if (!empty($breadcrumb)) {// Use CSS to hide titile .element-invisible.‎$output = '

' . t(‪'You are here'‬) .‎ '

';// comment below line to hide current page to breadcrumb$breadcrumb[]‎ = drupal_get_title()‎;‎foreach ($breadcrumb as $key => $value) {if (strpos($value, 'taxonomy/term/all')) {unset($breadcrumb[$key]);‎}}$output .‎= '';return $output;‎}}‎/*** Override or insert variables into the page template.‎*‎/function farhangi_preprocess_page(&$vars) {if (isset($vars['main_menu'])) {$vars['main_menu'] = theme('links__system_main_menu', array('links' => $vars['main_menu'],'attributes' => array('class' => array('links', 'main-menu', 'clearfix'),),'heading' => array('text' => t('Main menu'),'level' => 'h2','class' => array('element-invisible'),)));‎}else {$vars['main_menu'] = FALSE;‎}if (isset($vars['secondary_menu'])) {$vars['secondary_menu'] = theme('links__system_secondary_menu', array('links' => $vars['secondary_menu'],'attributes' => array('class' => array('links', 'secondary-menu', 'clearfix'),),'heading' => array('text' => t('Secondary menu'),'level' => 'h2','class' => array('element-invisible'),)));‎}else {$vars['secondary_menu'] = FALSE;‎}// Variables preprocess function for the "page" theming hook.‎// Do we have a node?‎if (isset($vars['node'])) {$node = $vars['node'];‎$suggests = &$vars['theme_hook_suggestions'];‎$args = arg()‎;‎unset($args[0]‎);‎$type = "page__type_{$node->type}";‎$suggests = array_merge($suggests,array($type),theme_get_suggestions($args, $type));‎// if the url is: 'http://domain.com/node/123/edit'// and node type is 'blog'.‎.‎//// This will be the suggestions://// - page__node// - page__node__%// - page__node__123// - page__node__edit// - page__type_blog// - page__type_blog__%// - page__type_blog__123// - page__type_blog__edit//// Which connects to these templates:// - page--node.tpl.php// - page--node--%.tpl.php// - page--node--123.tpl.php// - page--node--edit.tpl.php// - page--type-blog.tpl.php// - page--type-blog--%.tpl.php// - page--type-blog--123.tpl.php// - page--type-blog--edit.tpl.php//// Latter items take precedence.‎‎/*if ($node->type == 'photo' || $node->type == 'video' || $node->type == 'audio') {$type = "page__media";‎$suggests = array_merge($suggests,array($type),theme_get_suggestions($args, $type));‎}*/}}/*** Duplicate of theme_menu_local_tasks()‎ but adds clearfix to tabs.‎*‎/function farhangi_menu_local_tasks(&$variables) {$output = ''‎;‎if (!empty($variables['primary'])) {$variables['primary'][‪'#prefix'‬] = '

' . t(‪'Primary tabs'‬) .‎ '

';$variables['primary'][‪'#prefix'‬] .‎= '
    ';$variables['primary'][‪'#suffix'‬] = '
';$output .‎= drupal_render($variables['primary']);‎}if (!empty($variables['secondary'])) {$variables['secondary'][‪'#prefix'‬] = '

' . t(‪'Secondary tabs'‬) .‎ '

';$variables['secondary'][‪'#prefix'‬] .‎= '
    ';$variables['secondary'][‪'#suffix'‬] = '
';$output .‎= drupal_render($variables['secondary']);‎}return $output;‎}/*** Override or insert variables into the node template.‎*‎/function farhangi_preprocess_node(&$variables) {$variables['submitted'] = t('By !username on !datetime', array('!username' => $variables['name'], '!datetime' => $variables['date']));‎if ($variables['view_mode'] == 'full' && node_is_page($variables['node'])) {$variables['classes_array'][]‎ = 'node-full';‎}}function farhangi_preprocess_html(&$vars) {if (arg(0)‎ == 'taxonomy' && arg(1)‎ == 'term') {$term = taxonomy_term_load(arg(2)‎);‎$vars['classes_array'][]‎ = 'vocabulary-' .‎ strtolower($term->vocabulary_machine_name);‎}‎/*if (arg(0)‎ == 'node' && is_numeric(arg(1)‎)) {$node = node_load(arg(1)‎);‎if ($node->type == 'photo' || $node->type == 'video' || $node->type == 'audio') {$vars['classes_array'][]‎ = 'page-media';‎}}*‎/if ($vars['user']) {foreach($vars['user']->roles as $key => $role){$role_class = 'role-' .‎ drupal_clean_css_identifier($role);‎$vars['classes_array'][]‎ = $role_class;‎}}}‎/*** Override or insert variables into the html template.‎*‎/function farhangi_process_html(&$variables) {// Hook into color.moduleif (module_exists('color')) {_color_html_alter($variables);‎}}‎/*** Override or insert variables into the page template.‎*‎/function farhangi_process_page(&$variables) {// Hook into color.module.‎if (module_exists('color')) {_color_page_alter($variables);‎}}‎/*** Removes some default Drupal cruft.‎*/function farhangi_css_alter(&$css) {‎/* Remove some default Drupal css *‎/$exclude = array('modules/aggregator/aggregator.css' => FALSE,'modules/block/block.css' => FALSE,'modules/book/book.css' => FALSE,'modules/comment/comment.css' => FALSE,'modules/comment/comment-rtl.css' => FALSE,'modules/dblog/dblog.css' => FALSE,'modules/field/theme/field.css' => FALSE,'modules/field/theme/field-rtl.css' => FALSE,'modules/file/file.css' => FALSE,'modules/filter/filter.css' => FALSE,'modules/forum/forum.css' => FALSE,'modules/help/help.css' => FALSE,'modules/menu/menu.css' => FALSE,'modules/node/node.css' => FALSE,'modules/openid/openid.css' => FALSE,'modules/poll/poll.css' => FALSE,'modules/profile/profile.css' => FALSE,'modules/search/search.css' => FALSE,'modules/search/search-rtl.css' => FALSE,'modules/statistics/statistics.css' => FALSE,'modules/syslog/syslog.css' => FALSE,'modules/system/admin.css' => FALSE,'modules/system/maintenance.css' => FALSE,'modules/system/system.css' => FALSE,'modules/system/system.admin.css' => FALSE,'modules/system/system.maintenance.css' => FALSE,'modules/system/system.messages.css' => FALSE,'modules/system/system.messages-rtl.css' => FALSE,'modules/system/system.theme.css' => FALSE,'modules/system/system.theme-rtl.css' => FALSE,'modules/system/system.menus.css' => FALSE,'modules/system/system.menus-rtl.css' => FALSE,'modules/taxonomy/taxonomy.css' => FALSE,'modules/tracker/tracker.css' => FALSE,'modules/update/update.css' => FALSE,'modules/user/user.css' => FALSE,'modules/user/user-rtl.css' => FALSE,// TB MegaMenudrupal_get_path('module', 'tb_megamenu') .‎ '/css/bootstrap.css' => FALSE,drupal_get_path('module', 'tb_megamenu') .‎ '/css/base.css' => FALSE,//drupal_get_path('module', 'tb_megamenu') .‎ '/css/default.css' => FALSE,drupal_get_path('module', 'tb_megamenu') .‎ '/css/compatibility.css' => FALSE,// Flexslider below//'sites/all/libraries/flexslider/flexslider.css' => FALSE,drupal_get_path('module', 'views') .‎ '/css/views.css' => FALSE,drupal_get_path('module', 'views') .‎ '/css/views-rtl.css' => FALSE,// Quicktabs//drupal_get_path('module', 'quicktabs') .‎ '/css/quicktabs.css' => FALSE,// Field Collectiondrupal_get_path('module', 'field_collection') .‎ '/field_collection.theme.css' => FALSE,// logintoboggandrupal_get_path('module', 'logintoboggan') .‎ '/logintoboggan.css' => FALSE,drupal_get_path('module', 'logintoboggan') .‎ '/logintoboggan-rtl.css' => FALSE,);‎$css = array_diff_key($css, $exclude);‎‎/* Get rid of some default panel css *‎/foreach ($css as $path => $meta) {if (strpos($path, 'threecol_33_34_33_stacked') !‎== FALSE || strpos($path, 'threecol_25_50_25_stacked') !‎== FALSE) {unset($css[$path]);‎}}}‎/*** Implementation of theme_filter_tips_more_info()‎.‎* Used here to hide the "More information about formatting options" link.‎*/function farhangi_filter_tips_more_info()‎ {return ''‎;‎}/*** hide the "More information about formatting options" link.‎*‎/function farhangi_form_comment_form_alter(&$form, &$form_state) {$form['comment_body']['#after_build'][]‎ = 'farhangi_customize_comment_form';‎$form['author']['homepage']['#access'] = FALSE;‎}function farhangi_customize_comment_form(&$form) {$form[LANGUAGE_NONE][0]‎['format']['#access'] = FALSE;‎return $form;‎}نسخه مناسب چاپ

رهبر انقلاب در اولین روز سال ۹۴ مهمترین هدفی را که مردم و مسئولان امسال باید مورد اهتمام ویژه قرار دهند، تقویت تولید داخلی دانستند و بر سوق‌دادن سرمایه‌ها به سمت تولید و مصرف محصولات داخلی تاکید کردند.

Loading Video.‎.‎.‎
این مطلب ۳۶ بار خوانده شده

دیدگاه ها

  • دیدگاه های ارسال شده توسط شما، پس از تایید در وب منتشر خواهد شد.
  • پیام هایی که حاوی تهمت یا افترا باشد منتشر نخواهد شد.
  • پیام هایی که به غیر از زبان فارسی یا غیر مرتبط باشد منتشر نخواهد شد.