How does the extreme cms column list page call multiple pictures in the article content page? Record

 How does the extreme cms column list page call multiple pictures in the article content page? The ultimate cms group friends share it, record it here.

 

For specific use, you need to modify it according to your own situation.

{php $pattern='/<img.*?src="(.*?)".*?>/is';$r = preg_match_all($pattern,$v['body'],$imgslist); /}
{if($r)}
	{foreach $imgslist[1] as $k=>$img}
	<?php
    $str1 = str_replace("?imageView2/2/w/640","","$img");
	?>
	<img width=110 height=80 src="/images/lazy.png" data-original="{$str1}" class="lazy nt" style="display:inline;">
	{php if($k==0){break;} /}
	{/foreach}
{/if}

Guess you like

Origin blog.csdn.net/q906270629/article/details/129279972