当前位置: 首页>>代码示例>>PHP>>正文


PHP Check::Words方法代码示例

本文整理汇总了PHP中Check::Words方法的典型用法代码示例。如果您正苦于以下问题:PHP Check::Words方法的具体用法?PHP Check::Words怎么用?PHP Check::Words使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Check的用法示例。


在下文中一共展示了Check::Words方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setTags

 private function setTags()
 {
     $this->Tags['Title'] = $this->Data[0];
     $this->Tags['Content'] = Check::Words(html_entity_decode($this->Data[1]), 25);
     $this->Tags['Link'] = $this->Data[2];
     $this->Tags['Image'] = $this->Data[3];
     $this->Tags = array_map('strip_tags', $this->Tags);
     $this->Tags = array_map('trim', $this->Tags);
     $this->Data = null;
     //NORMAL PAGE
     $this->seoTags = "<title>{$this->Tags['Title']}</title>" . "\n";
     $this->seoTags .= "<meta name='description' content='{$this->Tags['Content']}'/>" . "\n";
     $this->seoTags .= "<meta name='robots' content='index, fallow'/>" . "\n";
     $this->seoTags .= "<link rel='canonical' href='{$this->Tags['Link']}'>" . "\n";
     $this->seoTags .= "\n";
     //FACEBOOK
     $this->seoTags .= "<meta property='og:site_name' content='" . SITENAME . "' />" . "\n";
     $this->seoTags .= "<meta property='og:locale' content='pt-BR' />" . "\n";
     $this->seoTags .= "<meta property='og:title' content='{$this->Tags['Title']}' />" . "\n";
     $this->seoTags .= "<meta property='og:description' content='{$this->Tags['Content']}' />" . "\n";
     $this->seoTags .= "<meta property='og:image' content='{$this->Tags['Image']}' />" . "\n";
     $this->seoTags .= "<meta property='og:url' content='{$this->Tags['Link']}' />" . "\n";
     $this->seoTags .= "<meta property='og:type' content='article' />" . "\n";
     $this->seoTags .= "" . "\n";
     //Item GROUP (TWITTER)
     $this->seoTags .= "<meta itemprop='name' content='{$this->Tags['Title']}' />" . "\n";
     $this->seoTags .= "<meta itemprop='description' content='{$this->Tags['Content']}' />" . "\n";
     $this->seoTags .= "<meta itemprop='url' content='{$this->Tags['Link']}' />" . "\n";
     $this->Tags = null;
 }
开发者ID:adrianosilvareis,项目名称:FrameWork_Front,代码行数:30,代码来源:Seo.class.php

示例2: WsPosts

        <?php 
$cat = Check::CatByName($Categoria);
$Offset = !empty($Offset) ? "OFFSET {$Offset}" : "";
$c = 0;
$Read = new WsPosts();
$Read->setPost_category($cat);
$Read->Execute()->Query("post_status = 1 AND (post_category = :cat OR post_cat_parent = :cat) ORDER BY {$Ordem} DESC LIMIT 3 {$Offset}", "cat={$cat}", true);
$Offset = null;
if (!$Read->Execute()->getResult()) {
    WSErro("Opps! Não temos artigos em destaques!", WS_INFOR);
} else {
    $View = new View();
    $new = $View->Load("noticias_m_clean");
    foreach ($Read->Execute()->getResult() as $bar) {
        $bar->datetime = date('Y-m-d', strtotime($bar->post_date));
        $bar->pubdate = date("d/m/Y H:i", strtotime($bar->post_date));
        $bar->post_content = Check::Words($bar->post_content, 30);
        $bar->class = $c == 0 ? "item active" : "item";
        if (!$bar->post_url) {
            $bar->post_url = "#HOME#/artigo/{$bar->post_name}";
        }
        $View->Show((array) $bar, $new);
        $c++;
    }
    ?>
        <?php 
}
?>
    </div>
</section>
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:30,代码来源:noticias_tres.inc.php

示例3: WsPosts

