PDA

View Full Version : افزودن css rtl به کد htm در php



archicad
دوشنبه 27 فروردین 1397, 18:21 عصر
I want add an if to a php code when lang is changed to arabic in ACTIVE_LANG <html lang="<?= ACTIVE_LANG ?> select rtl css in the this code:<link rel="stylesheet" type="text/css" href="<?= active_theme_url()."/assets/css/plugins.css?v=".VERSION ?>">if active_lan="ar_AR" change plugins.css to plugins_rtl.css-----------------------------master code------------------<?php if (!defined('APP_VERSION')) die("Yo, what's up?"); ?>
<!DOCTYPE html>
<html lang="<?= ACTIVE_LANG ?>">

<head>

<meta charset="utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>

<meta name="theme-color" content="#fff">

<meta name="description" content="<?= site_settings("site_description") ?>">

<meta name="keywords" content="<?= site_settings("site_keywords") ?>">`

<link rel="icon" href="<?= site_settings("logomark") ? site_settings("logomark") : APPURL."/assets/img/logomark.png" ?>" type="image/x-icon">

<link rel="shortcut icon" href="<?= site_settings("logomark") ? site_settings("logomark") : APPURL."/assets/img/logomark.png" ?>" type="image/x-icon">

<link rel="stylesheet" type="text/css" href="<?= active_theme_url()."/assets/css/plugins.css?v=".VERSION ?>">

<link rel="stylesheet" type="text/css" href="<?= active_theme_url()."/assets/css/core.css?v=".VERSION ?>">

<title><?= site_settings("site_name") ?></title>