Stringek darabolása, előkészítése css formázáshoz

  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.
Kategória: 
Snippet
Stringek darabolása, előkészítése css formázáshoz

Ahogy a képen is látszik, az ilyen szövegek formázása nem túl egyszerű. Bármikor jól jöhet, hogyha egy címnél például az első 3 karakternek más-más háttér kell, vagy egyéb hasonlóan cudar manővereket pakolt a grafikába a designer.

Ez a kis sminkfüggvény egy modulba, vagy a template.php-be megkönnyíti a munkát, feldarabolja, classolja a létrehozott spanokat, így már lehet célozni css-ben.

Használata, ha mondjuk egy block címét akarjuk felspanolni, akkor a block.tpl.php-ba cseréljük le:

[geshifilter-code]<h2 class="title"><?php print $title; ?></h2>[/geshifilter-code]

erre:

[geshifilter-code]<h2 class="title"><?php if ($title != '<none>') : print theme_fragmented_string($title, $ide_amilyen_class_nevet_akarsz_a_spanoknak, TRUE); endif; //a végén a TRUE akkor kell, ha sorszámozni szeretnéd a class-okat?></h2>[/geshifilter-code]

És ilyen html-t kapunk:

[geshifilter-code]<h2 class="title"><span class="fragmented fragmented-1 fragmented-1">1</span><span class="fragmented fragmented-2 fragmented-0">0</span><span class="fragmented fragmented-3 fragmented-8">8</span></h2>[/geshifilter-code]

És a sminkfüggvény, csak másold be a template.php-ba:

[geshifilter-drupal6] /* * Theme function to separate string into different <span>'s * * @param $string * The string need to divide * @param $class * The class name in <span class="$class"> * @param $count * If TRUE, in <span class "$class"> will be one more class with counter. * @return * The separeted string. */ function theme_fragmented_string($string, $class = 'fragmented', $count = FALSE) { $output = ''; $string_array = preg_split('//u', $string, -1, PREG_SPLIT_NO_EMPTY); $counter = 1; $classes = $class; foreach ($string_array as $key => $value) { if ($count) { $classes .= ' ' . $classes . '-' . $counter; } $classes .= ' fragmented-' . $value; $output .= '<span class="' . $classes .'">' . $value . '</span>'; $counter++; $classes = $class; } return $output; } [/geshifilter-drupal6]

És végül köszönet Sweetchucknak, aki segített a preg_splitet összehozni.

Ja, és azért értelemszerűen 100+ karakteres szövegre nem biztos, hogy ezt kell használni.

Hozzászólások

I really like your blog..

I really like your blog.. very nice colors & theme.
Did you create this website yourself or did you
hire someone to do it for you? Plz respond as I'm looking to design my own blog and would like to find out where u got
this from. many thanks

Greetings! Quick question

Greetings! Quick question that's completely
off topic. Do you know how to make your site mobile friendly?

My site looks weird when browsing from my iphone.
I'm trying to find a theme or plugin that might be able
to resolve this issue. If you have any suggestions,
please share. Cheers!

It's wonderful that you are

It's wonderful that you are getting thoughts from this paragraph as well as from
our argument made at this time.

I visit every day some web

I visit every day some web pages and sites to read articles,
however this blog offers feature based content.

Yesterday, while I was at

Yesterday, while I was at work, my sister stole my
apple ipad and tested to see if it can survive a forty foot drop, just
so she can be a youtube sensation. My apple ipad
is now destroyed and she has 83 views. I know this is entirely off topic but I had
to share it with someone! https://anunturi-parbrize.ro/luneta-daewoo-16.html

Usually I don't read article

Usually I don't read article on blogs, however I
would like to say that this write-up very pressured me to check
out and do it! Your writing style has been amazed me. Thanks, quite nice
post.

It is not my first time to

It is not my first time to pay a visit this web site, i am browsing this site dailly and get good information from here every day. https://anunturi-parbrize.ro/geam-renault-56.html

I have been browsing on-line

I have been browsing on-line greater than three hours these days, but I never found any attention-grabbing
article like yours. It is beautiful value sufficient for me.

In my view, if all website owners and bloggers made excellent content as you did, the web shall be much more useful than ever before.

Wow, this article is nice, my

Wow, this article is nice, my sister is analyzing such things, therefore I am going to
tell her.

Thank you for the good

Thank you for the good writeup. It in fact was a amusement account it. https://www.podiatriemarcil.com/traitements.php

Wow that was odd. I just

Wow that was odd. I just wrote an really long comment but
after I clicked submit my comment didn't show up.
Grrrr... well I'm not writing all that over again.
Anyhow, just wanted to say wonderful blog! https://anunturi-parbrize.ro/index.php?cauta=parbriz+rolls+royce

Way cool! Some extremely

Way cool! Some extremely valid points! I appreciate you
penning this write-up plus the rest of the website is also very good.

It's very easy to find out

It's very easy to find out any matter on web as compared to textbooks, as I found this
paragraph at this website.

Unquestionably believe that

