02 Nis 2023 04:23 Yeni Konu Oluştur

Haberler:

Sitemiz Smf 2.1 ve Smf 2.0 sürümleri için Destek ve Tema paylaşım forumudur


HTML ve CSS sürümünü yükseltmek

Başlatan Odysee, 31 Ara 2016 21:33

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.



  1. 632

  2. 252

Arkadaşlar temamdaki HTML ve CSS sürümünü nasıl öğrenip yükseltebilirim?

*

  1. 3,263

  2. 596

  3. 1077
temanızın index.template dosyasına bakın smf temaları genel olarak xhtml dir html5 kullanılmış temalar genelde tema yapımcısı açıklama kısımlarında belirtir
örnek olarak
<!DOCTYPE xhtml> = xhtml
<!DOCTYPE html> = html5
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> =html 4.1

Css sürümünü yükseltme diye birşey yok yani şu şekilde yok bazı eski tarayıcılar css3 kodlamalarını tanımamakta buda siteyi bozuk gözükmesi demek yeni tarayıcıların çoğunluğu css 3 tanımaktadır
eski browser a örnek olarak internet explorer 6, firefox 24 vs.. gibi



  1. 632

  2. 252
HTML konusunda hangisi daha iyidir?

*

  1. 3,263

  2. 596

  3. 1077

tabiki html 5 daha iyi
dokuzharf temasını inceleyebilirsin html 5 dir



  1. 632

  2. 252
HTML5 olarak nasıl düzenleyebilirim temamı? index.template.php'de böyle bir kısım var. Bu arada Mutlu Yıllar dilerim hocam.

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '2.0';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as opposed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status separate from topic icons? */
$settings['separate_sticky_lock'] = true;

/* Does this theme use the strict doctype? */
$settings['strict_doctype'] = false;

/* Does this theme use post previews on the message index? */
$settings['message_index_preview'] = false;

/* Set the following variable to true if this theme requires the optional theme strings file to be loaded. */
$settings['require_theme_strings'] = true;
}

// The main sub template above the content.
function template_html_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
    $stop_words=  array(" ben "," sen "," hakkında "," bir "," nerede "," ki "," kim "," nerede "," ve "," com "," de "," en "," için "," tarafından "," nasıl "," ne "," içinde "," ile "," www ","!",".","?","=","-");
    $keywords_ = str_replace($stop_words," ",$context['page_title']);       
    $keywords_ =  preg_replace ( "/\s\s+/" , " " , $keywords_);       
    $keywords_ = str_replace(" ",", ",trim($keywords_));


// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '>
<head>';

// The ?fin20 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?fin20" />';
// Some browsers need an extra stylesheet due to bugs/compatibility issues.
foreach (array('ie7', 'ie6', 'webkit') as $cssfix)
if ($context['browser']['is_' . $cssfix])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/', $cssfix, '.css" />';

// RTL languages require an additional stylesheet.
if ($context['right_to_left'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/rtl.css" />';
// Here comes the JavaScript bits!
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js"></script>
<script type="text/javascript" src="', $settings['theme_url'], '/scripts/theme.js"></script>
<script type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_default_theme_url = "', $settings['default_theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";', $context['show_pm_popup'] ? '
var fPmPopup = function ()
{
if (confirm("' . $txt['show_personal_messages'] . '"))
window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");
}
addLoadEvent(fPmPopup);' : '', '
var ajax_notification_text = "', $txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "', $txt['modify_cancel'], '";
// ]]></script>';

*

  1. 3,263

  2. 596

  3. 1077
dokuzharf index.templatesi ile karşılaştırsan daha basit olur
örnek
   $settings['doctype'] = 'xhtml';
değşitir
   $settings['doctype'] = 'html';
gibi



  1. 632

  2. 252
Alıntı yapılan: snrj - 31 Ara 2016 23:28dokuzharf index.templatesi ile karşılaştırsan daha basit olur
örnek
   $settings['doctype'] = 'xhtml';
değşitir
   $settings['doctype'] = 'html';
gibi


Peki hocam teşekkür ederim yardımınız için.


Benzer Konular (5)


MENU ×