Beispiel #1
0
echo varlang('nume-2');
?>
</th>
                        <th><?php 
echo varlang('screen');
?>
</th>
                        <th></th>
                    </tr>
                    <?php 
foreach ($view_mods as $view_key => $view_mod) {
    ?>
                        <tr>
                            <td>
                                <a target="_blank" href="<?php 
    echo url('/../' . \WebAPL\Language::ext() . "/topage/" . $view_key);
    ?>
"><i class="glyphicon glyphicon-zoom-in"></i></a>
                                <b><?php 
    echo $view_mod['name'];
    ?>
</b>
                                <?php 
    if ($view_mod['info']) {
        ?>
                                    <br>
                                    <?php 
        echo $view_mod['info'];
        ?>
                                <?php 
    }
Beispiel #2
0
 public function sendarticle()
 {
     $post_id = Input::get('id');
     $post = \PostLang::where('post_id', $post_id)->first();
     if ($post) {
         $data['post'] = $post;
         $data['post_url'] = url("/../" . \WebAPL\Language::ext() . "/topost/" . $post_id);
         Template::viewModule($this->module_name, function () use($data, $post) {
             $newsletterUsers = \NewsletterModel::where('enabled', 1)->get();
             foreach ($newsletterUsers as $user) {
                 if (filter_var($user->email, FILTER_VALIDATE_EMAIL)) {
                     $data['user'] = $user;
                     $data['unsubscribe_link'] = url("/../newsletter/unsubscribe/{$user->hash}");
                     Mail::send('views.emails.post', $data, function ($message) use($post, $user) {
                         $message->from("noreply@{$_SERVER['SERVER_NAME']}", 'WebLPA');
                         $message->subject($post->title . " :: NEWSLETTER");
                         $message->to($user->email);
                     });
                 }
             }
         });
     }
 }
Beispiel #3
0
 /**
  * Get Page title
  * @return string
  */
 public static function getPageTitle($page = null)
 {
     $title = isset($page['is_home_page']) && $page['is_home_page'] ? '' : static::$page_title . ' :: ';
     $title_g = \SettingsModel::one('sitename_' . Language::ext());
     return $title . $title_g;
 }
Beispiel #4
0
<?php

echo '<?xml version="1.0" encoding="UTF-8" ?>';
?>
<rss version="2.0">

    <channel>
        <title><?php 
echo SettingsModel::one('sitename_' . \WebAPL\Language::ext());
?>
</title>
        <link><?php 
echo url();
?>
</link>
        <description></description>
        <?php 
foreach ($posts as $item) {
    ?>
            <item>
                <title><?php 
    echo htmlspecialchars($item->title);
    ?>
</title>
                <link><?php 
    echo \WebAPL\Language::url('topost/' . $item->id);
    ?>
</link>
                <description><?php 
    echo htmlspecialchars(htmlspecialchars_decode(Str::words(strip_tags($item->text), 200)));
    ?>