Unquestionably believe that which you stated. Your favorite justification seemed to be on the web the easiest thing to be aware
of. I say to you, I certainly get irked while
people think about worries that they just don't know about.
You managed to hit the nail upon the top and defined out the whole
thing without having side effect , people can take a signal.
Will likely be back to get more. Thanks https://anunturi-parbrize.ro/index.php?cauta=parbriz+infiniti

Thanks for publishing this

Thanks for publishing this awesome article. I'm a long time reader but I've never been compelled to leave a comment.
I subscribed to your blog and shared this on my Twitter.

Thanks again for a great post! https://actionmobile.ca/les-vitres-de-la-voiture-types-et-caracteristiques/

I really like it whenever

I really like it whenever people come together and share opinions.
Great website, continue the good work! https://www.artmurale.com/

I'm delighted to find this

I'm delighted to find this brilliant site. I want to to thanks a lot for ones time because of this wonderful read!!

I definitely liked every bit of it and i have you ever bookmarked to view new things in your site.

Very shortly this web site

Very shortly this web site will be famous amid all blogging users, due to it's
good articles https://anunturi-parbrize.ro/index.php?cauta=parbriz+chrysler

Everything is very open with

Everything is very open with a clear description of the issues.
It was really informative. Your site is useful. Many thanks for sharing!

Hi! This is kind of off topic

Hi! This is kind of off topic but I need some guidance from an established blog.

Is it very hard to set up your own blog? I'm not
very techincal but I can figure things out pretty fast. I'm thinking about creating my own but I'm not sure where to start.
Do you have any ideas or suggestions? Cheers

Wow, thyis pɑragraph is

Wow, thyis pɑragraph is fastidіous, my younger sister is analyzing such
thingѕ, therefore I am goung to tell her. https://www.bokkmarking-signs.win/info-togel-online-1

Hi, its nice paragraph

Hi, its nice paragraph regarding media print, we all
understand media is a great source of data.

It is not my first time to

It is not my first time to pay a visit this web page, i am browsing this web site dailly and obtain nice facts from here all the time. https://anunturi-parbrize.ro/luneta-cadillac-11.html

Great article! Thank you :)

Wow! This blog looks exactly

Wow! This blog looks exactly like my old one!
It?s on a entirely different topic but it has pretty much the same layout and design. Superb choice of colors! https://www.salondeauville.com/spring-cleaning-for-the-skin-2020/

Whhen someokne writes an

Whhen someokne writes an paragraph he/ѕhe keeps the idea of a user in his/her mind that
how a user can understand it. Тhus that's why this
articⅼе is great. Thanks! http://xgxskj.com/comment/html/?295664.html

Nicce poѕt. Iused to Ƅe

Nicce poѕt. Iused to Ƅe checking constantly
this blog and I'm inspireԀ! Very useful information specifically the
cloѕing phase :) I mantɑin such info a ⅼot. I was looking for this cеrtain inco for a very lоng time.
Tһank you and best of luⅽk. //f [dot] lagell [dot] ar [dot] Hfu [at] shop [dot] gmynsh [dot] com/comment/html/?759693.html" title="http://f [dot] lagell [dot] ar [dot] Hfu [at] shop [dot] gmynsh [dot] com/comment/html/?759693.html" rel="nofollow">http://f [dot] lagell [dot] ar [dot] Hfu [at] shop [dot] gmynsh [dot] com/comment/html/?759693.html

With havin a great deal

With havin a great deal content do you encounter any issues
of plagorism or copyright infringement? My site has many completely unique content I've either authored myself
or outsourced however it appears to be a variety of it is
popping it throughout the internet without my permission. Do you know any solutions to aid control content
from being stolen? I'd genuinely appreciate it.

This is a good tip

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

Simple but very precise information… Thank you
for sharing this one. A must read post! https://parbrize-online.ro/lunete/luneta-mercedes--2013-139588.html

Greetings, I do believe your

Greetings, I do believe your web site might be having internet browser compatibility issues.
Whenever I look at your web site in Safari, it looks fine
however when opening in Internet Explorer, it?s got some
overlapping issues.
I just wanted to provide
you with a quick heads up! Apart from that, great site! https://www.myleisurelounge.com/products/arg-bls-c

Hmm it looks much like your

Hmm it looks much like your blog ate my first comment (it absolutely was super long) and so i guess I'll just sum it up the things i wrote
and say, I'm thoroughly enjoying your blog. I at the same time am an aspiring blog
blogger but I'm still new to the whole thing.
Are you experiencing any points for inexperienced blog writers?

I'd definitely appreciate it.

You are so interesting! I

You are so interesting! I don't think I've read a
single thing like this before. So wonderful to find
someone with a few genuine thoughts on this topic. Seriously..
thanks for starting this up. This site is one thing that's needed on the web, someone with a bit of originality! https://parbriz-luneta.ro/Luneta-volvo-s80-2003.html

An impressive share! I've