$Pager->ExePager($getPage, 4);
$readArt = new WsPosts();
$readArt->Execute()->Query("post_status = 1 AND (post_title LIKE '%' :link '%' OR post_content LIKE '%' :link '%') ORDER BY post_date DESC LIMIT :limit OFFSET :offset", "link={$search}&limit={$Pager->getLimit()}&offset={$Pager->getOffset()}", true);
if (!$readArt->Execute()->getResult()) {
    $Pager->ReturnPage();
    WSErro("Desculpe, sua pesquisa não retornou resultados. Você pode resulmir sua pesquisa ou tentar outros termos!", WS_INFOR);
} else {
    $cc = 0;
    foreach ($readArt->Execute()->getResult() as $cat) {
        $cc++;
        $View = new View();
        $tpl_cat = $View->Load('article_m');
        $class = $cc % 3 == 0 ? ' class="right"' : null;
        echo "<span{$class}>";
        $cat->post_title = Check::Words($cat->post_title, 8);
        $cat->post_content = Check::Words($cat->post_content, 20);
        $cat->datetime = date('Y-m-d', strtotime($cat->post_date));
        $cat->pubdate = date('d/m/Y H:i', strtotime($cat->post_date));
        $View->Show((array) $cat, $tpl_cat);
        echo "</span>";
    }
}
$Pager->ExePaginator("ws_posts", "post_status = 1 AND (post_title LIKE '%' :link '%' OR post_content LIKE '%' :link '%')", "link={$search}");
echo '<nav class="paginator">';
echo '<h2>Mais resultados para NOME DA CATEGORIA</h2>';
echo $Pager->getPaginator();
echo '</nav>';
?>

    </section>
开发者ID:adrianosilvareis,项目名称:OutlineTecnolog,代码行数:30,代码来源:pesquisa.php

示例4: date

                    <article <?php 
        echo $status;
        ?>
>

                        <div class="img thumb_small">
                            <?php 
        echo Check::Image('../uploads/' . $post_cover, $post_title, 120, 70);
        ?>
                        </div>

                        <h1><a target="_blank" href="../artigo/<?php 
        echo $post_name;
        ?>
" title="Ver Post"><?php 
        echo Check::Words($post_title, 10);
        ?>
</a></h1>
                        <ul class="info post_actions">
                            <li><strong>Data:</strong> <?php 
        echo date('d/m/Y H:i', strtotime($post_date));
        ?>
Hs</li>
                            <li><a class="act_view" target="_blank" href="../artigo/<?php 
        echo $post_name;
        ?>
" title="Ver no site">Ver no site</a></li>
                            <li><a class="act_edit" href="painel.php?exe=posts/update&postid=<?php 
        echo $post_id;
        ?>
" title="Editar">Editar</a></li>
开发者ID:adrianosilvareis,项目名称:ciddhc,代码行数:31,代码来源:home.php

示例5: ucfirst

/uploads/<?php 
            echo $user_cover;
            ?>
&w=500&h=500"
                                                 class="center-block img-circle img-responsive">
                                             <?php 
        } else {
            ?>
                                            <img id="niver" src="http://pingendo.github.io/pingendo-bootstrap/assets/user_placeholder.png"
                                                 class = "center-block img-circle img-responsive">
                                             <?php 
        }
        ?>

                                        <h3 class="text-center"><?php 
        echo ucfirst(strtolower(Check::Words($user_name . ' ' . $user_lastname, 3)));
        ?>
</h3>
                                        <p class="text-center"><?php 
        echo Check::AreaById($area_id)->area_title;
        ?>
</p>
                                    </div>
                                <?php 
    }
    ?>
                            </div>

                        </div>
                    </div>
                </div>
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:aniversariantes.inc.php

示例6: date

        ?>
 <?php 
        echo $status;
        ?>
>
                    <div class="img thumb_small"></div>
                    
                    <h1><a href="painel.php?exe=perfil/update&perfilId=<?php 
        echo $perfil_id;
        ?>
" title="Ver Post"><?php 
        echo Check::Words($perfil_title, 5);
        ?>
</a></h1>
                    <p class="post_views"><strong>Descrição:</strong> <?php 
        echo Check::Words($perfil_content, 5);
        ?>
