Example #1
0
 public function testSetPermalink()
 {
     $u = new ae_UserModel();
     $u->setPermalink('user-permalink-test');
     $this->assertEquals($u->getPermalink(), 'user-permalink-test');
     $input = 'Post "title" with Umlauten:  <em>üöäß</em> und Zahlen! 4 9!   ';
     $expected = 'post-title-with-umlauten-ueoeaess-und-zahlen-4-9-';
     $u->setPermalink($input);
     $this->assertEquals($u->getPermalink(), $expected);
 }
Example #2
0
		</div>

		<div class="submit-buttons">
			<button type="submit" class="btn btn-publish" name="submit" value="publish">save</button>
			<span class="clear"></span>
		</div>
	</aside>

	<div class="main-content">
		<div class="input-group">
			<input type="text" name="category-title" id="convert-to-permalink" placeholder="Category title" value="<?php 
    echo htmlspecialchars($model->getTitle());
    ?>
" />
			<input type="text" name="category-permalink" class="permalink" placeholder="Permalink" value="<?php 
    echo $model->getPermalink();
    ?>
" />
		</div>
	</div>

<?php 
} elseif ($editArea == 'Media') {
    ?>

	<?php 
    $type = htmlspecialchars($model->getType());
    $icon = ae_Forms::getIcon($type);
    $meta = $model->getMetaInfo();
    $fsize = ae_Forms::formatSize($meta['file_size']);
    ?>