An impressive share! I've just forwarded this onto
a co-worker who had been conducting a little research on this.
And he in fact ordered me lunch simply because I stumbled upon it
for him... lol. So let me reword this.... Thank YOU
for the meal!! But yeah, thanx for spending some time to talk about this issue here on your site.

Thank you for the good

Thank you for the good writeup. It in fact was
a amusement account it. Look advanced to more added agreeable from
you! However, how can we communicate? https://anunturi-parbrize.ro/index.php?cauta=parbriz+suzuki

Thank you for the auspicious

Thank you for the auspicious writeup. It in fact was a amusement account
it. https://www.podiatriemarcil.com/contacts.php

My coder is trying to

My coder is trying to persuade me to move to .net from PHP.
I have always disliked the idea because of the costs. But he's tryiong none the less.
I've been using WordPress on several websites for about a year and am anxious about switching to another
platform. I have heard great things about blogengine.net.
Is there a way I can import all my wordpress posts into it?
Any kind of help would be greatly appreciated! https://anunturi-parbrize.ro/geam-rover-59.html

Taxi moto line 128 Rue la

Taxi moto line
128 Rue la Boétie
75008 Paris
+33 6 51 612 712  

Taxi moto paris

First of all I would like to say superb blog! I had a
quick question that I'd like to ask if you don't mind. I was
curious to know how you center yourself and clear your
thoughts prior to writing. I have had a tough time clearing my thoughts in getting my
ideas out there. I do enjoy writing however it just seems
like the first 10 to 15 minutes are wasted just trying to figure out how to begin.
Any recommendations or hints? Cheers!

It's enormous that you are

It's enormous that you are getting thoughts from this piece of writing as well as from our dialogue made at
this time. https://parbrize-originale.ro/parbrize-originale/parbriz-originale-subar...

I like the valuable info you

I like the valuable info you provide in your articles.
I will bookmark your blog and check again here regularly. I'm
quite sure I will learn a lot of new stuff right here!
Good luck for the next! https://anunturi-parbrize.ro/geam-mini-46.html

Greetings from Carolina! I?m

Greetings from Carolina! I?m bored to tears at work so I decided to
browse your blog on my iphone during lunch break. I really like the knowledge you provide
here and can?t wait to take a look when I get home.
I?m surprised at how quick your blog loaded on my cell phone ..

I?m not even using WIFI, just 3G
.. Anyhow, excellent blog! https://deauvilleshop.com

Does your website have a

Does your website have a contact page? I'm having problems
locating it but, I'd like to send you an email. I've got some recommendations for your blog you might be interested in hearing.
Either way, great site and I look forward to seeing it grow over
time.

Hey there! I've been reading

Hey there! I've been reading your site for some
time now and finally got the bravery to go ahead and give you a shout out from
Atascocita Tx! Just wanted to tell you keep up the good job!

Yes! Finally something about

Yes! Finally something about Geam Dodge. https://anunturi-parbrize.ro/geam-dodge-20.html

Thanks for writing this

Thanks for writing this awesome article. I'm a long time reader but I've never
been compelled to leave a comment. I subscribed to your blog
and shared this on my Twitter. Thanks again for a great article! https://www.tailoredsuitparis.fr/

It's awesome designed for me

It's awesome designed for me to have a web site, which is useful
designed for my knowledge. thanks admin

Great delivery. Sound

Great delivery. Sound arguments. Keep up the great spirit. https://anunturi-parbrize.ro/index.php?cauta=parbriz+citroen

What's Taking place i'm new

What's Taking place i'm new to this, I stumbled upon this I have
found It positively useful and it has aided me out
loads. I am hoping to contribute & assist different customers
like its helped me. Good job. https://anunturi-parbrize.ro/index.php?page=20254

I?ve been surfing online more

I?ve been surfing online more than 4 hours today, yet I
never found any interesting article like yours. It?s pretty
worth enough for me. In my view,
if all website owners and bloggers
made good content as you did, the net will be a lot
more useful than ever before. https://philetfredpizzeria.com/blog/accords-pizza-cocktails/

Thank you for the auspicious

Thank you for the auspicious writeup. It in fact was a amusement account it. https://www.podiatriemarcil.com/traitements.php

I?ve been browsing online

I?ve been browsing online more than 4 hours today, yet I never found
any interesting article like yours. It?s pretty
worth enough for me. Personally,
if all web owners and bloggers
made good content as you did, the net will be much more useful
than ever before. https://philetfredpizzeria.com/blog/phil-et-fred-pizzeria-une-histoire-d...

Hozzászólás

A mező tartalma nem nyilvános.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Engedélyezett HTML elemek: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <del> <img>
  • A webcímek és email címek automatikusan linkekké alakulnak.
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.
  • Engedélyezett HTML elemek: <a> <blockquote> <br> <cite> <code> <dd> <del> <div> <dl> <dt> <em> <li> <ol> <p> <span> <strong> <ul>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <sql>. The supported tag styles are: <foo>, [foo].
  • Minden email cím át lesz alakítva ember által olvasható módon, vagy (ha a JavaScript engedélyezett) ki lesz cserélve kattintható, de biztonságos hivatkozásra.