</p>
                    <ul class="info post_actions">
                        <li><strong>Data:</strong> <?php 
        echo date('d/m/Y H:i', strtotime($perfil_date));
        ?>
Hs</li>
                        <li><a class="act_edit" href="painel.php?exe=perfil/update&perfilId=<?php 
        echo $perfil_id;
        ?>
" title="Editar">Editar</a></li>

                        <?php 
        if (!$perfil_status) {
            ?>
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:index.php

示例7: setTags

 private function setTags()
 {
     $this->Tags['Title'] = $this->Data[0];
     $this->Tags['Content'] = Check::Words(html_entity_decode($this->Data[1]), 25);
     $this->Tags['Link'] = $this->Data[2];
     $this->Tags['Image'] = $this->Data[3];
     $this->Tags = array_map('strip_tags', $this->Tags);
     $this->Tags = array_map('trim', $this->Tags);
     $this->Data = null;
     $this->seoTags .= "<!--[if lt IE 9]><script src='" . HOME . "/cdn/html5.js'></script><![endif]-->" . "\n";
     $this->seoTags .= "<meta charset='UTF-8'>" . "\n";
     //NORMAL PAGE
     $this->seoTags .= "<!--NORMAL PAGE-->\n";
     $this->seoTags .= "<title>{$this->Tags['Title']}</title>" . "\n";
     $this->seoTags .= "<meta name='description' content='{$this->Tags['Content']}'/>" . "\n";
     $this->seoTags .= "<meta name='robots' content='index, fallow'/>" . "\n";
     $this->seoTags .= "<link rel='canonical' href='{$this->Tags['Link']}'>" . "\n";
     //ICONES
     $this->seoTags .= "<!--ICONES-->\n";
     $this->seoTags .= "<link rel='shortcut icon' href='" . HOME . '/themes/' . THEME . "/images/icon/favicon.ico'/>" . "\n";
     $this->seoTags .= "<link rel='apple-touch-icon' href='" . HOME . '/themes/' . THEME . "/images/icon/favicon.ico'/>" . "\n";
     //FACEBOOK
     $this->seoTags .= "<!--FACEBOOK-->\n";
     $this->seoTags .= "<meta property='og:site_name' content='" . SITENAME . "' />" . "\n";
     $this->seoTags .= "<meta property='og:locale' content='pt-BR' />" . "\n";
     $this->seoTags .= "<meta property='og:title' content='{$this->Tags['Title']}' />" . "\n";
     $this->seoTags .= "<meta property='og:description' content='{$this->Tags['Content']}' />" . "\n";
     $this->seoTags .= "<meta property='og:image' content='{$this->Tags['Image']}' />" . "\n";
     $this->seoTags .= "<meta property='og:url' content='{$this->Tags['Link']}' />" . "\n";
     $this->seoTags .= "<meta property='og:type' content='article' />" . "\n";
     //Item GROUP (TWITTER)
     $this->seoTags .= "<!--TWITTER-->\n";
     $this->seoTags .= "<meta itemprop='name' content='{$this->Tags['Title']}' />" . "\n";
     $this->seoTags .= "<meta itemprop='description' content='{$this->Tags['Content']}' />" . "\n";
     $this->seoTags .= "<meta itemprop='url' content='{$this->Tags['Link']}' />" . "\n";
     $this->seoTags .= "<meta itemprop='image' content='{$this->Tags['Image']}' />" . "\n";
     $this->Tags = null;
 }
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:38,代码来源:Seo.class.php

示例8: date

 <?php 
        echo $status;
        ?>
>

                    <div class="img thumb_small">
                        <?php 
        echo Check::Image('../uploads/' . $post_cover, $post_title, 120, 70);
        ?>
                    </div>

                    <h1><a target="_blank" href="../artigo/<?php 
        echo $post_name;
        ?>
" title="Ver Post"><?php 
        echo Check::Words($post_title, 5);
        ?>
</a></h1>
                    <ul class="info post_actions">
                        <li><strong>Data:</strong> <?php 
        echo date('d/m/Y H:i', strtotime($post_date));
        ?>
Hs</li>
                        <li><a class="act_view" target="_blank" href="../artigo/<?php 
        echo $post_name;
        ?>
" title="Ver no site">Ver no site</a></li>
                        <li><a class="act_edit" href="painel.php?exe=membros/update&postId=<?php 
        echo $post_id;
        ?>
" title="Editar">Editar</a></li>
开发者ID:adrianosilvareis,项目名称:ciddhc,代码行数:31,代码来源:index.php

示例9: date

    
                <tr>
                    <td><?php 
        echo Check::Words($ex_descricao, 3);
        ?>
</td>
                    <td><?php 
        echo $ex_minemonico;
        ?>
</td>
                    <td><?php 
        echo $AdminExames->Setor($ws_setor_exec);
        ?>
</td>
                    <td><?php 
        echo Check::Words($AdminExames->Acao($fe_acoes), 3);
        ?>
</td>
                    <td><?php 
        echo date('d/m/y | H:i', strtotime($ex_data_abertura)) . "H";
        ?>
</td>
                    <td><?php 
        echo $ex_data_fechamento != "0000-00-00 00:00:00" && !empty($ws_users) ? date('d/m/y | H:i', strtotime($ex_data_fechamento)) . "H" : "";
        ?>
</td>
                    <td><?php 
        echo $AdminExames->Setor($ws_setor_soli);
        ?>
</td>
                    <td><?php 
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:30,代码来源:index.php

示例10: foreach

                        <th class="text-center">Setor</th>
                        <th class="text-center">Status</th>
                        <th class="text-center">Aberto em</th>
                        <th class="text-center">Fechado em</th>
                        <th class="text-center">O.S Paciente Teste</th>
                        <th class="text-center">Assinado por</th>
                    </tr>
                </thead>
                <tbody>
                    <?php 
    foreach ($FeExames->Execute()->getResult() as $exames) {
        extract((array) $exames);
        ?>
                        <tr>
                            <td><?php 
        echo Check::Words($ex_descricao, 3);
        ?>
</td>
                            <td><?php 
        echo $AdminExames->Setor($ws_setor_exec);
        ?>
</td>
                            <td><?php 
        echo $ex_status ? "concluido" : "em processamento";
        ?>
</td>
                            <td><?php 
        echo date("d/m/Y H:i:s", strtotime($ex_data_abertura));
        ?>
</td>
                            <td><?php 
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:user.php

示例11: View

            <h1 style="margin-top: 0;"><a href="<?php 
    echo HOME . '/grupo/noticias';
    ?>
" title="<?php 
    echo $Titulo;
    ?>
 da intranet" alt="<?php 
    echo $Titulo;
    ?>
"><?php 
    echo $Titulo;
    ?>
</a></h1>
            <?php 
    $View = new View();
    $noticias = $View->Load("noticias_p");
    $cont = 0;
    foreach ($Read->Execute()->getResult() as $not) {
        $not->post_title = Check::Words($not->post_title, 3);
        $not->post_content = Check::Words($not->post_content, 12);
        if ($cont <= 1) {
            $View->Show((array) $not, $noticias);
        }
        $cont++;
    }
    ?>
        </article>
    </div>

<?php 
}
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:carrousel-gallery.inc.php

示例12: setTags

 private function setTags()
 {
     $this->Tags['Title'] = $this->Data[0];
     $this->Tags['Content'] = Check::Words(html_entity_decode($this->Data[1]), 25);
     $this->Tags['Link'] = $this->Data[2];
     $this->Tags['Image'] = $this->Data[3];
     $this->Tags = array_map('strip_tags', $this->Tags);
     $this->Tags = array_map('trim', $this->Tags);
     $this->Data = null;
     $this->seoTags = "\n";
     $this->seoTags .= "<!--[if lt IE 9]><script src='../../_cdn/html5.js'></script><![endif]-->" . "\n";
     $this->seoTags .= "\n";
     $this->seoTags .= "<meta charset='UTF-8'>" . "\n";
     //NORMAL PAGE
     $this->seoTags .= "<title>{$this->Tags['Title']}</title>" . "\n";
     $this->seoTags .= "<meta name='description' content='{$this->Tags['Content']}'/>" . "\n";
     $this->seoTags .= "<meta name='robots' content='index, fallow'/>" . "\n";
     $this->seoTags .= "<link rel='canonical' href='{$this->Tags['Link']}'>" . "\n";
     $this->seoTags .= "\n";
     //ICONES
     $this->seoTags .= "<link rel='shortcut icon' href='" . HOME . '/themes/' . THEME . "/images/icon.ico'/>" . "\n";
     $this->seoTags .= "<link rel='apple-touch-icon' href='" . HOME . '/themes/' . THEME . "/images/icon.ico'/>" . "\n";
     $this->seoTags .= "\n";
     //FACEBOOK
     $this->seoTags .= "<meta property='og:site_name' content='" . SITENAME . "' />" . "\n";
     $this->seoTags .= "<meta property='og:locale' content='pt-BR' />" . "\n";
     $this->seoTags .= "<meta property='og:title' content='{$this->Tags['Title']}' />" . "\n";
     $this->seoTags .= "<meta property='og:description' content='{$this->Tags['Content']}' />" . "\n";
     $this->seoTags .= "<meta property='og:image' content='{$this->Tags['Image']}' />" . "\n";
     $this->seoTags .= "<meta property='og:url' content='{$this->Tags['Link']}' />" . "\n";
     $this->seoTags .= "<meta property='og:type' content='article' />" . "\n";
     $this->seoTags .= "" . "\n";
     //Item GROUP (TWITTER)
     $this->seoTags .= "<meta itemprop='name' content='{$this->Tags['Title']}' />" . "\n";
     $this->seoTags .= "<meta itemprop='description' content='{$this->Tags['Content']}' />" . "\n";
     $this->seoTags .= "<meta itemprop='url' content='{$this->Tags['Link']}' />" . "\n";
     $this->seoTags .= "<meta itemprop='image' content='{$this->Tags['Image']}' />" . "\n";
     $this->seoTags .= "\n";
     //SCRIPTS
     $this->seoTags .= "<script src=\"" . HOME . "/_cdn/jquery.js\"></script>" . "\n";
     $this->seoTags .= "<script src=\"" . HOME . "/_cdn/bootstrap.js\"></script>" . "\n";
     $this->seoTags .= "<script src=\"" . HOME . "/_cdn/jcycle.js\"></script>" . "\n";
     $this->seoTags .= "<script src=\"" . HOME . "/_cdn/jmask.js\"></script>" . "\n";
     $this->seoTags .= "<script src=\"" . HOME . "/_cdn/combo.js\"></script>" . "\n";
     $this->seoTags .= "<script src=\"" . HOME . "/_cdn/menus.js\"></script>" . "\n";
     $this->seoTags .= "<script src=\"" . HOME . "/_cdn/shadowbox/shadowbox.js\"></script>" . "\n";
     $this->seoTags .= "<script src=\"" . HOME . "/_cdn/_plugins.conf.js\"></script>" . "\n";
     $this->seoTags .= "<script src=\"" . HOME . "/_cdn/_scripts.conf.js\"></script>" . "\n";
     $this->seoTags .= "<link href='" . HOME . "/_cdn/shadowbox/shadowbox.css' rel='stylesheet' type='text/css' >" . "\n";
     $this->seoTags .= "\n";
     //BOOTSTRAP CSS
     $thema = HOME . '/themes/' . THEME;
     $this->seoTags .= "<link href='{$thema}/css/style.css' rel='stylesheet' type='text/css' >" . "\n";
     $this->seoTags .= "<link href='{$thema}/css/bootstrap.css' rel='stylesheet' type='text/css' >" . "\n";
     //DEFAULT CSS Alterações importantes de ajustes
     $this->seoTags .= "<link href='{$thema}/css/default.css' rel='stylesheet' type='text/css' >" . "\n";
     $this->seoTags .= "<link href='{$thema}/css/estilo.css' rel='stylesheet' type='text/css' >" . "\n";
     $this->seoTags .= "<link href='{$thema}/css/reset.css' rel='stylesheet' type='text/css' >" . "\n";
     //API GOOGLE
     $this->seoTags .= "<link href='http://fonts.googleapis.com/css?family=Baumans' rel='stylesheet' type='text/css'>";
     $this->Tags = null;
 }
开发者ID:adrianosilvareis,项目名称:ciddhc,代码行数:62,代码来源:Seo.class.php

示例13: Pager

$Pager = new Pager(HOME . '/grupo/' . $category_name . '/');
$Pager->ExePager($getPage, 12);
$Read = new WsPosts();
$Read->Execute()->Query("post_status = 1 AND (post_category = :cat OR post_cat_parent = :cat) ORDER BY post_views DESC LIMIT :limit OFFSET :offset", "cat={$category_id}&limit={$Pager->getLimit()}&offset={$Pager->getOffset()}", true);
if (!$Read->Execute()->getResult()) {
    $Pager->ReturnPage();
    WSErro("Desculpe, ainda não temos artigos cadastrado nesta categoria!", WS_INFOR);
} else {
    ?>
                    <div class="row">
                        <?php 
    $View = new View();
    $grupo_p = $View->Load('grupo_p');
    $i = 0;
    foreach ($Read->Execute()->getResult() as $item) {
        $item->post_title = Check::Words($item->post_title, 4);
        $item->datetime = date('Y-m-d', strtotime($item->post_date));
        $item->pubdate = date("d/m/Y H:i", strtotime($item->post_date));
        $View->Show((array) $item, $grupo_p);
        $i++;
    }
}
?>
                </div>

            </div>
            <?php 
$Pager->ExePaginator("ws_posts", "post_status = 1 AND (post_category = :cat OR post_cat_parent = :cat) ORDER BY post_views", "cat={$category_id}");
echo $Pager->getPaginator();
?>
        </div>
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:grupo.php

示例14: date

        $new->post_title = Check::Words($new->post_title, 9);
        $new->post_content = Check::Words($new->post_content, 20);
        $new->datetime = date('Y-m-d', strtotime($new->post_date));
        $new->pubdate = date('d/m/Y H:i', strtotime($new->post_date));
        $View->Show((array) $new, $tpl_m);
    }
}
?>

            <div class="last_news">
                <?php 
