1
0

* Removed inline styles of the s9y media insertion, they will now

properly utilize CSS classes (defined in the new file
      style_fallback.css). Also added support for entering "ALT"
      attributes to an <img> tag, can be used as a media property if
      you add "ALT" to the list of "Media properties" in the
      main configuration. (garvinhicking)
This commit is contained in:
Garvin Hicking
2009-07-14 09:22:06 +00:00
parent 796e7ff96a
commit 97710fe021
73 changed files with 350 additions and 38 deletions

View File

@ -251,6 +251,12 @@
<textarea id="serendipity_imagecomment" name="serendipity[imagecomment]" rows="5" cols="40">{$media.file.props.base_property.COMMENT1|@escape}</textarea>
{serendipity_hookPlugin hookAll=true hook='frontend_image_selector_imagecomment' eventData=$media.file}
<br />
<b>{$CONST.MEDIA_ALT}:</b>
<br />
<input size="30" class="input_textbox" type="text" id="serendipity_alt" name="serendipity[alt]" value="{$media.file.props.base_property.ALT|@escape}" /></textarea>
{serendipity_hookPlugin hookAll=true hook='frontend_image_selector_alt' eventData=$media.file}
<br />
{/if}
{serendipity_hookPlugin hookAll=true hook='frontend_image_selector_more' eventData=$media.file}

View File

@ -0,0 +1,91 @@
/* This is the templates/default/style_fallback.css file.
It emits CSS rules that all templates should have.
Classes are declared on top of the file, so if you
want to make changes in your own template, you
should override the rules on the bottom of your
style.css template.
IT IS NOT ADVISED TO CREATE YOUR OWN style_fallback.css FILE! */
/* Default image classes for left/right/usual layout */
.serendipity_image_center {
border: 0px;
padding-left: 5px;
padding-right: 5px;
}
.serendipity_image_left {
float: left;
border: 0px;
padding-left: 5px;
padding-right: 5px;
}
.serendipity_image_right {
float: right;
border: 0px;
padding-left: 5px;
padding-right: 5px;
}
/* Default listing without spacers */
.plainList {
list-style: none;
margin-left: 0;
padding-left: 0;
}
/* Messages: Centered, important, notice */
.serendipity_center {
margin-left: auto;
margin-right: auto;
text-align: center;
}
.serendipity_msg_important {
color: red;
}
.serendipity_msg_notice {
color: green;
}
/* Embedded images with comments inside the s9y image manager */
.serendipity_imageComment_center,
.serendipity_imageComment_left,
.serendipity_imageComment_right {
border: 1px solid #DDDDDD;
background-color: #EFEFEF;
margin: 3px;
padding: 3px;
text-align: center;
}
.serendipity_imageComment_center {
margin: auto;
}
.serendipity_imageComment_left {
float: left;
}
.serendipity_imageComment_right {
float: right;
}
.serendipity_imageComment_img,
.serendipity_imageComment_img img {
margin: 0px;
padding: 0px;
text-align: center;
}
.serendipity_imageComment_txt {
border-top: 1px solid #DDDDDD;
margin: 0px;
padding: 3px;
clear: both;
font-size: 8pt;
text-align: center;
}
/* END OF style_fallback.css */