RSS   Twitter   Copiny   Copiny
Нашел ошибку? 

Выдели фрагмент текста с ошибкой или неточностью и нажми Ctrl+Enter!

Наложение стилей в модулях

Практически в каждом из модулей существует опция - Суффикс класса модуля. Обычна эта опция позволяет обрамить вывод модуля в контейнер(ы) с индивидуальным классом, для удобства наложения стилей CSS. Не плохо было бы если и наш модуль будет поддерживать суффикс CSS класса.

Как вы понимаете, объявляется опция через xml-файл модуля:

<param name="moduleclass_sfx" type="text" default="" 
       label="Module Class Suffix" description="PARAMMODULECLASSSUFFIX" />

Использовать суффикс класса в коде можно следующим образом:

$mcsuffix = trim($params->get("moduleclass_sfx"));

И теперь выводим модуль с соотвествующим обрамлением:

# Вывод ссылки и анонса
echo "\n<p class=\"ranlatest".$mcsuffix."\">".$pptext."</p>";
echo "\n<p class=\"ranlatest".$mcsuffix."\"><a class=\"ranlatest".

Согласитесь, что подобный код не дает нам большой гибкости. Как только возникнет вопрос о том, чтобы один и тот же модуль отобразился дважды с разной версткой возникнут некоторые сложности. В следующией статье мы рассмотрим основные вопросы шаблонизации модуля.