if ($cat) {
    $post->Busca("cat={$cat}&limit=3&offset=1");
    if (!$post->getResult()) {
        WSErro("Desculpe, não temos mais noticias para serem exibidas aqui. Favor, volte depois!", WS_INFOR);
    } else {
        foreach ($post->getResult() as $news) {
            $news->post_title = Check::Words($news->post_title, 12);
            $news->datetime = date('Y-m-d', strtotime($news->post_date));
            $news->pubdate = date('d/m/Y H:i', strtotime($news->post_date));
            $View->Show((array) $news, $tpl_p);
        }
    }
}
?>
            </div>
        </section>

    </section><!-- categorias -->
    <div class="clear"></div>
</div><!--/ site container -->
开发者ID:adrianosilvareis,项目名称:OutlineTecnolog,代码行数:31,代码来源:index.php

示例15: extract

        extract((array) $setor);
        $status = !$setor_status ? 'style="background: #fffed8"' : '';
        ?>
                <article<?php 
        if ($posti % 2 == 0) {
            echo ' class="right" ';
        }
        ?>
 <?php 
        echo $status;
        ?>
>
                    <div class="img thumb_small"></div>

                    <h1><?php 
        echo Check::Words($setor_content, 5);
        ?>
</h1>
                    <ul class="info post_actions">
                        <li><strong>Data:</strong> <?php 
        echo date('d/m/Y H:i', strtotime($setor_date));
        ?>
Hs</li>
                        <p class="post_tipo"><strong>Tipo:</strong> <?php 
        echo $setor_category;
        ?>
</p>
                        <li><a class="act_edit" href="painel.php?exe=setor/update&setId=<?php 
        echo $setor_id;
        ?>
" title="Editar">Editar</a></li>
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:index.php


注:本文中的Check::Words方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。