This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function testTruncateHtml(){ | |
$html = '<div class="article_content withbar"><p><a href="http://www.auto-motor-und-sport.de/porsche-8478.html">Porsche</a> 921 nennt <a href="http://www.anthonycolard.net/Anthony_Colard_-_A_World_Of_Design/Porsche_921.html" target="_blank">Colard</a> seinen Entwurf, den er im Zuge einer Bewerbung bei Porsche erstellt hat. Auch der 921 bleibt dem Ursprungskonzept mit Frontmotor und Transaxle-Bauweise treu. Projektiert ist ein rund 400 PS starker V8-Motor, der den Porsche 921 auf gut 280 km/h beschleunigen soll.</p><h2 class="zwischenueberschrift">Porsche 928-Look mit Elfer-Zitaten</h2><p>Beim Design findet sich viel von der DNA des 928 wieder, an der Front setzte Colard aber auf Gleichteile und fügte Scheinwerfer des 991 ein. Das Passagierabteil gestaltete Colard filigraner, die Kotflügel vorn zeigen sich wie beim Elfer leicht überhöht. Die hinteren Kotflügelbacken sind ebenfalls deutlich ausgeformt und an den Elfer angelehnt.</p><p>Auch beim Heckdesign ist An |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function testTruncateHtml(){ | |
$html = '<div class="article_content withbar"> | |
<p> | |
<a href="http://www.auto-motor-und-sport.de/porsche-8478.html">Porsche</a> 921 nennt <a href="http://www.anthonycolard.net/Anthony_Colard_-_A_World_Of_Design/Porsche_921.html" target="_blank">Colard</a> seinen Entwurf, den er im Zuge einer Bewerbung bei Porsche erstellt hat. Auch der 921 bleibt dem Ursprungskonzept mit Frontmotor und Transaxle-Bauweise treu. Projektiert ist ein rund 400 PS starker V8-Motor, der den Porsche 921 auf gut 280 km/h beschleunigen soll. | |
</p> | |
<h2 class="zwischenueberschrift"> | |
Porsche 928-Look mit Elfer-Zitaten | |
</h2> | |
<p> | |
Beim Design findet sich viel von der DNA des 928 wieder, an der Front setzte Colard aber auf Gleichteile und fügte Scheinwerfer des 991 ein. Das Passagierabteil gestaltete Colard filigraner, die Kotflügel vorn zeigen sich wie beim Elfer leicht überhöht. Die hinteren Ko |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'view' => [ | |
'class' => 'yii\web\View', | |
'theme' => [ | |
'pathMap' => [ | |
'@app/views' => [ | |
'@app/web/themes/desktop/views', | |
], | |
], | |
'baseUrl' => '@app/web/themes/desktop' | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace common\helpers; | |
/** | |
* Date: 20.11.13 | |
* Time: 23:00 | |
* Class Glyph | |
* Create a Glyphicon | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @return array | |
*/ | |
public function behaviors() | |
{ | |
return [ | |
'verbs' => [ | |
'class' => VerbFilter::className(), | |
'actions' => [ | |
'delete' => ['post'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT fullhd.raw_path,fullhd.`description`,fullhd.title,lookup.id FROM tbl_mediating_image_lookup_gallery AS lookup | |
INNER JOIN `tbl_mediating_image_version` AS fullhd ON fullhd.raw_id = lookup.image_id AND fullhd.slug = 'full_hd' | |
WHERE lookup.gallery_id = {$this->id} | |
ORDER BY lookup.sort_order ASC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @return \yii\db\ActiveRelation | |
*/ | |
public function getLookup() | |
{ | |
return $this->hasMany(MediatingGalleryLookupImage::className(), ['gallery_id' => 'id'])->orderBy('sort_order ASC'); | |
} | |
/** | |
* @return \yii\db\ActiveQuery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use yii\db\Schema; | |
class m140226_184736_create_table_mediating_image_version extends \yii\db\Migration | |
{ | |
public function up() | |
{ | |
$table = 'tbl_mediating_image_version'; | |
// MySQL-specific table options. Adjust if you plan working with another DBMS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Feb 2014 | |
* @author Pascal Brewing | |
* @email <[email protected]> | |
* @package common\helpers | |
* Class MediaContentHelper | |
*/ | |
namespace common\modules\mediating\helpers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InfiniteScrollLinkPager extends CLinkPager | |
{ | |
public $htmlOptions=array(); | |
/** | |
* Initializes the pager by setting some default property values. | |
*/ | |
public function init() | |
{ |