Смотрите также:
Комментарии (39) Добавить комментарий
    23 Ноября 2019, 23:12
     ↑  0  ↓     ответ

    Very good post! We are linking to this particularly great content on our

    site. Keep up the great writing.

    24 Ноября 2019, 14:58
     ↑  0  ↓     ответ

    What's up everyone, it's my first go to see at this website, and article is actually fruitful in favor of me, keep up posting such articles.

  • coconut oil was
    coconut oil was
    25 Ноября 2019, 22:12
     ↑  0  ↓     ответ

    Excellent blog here! Also your web site quite a bit up fast!

    What host are you the use of? Can I get your associate hyperlink to your host?

    I want my site loaded up as quickly as yours lol

  • plenty of fish dating site
    plenty of fish dating site
    26 Ноября 2019, 12:03
     ↑  0  ↓     ответ

    Hi there to every body, it's my first visit of this web site; this weblog consists of amazing and in fact fine information in support of


    26 Марта 2022, 11:25
     ↑  0  ↓     ответ

    Hmm is anyone else experiencing problems with the images on this blog loading?

    I'm trying to determine if its a problem on my end or if it's the blog.

    Any suggestions would be greatly appreciated.

    27 Марта 2022, 12:39
     ↑  0  ↓     ответ

    I think this is one of the most important information for me.

    And i'm satisfied reading your article. However want to

    remark on some basic things, The site taste is perfect, the articles is

    truly great : D. Good activity, cheers

    28 Марта 2022, 11:18
     ↑  0  ↓     ответ

    Way cool! Some extremely valid points! I appreciate you writing this article and the rest of the website is also very good.

  • best rates on airfare
    best rates on airfare
    02 Апреля 2022, 22:20
     ↑  0  ↓     ответ

    I loved as much as you will receive carried out right here.

    The sketch is attractive, your authored subject matter stylish.

    nonetheless, you command get bought an edginess over that you wish be delivering the following.

    unwell unquestionably come more formerly again as exactly the same nearly very often inside case you

    shield this increase.

  • airline tickets best price
    airline tickets best price
    03 Апреля 2022, 09:36
     ↑  0  ↓     ответ

    This is a very good tip particularly to those new to the blogosphere.

    Brief but very accurate information… Many thanks for sharing this one.

    A must read post!

  • cheap flights tickets
    cheap flights tickets
    04 Апреля 2022, 18:14
     ↑  0  ↓     ответ

    Do you have any video of that? I'd want to find out some additional information.

  • cheapest flight tickets
    cheapest flight tickets
    05 Апреля 2022, 06:51
     ↑  0  ↓     ответ

    You're so awesome! I don't suppose I have read through something like that before.

    So good to find somebody with genuine thoughts on this subject matter.

    Seriously.. thanks for starting this up. This website is one thing that's needed on the internet,

    someone with a bit of originality!

  • fly tickets
    fly tickets
    05 Апреля 2022, 18:10
     ↑  0  ↓     ответ

    Quality posts is the key to interest the visitors to

    pay a visit the web page, that's what this web page

    is providing.

  • air tickets
    air tickets
    06 Апреля 2022, 09:36
     ↑  0  ↓     ответ

    I do agree with all of the ideas you've presented for your

    post. They're very convincing and will certainly work. Still, the posts are too brief

    for beginners. May just you please prolong them a

    little from next time? Thanks for the post.

  • best way to book flights
    best way to book flights
    06 Апреля 2022, 16:35
     ↑  0  ↓     ответ

    When someone writes an piece of writing he/she retains the image

    of a user in his/her mind that how a user can know it.

    Thus that's why this paragraph is perfect.


  • gamefly
    07 Апреля 2022, 08:48
     ↑  0  ↓     ответ

    Hola! I've been reading your weblog for a while now and

    finally got the bravery to go ahead and

    give you a shout out from Kingwood Tx! Just wanted to tell you keep up the

    good job!

  • gamefly
    11 Апреля 2022, 01:41
     ↑  0  ↓     ответ

    I don't know if it's just me or if everybody else experiencing problems

    with your site. It looks like some of the text within your posts are running off the

    screen. Can somebody else please provide feedback and let me know if this is happening to them as well?

    This may be a issue with my web browser because I've had this happen before.


    10 Мая 2022, 10:07
     ↑  0  ↓     ответ

    With havin so much written content do you ever run into any issues of plagorism or copyright infringement?

    My website has a lot of unique content I've either written myself or outsourced but it appears a lot of it is popping

    it up all over the internet without my authorization. Do you know any techniques

    to help stop content from being ripped off?

    I'd definitely appreciate it.

    03 Июня 2022, 02:23
     ↑  0  ↓     ответ

    Simply want to say your article is as surprising. The clarity in your post

    is just great and i can assume you are an expert on this

    subject. Fine with your permission let me to grab your feed to keep

    updated with forthcoming post. Thanks a million and please keep up the gratifying work.

    05 Июня 2022, 14:26
     ↑  0  ↓     ответ

    Hey there! This is my first visit to your blog!

    We are a collection of volunteers and starting a new initiative in a community in the same niche.

    Your blog provided us beneficial information to work on. You have done a wonderful


    15 Июля 2022, 13:16
     ↑  0  ↓     ответ

    Great post. I used to be checking constantly this weblog and I am inspired!

    Very helpful info particularly the remaining part :) I care for

    such information a lot. I used to be looking for

    this particular info for a very long time. Thanks

    and best of luck.

    22 Июля 2022, 07:32
     ↑  0  ↓     ответ

    For newest news you have to go to see internet and on world-wide-web

    I found this website as a most excellent web

    site for most recent updates.

    22 Июля 2022, 20:50
     ↑  0  ↓     ответ

    Hi I am so thrilled I found your website, I really found you by accident, while I was searching on Aol

    for something else, Anyways I am here now and would just like to say thank you for a

    fantastic post and a all round entertaining blog (I also love the theme/design), I don't have

    time to browse it all at the minute but I have bookmarked it

    and also added in your RSS feeds, so when I have time I will

    be back to read much more, Please do keep up the fantastic


    26 Июля 2022, 13:39
     ↑  0  ↓     ответ

    Attractive component of content. I just stumbled upon your weblog and in accession capital to say that I acquire actually

    enjoyed account your weblog posts. Any way I'll

    be subscribing on your augment or even I achievement you access constantly fast.

    01 Августа 2022, 18:58
     ↑  0  ↓     ответ

    Very good blog you have here but I was curious if you knew of any

    forums that cover the same topics discussed here? I'd really like to be a part of online community where I can get advice from

    other knowledgeable individuals that share

    the same interest. If you have any suggestions, please

    let me know. Cheers!

    07 Августа 2022, 20:21
     ↑  0  ↓     ответ

    It's really a great and helpful piece of info. I am satisfied that you simply shared this useful information with us.

    Please stay us informed like this. Thank you for sharing.

    09 Августа 2022, 07:10
     ↑  0  ↓     ответ

    Wow! Finally I got a website from where I be able to really take useful

    facts concerning my study and knowledge.

    09 Августа 2022, 22:56
     ↑  0  ↓     ответ

    Howdy! I know this is kinda off topic but I was wondering which

    blog platform are you using for this site? I'm getting sick

    and tired of Wordpress because I've had problems with hackers and I'm looking at

    options for another platform. I would be fantastic if you

    could point me in the direction of a good platform.

    10 Августа 2022, 10:43
     ↑  0  ↓     ответ

    I delight in, lead to I found just what I was having a look for.

    You have ended my 4 day lengthy hunt! God Bless you man. Have a great day.


  • coupon
    12 Августа 2022, 09:31
     ↑  0  ↓     ответ

    Appreciating the time and energy you put into your website and in depth information you offer.

    It's awesome to come across a blog every once in a while that isn't the

    same old rehashed information. Great read! I've bookmarked your site and I'm including your RSS feeds to my Google account.

    12 Августа 2022, 20:35
     ↑  0  ↓     ответ

    Hi my loved one! I wish to say that this post is awesome,

    nice written and come with almost all vital infos. I'd like to

    look extra posts like this .

    13 Августа 2022, 19:32
     ↑  0  ↓     ответ

    Wonderful article! This is the type of info that are supposed to be shared across the web.

    Shame on Google for now not positioning this put

    up higher! Come on over and talk over with my website .

    Thank you =)

    15 Августа 2022, 06:59
     ↑  0  ↓     ответ

    It's a pity you don't have a donate button! I'd most certainly donate to this outstanding blog!

    I guess for now i'll settle for bookmarking and adding your

    RSS feed to my Google account. I look forward to fresh updates and will talk about this site with my Facebook group.

    Chat soon!

    16 Августа 2022, 20:18
     ↑  0  ↓     ответ

    I visit each day a few websites and sites to read articles, but this webpage offers feature based posts.

    17 Августа 2022, 21:53
     ↑  0  ↓     ответ

    I am regular visitor, how are you everybody? This piece of writing posted at this site

    is genuinely fastidious.

    20 Августа 2022, 03:29
     ↑  0  ↓     ответ

    Hi, I do believe this is a great website.

    I stumbledupon it ;) I'm going to revisit once again since i have bookmarked it.

    Money and freedom is the best way to change, may you be rich and continue

    to help others.

  • tracfone special
    tracfone special
    27 Ноября 2022, 06:24
     ↑  0  ↓     ответ

    Just wish to say your article is as astounding. The clearness to your submit

    is just excellent and i can assume you're knowledgeable on this subject.

    Well along with your permission let me to grab your RSS feed to stay

    up to date with approaching post. Thanks one million and please continue the enjoyable work.

  • Analisa
    19 Января 2023, 06:25
     ↑  0  ↓     ответ

    Hello Admin, identical listed here: <a href="/ " rel="nofollow">Link Text</a>

  • Angel
    19 Января 2023, 23:29
     ↑  0  ↓     ответ

    Dear Admin, similar listed here: <a href="/ " rel="nofollow">Link Text</a>

  • Doug
    28 Января 2023, 05:36
     ↑  0  ↓     ответ

    To the webmaster, Thanks for sharing your thoughts!

Оставить комментарий

* обязательно для заполнения

1 введенный почтовый адрес используется только для обратной связи при ответах в комментариях и сервиса